diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md index 941cb4957..17bfbc6b4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md @@ -72,16 +72,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - key := iscPrivacy # string | Technical name of the Attribute. # string | Technical name of the Attribute. + key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() + + + 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) @@ -136,17 +140,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() + + + 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) @@ -195,16 +203,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Filters(filters).Execute() + + + 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) @@ -257,16 +269,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - key := iscPrivacy # string | Technical name of the Attribute. # string | Technical name of the Attribute. + key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md index c53ed8070..c5ade2788 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md @@ -62,8 +62,9 @@ Method | HTTP request | Description ## create-access-profile Create Access Profile Create an access profile. -A user with only ROLE_SUBADMIN or SOURCE_SUBADMIN authority must be associated with the access profile's Source. +A user with `ROLE_SUBADMIN` or `SOURCE_SUBADMIN` authority must be associated with the access profile's source. The maximum supported length for the description field is 2000 characters. Longer descriptions will be preserved for existing access profiles. However, any new access profiles as well as any updates to existing descriptions are limited to 2000 characters. +>**Note:** To use this endpoint, you need all the listed scopes. [API Spec](https://developer.sailpoint.com/docs/api/beta/create-access-profile) @@ -98,12 +99,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -138,6 +140,7 @@ func main() { "segments" : [ "f7b1b8a3-5fed-4fd4-ad29-82014e137e19", "29cb6c06-1da8-43ea-8be4-b3125f248f2a" ], "accessRequestConfig" : { "commentsRequired" : true, + "reauthorizationRequired" : true, "approvalSchemes" : [ { "approverId" : "46c79819-a69f-49a2-becb-12c971ae66c6", "approverType" : "GOVERNANCE_GROUP" @@ -187,11 +190,20 @@ func main() { "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + + var accessProfile beta.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -248,16 +260,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to delete # string | ID of the Access Profile to delete + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + + + 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) @@ -307,19 +323,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + + var accessProfileBulkDeleteRequest beta.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -372,16 +398,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180837ca6693d017ca8d097500149 # string | ID of the Access Profile # string | ID of the Access Profile + id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + + + 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) @@ -440,21 +470,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. - 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) - 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 := 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) + id := `2c91808a7813090a017814121919ecca` // string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -488,7 +522,7 @@ Name | Type | Description | Notes **limit** | **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. | [default to 250] **offset** | **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. | [default to 0] **count** | **bool** | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to false] - **filters** | **string** | Filter results using the standard syntax described in [V3 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* **requestable**: *eq* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. | + **filters** | **string** | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. | **sorters** | **string** | Sort results using the standard syntax described 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** | **forSegmentIds** | **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. | **includeUnsegmented** | **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. | [default to true] @@ -511,23 +545,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 8c190e6787aa4ed9a90bd9d5344523fb # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) - 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) - 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 "SailPoint Support" # string | Filter results using the standard syntax described in [V3 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* **requestable**: *eq* **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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **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, 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) - 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) + forSubadmin := `8c190e6787aa4ed9a90bd9d5344523fb` // string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) + 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) + 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 "SailPoint Support"` // string | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **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* **created**: *gt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **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, 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -586,17 +624,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to patch # string | ID of the Access Profile to patch - jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch + jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -651,16 +699,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkUpdateRequestInner := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) # []AccessProfileBulkUpdateRequestInner | + accessProfileBulkUpdateRequestInner := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() + + var accessProfileBulkUpdateRequestInner beta.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(data, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md index c0a702dd3..3b0f12f85 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md @@ -82,13 +82,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "author" : { "name" : "Adam Kennedy", "id" : "2c91808568c529c60168cca6f90c1313", @@ -96,11 +97,20 @@ func main() { }, "created" : "2017-07-11T18:45:37.098Z", "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + var commentDto beta.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -154,20 +164,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "newOwnerId" : "newOwnerId", "comment" : "comment" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + + var forwardApprovalDto beta.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -217,17 +237,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + + + 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) @@ -281,21 +305,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ownerId_example # string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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) + ownerId := `ownerId_example` // string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -349,21 +377,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ownerId_example # string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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) + ownerId := `ownerId_example` // string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -417,13 +449,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "author" : { "name" : "Adam Kennedy", "id" : "2c91808568c529c60168cca6f90c1313", @@ -431,11 +464,20 @@ func main() { }, "created" : "2017-07-11T18:45:37.098Z", "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + var commentDto beta.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md index 40f2c1264..c69a5943f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md @@ -67,18 +67,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 7025c863-c270-4ba6-beea-edf3cb091573 # string | Manager's identity ID. # string | Manager's identity ID. - 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. + identityId := `7025c863-c270-4ba6-beea-edf3cb091573` // string | Manager's identity ID. # string | Manager's identity ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md index 411b6db2b..c36db6954 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md @@ -76,19 +76,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + + var cancelAccessRequest beta.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -148,21 +158,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - closeAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." - }`) # CloseAccessRequest | + }`) // CloseAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestsAPI.CloseAccessRequest(context.Background()).CloseAccessRequest(closeAccessRequest).Execute() + + var closeAccessRequest beta.CloseAccessRequest + if err := json.Unmarshal(data, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -196,6 +216,7 @@ __GRANT_ACCESS__ * Allows any authenticated token (except API) to call this endpoint to request to grant access to themselves. Depending on the configuration, a user can request access for others. * Roles, access profiles and entitlements can be requested. * While requesting entitlements, maximum of 25 entitlements and 10 recipients are allowed in a request. +* Now supports an alternate field 'requestedForWithRequestedItems' for users to specify account selections while requesting items where they have more than one account on the source. __REVOKE_ACCESS__ * Can only be requested for a single identity at a time. @@ -206,6 +227,7 @@ __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. [API Spec](https://developer.sailpoint.com/docs/api/beta/create-access-request) @@ -241,13 +263,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ - "requestedFor" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210584" ], + data := []byte(`{ + "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", "requestedAppName" : "test-app" @@ -261,7 +284,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", @@ -270,7 +295,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", @@ -279,7 +306,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", @@ -288,7 +317,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", @@ -297,13 +328,151 @@ 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", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] + }, { + "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + + var accessRequest beta.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -348,15 +517,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + + + 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) @@ -416,25 +589,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assignedTo := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) - filters := accountActivityItemId eq "2c918086771c86df0177401efcdf54c0" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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) + requestedFor := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assignedTo := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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) + filters := `accountActivityItemId eq "2c918086771c86df0177401efcdf54c0"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -483,12 +660,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -513,11 +691,20 @@ func main() { }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + + var accessRequestConfig beta.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md index 3e015d65f..94be1bd13 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md @@ -93,16 +93,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account activity id # string | The account activity id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + + + 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) @@ -159,24 +163,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := requestedFor_example # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := requestedBy_example # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := regardingIdentity_example # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - type_ := type__example # string | The type of account activity. (optional) # string | The type of account activity. (optional) - 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) - 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 := 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) + requestedFor := `requestedFor_example` // string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `requestedBy_example` // string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `regardingIdentity_example` // string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + type_ := `type__example` // string | The type of account activity. (optional) # string | The type of account activity. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md index b9dec8080..3b5c5b0db 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md @@ -77,16 +77,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808477a6b0c60177a81146b8110b # string | The account aggregation id # string | The account aggregation id + id := `2c91808477a6b0c60177a81146b8110b` // string | The account aggregation id # string | The account aggregation id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md index 07b5a008a..cac19952d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md @@ -66,20 +66,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountId := ef38f94347e94562b5bb8424a56397d8 # string | ID of IDN account # string | ID of IDN account - 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) - 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) + accountId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of IDN account # string | ID of IDN account + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md index 2623354c9..b5e82150b 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md @@ -61,6 +61,9 @@ Method | HTTP request | Description ## create-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Create Account Submits an account creation task - the API then returns the task ID. @@ -108,12 +111,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -122,11 +126,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + + var accountAttributesCreate beta.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -139,6 +152,9 @@ func main() { [[Back to top]](#) ## delete-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Delete Account Use this API to delete an account. This endpoint submits an account delete task and returns the task ID. @@ -183,16 +199,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + + + 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) @@ -251,16 +271,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c350d6aa4f104c61b062cb632421ad10 # string | The account id # string | The account id + id := `c350d6aa4f104c61b062cb632421ad10` // string | The account id # string | The account id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() + + + 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) @@ -273,6 +297,9 @@ func main() { [[Back to top]](#) ## disable-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Disable Account This API submits a task to disable the account and returns the task ID. A token with ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN, or HELPDESK authority is required to call this API. @@ -315,20 +342,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest beta.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -341,6 +378,9 @@ func main() { [[Back to top]](#) ## disable-account-for-identity +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Disable IDN Account for Identity This API submits a task to disable IDN account for a single identity. @@ -381,16 +421,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808384203c2d018437e631158309 # string | The identity id. # string | The identity id. + id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() + + + 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) @@ -403,6 +447,9 @@ func main() { [[Back to top]](#) ## disable-accounts-for-identities +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Disable IDN Accounts for Identities This API submits tasks to disable IDN account for each identity provided in the request body. @@ -439,18 +486,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + + var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -463,6 +520,9 @@ func main() { [[Back to top]](#) ## enable-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Enable Account This API submits a task to enable account and returns the task ID. A token with ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN, or HELPDESK authority is required to call this API. @@ -505,20 +565,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest beta.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -531,6 +601,9 @@ func main() { [[Back to top]](#) ## enable-account-for-identity +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Enable IDN Account for Identity This API submits a task to enable IDN account for a single identity. @@ -571,16 +644,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808384203c2d018437e631158309 # string | The identity id. # string | The identity id. + id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() + + + 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) @@ -593,6 +670,9 @@ func main() { [[Back to top]](#) ## enable-accounts-for-identities +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Enable IDN Accounts for Identities This API submits tasks to enable IDN account for each identity provided in the request body. @@ -629,18 +709,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + + var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -653,6 +743,9 @@ func main() { [[Back to top]](#) ## get-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Account Details Use this API to return the details for a single account by its ID. A token with ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN, or HELPDESK authority is required to call this API. @@ -694,16 +787,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.GetAccount(context.Background(), id).Execute() + + + 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) @@ -716,6 +813,9 @@ func main() { [[Back to top]](#) ## get-account-entitlements +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Account Entitlements This API returns entitlements of the account. A token with ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN, or HELPDESK authority is required to call this API. @@ -760,19 +860,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - 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) - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.GetAccountEntitlements(context.Background(), id).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -785,8 +889,11 @@ func main() { [[Back to top]](#) ## list-accounts +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Accounts List -List accounts. +List accounts. [API Spec](https://developer.sailpoint.com/docs/api/beta/list-accounts) @@ -826,21 +933,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - detailLevel := FULL # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) - 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) - 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 := 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) + detailLevel := `FULL` // string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.ListAccounts(context.Background()).DetailLevel(detailLevel).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -853,6 +964,9 @@ func main() { [[Back to top]](#) ## put-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Update Account Use this API to update an account with a PUT request. @@ -901,13 +1015,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -915,11 +1030,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + + var accountAttributes beta.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -932,6 +1056,9 @@ func main() { [[Back to top]](#) ## submit-reload-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Reload Account This API asynchronously reloads the account directly from the connector and performs a one-time aggregation process. A token with ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN, or HELPDESK authority is required to call this API. @@ -973,16 +1100,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + + + 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) @@ -995,6 +1126,9 @@ func main() { [[Back to top]](#) ## unlock-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Unlock Account This API submits a task to unlock an account and returns the task ID. To use this endpoint to unlock an account that has the `forceProvisioning` option set to true, the `idn:accounts-provisioning:manage` scope is required. @@ -1038,21 +1172,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + + var accountUnlockRequest beta.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1065,6 +1209,9 @@ func main() { [[Back to top]](#) ## update-account +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Update Account Use this API to update account details. A token with ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. @@ -1117,17 +1264,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - requestBody := fmt.Sprintf(`{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + requestBody := fmt.Sprintf(`{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md index 3ba553eeb..f93d46d7e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md @@ -66,16 +66,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 123e4567-e89b-12d3-a456-426655440000 # string | Discovered application's ID. # string | Discovered application's ID. + id := `123e4567-e89b-12d3-a456-426655440000` // string | Discovered application's ID. # string | Discovered application's ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplicationByID(context.Background(), id).Execute() + + + 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) @@ -127,20 +131,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - detail := FULL # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) - 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) + 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) + detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + + + 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) @@ -188,15 +196,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + + + 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) @@ -251,17 +263,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 123e4567-e89b-12d3-a456-426655440000 # string | Discovered application's ID. # string | Discovered application's ID. - jsonPatchOperations := fmt.Sprintf(`[{op=replace, path=/dismissed, value=true}]`) # []JsonPatchOperations | (optional) + id := `123e4567-e89b-12d3-a456-426655440000` // string | Discovered application's ID. # string | Discovered application's ID. + jsonPatchOperations := fmt.Sprintf(`[{op=replace, path=/dismissed, value=true}]`) // []JsonPatchOperations | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID(context.Background(), id).JsonPatchOperations(jsonPatchOperations).Execute() + + + 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) @@ -309,16 +325,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md index e15d74052..f88691beb 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md @@ -63,16 +63,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ApprovalsAPI.GetApproval(context.Background(), id).Execute() + + + 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) @@ -124,18 +128,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mine := true # bool | Returns the list of approvals for the current caller. (optional) # bool | Returns the list of approvals for the current caller. (optional) - 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) + mine := true // bool | Returns the list of approvals for the current caller. (optional) # bool | Returns the list of approvals for the current caller. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ApprovalsAPI.GetApprovals(context.Background()).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md index 5d5c5d50c..e68059245 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md @@ -70,12 +70,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceAppCreateDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -84,11 +85,20 @@ func main() { "type" : "SOURCE" }, "matchAllAccounts" : true - }`) # SourceAppCreateDto | + }`) // SourceAppCreateDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.CreateSourceApp(context.Background()).SourceAppCreateDto(sourceAppCreateDto).Execute() + + var sourceAppCreateDto beta.SourceAppCreateDto + if err := json.Unmarshal(data, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,18 +153,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the source app # string | ID of the source app - requestBody := fmt.Sprintf(``) # []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) + id := `2c91808a7813090a017814121e121518` // string | ID of the source app # string | ID of the source app + requestBody := fmt.Sprintf(``) // []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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).RequestBody(requestBody).Limit(limit).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -207,16 +227,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | source app ID. # string | source app ID. + id := `2c9180835d191a86015d28455b4a2329` // string | source app ID. # string | source app ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.DeleteSourceApp(context.Background(), id).Execute() + + + 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) @@ -269,16 +293,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the source app # string | ID of the source app + id := `2c91808a7813090a017814121e121518` // string | ID of the source app # string | ID of the source app - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.GetSourceApp(context.Background(), id).Execute() + + + 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) @@ -334,19 +362,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the source app # string | ID of the source app - 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) - 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the source app # string | ID of the source app + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -401,20 +433,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.ListAllSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -467,19 +503,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* - 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) - 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).Limit(limit).Count(count).Offset(offset).Execute() + + + 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) @@ -532,20 +572,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.ListAssignedSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -601,19 +645,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the user app # string | ID of the user app - 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) - 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the user app # string | ID of the user app + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).Limit(limit).Count(count).Offset(offset).Execute() + + + 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) @@ -666,20 +714,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.ListAvailableSourceApps(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -731,19 +783,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.ListOwnedUserApps(context.Background()).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() + + + 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) @@ -799,17 +855,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the source app to patch # string | ID of the source app to patch - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the source app to patch # string | ID of the source app to patch + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.PatchSourceApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -864,17 +924,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the user app to patch # string | ID of the user app to patch - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the user app to patch # string | ID of the user app to patch + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AppsAPI.PatchUserApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -925,12 +989,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceAppBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -941,11 +1006,14 @@ func main() { "path" : "/matchAllAccounts", "value" : false } ] - }`) # SourceAppBulkUpdateRequest | (optional) + }`) // SourceAppBulkUpdateRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.AppsAPI.UpdateSourceAppsInBulk(context.Background()).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md index 8fe1dd57d..a79d5d23f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md @@ -67,16 +67,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Auth Profile to get. # string | ID of the Auth Profile to get. + id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to get. # string | ID of the Auth Profile to get. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfig(context.Background(), id).Execute() + + + 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) @@ -121,15 +125,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() + + + 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) @@ -184,17 +192,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | + id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.AuthProfileAPI.PatchProfileConfig(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md index ed8695b1a..17c59ba2b 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md @@ -161,19 +161,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - completeCampaignOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CompleteCampaignOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CompleteCampaignOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CompleteCampaignOptions(completeCampaignOptions).Execute() + + + 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) @@ -228,12 +232,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -341,11 +346,20 @@ func main() { "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + + var campaign beta.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -400,13 +414,14 @@ import ( "context" "fmt" "os" - "time" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -529,11 +544,20 @@ func main() { "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + + var campaignTemplate beta.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -592,16 +616,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -658,16 +686,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -720,18 +752,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteCampaignsRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # DeleteCampaignsRequest | IDs of the campaigns to delete. + }`) // DeleteCampaignsRequest | IDs of the campaigns to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).DeleteCampaignsRequest(deleteCampaignsRequest).Execute() + + var deleteCampaignsRequest beta.DeleteCampaignsRequest + if err := json.Unmarshal(data, &deleteCampaignsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -791,21 +833,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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) - 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) - 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 "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) + 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) + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -864,16 +910,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign to be retrieved. # string | ID of the campaign to be retrieved. + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign to be retrieved. # string | ID of the campaign to be retrieved. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() + + + 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) @@ -932,16 +982,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + + + 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) @@ -992,15 +1046,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + + + 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) @@ -1059,16 +1117,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Requested campaign template's ID. # string | Requested campaign template's ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1127,16 +1189,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -1197,20 +1263,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 # string | Sort results using the standard syntax described 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) + 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) + 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` // string | Sort results using the standard syntax described 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1270,24 +1340,34 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + + var adminReviewReassign beta.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1347,17 +1427,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being modified. # string | ID of the campaign template being modified. - jsonPatchOperation := fmt.Sprintf(`[{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) + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. + jsonPatchOperation := fmt.Sprintf(`[{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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1412,18 +1502,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + + var campaignReportsConfig beta.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1484,13 +1584,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 04bedce387bd47b2ae1f86eb0bb36dee # string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -1509,11 +1610,14 @@ func main() { }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + + + 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) @@ -1571,19 +1675,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "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) + }`) // 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + + + 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) @@ -1642,16 +1750,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + + + 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) @@ -1712,17 +1824,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + + + 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) @@ -1793,16 +1909,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1862,17 +1982,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign being modified. # string | ID of the campaign being modified. - requestBody := fmt.Sprintf(`[{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 + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign being modified. # string | ID of the campaign being modified. + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md index a9eb8290a..dbfaf2ea7 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md @@ -88,21 +88,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - certificationId := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - itemId := 2c91808671bcbab40171bd945d961227 # string | The certification item ID # string | The certification item ID - filters := target eq "SYS.OBJAUTH2" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (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: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (optional) - 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) - 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) + certificationId := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + itemId := `2c91808671bcbab40171bd945d961227` // string | The certification item ID # string | The certification item ID + filters := `target eq "SYS.OBJAUTH2"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (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: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -155,16 +159,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := id_example # string | The identity campaign certification ID # string | The identity campaign certification ID + id := `id_example` // string | The identity campaign certification ID # string | The identity campaign certification ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() + + + 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) @@ -219,17 +227,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() + + + 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) @@ -290,21 +302,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - 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) - 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 "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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -358,21 +374,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reviewerIdentitiy := reviewerIdentitiy_example # string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) - 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) - 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 := 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) + reviewerIdentitiy := `reviewerIdentitiy_example` // string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationsAPI.ListCertifications(context.Background()).ReviewerIdentitiy(reviewerIdentitiy).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -429,13 +449,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -445,11 +466,20 @@ func main() { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + + var reviewReassign beta.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md index 2b3196a4a..44430a556 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md @@ -67,12 +67,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorRuleCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -97,11 +98,20 @@ func main() { "description" : "This rule does that", "attributes" : { }, "type" : "BuildMap" - }`) # ConnectorRuleCreateRequest | The connector rule to create + }`) // ConnectorRuleCreateRequest | The connector rule to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() + + var connectorRuleCreateRequest beta.ConnectorRuleCreateRequest + if err := json.Unmarshal(data, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -155,16 +165,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to delete # string | ID of the connector rule to delete + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to delete # string | ID of the connector rule to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + + + 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) @@ -216,16 +230,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to retrieve # string | ID of the connector rule to retrieve + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to retrieve # string | ID of the connector rule to retrieve - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + + + 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) @@ -271,15 +289,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() + + + 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) @@ -334,13 +356,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to update # string | ID of the connector rule to update - connectorRuleUpdateRequest := fmt.Sprintf(`{ + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to update # string | ID of the connector rule to update + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -366,11 +389,14 @@ func main() { "attributes" : { }, "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" - }`) # ConnectorRuleUpdateRequest | The connector rule with updated data (optional) + }`) // ConnectorRuleUpdateRequest | The connector rule with updated data (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() + + + 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) @@ -420,19 +446,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceCode := fmt.Sprintf(`{ + data := []byte(`{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" - }`) # SourceCode | The code to validate + }`) // SourceCode | The code to validate - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).SourceCode(sourceCode).Execute() + + var sourceCode beta.SourceCode + if err := json.Unmarshal(data, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md index d263f32f0..c11d604af 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md @@ -73,20 +73,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := directConnect 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: **name**: *sw* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (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* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (optional) - 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) - 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) + filters := `directConnect 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: **name**: *sw* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (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* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md index 5bcc5d55a..29a046d9f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md @@ -81,12 +81,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createFormDefinitionRequest := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -196,11 +197,14 @@ func main() { }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinition(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() + + + 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) @@ -249,12 +253,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createFormDefinitionRequest := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -364,11 +369,14 @@ func main() { }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() + + + 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) @@ -417,12 +425,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -430,11 +439,14 @@ func main() { "id" : "00000000-0000-0000-0000-000000000000", "type" : "action", "versionNumber" : 1 - }`) # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() + + + 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) @@ -488,17 +500,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() + + + 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) @@ -547,12 +563,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "formInput" : { "input1" : "Sales" }, @@ -572,11 +589,14 @@ func main() { "formDefinitionId" : "00000000-0000-0000-0000-000000000000", "state" : "ASSIGNED", "ttl" : 1571827560 - }`) # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() + + + 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) @@ -629,16 +649,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + + + 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) @@ -690,19 +714,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := 0 # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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") + offset := 0 // int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -757,17 +785,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + + + 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) @@ -820,16 +852,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + + + 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) @@ -882,16 +918,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + + + 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) @@ -946,17 +986,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + + + 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) @@ -1005,16 +1049,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`[{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) + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() + + + 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) @@ -1068,17 +1116,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID - body := fmt.Sprintf(`[{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) + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() + + + 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) @@ -1132,17 +1184,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID - body := fmt.Sprintf(`[{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) + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() + + + 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) @@ -1194,19 +1250,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := 250 # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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") + offset := 250 // int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -1265,20 +1325,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID - formElementID := 1 # string | Form element ID # string | Form element ID - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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) + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + formElementID := `1` // string | Form element ID # string | Form element ID + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() + + + 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) @@ -1323,15 +1387,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + + + 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) @@ -1376,15 +1444,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + + + 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) @@ -1441,16 +1513,17 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID - limit := 10 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) - 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 := ac # 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) - formElementPreviewRequest := fmt.Sprintf(`{ + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + limit := 10 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) + 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 := `ac` // 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) + data := []byte(`{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -1460,11 +1533,14 @@ func main() { }, "dataSourceType" : "STATIC" } - }`) # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md index b23201481..c79837279 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md @@ -68,20 +68,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - customPasswordInstruction := fmt.Sprintf(`{ + data := []byte(`{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" - }`) # CustomPasswordInstruction | + }`) // CustomPasswordInstruction | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).CustomPasswordInstruction(customPasswordInstruction).Execute() + + var customPasswordInstruction beta.CustomPasswordInstruction + if err := json.Unmarshal(data, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -135,17 +145,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() + + + 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) @@ -197,17 +211,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md index 70322952a..c77b8189f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md @@ -123,18 +123,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The entitlement id. # string | The entitlement id. - 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. + id := `2c91808c74ff913f0175097daa9d59cd` // string | The entitlement id. # string | The entitlement id. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + + + 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) @@ -191,18 +195,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The entitlement id. # string | The entitlement id. - 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. + id := `2c91808c74ff913f0175097daa9d59cd` // string | The entitlement id. # string | The entitlement id. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + + + 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) @@ -253,16 +261,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808874ff91550175097daaec161c # string | The entitlement ID # string | The entitlement ID + id := `2c91808874ff91550175097daaec161c` // string | The entitlement ID # string | The entitlement ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() + + + 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) @@ -315,16 +327,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808874ff91550175097daaec161c # string | Entitlement Id # string | Entitlement Id + id := `2c91808874ff91550175097daaec161c` // string | Entitlement Id # string | Entitlement Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() + + + 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) @@ -385,17 +401,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).CsvFile(csvFile).Execute() + + + 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) @@ -453,21 +473,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808874ff91550175097daaec161c # string | Entitlement Id # string | Entitlement Id - 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) - 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: **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) + id := `2c91808874ff91550175097daaec161c` // string | Entitlement Id # string | Entitlement Id + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -525,21 +549,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | Entitlement Id # string | Entitlement Id - 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) - 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: **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) + id := `2c91808c74ff913f0175097daa9d59cd` // string | Entitlement Id # string | Entitlement Id + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -600,24 +628,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountId := ef38f94347e94562b5bb8424a56397d8 # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) - segmentedForIdentity := me # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) - forSegmentIds := 041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649 # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) - includeUnsegmented := true # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) - 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) - 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: **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) + accountId := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) + segmentedForIdentity := `me` // string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) + forSegmentIds := `041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649` // string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) + includeUnsegmented := true // bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -677,17 +709,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the entitlement to patch # string | ID of the entitlement to patch - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the entitlement to patch # string | ID of the entitlement to patch + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.PatchEntitlement(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -741,13 +777,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | Entitlement ID # string | Entitlement ID - entitlementRequestConfig := fmt.Sprintf(`{ + id := `2c91808a7813090a017814121e121518` // string | Entitlement ID # string | Entitlement ID + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -759,11 +796,20 @@ func main() { } ], "requestCommentRequired" : true } - }`) # EntitlementRequestConfig | + }`) // EntitlementRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).EntitlementRequestConfig(entitlementRequestConfig).Execute() + + var entitlementRequestConfig beta.EntitlementRequestConfig + if err := json.Unmarshal(data, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -817,16 +863,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808a7813090a017814121919ecca # string | ID of source for the entitlement reset # string | ID of source for the entitlement reset + sourceId := `2c91808a7813090a017814121919ecca` // string | ID of source for the entitlement reset # string | ID of source for the entitlement reset - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.EntitlementsAPI.ResetSourceEntitlements(context.Background(), sourceId).Execute() + + + 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) @@ -888,12 +938,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - entitlementBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -904,11 +955,20 @@ func main() { "path" : "/requestable", "value" : false } ] - }`) # EntitlementBulkUpdateRequest | + }`) // EntitlementBulkUpdateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() + + var entitlementBulkUpdateRequest beta.EntitlementBulkUpdateRequest + if err := json.Unmarshal(data, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md index ba1841d7c..8ff4b2a42 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md @@ -69,12 +69,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupDto := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -89,11 +90,20 @@ func main() { "description" : "Description of the Governance Group", "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" - }`) # WorkgroupDto | + }`) // WorkgroupDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).WorkgroupDto(workgroupDto).Execute() + + var workgroupDto beta.WorkgroupDto + if err := json.Unmarshal(data, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -146,16 +156,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180837ca6693d017ca8d097500149 # string | ID of the Governance Group # string | ID of the Governance Group + id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() + + + 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) @@ -211,17 +225,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # string | ID of the Governance Group. # string | ID of the Governance Group. - bulkWorkgroupMembersRequestInner := fmt.Sprintf(``) # []BulkWorkgroupMembersRequestInner | List of identities to be removed from a Governance Group members list. + workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. + bulkWorkgroupMembersRequestInner := fmt.Sprintf(``) // []BulkWorkgroupMembersRequestInner | List of identities to be removed from a Governance Group members list. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() + + var bulkWorkgroupMembersRequestInner beta.BulkWorkgroupMembersRequestInner + if err := json.Unmarshal(data, &bulkWorkgroupMembersRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -281,18 +305,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] - }`) # WorkgroupBulkDeleteRequest | + }`) // WorkgroupBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() + + var workgroupBulkDeleteRequest beta.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(data, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -345,16 +379,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180837ca6693d017ca8d097500149 # string | ID of the Governance Group # string | ID of the Governance Group + id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() + + + 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) @@ -411,20 +449,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # string | ID of the Governance Group. # string | ID of the Governance Group. - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + + + 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) @@ -481,20 +523,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # string | ID of the Governance Group. # string | ID of the Governance Group. - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + + + 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) @@ -547,20 +593,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 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) + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -620,17 +670,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180837ca6693d017ca8d097500149 # string | ID of the Governance Group # string | ID of the Governance Group - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) # []JsonPatchOperation | (optional) + id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -688,17 +742,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # string | ID of the Governance Group. # string | ID of the Governance Group. - bulkWorkgroupMembersRequestInner := fmt.Sprintf(``) # []BulkWorkgroupMembersRequestInner | List of identities to be added to a Governance Group members list. + workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. + bulkWorkgroupMembersRequestInner := fmt.Sprintf(``) // []BulkWorkgroupMembersRequestInner | List of identities to be added to a Governance Group members list. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() + + var bulkWorkgroupMembersRequestInner beta.BulkWorkgroupMembersRequestInner + if err := json.Unmarshal(data, &bulkWorkgroupMembersRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md index 68c605a96..23be1aca2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md @@ -62,22 +62,32 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestRecommendationActionItemDto := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -126,22 +136,32 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestRecommendationActionItemDto := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -190,22 +210,32 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestRecommendationActionItemDto := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -254,16 +284,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestRecommendationActionItemDto := fmt.Sprintf(``) # []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. + accessRequestRecommendationActionItemDto := fmt.Sprintf(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -318,22 +358,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808570313110017040b06f344ec9 # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") - limit := 15 # int32 | Max number of results to return. (optional) (default to 15) # int32 | Max number of results to return. (optional) (default to 15) - 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) - includeTranslationMessages := false # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) - 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) + identityId := `2c91808570313110017040b06f344ec9` // string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") + limit := 15 // int32 | Max number of results to return. (optional) (default to 15) # int32 | Max number of results to return. (optional) (default to 15) + 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) + includeTranslationMessages := false // bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -386,20 +430,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -452,20 +500,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -518,20 +570,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md index 8ba084302..5d00a289e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md @@ -57,12 +57,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - commonAccessItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -72,11 +73,20 @@ func main() { "ownerId" : "ownerId" }, "status" : "CONFIRMED" - }`) # CommonAccessItemRequest | + }`) // CommonAccessItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAICommonAccessAPI.CreateCommonAccess(context.Background()).CommonAccessItemRequest(commonAccessItemRequest).Execute() + + var commonAccessItemRequest beta.CommonAccessItemRequest + if err := json.Unmarshal(data, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -129,20 +139,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAICommonAccessAPI.GetCommonAccess(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -191,16 +205,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - commonAccessIDStatus := fmt.Sprintf(``) # []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access + commonAccessIDStatus := fmt.Sprintf(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).CommonAccessIDStatus(commonAccessIDStatus).Execute() + + var commonAccessIDStatus beta.CommonAccessIDStatus + if err := json.Unmarshal(data, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md index eace386bb..0d6330e0c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md @@ -59,16 +59,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - catalogId := recommender # string | The ID of the message catalog. # string | The ID of the message catalog. + catalogId := `recommender` // string | The ID of the message catalog. # string | The ID of the message catalog. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md index 295c54cd7..8f052c4ce 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md @@ -66,16 +66,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIOutliersAPI.ExportOutliersZip(context.Background()).Type_(type_).Execute() + + + 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) @@ -128,20 +132,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -195,21 +203,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) - 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) + 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -258,16 +270,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Type_(type_).Execute() + + + 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) @@ -323,16 +339,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - outlierFeatureId := 04654b66-7561-4090-94f9-abee0722a1af # string | Contributing feature id # string | Contributing feature id + outlierFeatureId := `04654b66-7561-4090-94f9-abee0722a1af` // string | Contributing feature id # string | Contributing feature id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() + + + 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) @@ -393,21 +413,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - outlierId := 2c918085842e69ae018432d22ccb212f # string | The outlier id # string | The outlier id - 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) - 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) - 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) + outlierId := `2c918085842e69ae018432d22ccb212f` // string | The outlier id # string | The outlier id + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() + + + 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) @@ -456,16 +480,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | + requestBody := fmt.Sprintf(``) // []string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -526,22 +560,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - outlierId := 2c918085842e69ae018432d22ccb212f # string | The outlier id # string | The outlier id - contributingFeatureName := entitlement_count # string | The name of contributing feature # string | The name of contributing feature - 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) - 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) - 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) + outlierId := `2c918085842e69ae018432d22ccb212f` // string | The outlier id # string | The outlier id + contributingFeatureName := `entitlement_count` // string | The name of contributing feature # string | The name of contributing feature + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() + + + 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) @@ -590,16 +628,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | + requestBody := fmt.Sprintf(``) // []string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md index 0a5d4fd9a..26ad4e35b 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md @@ -65,19 +65,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - strategy := entitlement # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. - 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) - 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) + strategy := `entitlement` // string | The strategy used to create peer groups. Currently, 'entitlement' is supported. # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md index 6090ce322..42c098d2a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md @@ -57,12 +57,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - recommendationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -80,11 +81,20 @@ func main() { } ], "includeTranslationMessages" : false, "includeDebugInformation" : true - }`) # RecommendationRequestDto | + }`) // RecommendationRequestDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendations(context.Background()).RecommendationRequestDto(recommendationRequestDto).Execute() + + var recommendationRequestDto beta.RecommendationRequestDto + if err := json.Unmarshal(data, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -129,15 +139,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() + + + 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) @@ -186,21 +200,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - recommendationConfigDto := fmt.Sprintf(`{ + data := []byte(`{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false - }`) # RecommendationConfigDto | + }`) // RecommendationConfigDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).RecommendationConfigDto(recommendationConfigDto).Execute() + + var recommendationConfigDto beta.RecommendationConfigDto + if err := json.Unmarshal(data, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md index 6149355e6..957ff9051 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md @@ -88,26 +88,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - minEntitlementPopularity := 56 # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) - includeCommonAccess := true # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) - roleMiningPotentialRoleProvisionRequest := fmt.Sprintf(`{ + 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 + minEntitlementPopularity := 56 // int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) + includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) + data := []byte(`{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false - }`) # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() + + + 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) @@ -156,12 +160,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMiningSessionDto := fmt.Sprintf(`{ + data := []byte(`{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -192,11 +197,20 @@ func main() { "minNumIdentitiesInPotentialRole" : 20, "identityCount" : 0, "type" : "SPECIALIZED" - }`) # RoleMiningSessionDto | Role mining session parameters + }`) // RoleMiningSessionDto | Role mining session parameters - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).RoleMiningSessionDto(roleMiningSessionDto).Execute() + + var roleMiningSessionDto beta.RoleMiningSessionDto + if err := json.Unmarshal(data, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -253,18 +267,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() + + + 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) @@ -319,17 +337,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + + + 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) @@ -385,21 +407,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 - roleMiningPotentialRoleExportRequest := fmt.Sprintf(`{ + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 + data := []byte(`{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true - }`) # RoleMiningPotentialRoleExportRequest | (optional) + }`) // RoleMiningPotentialRoleExportRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() + + + 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) @@ -456,18 +482,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() + + + 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) @@ -520,20 +550,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sorters := createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) - filters := (createdByName co "int") and (createdById sw "2c9180907") and (type eq "COMMON") and ((name co "entt") or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) - 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) - 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 := `createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) + filters := `(createdByName co "int") and (createdById sw "2c9180907") and (type eq "COMMON") and ((name co "entt") or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -589,18 +623,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Execute() + + + 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) @@ -661,23 +699,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - includeCommonAccess := true # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) - sorters := popularity # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity, entitlementName, applicationName** The default sort is **popularity** 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) - filters := applicationName sw "AD" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) + 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 + includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) + sorters := `popularity` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity, entitlementName, applicationName** The default sort is **popularity** 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) + filters := `applicationName sw "AD"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -737,22 +779,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - sorters := populariity # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity** (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: **popularity** (optional) - filters := applicationName sw "AD" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) + 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 + sorters := `populariity` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity** (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: **popularity** (optional) + filters := `applicationName sw "AD"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -812,22 +858,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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 := 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: **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) - 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) - 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) + 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 + 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 := `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: **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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -882,17 +932,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + + + 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) @@ -951,21 +1005,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - potentialRoleId := 62f28d91-7d9f-4d17-be15-666d5b41d77f # string | A potential role id in a role mining session # string | A potential role id in a role mining session - filters := applicationName 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: **applicationName**: *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: **applicationName**: *sw* (optional) - 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) - 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) + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + potentialRoleId := `62f28d91-7d9f-4d17-be15-666d5b41d77f` // string | A potential role id in a role mining session # string | A potential role id in a role mining session + filters := `applicationName 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: **applicationName**: *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: **applicationName**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1024,21 +1082,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - potentialRoleId := 62f28d91-7d9f-4d17-be15-666d5b41d77f # string | A potential role id in a role mining session # string | A potential role id in a role mining session - filters := entitlementRef.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: **entitlementRef.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: **entitlementRef.name**: *sw* (optional) - 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) - 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) + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + potentialRoleId := `62f28d91-7d9f-4d17-be15-666d5b41d77f` // string | A potential role id in a role mining session # string | A potential role id in a role mining session + filters := `entitlementRef.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: **entitlementRef.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: **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1097,21 +1159,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - potentialRoleId := e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 # string | A potential role id # string | A potential role id - sourceId := 2c9180877620c1460176267f336a106f # string | A source id # string | A source id - sorters := -usageCount # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) - 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) - 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) + potentialRoleId := `e0cc5d7d-bf7f-4f81-b2af-8885b09d9923` // string | A potential role id # string | A potential role id + sourceId := `2c9180877620c1460176267f336a106f` // string | A source id # string | A source id + sorters := `-usageCount` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1169,21 +1235,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - sorters := createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate** (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: **createdDate** (optional) - filters := (createdByName co "int")and (createdById sw "2c9180907")and (type eq "COMMON")and ((name co "entt")or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) - 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) - 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) + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + sorters := `createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate** (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: **createdDate** (optional) + filters := `(createdByName co "int")and (createdById sw "2c9180907")and (type eq "COMMON")and ((name co "entt")or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1236,16 +1306,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - potentialRoleId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | A potential role id # string | A potential role id + potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id # string | A potential role id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() + + + 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) @@ -1298,16 +1372,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() + + + 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) @@ -1360,16 +1438,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() + + + 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) @@ -1422,20 +1504,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := saved eq "true" and name sw "RM Session" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **saved**: *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: **saved**: *eq* **name**: *eq, sw* (optional) - sorters := createdBy,createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) - 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) - 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 := `saved eq "true" and name sw "RM Session"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **saved**: *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: **saved**: *eq* **name**: *eq, sw* (optional) + sorters := `createdBy,createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1487,19 +1573,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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 is supported for the following fields: **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 is supported for the following fields: **modified** (optional) - 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) - 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 := `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 is supported for the following fields: **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 is supported for the following fields: **modified** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1567,18 +1657,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 | The potential role summary id # string | The potential role summary id - patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | + 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 | The potential role summary id # string | The potential role summary id + patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + + var patchPotentialRoleRequestInner beta.PatchPotentialRoleRequestInner + if err := json.Unmarshal(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1644,17 +1744,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - potentialRoleId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The potential role summary id # string | The potential role summary id - patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | + potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The potential role summary id # string | The potential role summary id + patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + + var patchPotentialRoleRequestInner beta.PatchPotentialRoleRequestInner + if err := json.Unmarshal(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1708,17 +1818,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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. + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1774,21 +1894,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - roleMiningPotentialRoleEditEntitlements := fmt.Sprintf(`{ + 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 + data := []byte(`{ "ids" : [ "entId1", "entId2" ], "exclude" : true - }`) # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() + + var roleMiningPotentialRoleEditEntitlements beta.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(data, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md index e4c29e537..3f712264a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md @@ -64,17 +64,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - objectType := application # string | Object type # string | Object type - objectId := a291e870-48c3-4953-b656-fb5ce2a93169 # string | Object id. # string | Object id. + objectType := `application` // string | Object type # string | Object type + objectId := `a291e870-48c3-4953-b656-fb5ce2a93169` // string | Object id. # string | Object id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() + + + 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) @@ -128,18 +132,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - objectType := application # string | Object type # string | Object type - 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'] + objectType := `application` // string | Object type # string | Object type + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IconsAPI.SetIcon(context.Background(), objectType, objectId).Image(image).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md index 261f43887..a25f75add 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md @@ -84,16 +84,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id # string | Identity Id + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() + + + 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) @@ -144,16 +148,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id # string | Identity Id + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() + + + 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) @@ -208,16 +216,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ff8081814d2a8036014d701f3fbf53fa # string | Identity ID. # string | Identity ID. + identityId := `ff8081814d2a8036014d701f3fbf53fa` // string | Identity ID. # string | Identity ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() + + + 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) @@ -272,17 +284,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id # string | Identity Id - assignmentId := 1cbb0705b38c4226b1334eadd8874086 # string | Assignment Id # string | Assignment Id + identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id + assignmentId := `1cbb0705b38c4226b1334eadd8874086` // string | Assignment Id # string | Assignment Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() + + + 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) @@ -337,18 +353,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id to get the role assignments for # string | Identity Id to get the role assignments for - 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) + identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id to get the role assignments for # string | Identity Id to get the role assignments for + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).RoleId(roleId).RoleName(roleName).Execute() + + + 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) @@ -402,21 +422,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := id eq "6c9079b270a266a60170a2779fcb0006" or correlated 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: **id**: *eq, in* **name**: *eq, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) - sorters := name,-cloudStatus # string | Sort results using the standard syntax described 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, alias, cloudStatus** (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, alias, cloudStatus** (optional) - defaultFilter := NONE # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") - 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) - 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) + filters := `id eq "6c9079b270a266a60170a2779fcb0006" or correlated 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: **id**: *eq, in* **name**: *eq, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) + sorters := `name,-cloudStatus` // string | Sort results using the standard syntax described 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, alias, cloudStatus** (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, alias, cloudStatus** (optional) + defaultFilter := `NONE` // string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.ListIdentities(context.Background()).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() + + + 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) @@ -469,16 +493,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id # string | Identity Id + identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() + + + 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) @@ -531,20 +559,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID - sendAccountVerificationRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + data := []byte(`{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" - }`) # SendAccountVerificationRequest | + }`) // SendAccountVerificationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() + + var sendAccountVerificationRequest beta.SendAccountVerificationRequest + if err := json.Unmarshal(data, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -596,19 +634,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - inviteIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false - }`) # InviteIdentitiesRequest | + }`) // InviteIdentitiesRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentitiesInvite(context.Background()).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() + + var inviteIdentitiesRequest beta.InviteIdentitiesRequest + if err := json.Unmarshal(data, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -667,18 +715,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - processIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] - }`) # ProcessIdentitiesRequest | + }`) // ProcessIdentitiesRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentityProcessing(context.Background()).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() + + var processIdentitiesRequest beta.ProcessIdentitiesRequest + if err := json.Unmarshal(data, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -731,16 +789,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := identityId_example # string | The Identity id # string | The Identity id + identityId := `identityId_example` // string | The Identity id # string | The Identity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md index ace3ef46e..56f5e2f92 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md @@ -60,12 +60,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityAttribute := fmt.Sprintf(`{ + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -86,11 +87,20 @@ func main() { "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).IdentityAttribute(identityAttribute).Execute() + + var identityAttribute beta.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,16 +153,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := displayName # string | The attribute's technical name. # string | The attribute's technical name. + name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() + + + 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) @@ -199,18 +213,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityAttributeNames := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "name", "displayName" ] - }`) # IdentityAttributeNames | + }`) // IdentityAttributeNames | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).IdentityAttributeNames(identityAttributeNames).Execute() + + var identityAttributeNames beta.IdentityAttributeNames + if err := json.Unmarshal(data, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -261,16 +285,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := displayName # string | The attribute's technical name. # string | The attribute's technical name. + name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() + + + 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) @@ -322,19 +350,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - includeSystem := false # bool | Include 'system' attributes in the response. (optional) (default to false) # bool | Include 'system' attributes in the response. (optional) (default to false) - includeSilent := false # bool | Include 'silent' attributes in the response. (optional) (default to false) # bool | Include 'silent' attributes in the response. (optional) (default to false) - 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) + includeSystem := false // bool | Include 'system' attributes in the response. (optional) (default to false) # bool | Include 'system' attributes in the response. (optional) (default to false) + includeSilent := false // bool | Include 'silent' attributes in the response. (optional) (default to false) # bool | Include 'silent' attributes in the response. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() + + + 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) @@ -388,13 +420,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := displayName # string | The attribute's technical name. # string | The attribute's technical name. - identityAttribute := fmt.Sprintf(`{ + name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -415,11 +448,20 @@ func main() { "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).IdentityAttribute(identityAttribute).Execute() + + var identityAttribute beta.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md index 6ce5ecbb9..b41ba36d5 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md @@ -75,22 +75,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - snapshot1 := 2007-03-01T13:00:00Z # string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) - snapshot2 := 2008-03-01T13:00:00Z # string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) - accessItemTypes := fmt.Sprintf(``) # []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + snapshot1 := `2007-03-01T13:00:00Z` // string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) + snapshot2 := `2008-03-01T13:00:00Z` // string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) + accessItemTypes := fmt.Sprintf(``) // []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -151,23 +155,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - accessType := role # string | The specific type which needs to be compared # string | The specific type which needs to be compared - accessAssociated := 2007-03-01T13:00:00Z # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) - snapshot1 := 2008-03-01T13:00:00Z # string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) - snapshot2 := 2009-03-01T13:00:00Z # string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + accessType := `role` // string | The specific type which needs to be compared # string | The specific type which needs to be compared + accessAssociated := 2007-03-01T13:00:00Z // bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) + snapshot1 := `2008-03-01T13:00:00Z` // string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) + snapshot2 := `2009-03-01T13:00:00Z` // string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -220,16 +228,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() + + + 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) @@ -288,22 +300,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - from := 2024-03-01T13:00:00Z # string | The optional instant until which access events are returned (optional) # string | The optional instant until which access events are returned (optional) - eventTypes := fmt.Sprintf(`[AccessAddedEvent, AccessRemovedEvent]`) # []string | An optional list of event types to return. If null or empty, all events are returned (optional) - accessItemTypes := fmt.Sprintf(`[entitlement, account]`) # []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + from := `2024-03-01T13:00:00Z` // string | The optional instant until which access events are returned (optional) # string | The optional instant until which access events are returned (optional) + eventTypes := fmt.Sprintf(`[AccessAddedEvent, AccessRemovedEvent]`) // []string | An optional list of event types to return. If null or empty, all events are returned (optional) + accessItemTypes := fmt.Sprintf(`[entitlement, account]`) // []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -358,17 +374,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() + + + 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) @@ -427,22 +447,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - before := 2007-03-01T13:00:00Z # string | The date before which snapshot summary is required (optional) # string | The date before which snapshot summary is required (optional) - interval := interval_example # string | The interval indicating day or month. Defaults to month if not specified (optional) # string | The interval indicating day or month. Defaults to month if not specified (optional) - timeZone := UTC # string | The time zone. Defaults to UTC if not provided (optional) # string | The time zone. Defaults to UTC if not provided (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + before := `2007-03-01T13:00:00Z` // string | The date before which snapshot summary is required (optional) # string | The date before which snapshot summary is required (optional) + interval := `interval_example` // string | The interval indicating day or month. Defaults to month if not specified (optional) # string | The interval indicating day or month. Defaults to month if not specified (optional) + timeZone := `UTC` // string | The time zone. Defaults to UTC if not provided (optional) # string | The time zone. Defaults to UTC if not provided (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -495,16 +519,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() + + + 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) @@ -557,20 +585,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - startsWithQuery := Ada # string | This param is used for starts-with search for first, last and display name of the identity (optional) # string | This param is used for starts-with search for first, last and display name of the identity (optional) - isDeleted := true # bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) - isActive := true # bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) - 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) + startsWithQuery := `Ada` // string | This param is used for starts-with search for first, last and display name of the identity (optional) # string | This param is used for starts-with search for first, last and display name of the identity (optional) + isDeleted := true // bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) + isActive := true // bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() + + + 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) @@ -630,23 +662,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - type_ := account # string | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) # string | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) - filters := source eq "DataScienceDataset" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *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: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *eq* (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, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (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, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (optional) - query := Dr. Arden # string | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) # string | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + type_ := `account` // string | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) # string | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) + filters := `source eq "DataScienceDataset"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *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: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *eq* (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, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (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, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (optional) + query := `Dr. Arden` // string | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) # string | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -702,18 +738,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | Identity ID. # string | Identity ID. - date := 2007-03-01T13:00:00Z # string | Specified date. # string | Specified date. - type_ := account # string | Access item type. (optional) # string | Access item type. (optional) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | Identity ID. # string | Identity ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Type_(type_).Execute() + + + 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) @@ -771,21 +811,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - start := 2007-03-01T13:00:00Z # string | The specified start date (optional) # string | The specified start date (optional) - interval := interval_example # string | The interval indicating the range in day or month for the specified interval-name (optional) # string | The interval indicating the range in day or month for the specified interval-name (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + start := `2007-03-01T13:00:00Z` // string | The specified start date (optional) # string | The specified start date (optional) + interval := `interval_example` // string | The interval indicating the range in day or month for the specified interval-name (optional) # string | The interval indicating the range in day or month for the specified interval-name (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md index 9eb36be31..714492422 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md @@ -77,12 +77,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -130,11 +131,20 @@ func main() { "name" : "aName", "modified" : "2023-01-03T21:16:22.432Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + + var identityProfile beta.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -189,16 +199,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -253,16 +267,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | Identity Profile bulk delete request body. + requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -315,20 +339,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -382,16 +410,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | The Identity Profile ID # string | The Identity Profile ID + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID # string | The Identity Profile ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + + + 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) @@ -445,16 +477,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -503,16 +539,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileExportedObject := fmt.Sprintf(``) # []IdentityProfileExportedObject | Previously exported Identity Profiles. + identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + + var identityProfileExportedObject beta.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -566,20 +612,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -630,12 +680,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -661,11 +712,20 @@ func main() { } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() + + var identityPreviewRequest beta.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -723,16 +783,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -794,17 +858,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. - jsonPatchOperation := fmt.Sprintf(`[{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. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md index e0f251d9a..7bcd322d5 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md @@ -63,12 +63,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - launcherRequest := fmt.Sprintf(`{ + data := []byte(`{ "reference" : { "id" : "2fd6ff94-2081-4d29-acbc-83a0a2f744a5", "type" : "WORKFLOW" @@ -78,11 +79,20 @@ func main() { "disabled" : false, "type" : "INTERACTIVE_PROCESS", "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" - }`) # LauncherRequest | Payload to create a Launcher + }`) // LauncherRequest | Payload to create a Launcher - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.LaunchersAPI.CreateLauncher(context.Background()).LauncherRequest(launcherRequest).Execute() + + var launcherRequest beta.LauncherRequest + if err := json.Unmarshal(data, &launcherRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -135,16 +145,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - launcherID := e3012408-8b61-4564-ad41-c5ec131c325b # string | ID of the Launcher to be deleted # string | ID of the Launcher to be deleted + launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be deleted # string | ID of the Launcher to be deleted - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.LaunchersAPI.DeleteLauncher(context.Background(), launcherID).Execute() + + + 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) @@ -195,16 +209,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - launcherID := e3012408-8b61-4564-ad41-c5ec131c325b # string | ID of the Launcher to be retrieved # string | ID of the Launcher to be retrieved + launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be retrieved # string | ID of the Launcher to be retrieved - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.LaunchersAPI.GetLauncher(context.Background(), launcherID).Execute() + + + 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) @@ -255,18 +273,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := disabled 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: **description**: *sw* **disabled**: *eq* **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: **description**: *sw* **disabled**: *eq* **name**: *sw* (optional) - 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) + filters := `disabled 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: **description**: *sw* **disabled**: *eq* **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: **description**: *sw* **disabled**: *eq* **name**: *sw* (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.LaunchersAPI.GetLaunchers(context.Background()).Filters(filters).Next(next).Limit(limit).Execute() + + + 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) @@ -320,13 +342,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - launcherID := e3012408-8b61-4564-ad41-c5ec131c325b # string | ID of the Launcher to be replaced # string | ID of the Launcher to be replaced - launcherRequest := fmt.Sprintf(`{ + launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be replaced # string | ID of the Launcher to be replaced + data := []byte(`{ "reference" : { "id" : "2fd6ff94-2081-4d29-acbc-83a0a2f744a5", "type" : "WORKFLOW" @@ -336,11 +359,20 @@ func main() { "disabled" : false, "type" : "INTERACTIVE_PROCESS", "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" - }`) # LauncherRequest | Payload to replace Launcher + }`) // LauncherRequest | Payload to replace Launcher - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.LaunchersAPI.PutLauncher(context.Background(), launcherID).LauncherRequest(launcherRequest).Execute() + + var launcherRequest beta.LauncherRequest + if err := json.Unmarshal(data, &launcherRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -393,16 +425,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - launcherID := e3012408-8b61-4564-ad41-c5ec131c325b # string | ID of the Launcher to be launched # string | ID of the Launcher to be launched + launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be launched # string | ID of the Launcher to be launched - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.LaunchersAPI.StartLauncher(context.Background(), launcherID).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md index 5b22786b4..d57fd562a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md @@ -101,17 +101,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() + + + 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) @@ -170,18 +174,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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 + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity Profile ID. # string | Identity Profile ID. + lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle State ID. # string | Lifecycle State ID. + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md index f2a396ed1..4f98d1a56 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md @@ -66,16 +66,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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'. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() + + + 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) @@ -120,15 +124,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + + + 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) @@ -177,16 +185,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + + + 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) @@ -231,15 +243,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + + + 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) @@ -288,12 +304,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -303,11 +320,20 @@ func main() { "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + + var mfaDuoConfig beta.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -356,16 +382,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) # []KbaAnswerRequestItem | + kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + + var kbaAnswerRequestItem beta.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -414,22 +450,32 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + + var mfaOktaConfig beta.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -482,16 +528,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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'. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md index 456fe9cc4..ba332fa86 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md @@ -60,19 +60,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sendTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK" - }`) # SendTokenRequest | + }`) // SendTokenRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() + + var sendTokenRequest beta.SendTokenRequest + if err := json.Unmarshal(data, &sendTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -126,19 +136,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - method := okta-verify # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' - verificationPollRequest := fmt.Sprintf(`{ + method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' + data := []byte(`{ "requestId" : "089899f13a8f4da7824996191587bab9" - }`) # VerificationPollRequest | + }`) // VerificationPollRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() + + var verificationPollRequest beta.VerificationPollRequest + if err := json.Unmarshal(data, &verificationPollRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -187,19 +207,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - duoVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "signedResponse" : "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2", "userId" : "2c9180947f0ef465017f215cbcfd004b" - }`) # DuoVerificationRequest | + }`) // DuoVerificationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() + + var duoVerificationRequest beta.DuoVerificationRequest + if err := json.Unmarshal(data, &duoVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -248,16 +278,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) # []KbaAnswerRequestItem | + kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + + var kbaAnswerRequestItem beta.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -306,18 +346,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - oktaVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "userId" : "example@mail.com" - }`) # OktaVerificationRequest | + }`) // OktaVerificationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() + + var oktaVerificationRequest beta.OktaVerificationRequest + if err := json.Unmarshal(data, &oktaVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -366,20 +416,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tokenAuthRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK", "token" : "12345" - }`) # TokenAuthRequest | + }`) // TokenAuthRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() + + var tokenAuthRequest beta.TokenAuthRequest + if err := json.Unmarshal(data, &tokenAuthRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md index 5af6409d5..2f8c6ba89 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md @@ -66,17 +66,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + + + 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) @@ -133,14 +137,15 @@ import ( "context" "fmt" "os" - "time" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClientId # string | ID of the Managed Client Status to update # string | ID of the Managed Client Status to update - managedClientStatus := fmt.Sprintf(`{ + id := `aClientId` // string | ID of the Managed Client Status to update # string | ID of the Managed Client Status to update + data := []byte(`{ "body" : { "alertKey" : "", "id" : "5678", @@ -165,11 +170,20 @@ func main() { "type" : "CCG", "status" : "NORMAL", "timestamp" : "2020-01-01T00:00:00Z" - }`) # ManagedClientStatus | + }`) // ManagedClientStatus | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).ManagedClientStatus(managedClientStatus).Execute() + + var managedClientStatus beta.ManagedClientStatus + if err := json.Unmarshal(data, &managedClientStatus); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md index d2b16286f..1f9f34ade 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md @@ -67,16 +67,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterId # string | ID of ManagedCluster to get log configuration for # string | ID of ManagedCluster to get log configuration for + id := `aClusterId` // string | ID of ManagedCluster to get log configuration for # string | ID of ManagedCluster to get log configuration for - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + + + 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) @@ -132,16 +136,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterId # string | ID of the ManagedCluster to get # string | ID of the ManagedCluster to get + id := `aClusterId` // string | ID of the ManagedCluster to get # string | ID of the ManagedCluster to get - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + + + 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) @@ -196,19 +204,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -265,23 +277,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterId # string | ID of ManagedCluster to update log configuration for # string | ID of ManagedCluster to update log configuration for - clientLogConfiguration := fmt.Sprintf(`{ + id := `aClusterId` // string | ID of ManagedCluster to update log configuration for # string | ID of ManagedCluster to update log configuration for + data := []byte(`{ "durationMinutes" : 120, "rootLevel" : "INFO", "clientId" : "aClientId", "expiration" : "2020-12-15T19:13:36.079Z", "logLevels" : "INFO" - }`) # ClientLogConfiguration | ClientLogConfiguration for given ManagedCluster + }`) // ClientLogConfiguration | ClientLogConfiguration for given ManagedCluster - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).ClientLogConfiguration(clientLogConfiguration).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md index 7f79de8e5..bd38b3c26 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md @@ -72,12 +72,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostIntegrationsCreate := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "MyName", "id" : "2c91808568c529c60168cca6f90c1313", @@ -102,11 +103,20 @@ func main() { "name" : "My Multi-Host Integration", "description" : "This is the Multi-Host Integration.", "modified" : "2024-01-23T18:08:50.897Z" - }`) # MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() + + var multiHostIntegrationsCreate beta.MultiHostIntegrationsCreate + if err := json.Unmarshal(data, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -162,17 +172,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - multiHostIntegrationsCreateSources := fmt.Sprintf(``) # []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. + multiHostIntegrationsCreateSources := fmt.Sprintf(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() + + var multiHostIntegrationsCreateSources beta.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(data, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -225,16 +245,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() + + + 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) @@ -287,16 +311,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + multihostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() + + + 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) @@ -351,16 +379,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + multiHostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() + + + 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) @@ -415,16 +447,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() + + + 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) @@ -480,21 +516,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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: **type**: *in* **forSubAdminId**: *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: **type**: *in* **forSubAdminId**: *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) - 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) + 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) + 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 := `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: **type**: *in* **forSubAdminId**: *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: **type**: *in* **forSubAdminId**: *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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() + + + 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) @@ -549,16 +589,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostId := 004091cb79b04636b88662afa50a4440 # string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration + multiHostId := `004091cb79b04636b88662afa50a4440` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() + + + 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) @@ -605,15 +649,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() + + + 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) @@ -673,21 +721,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - 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) - 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 := 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) + multihostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + + + 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) @@ -742,16 +794,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1324 # string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration + multihostId := `2c91808568c529c60168cca6f90c1324` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() + + + 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) @@ -806,17 +862,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() + + + 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) @@ -872,17 +932,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := anId # string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. - updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) # []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. + multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. + updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() + + var updateMultiHostSourcesRequestInner beta.UpdateMultiHostSourcesRequestInner + if err := json.Unmarshal(data, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md index 8ce72e2aa..31e9b60ac 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,19 +122,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := id_example # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + id := `id_example` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "comment" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + + var nonEmployeeApprovalDecision beta.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -185,13 +195,14 @@ import ( "context" "fmt" "os" - "time" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -204,11 +215,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -257,13 +277,14 @@ import ( "context" "fmt" "os" - "time" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -276,11 +297,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -329,12 +359,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -359,11 +390,20 @@ func main() { }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + + var nonEmployeeSourceRequestBody beta.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -417,24 +457,34 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b6ef1d43e016efba0ce470904 # string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + + var nonEmployeeSchemaAttributeBody beta.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -487,16 +537,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808b6ef1d43e016efba0ce470904 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -545,16 +599,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordInBulkRequest | Non-Employee bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).DeleteNonEmployeeRecordInBulkRequest(deleteNonEmployeeRecordInBulkRequest).Execute() + + var deleteNonEmployeeRecordInBulkRequest beta.DeleteNonEmployeeRecordInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -605,16 +669,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808b6ef1d43e016efba0ce470904 # string | Non-Employee request id in the UUID format # string | Non-Employee request id in the UUID format + id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee request id in the UUID format # string | Non-Employee request id in the UUID format - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -668,17 +736,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -729,16 +801,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b6ef1d43e016efba0ce470904 # string | Source Id # string | Source Id + sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -789,16 +865,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b6ef1d43e016efba0ce470904 # string | The Source id # string | The Source id + sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -849,16 +929,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c918085842e69ae018432d22ccb212f # string | Source Id (UUID) # string | Source Id (UUID) + id := `2c918085842e69ae018432d22ccb212f` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + + + 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) @@ -911,16 +995,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c918085842e69ae018432d22ccb212f # string | Source Id (UUID) # string | Source Id (UUID) + id := `2c918085842e69ae018432d22ccb212f` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + + + 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) @@ -972,17 +1060,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + + + 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) @@ -1035,16 +1127,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1098,16 +1194,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c918085842e69ae018432d22ccb212f # string | Source ID (UUID) # string | Source ID (UUID) + id := `2c918085842e69ae018432d22ccb212f` // string | Source ID (UUID) # string | Source ID (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + + + 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) @@ -1160,16 +1260,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808b6ef1d43e016efba0ce470904 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -1222,16 +1326,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808b6ef1d43e016efba0ce470904 # string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) + id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -1284,16 +1392,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1348,17 +1460,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -1411,16 +1527,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b7c28b350017c2a2ec5790aa1 # string | Source Id # string | Source Id + sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -1473,16 +1593,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c918085842e69ae018432d22ccb212f # string | The Source id # string | The Source id + sourceId := `2c918085842e69ae018432d22ccb212f` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -1538,17 +1662,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source Id (UUID) # string | Source Id (UUID) - data := BINARY_DATA_HERE # *os.File | # *os.File | + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) + data := BINARY_DATA_HERE // *os.File | # *os.File | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + + + 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) @@ -1602,21 +1730,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := ac10d20a-841e-1e7d-8184-32d2e22c0179 # string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) - 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) - 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 := 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) + requestedFor := `ac10d20a-841e-1e7d-8184-32d2e22c0179` // string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -1669,20 +1801,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1736,21 +1872,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := me # string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. - 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) - 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 := 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) + requestedFor := `me` // string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1806,21 +1946,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - requestedFor := me # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) - 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) + 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) + 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) + requestedFor := `me` // string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + + + 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) @@ -1874,17 +2018,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808b6ef1d43e016efba0ce470904 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - jsonPatchOperation := fmt.Sprintf(`[{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. + id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1941,18 +2095,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - jsonPatchOperation := fmt.Sprintf(`[{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'. + attributeId := `2c91808b6ef1d43e016efba0ce470904` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) + sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id + jsonPatchOperation := fmt.Sprintf(`[{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'. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2006,17 +2170,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b6ef1d43e016efba0ce470904 # string | Source Id # string | Source Id - jsonPatchOperation := fmt.Sprintf(`[{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. + sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | Source Id # string | Source Id + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2070,19 +2244,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := id_example # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + id := `id_example` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "comment" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + + var nonEmployeeRejectApprovalDecision beta.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2136,14 +2320,15 @@ import ( "context" "fmt" "os" - "time" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808b6ef1d43e016efba0ce470904 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -2156,11 +2341,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md index 833cfee0b..5f0e30bdc 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md @@ -69,18 +69,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - domainAddress := fmt.Sprintf(`{ + data := []byte(`{ "domain" : "sailpoint.com" - }`) # DomainAddress | + }`) // DomainAddress | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.CreateDomainDkim(context.Background()).DomainAddress(domainAddress).Execute() + + var domainAddress beta.DomainAddress + if err := json.Unmarshal(data, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -131,12 +141,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - templateDto := fmt.Sprintf(`{ + data := []byte(`{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -153,11 +164,20 @@ func main() { "from" : "$__global.emailFromAddress", "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" - }`) # TemplateDto | + }`) // TemplateDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.CreateNotificationTemplate(context.Background()).TemplateDto(templateDto).Execute() + + var templateDto beta.TemplateDto + if err := json.Unmarshal(data, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -206,21 +226,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - emailStatusDto := fmt.Sprintf(`{ + data := []byte(`{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" - }`) # EmailStatusDto | + }`) // EmailStatusDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).EmailStatusDto(emailStatusDto).Execute() + + var emailStatusDto beta.EmailStatusDto + if err := json.Unmarshal(data, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -269,16 +299,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - templateBulkDeleteDto := fmt.Sprintf(``) # []TemplateBulkDeleteDto | + templateBulkDeleteDto := fmt.Sprintf(``) // []TemplateBulkDeleteDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() + + var templateBulkDeleteDto beta.TemplateBulkDeleteDto + if err := json.Unmarshal(data, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -329,16 +369,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := id_example # string | # string | + id := `id_example` // string | # string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() + + + 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) @@ -381,15 +425,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() + + + 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) @@ -442,16 +490,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.GetMailFromAttributes(context.Background(), identityId).Execute() + + + 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) @@ -504,16 +556,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Notification Template # string | Id of the Notification Template + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Notification Template # string | Id of the Notification Template - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() + + + 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) @@ -559,15 +615,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() + + + 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) @@ -620,20 +680,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.ListFromAddresses(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -686,16 +750,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - key := cloud_manual_work_item_summary # string | The notification key. # string | The notification key. + key := `cloud_manual_work_item_summary` // string | The notification key. # string | The notification key. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationPreferences(context.Background(), key).Execute() + + + 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) @@ -746,18 +814,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -808,18 +880,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplates(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -868,19 +944,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mailFromAttributesDto := fmt.Sprintf(`{ + data := []byte(`{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" - }`) # MailFromAttributesDto | + }`) // MailFromAttributesDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.NotificationsAPI.PutMailFromAttributes(context.Background()).MailFromAttributesDto(mailFromAttributesDto).Execute() + + var mailFromAttributesDto beta.MailFromAttributesDto + if err := json.Unmarshal(data, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -929,20 +1015,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sendTestNotificationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" - }`) # SendTestNotificationRequestDto | + }`) // SendTestNotificationRequestDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.NotificationsAPI.SendTestNotification(context.Background()).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() + + var sendTestNotificationRequestDto beta.SendTestNotificationRequestDto + if err := json.Unmarshal(data, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md index 97d183e85..56b783ee9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md @@ -62,12 +62,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -83,11 +84,20 @@ func main() { "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + + var createOAuthClientRequest beta.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,16 +150,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + + + 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) @@ -200,16 +214,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + + + 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) @@ -258,16 +276,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + + + 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) @@ -323,17 +345,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md index 04bf0c27f..b0c8d7f3f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md @@ -55,15 +55,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() + + + 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) @@ -108,15 +112,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() + + + 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) @@ -165,16 +173,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := fmt.Sprintf(`[{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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.OrgConfigAPI.PatchOrgConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md index 8de455e6d..cce2f6be2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md @@ -65,21 +65,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig beta.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -124,15 +134,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + + + 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) @@ -183,21 +197,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig beta.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md index cc2fe2f3d..1fcba3450 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md @@ -127,15 +127,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + + + 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) @@ -212,16 +216,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md index beada70fb..1bb4b41c4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md @@ -82,20 +82,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordDigitTokenReset := fmt.Sprintf(`{ + data := []byte(`{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" - }`) # PasswordDigitTokenReset | + }`) // PasswordDigitTokenReset | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordManagementAPI.CreateDigitToken(context.Background()).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() + + var passwordDigitTokenReset beta.PasswordDigitTokenReset + if err := json.Unmarshal(data, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -148,16 +158,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := id_example # string | # string | + id := `id_example` // string | # string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() + + + 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) @@ -214,19 +228,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + + var passwordInfoQueryDTO beta.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -318,22 +342,32 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordManagementAPI.SetIdentityPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + + var passwordChangeRequest beta.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md index 62144f6d9..6c06e0ce6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md @@ -68,12 +68,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -105,11 +106,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto beta.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -162,16 +172,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0002 # string | The ID of password policy to delete. # string | The ID of password policy to delete. + id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + + + 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) @@ -222,16 +236,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0005 # string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. + id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + + + 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) @@ -283,18 +301,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -348,13 +370,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0007 # string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -386,11 +409,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto beta.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md index 829312878..72a1f1655 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md @@ -91,23 +91,33 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup beta.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -160,16 +170,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -220,16 +234,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -280,18 +298,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -345,24 +367,34 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 6881f631-3bd5-4213-9c75-8e05cc3e35dd # string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup beta.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md index 9730c3013..789c77fb5 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md @@ -69,20 +69,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + + var createPersonalAccessTokenRequest beta.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -135,16 +145,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The personal access token id # string | The personal access token id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + + + 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) @@ -192,17 +206,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + + + 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) @@ -256,17 +274,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The Personal Access Token id # string | The Personal Access Token id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md index 13d895031..56d0bc40c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md @@ -30,6 +30,9 @@ Method | HTTP request | Description ## get-public-identity-config +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Get Public Identity Config This gets details of public identity config. @@ -62,15 +65,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + + + 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) @@ -83,6 +90,9 @@ func main() { [[Back to top]](#) ## update-public-identity-config +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Update Public Identity Config This updates the details of public identity config. @@ -119,12 +129,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -138,11 +149,20 @@ func main() { "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + + var publicIdentityConfig beta.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md index 87adddd03..1dcb26c7c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md @@ -67,24 +67,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := e7eab60924f64aa284175b9fa3309599 # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) # []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) - term := Finance Role # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) - statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) # []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) - 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) - 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 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) + identityId := `e7eab60924f64aa284175b9fa3309599` // string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) // []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) + term := `Finance Role` // string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) + statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) // []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md index 5170ebfa3..25d4ebfe0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md @@ -62,15 +62,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() + + + 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) @@ -125,18 +129,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - insightId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role insight id # string | The role insight id - 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) + insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -197,23 +205,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - insightId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role insight id # string | The role insight id - entitlementId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The entitlement id # string | The entitlement id - hasEntitlement := true # bool | Identity has this entitlement or not (optional) (default to false) # bool | Identity has this entitlement or not (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) - 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) - 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) + insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id + entitlementId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The entitlement id # string | The entitlement id + hasEntitlement := true // bool | Identity has this entitlement or not (optional) (default to false) # bool | Identity has this entitlement or not (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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -266,16 +278,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - insightId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role insight id # string | The role insight id + insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() + + + 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) @@ -328,20 +344,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsights(context.Background()).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -395,17 +415,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Filters(filters).Execute() + + + 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) @@ -460,18 +484,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - insightId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role insight id # string | The role insight id - 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) + insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -527,16 +555,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role insights request id # string | The role insights request id + id := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insights request id # string | The role insights request id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() + + + 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) @@ -581,15 +613,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md index a1043b0ec..e62473a38 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md @@ -105,12 +105,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -229,6 +230,7 @@ func main() { }, "accessRequestConfig" : { "commentsRequired" : true, + "reauthorizationRequired" : true, "approvalSchemes" : [ { "approverId" : "46c79819-a69f-49a2-becb-12c971ae66c6", "approverType" : "GOVERNANCE_GROUP" @@ -267,11 +269,20 @@ func main() { }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + + var role beta.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -323,18 +334,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + + var roleBulkDeleteRequest beta.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -389,16 +410,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.RolesAPI.DeleteRole(context.Background(), id).Execute() + + + 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) @@ -450,16 +475,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RolesAPI.GetRole(context.Background(), id).Execute() + + + 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) @@ -517,21 +546,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed - 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) - 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 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -589,21 +622,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | Containing role's ID. # string | Containing role's ID. - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - 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) + id := `2c91808a7813090a017814121919ecca` // string | Containing role's ID. # string | Containing role's ID. + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RolesAPI.GetRoleEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -638,7 +675,7 @@ Name | Type | Description | Notes **limit** | **int32** | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to 50] **offset** | **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. | [default to 0] **count** | **bool** | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to false] - **filters** | **string** | Filter results using the standard syntax described in [V3 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* **requestable**: *eq* | + **filters** | **string** | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* | **sorters** | **string** | Sort results using the standard syntax described 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** | **forSegmentIds** | **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. | **includeUnsegmented** | **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. | [default to true] @@ -661,23 +698,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - filters := requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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) - 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) + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + filters := `requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *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, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* (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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -751,17 +792,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role to patch # string | ID of the Role to patch - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md index 0f0cb9ccc..81037a8b9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md @@ -68,12 +68,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - simIntegrationDetails := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -90,11 +91,20 @@ func main() { "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | DTO containing the details of the SIM integration + }`) // SimIntegrationDetails | DTO containing the details of the SIM integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).SimIntegrationDetails(simIntegrationDetails).Execute() + + var simIntegrationDetails beta.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -147,16 +157,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | The id of the integration to delete. # string | The id of the integration to delete. + id := `12345` // string | The id of the integration to delete. # string | The id of the integration to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() + + + 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) @@ -207,16 +221,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | The id of the integration. # string | The id of the integration. + id := `12345` // string | The id of the integration. # string | The id of the integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() + + + 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) @@ -261,15 +279,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() + + + 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) @@ -323,17 +345,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | SIM integration id # string | SIM integration id - jsonPatch := fmt.Sprintf(`"[\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. + id := `12345` // string | SIM integration id # string | SIM integration id + data := []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).JsonPatch(jsonPatch).Execute() + + var jsonPatch beta.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -387,17 +419,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | SIM integration id # string | SIM integration id - jsonPatch := fmt.Sprintf(`"[\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 + id := `12345` // string | SIM integration id # string | SIM integration id + data := []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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).JsonPatch(jsonPatch).Execute() + + var jsonPatch beta.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -451,13 +493,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | The id of the integration. # string | The id of the integration. - simIntegrationDetails := fmt.Sprintf(`{ + id := `12345` // string | The id of the integration. # string | The id of the integration. + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -474,11 +517,20 @@ func main() { "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | The full DTO of the integration containing the updated model + }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).SimIntegrationDetails(simIntegrationDetails).Execute() + + var simIntegrationDetails beta.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md index acc48f27a..bb84e5ae1 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md @@ -100,12 +100,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -160,11 +161,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + + var sodPolicy beta.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -222,17 +232,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + + + 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) @@ -287,16 +301,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -353,17 +371,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + + + 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) @@ -420,16 +442,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportResultId := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the report reference to download. # string | The ID of the report reference to download. + reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + + + 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) @@ -478,15 +504,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + + + 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) @@ -543,16 +573,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + + + 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) @@ -609,16 +643,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -675,16 +713,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + + + 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) @@ -741,16 +783,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + + + 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) @@ -807,20 +853,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -879,17 +929,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | The ID of the SOD policy being modified. # string | The ID of the SOD policy being modified. - requestBody := fmt.Sprintf(`[{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 + id := `2c9180835d191a86015d28455b4a2329` // string | The ID of the SOD policy being modified. # string | The ID of the SOD policy being modified. + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -947,13 +1007,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. + data := []byte(`{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -1038,11 +1099,20 @@ func main() { "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + + var sodPolicySchedule beta.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1100,13 +1170,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -1161,11 +1232,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + + var sodPolicy beta.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1218,18 +1298,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "filteredPolicyList", "filteredPolicyList" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + + + 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) @@ -1286,16 +1370,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The SOD policy ID to run. # string | The SOD policy ID to run. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md index be87af1eb..0f4eb23d9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md @@ -78,12 +78,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -94,11 +95,20 @@ func main() { "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + + var identityWithNewAccess beta.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md index 7047a3ae0..0e1f4d98b 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md @@ -21,7 +21,7 @@ Method | HTTP request | Description [**get-sp-config-import**](#get-sp-config-import) | **Get** `/sp-config/import/{id}/download` | Download import job result [**get-sp-config-import-status**](#get-sp-config-import-status) | **Get** `/sp-config/import/{id}` | Get import job status [**import-sp-config**](#import-sp-config) | **Post** `/sp-config/import` | Initiates configuration objects import job -[**list-sp-config-objects**](#list-sp-config-objects) | **Get** `/sp-config/config-objects` | Get config object details +[**list-sp-config-objects**](#list-sp-config-objects) | **Get** `/sp-config/config-objects` | List Config Objects ## export-sp-config @@ -62,18 +62,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - exportPayload := fmt.Sprintf(`{ + data := []byte(`{ "description" : "Export Job 1 Test" - }`) # ExportPayload | Export options control what will be included in the export. + }`) // ExportPayload | Export options control what will be included in the export. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() + + var exportPayload beta.ExportPayload + if err := json.Unmarshal(data, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -128,16 +138,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + + + 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) @@ -192,16 +206,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + + + 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) @@ -256,16 +274,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + + + 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) @@ -319,16 +341,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + + + 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) @@ -389,18 +415,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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 := fmt.Sprintf(``) # ImportOptions | (optional) + data := BINARY_DATA_HERE // *os.File | JSON file containing the objects to be imported. # *os.File | JSON file containing the objects to be imported. + 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) + data := []byte(``) // ImportOptions | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() + + + 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) @@ -413,8 +443,8 @@ func main() { [[Back to top]](#) ## list-sp-config-objects -Get config object details -This gets the list of object configurations which are known to the tenant export/import service. Object configurations that contain "importUrl" and "exportUrl" are available for export/import. +List Config Objects +Get a list of object configurations that the tenant export/import service knows. [API Spec](https://developer.sailpoint.com/docs/api/beta/list-sp-config-objects) @@ -445,15 +475,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md index 53b0223e8..51b36b3e7 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md @@ -78,23 +78,33 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - searchAttributeConfig := fmt.Sprintf(`{ + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() + + var searchAttributeConfig beta.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -147,16 +157,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := newMailAttribute # string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. + name := `newMailAttribute` // string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + + + 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) @@ -205,17 +219,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() + + + 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) @@ -268,16 +286,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := newMailAttribute # string | Name of the extended search attribute configuration to get. # string | Name of the extended search attribute configuration to get. + name := `newMailAttribute` // string | Name of the extended search attribute configuration to get. # string | Name of the extended search attribute configuration to get. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + + + 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) @@ -333,17 +355,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) # []JsonPatchOperation | + name := `promotedMailAttribute` // string | Name of the extended search attribute configuration to patch. # string | Name of the extended search attribute configuration to patch. + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md index 4f3d5474b..6ceff6e97 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md @@ -78,12 +78,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -106,11 +107,20 @@ func main() { "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + + var segment beta.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -165,16 +175,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to delete. # string | The segment ID to delete. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + + + 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) @@ -226,16 +240,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to retrieve. # string | The segment ID to retrieve. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SegmentsAPI.GetSegment(context.Background(), id).Execute() + + + 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) @@ -287,18 +305,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -354,17 +376,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to modify. # string | The segment ID to modify. - requestBody := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md index 26e8b3769..40c0dcd08 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md @@ -88,12 +88,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "managedSources" : [ "2c9180835d191a86015d28455b4a2329", "2c5680835d191a85765d28455b4a9823" ], @@ -123,11 +124,20 @@ func main() { "clusterRef" : "", "type" : "ServiceNowSDIM", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -180,16 +190,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete + id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -240,16 +254,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get + id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -302,20 +320,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + + + 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) @@ -368,16 +390,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + + + 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) @@ -422,15 +448,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + + + 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) @@ -475,15 +505,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + + + 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) @@ -517,7 +551,7 @@ Other parameters are passed through a pointer to a apiPatchServiceDeskIntegratio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchServiceDeskIntegrationRequest** | [**PatchServiceDeskIntegrationRequest**](../models/patch-service-desk-integration-request) | 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. | + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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. | ### Return type @@ -537,17 +571,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - patchServiceDeskIntegrationRequest := fmt.Sprintf(``) # PatchServiceDeskIntegrationRequest | 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. + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + jsonPatchOperation := fmt.Sprintf(``) // []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).PatchServiceDeskIntegrationRequest(patchServiceDeskIntegrationRequest).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -601,13 +645,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "managedSources" : [ "2c9180835d191a86015d28455b4a2329", "2c5680835d191a85765d28455b4a9823" ], @@ -637,11 +682,20 @@ func main() { "clusterRef" : "", "type" : "ServiceNowSDIM", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -690,19 +744,29 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + + var queuedCheckConfigDetails beta.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md index d3be32473..6ccbe0a1a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md @@ -63,16 +63,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + + + 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) @@ -129,20 +133,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source - 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) - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md index 86d608dff..2b23af1ea 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md @@ -161,13 +161,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -206,11 +207,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -261,12 +271,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -348,12 +359,21 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # 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) + }`) // 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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + + var source beta.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -407,13 +427,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -446,11 +467,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + + var schema beta.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -505,16 +535,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.Delete(context.Background(), id).Execute() + + + 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) @@ -573,16 +607,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ebbf35756e1140699ce52b233121384a # string | The source id # string | The source id + sourceId := `ebbf35756e1140699ce52b233121384a` // string | The source id # string | The source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.DeleteAccountsAsync(context.Background(), sourceId).Execute() + + + 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) @@ -636,16 +674,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), sourceId).Execute() + + + 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) @@ -698,17 +740,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -761,17 +807,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source ID. # string | The Source ID. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema ID. # string | The Schema ID. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema ID. # string | The Schema ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -822,16 +872,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetCorrelationConfig(context.Background(), sourceId).Execute() + + + 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) @@ -885,16 +939,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), sourceId).Execute() + + + 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) @@ -949,17 +1007,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -1013,16 +1075,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetSource(context.Background(), id).Execute() + + + 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) @@ -1075,16 +1141,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id + sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SourcesAPI.GetSourceAccountsSchema(context.Background(), sourceId).Execute() + + + 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) @@ -1136,16 +1206,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id + id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() + + + 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) @@ -1200,17 +1274,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() + + + 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) @@ -1269,16 +1347,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id + sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background(), sourceId).Execute() + + + 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) @@ -1332,17 +1414,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).Execute() + + + 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) @@ -1396,17 +1482,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source ID. # string | The Source ID. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema ID. # string | The Schema ID. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema ID. # string | The Schema ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -1461,18 +1551,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + + + 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) @@ -1530,18 +1624,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | Source Id # string | Source Id - 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) + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id # string | Source Id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ImportAccounts(context.Background(), sourceId).File(file).DisableOptimization(disableOptimization).Execute() + + + 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) @@ -1598,17 +1696,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ImportEntitlements(context.Background(), sourceId).File(file).Execute() + + + 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) @@ -1662,17 +1764,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceAccountsSchema(context.Background(), sourceId).File(file).Execute() + + + 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) @@ -1727,17 +1833,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).File(file).Execute() + + + 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) @@ -1792,18 +1902,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + 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) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).File(file).Execute() + + + 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) @@ -1857,17 +1971,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 75dbec1ebe154d5785da27b95e1dd5d7 # string | Source Id # string | Source Id - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + sourceId := `75dbec1ebe154d5785da27b95e1dd5d7` // string | Source Id # string | Source Id + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), sourceId).File(file).Execute() + + + 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) @@ -1920,16 +2038,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + + + 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) @@ -1986,22 +2108,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 "Employees" # string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - 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) + 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) + 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 "Employees"` // string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + + + 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) @@ -2056,20 +2182,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source - resourceObjectsRequest := fmt.Sprintf(`{ + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + data := []byte(`{ "maxCount" : 100, "objectType" : "group" - }`) # ResourceObjectsRequest | + }`) // ResourceObjectsRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() + + var resourceObjectsRequest beta.ResourceObjectsRequest + if err := json.Unmarshal(data, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2123,16 +2259,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + + + 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) @@ -2186,13 +2326,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id - correlationConfig := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + data := []byte(`{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -2212,11 +2353,20 @@ func main() { } ], "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" - }`) # CorrelationConfig | + }`) // CorrelationConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PutCorrelationConfig(context.Background(), sourceId).CorrelationConfig(correlationConfig).Execute() + + var correlationConfig beta.CorrelationConfig + if err := json.Unmarshal(data, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2272,24 +2422,34 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id - nativeChangeDetectionConfig := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + data := []byte(`{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], "allNonEntitlementAttributes" : false, "allEntitlements" : false, "enabled" : true - }`) # NativeChangeDetectionConfig | + }`) // NativeChangeDetectionConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), sourceId).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() + + var nativeChangeDetectionConfig beta.NativeChangeDetectionConfig + if err := json.Unmarshal(data, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2347,14 +2507,15 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - provisioningPolicyDto := fmt.Sprintf(`{ + 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. + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -2393,11 +2554,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2465,13 +2635,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -2553,11 +2724,20 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + + var source beta.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2613,13 +2793,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id - attrSyncSourceConfig := fmt.Sprintf(`{ + id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + data := []byte(`{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -2636,11 +2817,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4b232a", "type" : "SOURCE" } - }`) # AttrSyncSourceConfig | + }`) // AttrSyncSourceConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() + + var attrSyncSourceConfig beta.AttrSyncSourceConfig + if err := json.Unmarshal(data, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2701,14 +2891,15 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source ID. # string | The Source ID. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema ID. # string | The Schema ID. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema ID. # string | The Schema ID. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -2741,11 +2932,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + + var schema beta.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2799,16 +2999,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := sourceId_example # string | The Source id # string | The Source id + sourceId := `sourceId_example` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.SyncAttributesForSource(context.Background(), sourceId).Execute() + + + 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) @@ -2862,16 +3066,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + + + 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) @@ -2925,16 +3133,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source. # string | The ID of the Source. + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + + + 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) @@ -2988,17 +3200,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - provisioningPolicyDto := fmt.Sprintf(``) # []ProvisioningPolicyDto | + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3056,18 +3278,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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. + 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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3137,17 +3369,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - jsonPatchOperation := fmt.Sprintf(`[{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). + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + jsonPatchOperation := fmt.Sprintf(`[{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). - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3207,13 +3449,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - sourceEntitlementRequestConfig := fmt.Sprintf(`{ + sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -3225,11 +3468,20 @@ func main() { } ], "requestCommentRequired" : true } - }`) # SourceEntitlementRequestConfig | + }`) // SourceEntitlementRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background(), sourceId).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() + + var sourceEntitlementRequestConfig beta.SourceEntitlementRequestConfig + if err := json.Unmarshal(data, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3314,18 +3566,28 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]`) # []JsonPatchOperation | The JSONPatch payload used to update the schema. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md index 50fad26ba..53f46b7dd 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md @@ -72,16 +72,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - batchId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | Batch Id # string | Batch Id + batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + + + 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) @@ -127,15 +131,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + + + 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) @@ -204,22 +212,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := limit=25 # int64 | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) # int64 | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) - filters := displayName co "Read and Write" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) - sorters := 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, sourceName, status** (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, sourceName, status** (optional) - count := 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. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). Since requesting a total count can have a performance impact, it is recommended not to send `count=true` if that value will not be used. (optional) # bool | If `true` it will populate the `X-Total-Count` response header with the number of results that would be returned if `limit` and `offset` were ignored. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). Since requesting a total count can have a performance impact, it is recommended not to send `count=true` if that value will not be used. (optional) - countOnly := count-only=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. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) # bool | If `true` it will populate the `X-Total-Count` response header with the number of results that would be returned if `limit` and `offset` were ignored. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) - 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) + limit := limit=25 // int64 | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) # int64 | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) + filters := `displayName co "Read and Write"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) + sorters := `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, sourceName, status** (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, sourceName, status** (optional) + count := 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. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). Since requesting a total count can have a performance impact, it is recommended not to send `count=true` if that value will not be used. (optional) # bool | If `true` it will populate the `X-Total-Count` response header with the number of results that would be returned if `limit` and `offset` were ignored. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). Since requesting a total count can have a performance impact, it is recommended not to send `count=true` if that value will not be used. (optional) + countOnly := count-only=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. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) # bool | If `true` it will populate the `X-Total-Count` response header with the number of results that would be returned if `limit` and `offset` were ignored. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Filters(filters).Sorters(sorters).Count(count).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() + + + 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) @@ -273,17 +285,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ebab396f-0af1-4050-89b7-dafc63ec70e7 # string | id is sed id # string | id is sed id - sedPatch := fmt.Sprintf(``) # []SedPatch | Sed Patch Request + id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id + sedPatch := fmt.Sprintf(``) // []SedPatch | Sed Patch Request - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() + + var sedPatch beta.SedPatch + if err := json.Unmarshal(data, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -333,16 +355,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedApproval := fmt.Sprintf(``) # []SedApproval | Sed Approval + sedApproval := fmt.Sprintf(``) // []SedApproval | Sed Approval - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() + + var sedApproval beta.SedApproval + if err := json.Unmarshal(data, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -392,22 +424,32 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedAssignment := fmt.Sprintf(`{ + data := []byte(`{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] - }`) # SedAssignment | Sed Assignment Request + }`) // SedAssignment | Sed Assignment Request - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() + + var sedAssignment beta.SedAssignment + if err := json.Unmarshal(data, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -460,19 +502,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedBatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] - }`) # SedBatchRequest | Sed Batch Request (optional) + }`) // SedBatchRequest | Sed Batch Request (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md index 15e017b89..5cb1466ce 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md @@ -121,17 +121,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -180,12 +184,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -197,11 +202,20 @@ func main() { } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() + + var bulkTaggedObject beta.BulkTaggedObject + if err := json.Unmarshal(data, &bulkTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -254,17 +268,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -318,19 +336,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -389,20 +411,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. - 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) - 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) + type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -458,25 +484,35 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to update. # string | The type of tagged object to update. - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + + var taggedObject beta.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -527,23 +563,33 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + + var taggedObject beta.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -592,12 +638,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -609,11 +656,20 @@ func main() { } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() + + var bulkTaggedObject beta.BulkTaggedObject + if err := json.Unmarshal(data, &bulkTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md index 6f362d818..d785fcec9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md @@ -60,13 +60,14 @@ import ( "context" "fmt" "os" - "time" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tag := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2022-05-04T14:48:49Z", "tagCategoryRefs" : [ { "name" : "CN=entitlement.490efde5,OU=OrgCo,OU=ServiceDept,DC=HQAD,DC=local", @@ -80,11 +81,20 @@ func main() { "name" : "PCI", "modified" : "2022-07-14T16:31:11Z", "id" : "449ecdc0-d4ff-4341-acf6-92f6f7ce604f" - }`) # Tag | + }`) // Tag | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TagsAPI.CreateTag(context.Background()).Tag(tag).Execute() + + var tag beta.Tag + if err := json.Unmarshal(data, &tag); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -139,16 +149,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TagsAPI.DeleteTagById(context.Background(), id).Execute() + + + 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) @@ -201,16 +215,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TagsAPI.GetTagById(context.Background(), id).Execute() + + + 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) @@ -265,20 +283,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TagsAPI.ListTags(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md index bebb8fd6b..7e785a4ba 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md @@ -61,18 +61,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -121,18 +125,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaskManagementAPI.GetPendingTasks(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -185,16 +193,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 00eebcf881994e419d72e757fd30dc0e # string | Task ID. # string | Task ID. + id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() + + + 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) @@ -248,20 +260,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatusList(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -315,17 +331,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 00eebcf881994e419d72e757fd30dc0e # string | Task ID. # string | Task ID. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | The JSONPatch payload used to update the object. + id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md index 6daf90de3..707a20daa 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md @@ -51,15 +51,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md index abb527b87..111fca5d4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md @@ -64,20 +64,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + + var transform beta.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -131,16 +141,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to delete # string | ID of the transform to delete + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + + + 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) @@ -192,16 +206,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to retrieve # string | ID of the transform to retrieve + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TransformsAPI.GetTransform(context.Background(), id).Execute() + + + 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) @@ -255,20 +273,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + + + 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) @@ -323,21 +345,25 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md index 246c979bb..2fcda87a4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md @@ -110,23 +110,33 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | The ID of the invocation to complete. # string | The ID of the invocation to complete. - completeInvocation := fmt.Sprintf(`{ + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the invocation to complete. # string | The ID of the invocation to complete. + data := []byte(`{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." - }`) # CompleteInvocation | + }`) // CompleteInvocation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).CompleteInvocation(completeInvocation).Execute() + + var completeInvocation beta.CompleteInvocation + if err := json.Unmarshal(data, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -175,12 +185,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - subscriptionPostRequest := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -204,11 +215,20 @@ func main() { "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPostRequest | + }`) // SubscriptionPostRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.CreateSubscription(context.Background()).SubscriptionPostRequest(subscriptionPostRequest).Execute() + + var subscriptionPostRequest beta.SubscriptionPostRequest + if err := json.Unmarshal(data, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -261,16 +281,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | Subscription ID # string | Subscription ID + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | Subscription ID # string | Subscription ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() + + + 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) @@ -321,20 +345,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.ListSubscriptions(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -389,20 +417,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -455,20 +487,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.ListTriggers(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -524,17 +560,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | ID of the Subscription to patch # string | ID of the Subscription to patch - subscriptionPatchRequestInner := fmt.Sprintf(``) # []SubscriptionPatchRequestInner | + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | ID of the Subscription to patch # string | ID of the Subscription to patch + subscriptionPatchRequestInner := fmt.Sprintf(``) // []SubscriptionPatchRequestInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.PatchSubscription(context.Background(), id).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() + + var subscriptionPatchRequestInner beta.SubscriptionPatchRequestInner + if err := json.Unmarshal(data, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -583,12 +629,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - testInvocation := fmt.Sprintf(`{ + data := []byte(`{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -597,11 +644,20 @@ func main() { "contentJson" : { "workflowId" : 1234 } - }`) # TestInvocation | + }`) // TestInvocation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.StartTestTriggerInvocation(context.Background()).TestInvocation(testInvocation).Execute() + + var testInvocation beta.TestInvocation + if err := json.Unmarshal(data, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -651,21 +707,31 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - validateFilterInputDto := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } - }`) # ValidateFilterInputDto | + }`) // ValidateFilterInputDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.TestSubscriptionFilter(context.Background()).ValidateFilterInputDto(validateFilterInputDto).Execute() + + var validateFilterInputDto beta.ValidateFilterInputDto + if err := json.Unmarshal(data, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -728,13 +794,14 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | Subscription ID # string | Subscription ID - subscriptionPutRequest := fmt.Sprintf(`{ + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | Subscription ID # string | Subscription ID + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -757,11 +824,20 @@ func main() { "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPutRequest | + }`) // SubscriptionPutRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.TriggersAPI.UpdateSubscription(context.Background(), id).SubscriptionPutRequest(subscriptionPutRequest).Execute() + + var subscriptionPutRequest beta.SubscriptionPutRequest + if err := json.Unmarshal(data, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md index a00c61ec4..3b7a73fc9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md @@ -54,15 +54,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() + + + 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) @@ -112,20 +116,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tenantUiMetadataItemUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" - }`) # TenantUiMetadataItemUpdateRequest | + }`) // TenantUiMetadataItemUpdateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.UIMetadataAPI.SetTenantUiMetadata(context.Background()).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() + + var tenantUiMetadataItemUpdateRequest beta.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(data, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md index f1f794593..d670a6dbb 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md @@ -62,12 +62,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -89,11 +90,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping beta.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,12 +153,13 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -170,11 +181,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping beta.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -220,15 +240,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md index 2d07931d6..38d5f0ff4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md @@ -32,7 +32,6 @@ Method | HTTP request | Description [**approve-approval-item**](#approve-approval-item) | **Post** `/work-items/{id}/approve/{approvalItemId}` | Approve an Approval Item [**approve-approval-items-in-bulk**](#approve-approval-items-in-bulk) | **Post** `/work-items/bulk-approve/{id}` | Bulk approve Approval Items [**complete-work-item**](#complete-work-item) | **Post** `/work-items/{id}` | Complete a Work Item -[**forward-work-item**](#forward-work-item) | **Post** `/work-items/{id}/forward` | Forward a Work Item [**get-completed-work-items**](#get-completed-work-items) | **Get** `/work-items/completed` | Completed Work Items [**get-count-completed-work-items**](#get-count-completed-work-items) | **Get** `/work-items/completed/count` | Count Completed Work Items [**get-count-work-items**](#get-count-work-items) | **Get** `/work-items/count` | Count Work Items @@ -42,9 +41,13 @@ Method | HTTP request | Description [**reject-approval-item**](#reject-approval-item) | **Post** `/work-items/{id}/reject/{approvalItemId}` | Reject an Approval Item [**reject-approval-items-in-bulk**](#reject-approval-items-in-bulk) | **Post** `/work-items/bulk-reject/{id}` | Bulk reject Approval Items [**submit-account-selection**](#submit-account-selection) | **Post** `/work-items/{id}/submit-account-selection` | Submit Account Selections +[**submit-forward-work-item**](#submit-forward-work-item) | **Post** `/work-items/{id}/forward` | Forward a Work Item ## approve-approval-item +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Approve an Approval Item This API approves an Approval Item. Either an admin, or the owning/current user must make this request. @@ -87,17 +90,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -110,6 +117,9 @@ func main() { [[Back to top]](#) ## approve-approval-items-in-bulk +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Bulk approve Approval Items This API bulk approves Approval Items. Either an admin, or the owning/current user must make this request. @@ -150,16 +160,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -172,6 +186,9 @@ func main() { [[Back to top]](#) ## complete-work-item +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Complete a Work Item This API completes a work item. Either an admin, or the owning/current user must make this request. @@ -213,17 +230,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + + + 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) @@ -235,73 +256,10 @@ func main() { [[Back to top]](#) -## forward-work-item -Forward a Work Item -This API forwards a work item to a new owner. Either an admin, or the owning/current user must make this request. - -[API Spec](https://developer.sailpoint.com/docs/api/beta/forward-work-item) - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of the work item | - -### Other Parameters - -Other parameters are passed through a pointer to a apiForwardWorkItemRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **workItemForward** | [**WorkItemForward**](../models/work-item-forward) | | - -### Return type - - (empty response body) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" -) - -func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item - workItemForward := fmt.Sprintf(`{ - "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", - "comment" : "I'm going on vacation.", - "sendNotifications" : true - }`) # WorkItemForward | - - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.WorkItemsAPI.ForwardWorkItem(context.Background(), id).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) - } -} -``` - -[[Back to top]](#) - ## get-completed-work-items +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Completed Work Items This gets a collection of completed work items belonging to either the specified user(admin required), or the current user. @@ -341,19 +299,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ownerId_example # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - 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) - 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 := `2c91808571bcfcf80171c23e4b4221fc` // string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -366,6 +328,9 @@ func main() { [[Back to top]](#) ## get-count-completed-work-items +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Count Completed Work Items This gets a count of completed work items belonging to either the specified user(admin required), or the current user. @@ -383,6 +348,8 @@ Other parameters are passed through a pointer to a apiGetCountCompletedWorkItems Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ownerId** | **string** | ID of the work item owner. | + **limit** | **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. | [default to 250] + **offset** | **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. | [default to 0] ### Return type @@ -402,16 +369,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ownerId_example # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -424,6 +397,9 @@ func main() { [[Back to top]](#) ## get-count-work-items +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Count Work Items This gets a count of work items belonging to either the specified user(admin required), or the current user. @@ -460,16 +436,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ownerId_example # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -482,6 +462,9 @@ func main() { [[Back to top]](#) ## get-work-item +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Get a Work Item This gets the details of a Work Item belonging to either the specified user(admin required), or the current user. @@ -523,17 +506,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItem(context.Background(), id).OwnerId(ownerId).Execute() + + + 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) @@ -546,6 +533,9 @@ func main() { [[Back to top]](#) ## get-work-items-summary +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Work Items Summary This gets a summary of work items belonging to either the specified user(admin required), or the current user. @@ -582,16 +572,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ownerId_example # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -604,6 +598,9 @@ func main() { [[Back to top]](#) ## list-work-items +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: List Work Items This gets a collection of work items belonging to either the specified user(admin required), or the current user. @@ -643,19 +640,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := ownerId_example # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + + + 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) @@ -668,6 +669,9 @@ func main() { [[Back to top]](#) ## reject-approval-item +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Reject an Approval Item This API rejects an Approval Item. Either an admin, or the owning/current user must make this request. @@ -710,17 +714,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -733,6 +741,9 @@ func main() { [[Back to top]](#) ## reject-approval-items-in-bulk +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Bulk reject Approval Items This API bulk rejects Approval Items. Either an admin, or the owning/current user must make this request. @@ -773,16 +784,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -795,6 +810,9 @@ func main() { [[Back to top]](#) ## submit-account-selection +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: Submit Account Selections This API submits account selections. Either an admin, or the owning/current user must make this request. @@ -836,17 +854,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -858,3 +886,82 @@ func main() { [[Back to top]](#) +## submit-forward-work-item +:::caution deprecated +This endpoint has been deprecated and may be replaced or removed in future versions of the API. +::: +Forward a Work Item +This API forwards a work item to a new owner. Either an admin, or the owning/current user must make this request. + +[API Spec](https://developer.sailpoint.com/docs/api/beta/submit-forward-work-item) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of the work item | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSubmitForwardWorkItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **workItemForward** | [**WorkItemForward**](../models/work-item-forward) | | + +### Return type + + (empty response body) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item + data := []byte(`{ + "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", + "comment" : "I'm going on vacation.", + "sendNotifications" : true + }`) // WorkItemForward | + + + var workItemForward beta.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) + } +} +``` + +[[Back to top]](#) + diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md index d8c488794..7a09e9e27 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md @@ -73,22 +73,32 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configurationItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).ConfigurationItemRequest(configurationItemRequest).Execute() + + var configurationItemRequest beta.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,17 +153,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # string | unique identity id # string | unique identity id - configType := # ConfigTypeEnum | # ConfigTypeEnum | + identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id + configType := // ConfigTypeEnum | # ConfigTypeEnum | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() + + + 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) @@ -207,18 +221,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # string | unique identity id # string | unique identity id - configType := accessRequests # ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type - exclusionFilters := fmt.Sprintf(`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) + identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id + configType := accessRequests // ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type + exclusionFilters := fmt.Sprintf(`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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).ExclusionFilters(exclusionFilters).Execute() + + + 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) @@ -263,15 +281,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() + + + 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) @@ -324,16 +346,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504f # string | unique identity id # string | unique identity id + identityId := `2c91808781a71ddb0181b9090b5c504f` // string | unique identity id # string | unique identity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() + + + 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) @@ -378,15 +404,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() + + + 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) @@ -436,17 +466,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Limit(limit).Offset(offset).Execute() + + + 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) @@ -500,23 +534,33 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # string | unique identity id # string | unique identity id - configurationItemRequest := fmt.Sprintf(`{ + identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).ConfigurationItemRequest(configurationItemRequest).Execute() + + var configurationItemRequest beta.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -565,20 +609,30 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tenantConfigurationRequest := fmt.Sprintf(`{ + data := []byte(`{ "configDetails" : { "disabled" : true } - }`) # TenantConfigurationRequest | + }`) // TenantConfigurationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).TenantConfigurationRequest(tenantConfigurationRequest).Execute() + + var tenantConfigurationRequest beta.TenantConfigurationRequest + if err := json.Unmarshal(data, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md index d2b7e3a79..570f3588e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md @@ -31,9 +31,9 @@ Method | HTTP request | Description [**patch-workflow**](#patch-workflow) | **Patch** `/workflows/{id}` | Patch Workflow [**post-external-execute-workflow**](#post-external-execute-workflow) | **Post** `/workflows/execute/external/{id}` | Execute Workflow via External Trigger [**post-workflow-external-trigger**](#post-workflow-external-trigger) | **Post** `/workflows/{id}/external/oauth-clients` | Generate External Trigger OAuth Client +[**put-workflow**](#put-workflow) | **Put** `/workflows/{id}` | Update Workflow [**test-external-execute-workflow**](#test-external-execute-workflow) | **Post** `/workflows/execute/external/{id}/test` | Test Workflow via External Trigger [**test-workflow**](#test-workflow) | **Post** `/workflows/{id}/test` | Test Workflow By Id -[**update-workflow**](#update-workflow) | **Put** `/workflows/{id}` | Update Workflow ## cancel-workflow-execution @@ -77,16 +77,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | The workflow execution ID # string | The workflow execution ID + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -133,16 +137,26 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + + var createWorkflowRequest beta.CreateWorkflowRequest + if err := json.Unmarshal(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -195,16 +209,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.Beta.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + + + 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) @@ -236,6 +254,7 @@ Other parameters are passed through a pointer to a apiGetWorkflowRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **workflowMetrics** | **bool** | disable workflow metrics | [default to true] ### Return type @@ -255,16 +274,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + + + 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) @@ -278,7 +302,7 @@ func main() { ## get-workflow-execution Get Workflow Execution -Use this API to get a single workflow execution. Workflow executions are available for up to 90 days before being archived. If you attempt to access a workflow execution that has been archived, you will receive a "404 Not Found" response. +Get a single workflow execution. Workflow executions are available for up to 90 days before being archived. If you attempt to access a workflow execution that has been archived, you will receive a "404 Not Found" response. [API Spec](https://developer.sailpoint.com/docs/api/beta/get-workflow-execution) @@ -317,16 +341,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow execution ID. # string | Workflow execution ID. + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -379,16 +407,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow execution # string | Id of the workflow execution + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + + + 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) @@ -455,20 +487,24 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow ID. # string | Workflow ID. - 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) - 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) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow ID. # string | Workflow ID. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -518,17 +554,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + + + 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) @@ -579,18 +619,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -635,15 +679,19 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + + + 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) @@ -694,18 +742,22 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -725,13 +777,20 @@ List all workflows in the tenant. ### Path Parameters -This endpoint does not need any parameter. + ### Other Parameters Other parameters are passed through a pointer to a apiListWorkflowsRequest struct via the builder pattern +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **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. | [default to 250] + **offset** | **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. | [default to 0] + **triggerId** | **string** | Trigger ID | + **connectorInstanceId** | **string** | Connector Instance ID | + ### Return type [**[]Workflow**](../models/workflow) @@ -750,15 +809,23 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + + + 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) @@ -812,17 +879,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - jsonPatchOperation := fmt.Sprintf(`[{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + jsonPatchOperation := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -876,17 +953,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - postExternalExecuteWorkflowRequest := fmt.Sprintf(``) # PostExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // PostExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).PostExternalExecuteWorkflowRequest(postExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -939,16 +1020,20 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() + + + 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) @@ -960,6 +1045,113 @@ func main() { [[Back to top]](#) +## put-workflow +Update Workflow +Perform a full update of a workflow. The updated workflow object is returned in the response. + +[API Spec](https://developer.sailpoint.com/docs/api/beta/put-workflow) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Id of the Workflow | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPutWorkflowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **workflowBody** | [**WorkflowBody**](../models/workflow-body) | | + +### Return type + +[**Workflow**](../models/workflow) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + data := []byte(`{ + "owner" : { + "name" : "William Wilson", + "id" : "2c91808568c529c60168cca6f90c1313", + "type" : "IDENTITY" + }, + "name" : "Send Email", + "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", + "type" : "ACTION" + }, + "success" : { + "type" : "success" + } + } + }, + "trigger" : { + "displayName" : "displayName", + "attributes" : "{}", + "type" : "EVENT" + }, + "enabled" : false + }`) // WorkflowBody | + + + var workflowBody beta.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + ## test-external-execute-workflow Test Workflow via External Trigger Validate a workflow with an "External Trigger" can receive input. The response includes the input that the workflow received, which can be used to validate that the input is intact when it reaches the workflow. @@ -1002,17 +1194,21 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -1068,17 +1264,27 @@ import ( "context" "fmt" "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + + var testWorkflowRequest beta.TestWorkflowRequest + if err := json.Unmarshal(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1090,106 +1296,3 @@ func main() { [[Back to top]](#) -## update-workflow -Update Workflow -Perform a full update of a workflow. The updated workflow object is returned in the response. - -[API Spec](https://developer.sailpoint.com/docs/api/beta/update-workflow) - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | Id of the Workflow | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateWorkflowRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **workflowBody** | [**WorkflowBody**](../models/workflow-body) | | - -### Return type - -[**Workflow**](../models/workflow) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" -) - -func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ - "owner" : { - "name" : "William Wilson", - "id" : "2c91808568c529c60168cca6f90c1313", - "type" : "IDENTITY" - }, - "name" : "Send Email", - "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", - "type" : "ACTION" - }, - "success" : { - "type" : "success" - } - } - }, - "trigger" : { - "displayName" : "displayName", - "attributes" : { - "description" : "Triggered when an identity's manager attribute changes", - "formDefinitionId" : "Admin_Access_Request_Form", - "attributeToFilter" : "LifecycleState", - "id" : "idn:identity-attributes-changed", - "filter.$" : "$.changes[?(@.attribute == 'manager')]" - }, - "type" : "EVENT" - }, - "enabled" : false - }`) # WorkflowBody | - - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.Beta.WorkflowsAPI.UpdateWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.UpdateWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.UpdateWorkflow`: %v\n", resp) -} -``` - -[[Back to top]](#) - diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfile.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfile.md index 3a66ced1d..a3b21b051 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfile.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfile.md @@ -15,19 +15,19 @@ tags: ['SDK', 'Software Development Kit', 'AccessProfile', 'BetaAccessProfile'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | The ID of the Access Profile | [optional] [readonly] -**Name** | **string** | Name of the Access Profile | -**Description** | Pointer to **NullableString** | Information about the Access Profile | [optional] -**Created** | Pointer to **time.Time** | Date the Access Profile was created | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Date the Access Profile was last modified. | [optional] [readonly] -**Enabled** | Pointer to **bool** | Whether the Access Profile is enabled. If the Access Profile is enabled then you must include at least one Entitlement. | [optional] [default to false] +**Id** | Pointer to **string** | Access profile ID. | [optional] [readonly] +**Name** | **string** | Access profile name. | +**Description** | Pointer to **NullableString** | Access profile description. | [optional] +**Created** | Pointer to **SailPointTime** | Date and time when the access profile was created. | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Date and time when the access profile was last modified. | [optional] [readonly] +**Enabled** | Pointer to **bool** | Indicates whether the access profile is enabled. If it's enabled, you must include at least one entitlement. | [optional] [default to false] **Owner** | [**OwnerReference**](owner-reference) | | **Source** | [**AccessProfileSourceRef**](access-profile-source-ref) | | -**Entitlements** | Pointer to [**[]EntitlementRef**](entitlement-ref) | A list of entitlements associated with the Access Profile. If enabled is false this is allowed to be empty otherwise it needs to contain at least one Entitlement. | [optional] -**Requestable** | Pointer to **bool** | Whether the Access Profile is requestable via access request. Currently, making an Access Profile non-requestable is only supported for customers enabled with the new Request Center. Otherwise, attempting to create an Access Profile with a value **false** in this field results in a 400 error. | [optional] [default to true] +**Entitlements** | Pointer to [**[]EntitlementRef**](entitlement-ref) | List of entitlements associated with the access profile. If `enabled` is false, this can be empty. Otherwise, it must contain at least one entitlement. | [optional] +**Requestable** | Pointer to **bool** | Indicates whether the access profile is requestable by access request. Currently, making an access profile non-requestable is only supported for customers enabled with the new Request Center. Otherwise, attempting to create an access profile with a value **false** in this field results in a 400 error. | [optional] [default to true] **AccessRequestConfig** | Pointer to [**NullableRequestability**](requestability) | | [optional] **RevocationRequestConfig** | Pointer to [**NullableRevocability**](revocability) | | [optional] -**Segments** | Pointer to **[]string** | List of IDs of segments, if any, to which this Access Profile is assigned. | [optional] +**Segments** | Pointer to **[]string** | List of segment IDs, if any, that the access profile is assigned to. | [optional] **ProvisioningCriteria** | Pointer to [**NullableProvisioningCriteriaLevel1**](provisioning-criteria-level1) | | [optional] ## Methods @@ -131,20 +131,20 @@ HasDescription returns a boolean if a field has been set. UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetCreated -`func (o *AccessProfile) GetCreated() time.Time` +`func (o *AccessProfile) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *AccessProfile) GetCreatedOk() (*time.Time, bool)` +`func (o *AccessProfile) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *AccessProfile) SetCreated(v time.Time)` +`func (o *AccessProfile) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -156,20 +156,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *AccessProfile) GetModified() time.Time` +`func (o *AccessProfile) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *AccessProfile) GetModifiedOk() (*time.Time, bool)` +`func (o *AccessProfile) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *AccessProfile) SetModified(v time.Time)` +`func (o *AccessProfile) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileApprovalScheme.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileApprovalScheme.md index bdfddf085..6f8389c82 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileApprovalScheme.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileApprovalScheme.md @@ -15,8 +15,8 @@ tags: ['SDK', 'Software Development Kit', 'AccessProfileApprovalScheme', 'BetaAc Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApproverType** | Pointer to **string** | Describes the individual or group that is responsible for an approval step. Values are as follows. **APP_OWNER**: The owner of the Application **OWNER**: Owner of the associated Access Profile or Role **SOURCE_OWNER**: Owner of the Source associated with an Access Profile **MANAGER**: Manager of the Identity making the request **GOVERNANCE_GROUP**: A Governance Group, the ID of which is specified by the **approverId** field | [optional] -**ApproverId** | Pointer to **NullableString** | Id of the specific approver, used only when approverType is GOVERNANCE_GROUP | [optional] +**ApproverType** | Pointer to **string** | Describes the individual or group that is responsible for an approval step. These are the possible values: **APP_OWNER**: The owner of the Application **OWNER**: Owner of the associated Access Profile or Role **SOURCE_OWNER**: Owner of the Source associated with an Access Profile **MANAGER**: Manager of the Identity making the request **GOVERNANCE_GROUP**: A Governance Group, the ID of which is specified by the **approverId** field | [optional] +**ApproverId** | Pointer to **NullableString** | Specific approver ID. Only use this when the `approverType` is `GOVERNANCE_GROUP`. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileDetails.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileDetails.md index 531b89e4f..59e728737 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileDetails.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileDetails.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | The ID of the Access Profile | [optional] **Name** | Pointer to **string** | Name of the Access Profile | [optional] **Description** | Pointer to **NullableString** | Information about the Access Profile | [optional] -**Created** | Pointer to **time.Time** | Date the Access Profile was created | [optional] -**Modified** | Pointer to **time.Time** | Date the Access Profile was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | Date the Access Profile was created | [optional] +**Modified** | Pointer to **SailPointTime** | Date the Access Profile was last modified. | [optional] **Disabled** | Pointer to **bool** | Whether the Access Profile is enabled. | [optional] [default to true] **Requestable** | Pointer to **bool** | Whether the Access Profile is requestable via access request. | [optional] [default to false] **Protected** | Pointer to **bool** | Whether the Access Profile is protected. | [optional] [default to false] @@ -145,20 +145,20 @@ HasDescription returns a boolean if a field has been set. UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetCreated -`func (o *AccessProfileDetails) GetCreated() time.Time` +`func (o *AccessProfileDetails) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *AccessProfileDetails) GetCreatedOk() (*time.Time, bool)` +`func (o *AccessProfileDetails) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *AccessProfileDetails) SetCreated(v time.Time)` +`func (o *AccessProfileDetails) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -170,20 +170,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *AccessProfileDetails) GetModified() time.Time` +`func (o *AccessProfileDetails) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *AccessProfileDetails) GetModifiedOk() (*time.Time, bool)` +`func (o *AccessProfileDetails) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *AccessProfileDetails) SetModified(v time.Time)` +`func (o *AccessProfileDetails) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileSourceRef.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileSourceRef.md index 84e8e62b4..301922f09 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileSourceRef.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessProfileSourceRef.md @@ -15,9 +15,9 @@ tags: ['SDK', 'Software Development Kit', 'AccessProfileSourceRef', 'BetaAccessP Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | The ID of the Source with with which the Access Profile is associated | [optional] -**Type** | Pointer to **string** | The type of the Source, will always be SOURCE | [optional] -**Name** | Pointer to **string** | The display name of the associated Source | [optional] +**Id** | Pointer to **string** | ID of the source the access profile is associated with. | [optional] +**Type** | Pointer to **string** | Source's DTO type. | [optional] +**Name** | Pointer to **string** | Source name. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md index d72ee8194..1c1d003e0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md @@ -19,6 +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] ## Methods @@ -139,4 +140,39 @@ SetClientMetadata sets ClientMetadata field to given value. HasClientMetadata returns a boolean if a field has been set. +### GetRequestedForWithRequestedItems + +`func (o *AccessRequest) GetRequestedForWithRequestedItems() []RequestedForDtoRef` + +GetRequestedForWithRequestedItems returns the RequestedForWithRequestedItems field if non-nil, zero value otherwise. + +### GetRequestedForWithRequestedItemsOk + +`func (o *AccessRequest) GetRequestedForWithRequestedItemsOk() (*[]RequestedForDtoRef, bool)` + +GetRequestedForWithRequestedItemsOk returns a tuple with the RequestedForWithRequestedItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedForWithRequestedItems + +`func (o *AccessRequest) SetRequestedForWithRequestedItems(v []RequestedForDtoRef)` + +SetRequestedForWithRequestedItems sets RequestedForWithRequestedItems field to given value. + +### HasRequestedForWithRequestedItems + +`func (o *AccessRequest) HasRequestedForWithRequestedItems() bool` + +HasRequestedForWithRequestedItems returns a boolean if a field has been set. + +### SetRequestedForWithRequestedItemsNil + +`func (o *AccessRequest) SetRequestedForWithRequestedItemsNil(b bool)` + + SetRequestedForWithRequestedItemsNil sets the value for RequestedForWithRequestedItems to be an explicit nil + +### UnsetRequestedForWithRequestedItems +`func (o *AccessRequest) UnsetRequestedForWithRequestedItems()` + +UnsetRequestedForWithRequestedItems ensures that no value is present for RequestedForWithRequestedItems, not even an explicit nil diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md index 505ba1eb5..87c089333 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md @@ -19,7 +19,9 @@ Name | Type | Description | Notes **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 **time.Time** | 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] +**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 @@ -132,20 +134,20 @@ HasClientMetadata returns a boolean if a field has been set. ### GetRemoveDate -`func (o *AccessRequestItem) GetRemoveDate() time.Time` +`func (o *AccessRequestItem) GetRemoveDate() SailPointTime` GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. ### GetRemoveDateOk -`func (o *AccessRequestItem) GetRemoveDateOk() (*time.Time, bool)` +`func (o *AccessRequestItem) 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 *AccessRequestItem) SetRemoveDate(v time.Time)` +`func (o *AccessRequestItem) SetRemoveDate(v SailPointTime)` SetRemoveDate sets RemoveDate field to given value. @@ -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/Beta/Models/AccessRequestPhases.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestPhases.md index 8577b5ed8..8bdf5a2d9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestPhases.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestPhases.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'AccessRequestPhases', 'BetaAccessRequ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Started** | Pointer to **time.Time** | The time that this phase started. | [optional] +**Started** | Pointer to **SailPointTime** | The time that this phase started. | [optional] **Finished** | Pointer to **NullableTime** | The time that this phase finished. | [optional] **Name** | Pointer to **string** | The name of this phase. | [optional] **State** | Pointer to **string** | The state of this phase. | [optional] @@ -43,20 +43,20 @@ but it doesn't guarantee that properties required by API are set ### GetStarted -`func (o *AccessRequestPhases) GetStarted() time.Time` +`func (o *AccessRequestPhases) GetStarted() SailPointTime` GetStarted returns the Started field if non-nil, zero value otherwise. ### GetStartedOk -`func (o *AccessRequestPhases) GetStartedOk() (*time.Time, bool)` +`func (o *AccessRequestPhases) GetStartedOk() (*SailPointTime, bool)` GetStartedOk returns a tuple with the Started field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStarted -`func (o *AccessRequestPhases) SetStarted(v time.Time)` +`func (o *AccessRequestPhases) SetStarted(v SailPointTime)` SetStarted sets Started field to given value. @@ -68,20 +68,20 @@ HasStarted returns a boolean if a field has been set. ### GetFinished -`func (o *AccessRequestPhases) GetFinished() time.Time` +`func (o *AccessRequestPhases) GetFinished() SailPointTime` GetFinished returns the Finished field if non-nil, zero value otherwise. ### GetFinishedOk -`func (o *AccessRequestPhases) GetFinishedOk() (*time.Time, bool)` +`func (o *AccessRequestPhases) GetFinishedOk() (*SailPointTime, bool)` GetFinishedOk returns a tuple with the Finished field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFinished -`func (o *AccessRequestPhases) SetFinished(v time.Time)` +`func (o *AccessRequestPhases) SetFinished(v SailPointTime)` SetFinished sets Finished field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestRecommendationActionItemResponseDto.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestRecommendationActionItemResponseDto.md index 4497ea534..38ca43551 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestRecommendationActionItemResponseDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestRecommendationActionItemResponseDto.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IdentityId** | Pointer to **string** | The identity ID taking the action. | [optional] **Access** | Pointer to [**AccessRequestRecommendationItem**](access-request-recommendation-item) | | [optional] -**Timestamp** | Pointer to **time.Time** | | [optional] +**Timestamp** | Pointer to **SailPointTime** | | [optional] ## Methods @@ -90,20 +90,20 @@ HasAccess returns a boolean if a field has been set. ### GetTimestamp -`func (o *AccessRequestRecommendationActionItemResponseDto) GetTimestamp() time.Time` +`func (o *AccessRequestRecommendationActionItemResponseDto) GetTimestamp() SailPointTime` GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. ### GetTimestampOk -`func (o *AccessRequestRecommendationActionItemResponseDto) GetTimestampOk() (*time.Time, bool)` +`func (o *AccessRequestRecommendationActionItemResponseDto) GetTimestampOk() (*SailPointTime, bool)` GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTimestamp -`func (o *AccessRequestRecommendationActionItemResponseDto) SetTimestamp(v time.Time)` +`func (o *AccessRequestRecommendationActionItemResponseDto) SetTimestamp(v SailPointTime)` SetTimestamp sets Timestamp field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Account.md b/docs/tools/sdk/go/Reference/Beta/Models/Account.md index 696546177..056f5c4c9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Account.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Account.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the Object | [optional] [readonly] **Name** | **NullableString** | Name of the Object | -**Created** | Pointer to **time.Time** | Creation date of the Object | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the Object | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the Object | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the Object | [optional] [readonly] **SourceId** | **string** | The unique ID of the source this account belongs to | **SourceName** | **NullableString** | The display name of the source this account belongs to | **IdentityId** | Pointer to **string** | The unique ID of the identity this account is correlated to | [optional] @@ -120,20 +120,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCreated -`func (o *Account) GetCreated() time.Time` +`func (o *Account) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Account) GetCreatedOk() (*time.Time, bool)` +`func (o *Account) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Account) SetCreated(v time.Time)` +`func (o *Account) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -145,20 +145,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *Account) GetModified() time.Time` +`func (o *Account) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Account) GetModifiedOk() (*time.Time, bool)` +`func (o *Account) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Account) SetModified(v time.Time)` +`func (o *Account) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccountActivityItem.md b/docs/tools/sdk/go/Reference/Beta/Models/AccountActivityItem.md index eee24de8c..7ed3bac56 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccountActivityItem.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccountActivityItem.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | Item id | [optional] **Name** | Pointer to **string** | Human-readable display name of item | [optional] -**Requested** | Pointer to **time.Time** | Date and time item was requested | [optional] +**Requested** | Pointer to **SailPointTime** | Date and time item was requested | [optional] **ApprovalStatus** | Pointer to [**NullableAccountActivityApprovalStatus**](account-activity-approval-status) | | [optional] **ProvisioningStatus** | Pointer to [**ProvisioningState**](provisioning-state) | | [optional] **RequesterComment** | Pointer to [**NullableComment**](comment) | | [optional] @@ -103,20 +103,20 @@ HasName returns a boolean if a field has been set. ### GetRequested -`func (o *AccountActivityItem) GetRequested() time.Time` +`func (o *AccountActivityItem) GetRequested() SailPointTime` GetRequested returns the Requested field if non-nil, zero value otherwise. ### GetRequestedOk -`func (o *AccountActivityItem) GetRequestedOk() (*time.Time, bool)` +`func (o *AccountActivityItem) GetRequestedOk() (*SailPointTime, bool)` GetRequestedOk returns a tuple with the Requested field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRequested -`func (o *AccountActivityItem) SetRequested(v time.Time)` +`func (o *AccountActivityItem) SetRequested(v SailPointTime)` SetRequested sets Requested field to given value. @@ -528,20 +528,20 @@ HasClientMetadata returns a boolean if a field has been set. UnsetClientMetadata ensures that no value is present for ClientMetadata, not even an explicit nil ### GetRemoveDate -`func (o *AccountActivityItem) GetRemoveDate() time.Time` +`func (o *AccountActivityItem) GetRemoveDate() SailPointTime` GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. ### GetRemoveDateOk -`func (o *AccountActivityItem) GetRemoveDateOk() (*time.Time, bool)` +`func (o *AccountActivityItem) 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 *AccountActivityItem) SetRemoveDate(v time.Time)` +`func (o *AccountActivityItem) SetRemoveDate(v SailPointTime)` SetRemoveDate sets RemoveDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregation.md b/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregation.md index 90642c165..5c26d5b5f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregation.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregation.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'AccountAggregation', 'BetaAccountAggr Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Start** | Pointer to **time.Time** | When the aggregation started. | [optional] +**Start** | Pointer to **SailPointTime** | When the aggregation started. | [optional] **Status** | Pointer to **string** | STARTED - Aggregation started, but source account iteration has not completed. ACCOUNTS_COLLECTED - Source account iteration completed, but all accounts have not yet been processed. COMPLETED - Aggregation completed (*possibly with errors*). CANCELLED - Aggregation cancelled by user. RETRIED - Aggregation retried because of connectivity issues with the Virtual Appliance. TERMINATED - Aggregation marked as failed after 3 tries after connectivity issues with the Virtual Appliance. | [optional] **TotalAccounts** | Pointer to **int32** | The total number of *NEW, CHANGED and DELETED* accounts that need to be processed for this aggregation. This does not include accounts that were unchanged since the previous aggregation. This can be zero if there were no new, changed or deleted accounts since the previous aggregation. *Only available when status is ACCOUNTS_COLLECTED or COMPLETED.* | [optional] **ProcessedAccounts** | Pointer to **int32** | The number of *NEW, CHANGED and DELETED* accounts that have been processed so far. This reflects the number of accounts that have been processed at the time of the API call, and may increase on subsequent API calls while the status is ACCOUNTS_COLLECTED. *Only available when status is ACCOUNTS_COLLECTED or COMPLETED.* | [optional] @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetStart -`func (o *AccountAggregation) GetStart() time.Time` +`func (o *AccountAggregation) GetStart() SailPointTime` GetStart returns the Start field if non-nil, zero value otherwise. ### GetStartOk -`func (o *AccountAggregation) GetStartOk() (*time.Time, bool)` +`func (o *AccountAggregation) GetStartOk() (*SailPointTime, bool)` GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStart -`func (o *AccountAggregation) SetStart(v time.Time)` +`func (o *AccountAggregation) SetStart(v SailPointTime)` SetStart sets Start field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationCompleted.md b/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationCompleted.md index 7ae4138ef..5b77f3741 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationCompleted.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationCompleted.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Source** | [**AccountAggregationCompletedSource**](account-aggregation-completed-source) | | **Status** | **map[string]interface{}** | Aggregation's overall status. | -**Started** | **time.Time** | Date and time when the account aggregation started. | -**Completed** | **time.Time** | Date and time when the account aggregation finished. | +**Started** | **SailPointTime** | Date and time when the account aggregation started. | +**Completed** | **SailPointTime** | Date and time when the account aggregation finished. | **Errors** | **[]string** | List of errors that occurred during the aggregation. | **Warnings** | **[]string** | List of warnings that occurred during the aggregation. | **Stats** | [**AccountAggregationCompletedStats**](account-aggregation-completed-stats) | | @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewAccountAggregationCompleted -`func NewAccountAggregationCompleted(source AccountAggregationCompletedSource, status map[string]interface{}, started time.Time, completed time.Time, errors []string, warnings []string, stats AccountAggregationCompletedStats, ) *AccountAggregationCompleted` +`func NewAccountAggregationCompleted(source AccountAggregationCompletedSource, status map[string]interface{}, started SailPointTime, completed SailPointTime, errors []string, warnings []string, stats AccountAggregationCompletedStats, ) *AccountAggregationCompleted` NewAccountAggregationCompleted instantiates a new AccountAggregationCompleted object This constructor will assign default values to properties that have it defined, @@ -84,40 +84,40 @@ SetStatus sets Status field to given value. ### GetStarted -`func (o *AccountAggregationCompleted) GetStarted() time.Time` +`func (o *AccountAggregationCompleted) GetStarted() SailPointTime` GetStarted returns the Started field if non-nil, zero value otherwise. ### GetStartedOk -`func (o *AccountAggregationCompleted) GetStartedOk() (*time.Time, bool)` +`func (o *AccountAggregationCompleted) GetStartedOk() (*SailPointTime, bool)` GetStartedOk returns a tuple with the Started field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStarted -`func (o *AccountAggregationCompleted) SetStarted(v time.Time)` +`func (o *AccountAggregationCompleted) SetStarted(v SailPointTime)` SetStarted sets Started field to given value. ### GetCompleted -`func (o *AccountAggregationCompleted) GetCompleted() time.Time` +`func (o *AccountAggregationCompleted) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *AccountAggregationCompleted) GetCompletedOk() (*time.Time, bool)` +`func (o *AccountAggregationCompleted) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *AccountAggregationCompleted) SetCompleted(v time.Time)` +`func (o *AccountAggregationCompleted) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationStatus.md b/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationStatus.md index 5838d6b65..7611876a5 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationStatus.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccountAggregationStatus.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'AccountAggregationStatus', 'BetaAccou Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Start** | Pointer to **time.Time** | When the aggregation started. | [optional] +**Start** | Pointer to **SailPointTime** | When the aggregation started. | [optional] **Status** | Pointer to **string** | STARTED - Aggregation started, but source account iteration has not completed. ACCOUNTS_COLLECTED - Source account iteration completed, but all accounts have not yet been processed. COMPLETED - Aggregation completed (*possibly with errors*). CANCELLED - Aggregation cancelled by user. RETRIED - Aggregation retried because of connectivity issues with the Virtual Appliance. TERMINATED - Aggregation marked as failed after 3 tries after connectivity issues with the Virtual Appliance. | [optional] **TotalAccounts** | Pointer to **int32** | The total number of *NEW, CHANGED and DELETED* accounts that need to be processed for this aggregation. This does not include accounts that were unchanged since the previous aggregation. This can be zero if there were no new, changed or deleted accounts since the previous aggregation. *Only available when status is ACCOUNTS_COLLECTED or COMPLETED.* | [optional] **ProcessedAccounts** | Pointer to **int32** | The number of *NEW, CHANGED and DELETED* accounts that have been processed so far. This reflects the number of accounts that have been processed at the time of the API call, and may increase on subsequent API calls while the status is ACCOUNTS_COLLECTED. *Only available when status is ACCOUNTS_COLLECTED or COMPLETED.* | [optional] @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetStart -`func (o *AccountAggregationStatus) GetStart() time.Time` +`func (o *AccountAggregationStatus) GetStart() SailPointTime` GetStart returns the Start field if non-nil, zero value otherwise. ### GetStartOk -`func (o *AccountAggregationStatus) GetStartOk() (*time.Time, bool)` +`func (o *AccountAggregationStatus) GetStartOk() (*SailPointTime, bool)` GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStart -`func (o *AccountAggregationStatus) SetStart(v time.Time)` +`func (o *AccountAggregationStatus) SetStart(v SailPointTime)` SetStart sets Start field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccountItemRef.md b/docs/tools/sdk/go/Reference/Beta/Models/AccountItemRef.md new file mode 100644 index 000000000..35da5ce6e --- /dev/null +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccountItemRef.md @@ -0,0 +1,100 @@ +--- +id: beta-account-item-ref +title: AccountItemRef +pagination_label: AccountItemRef +sidebar_label: AccountItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountItemRef', 'BetaAccountItemRef'] +slug: /tools/sdk/go/beta/models/account-item-ref +tags: ['SDK', 'Software Development Kit', 'AccountItemRef', 'BetaAccountItemRef'] +--- + +# AccountItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUuid** | Pointer to **NullableString** | The uuid for the account, available under the 'objectguid' attribute | [optional] +**NativeIdentity** | Pointer to **string** | The 'distinguishedName' attribute for the account | [optional] + +## Methods + +### NewAccountItemRef + +`func NewAccountItemRef() *AccountItemRef` + +NewAccountItemRef instantiates a new AccountItemRef 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 + +### NewAccountItemRefWithDefaults + +`func NewAccountItemRefWithDefaults() *AccountItemRef` + +NewAccountItemRefWithDefaults instantiates a new AccountItemRef 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 + +### GetAccountUuid + +`func (o *AccountItemRef) GetAccountUuid() string` + +GetAccountUuid returns the AccountUuid field if non-nil, zero value otherwise. + +### GetAccountUuidOk + +`func (o *AccountItemRef) GetAccountUuidOk() (*string, bool)` + +GetAccountUuidOk returns a tuple with the AccountUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUuid + +`func (o *AccountItemRef) SetAccountUuid(v string)` + +SetAccountUuid sets AccountUuid field to given value. + +### HasAccountUuid + +`func (o *AccountItemRef) HasAccountUuid() bool` + +HasAccountUuid returns a boolean if a field has been set. + +### SetAccountUuidNil + +`func (o *AccountItemRef) SetAccountUuidNil(b bool)` + + SetAccountUuidNil sets the value for AccountUuid to be an explicit nil + +### UnsetAccountUuid +`func (o *AccountItemRef) UnsetAccountUuid()` + +UnsetAccountUuid ensures that no value is present for AccountUuid, not even an explicit nil +### GetNativeIdentity + +`func (o *AccountItemRef) GetNativeIdentity() string` + +GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. + +### GetNativeIdentityOk + +`func (o *AccountItemRef) 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 *AccountItemRef) SetNativeIdentity(v string)` + +SetNativeIdentity sets NativeIdentity field to given value. + +### HasNativeIdentity + +`func (o *AccountItemRef) HasNativeIdentity() bool` + +HasNativeIdentity returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccountsCollectedForAggregation.md b/docs/tools/sdk/go/Reference/Beta/Models/AccountsCollectedForAggregation.md index 275080c59..2e22c0557 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccountsCollectedForAggregation.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccountsCollectedForAggregation.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Source** | [**AccountsCollectedForAggregationSource**](accounts-collected-for-aggregation-source) | | **Status** | **map[string]interface{}** | The overall status of the collection. | -**Started** | **time.Time** | The date and time when the account collection started. | -**Completed** | **time.Time** | The date and time when the account collection finished. | +**Started** | **SailPointTime** | The date and time when the account collection started. | +**Completed** | **SailPointTime** | The date and time when the account collection finished. | **Errors** | **[]string** | A list of errors that occurred during the collection. | **Warnings** | **[]string** | A list of warnings that occurred during the collection. | **Stats** | [**AccountsCollectedForAggregationStats**](accounts-collected-for-aggregation-stats) | | @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewAccountsCollectedForAggregation -`func NewAccountsCollectedForAggregation(source AccountsCollectedForAggregationSource, status map[string]interface{}, started time.Time, completed time.Time, errors []string, warnings []string, stats AccountsCollectedForAggregationStats, ) *AccountsCollectedForAggregation` +`func NewAccountsCollectedForAggregation(source AccountsCollectedForAggregationSource, status map[string]interface{}, started SailPointTime, completed SailPointTime, errors []string, warnings []string, stats AccountsCollectedForAggregationStats, ) *AccountsCollectedForAggregation` NewAccountsCollectedForAggregation instantiates a new AccountsCollectedForAggregation object This constructor will assign default values to properties that have it defined, @@ -84,40 +84,40 @@ SetStatus sets Status field to given value. ### GetStarted -`func (o *AccountsCollectedForAggregation) GetStarted() time.Time` +`func (o *AccountsCollectedForAggregation) GetStarted() SailPointTime` GetStarted returns the Started field if non-nil, zero value otherwise. ### GetStartedOk -`func (o *AccountsCollectedForAggregation) GetStartedOk() (*time.Time, bool)` +`func (o *AccountsCollectedForAggregation) GetStartedOk() (*SailPointTime, bool)` GetStartedOk returns a tuple with the Started field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStarted -`func (o *AccountsCollectedForAggregation) SetStarted(v time.Time)` +`func (o *AccountsCollectedForAggregation) SetStarted(v SailPointTime)` SetStarted sets Started field to given value. ### GetCompleted -`func (o *AccountsCollectedForAggregation) GetCompleted() time.Time` +`func (o *AccountsCollectedForAggregation) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *AccountsCollectedForAggregation) GetCompletedOk() (*time.Time, bool)` +`func (o *AccountsCollectedForAggregation) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *AccountsCollectedForAggregation) SetCompleted(v time.Time)` +`func (o *AccountsCollectedForAggregation) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ApprovalForwardHistory.md b/docs/tools/sdk/go/Reference/Beta/Models/ApprovalForwardHistory.md index 4ef28235e..0ccdff7e1 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ApprovalForwardHistory.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ApprovalForwardHistory.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **OldApproverName** | Pointer to **string** | Display name of approver from whom the approval was forwarded. | [optional] **NewApproverName** | Pointer to **string** | Display name of approver to whom the approval was forwarded. | [optional] **Comment** | Pointer to **NullableString** | Comment made while forwarding. | [optional] -**Modified** | Pointer to **time.Time** | Time at which approval was forwarded. | [optional] +**Modified** | Pointer to **SailPointTime** | Time at which approval was forwarded. | [optional] **ForwarderName** | Pointer to **NullableString** | Display name of forwarder who forwarded the approval. | [optional] **ReassignmentType** | Pointer to [**ReassignmentType**](reassignment-type) | | [optional] @@ -128,20 +128,20 @@ HasComment returns a boolean if a field has been set. UnsetComment ensures that no value is present for Comment, not even an explicit nil ### GetModified -`func (o *ApprovalForwardHistory) GetModified() time.Time` +`func (o *ApprovalForwardHistory) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *ApprovalForwardHistory) GetModifiedOk() (*time.Time, bool)` +`func (o *ApprovalForwardHistory) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *ApprovalForwardHistory) SetModified(v time.Time)` +`func (o *ApprovalForwardHistory) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ApprovalStatusDto.md b/docs/tools/sdk/go/Reference/Beta/Models/ApprovalStatusDto.md index 423a14312..f247215bc 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ApprovalStatusDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ApprovalStatusDto.md @@ -157,20 +157,20 @@ HasCurrentOwner returns a boolean if a field has been set. ### GetModified -`func (o *ApprovalStatusDto) GetModified() time.Time` +`func (o *ApprovalStatusDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *ApprovalStatusDto) GetModifiedOk() (*time.Time, bool)` +`func (o *ApprovalStatusDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *ApprovalStatusDto) SetModified(v time.Time)` +`func (o *ApprovalStatusDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -312,20 +312,20 @@ HasComment returns a boolean if a field has been set. UnsetComment ensures that no value is present for Comment, not even an explicit nil ### GetRemoveDate -`func (o *ApprovalStatusDto) GetRemoveDate() time.Time` +`func (o *ApprovalStatusDto) GetRemoveDate() SailPointTime` GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. ### GetRemoveDateOk -`func (o *ApprovalStatusDto) GetRemoveDateOk() (*time.Time, bool)` +`func (o *ApprovalStatusDto) 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 *ApprovalStatusDto) SetRemoveDate(v time.Time)` +`func (o *ApprovalStatusDto) SetRemoveDate(v SailPointTime)` SetRemoveDate sets RemoveDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinition.md b/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinition.md index d745efb2f..7a938cfc9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinition.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinition.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | The name of the attribute. | [optional] **Type** | Pointer to [**AttributeDefinitionType**](attribute-definition-type) | | [optional] -**Schema** | Pointer to [**AttributeDefinitionSchema**](attribute-definition-schema) | | [optional] +**Schema** | Pointer to [**NullableAttributeDefinitionSchema**](attribute-definition-schema) | | [optional] **Description** | Pointer to **string** | A human-readable description of the attribute. | [optional] **IsMulti** | Pointer to **bool** | Flag indicating whether or not the attribute is multi-valued. | [optional] [default to false] **IsEntitlement** | Pointer to **bool** | Flag indicating whether or not the attribute is an entitlement. | [optional] [default to false] @@ -117,6 +117,16 @@ SetSchema sets Schema field to given value. HasSchema returns a boolean if a field has been set. +### SetSchemaNil + +`func (o *AttributeDefinition) SetSchemaNil(b bool)` + + SetSchemaNil sets the value for Schema to be an explicit nil + +### UnsetSchema +`func (o *AttributeDefinition) UnsetSchema()` + +UnsetSchema ensures that no value is present for Schema, not even an explicit nil ### GetDescription `func (o *AttributeDefinition) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinitionType.md b/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinitionType.md index 9b98c588d..38f82563d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinitionType.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AttributeDefinitionType.md @@ -22,4 +22,6 @@ tags: ['SDK', 'Software Development Kit', 'AttributeDefinitionType', 'BetaAttrib * `BOOLEAN` (value: `"BOOLEAN"`) +* `DATE` (value: `"DATE"`) + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AuditDetails.md b/docs/tools/sdk/go/Reference/Beta/Models/AuditDetails.md index fdde4a55b..b39ef765e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AuditDetails.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AuditDetails.md @@ -15,9 +15,9 @@ tags: ['SDK', 'Software Development Kit', 'AuditDetails', 'BetaAuditDetails'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Created** | Pointer to **time.Time** | Initial date and time when the record was created | [optional] +**Created** | Pointer to **SailPointTime** | Initial date and time when the record was created | [optional] **CreatedBy** | Pointer to [**Identity1**](identity1) | | [optional] -**Modified** | Pointer to **time.Time** | Last modified date and time for the record | [optional] +**Modified** | Pointer to **SailPointTime** | Last modified date and time for the record | [optional] **ModifiedBy** | Pointer to [**Identity1**](identity1) | | [optional] ## Methods @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetCreated -`func (o *AuditDetails) GetCreated() time.Time` +`func (o *AuditDetails) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *AuditDetails) GetCreatedOk() (*time.Time, bool)` +`func (o *AuditDetails) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *AuditDetails) SetCreated(v time.Time)` +`func (o *AuditDetails) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -91,20 +91,20 @@ HasCreatedBy returns a boolean if a field has been set. ### GetModified -`func (o *AuditDetails) GetModified() time.Time` +`func (o *AuditDetails) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *AuditDetails) GetModifiedOk() (*time.Time, bool)` +`func (o *AuditDetails) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *AuditDetails) SetModified(v time.Time)` +`func (o *AuditDetails) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto.md b/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto.md index 0ff54ee57..4123493ae 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the Object | [optional] [readonly] **Name** | **NullableString** | Name of the Object | -**Created** | Pointer to **time.Time** | Creation date of the Object | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the Object | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the Object | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the Object | [optional] [readonly] ## Methods @@ -96,20 +96,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCreated -`func (o *BaseCommonDto) GetCreated() time.Time` +`func (o *BaseCommonDto) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *BaseCommonDto) GetCreatedOk() (*time.Time, bool)` +`func (o *BaseCommonDto) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *BaseCommonDto) SetCreated(v time.Time)` +`func (o *BaseCommonDto) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -121,20 +121,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *BaseCommonDto) GetModified() time.Time` +`func (o *BaseCommonDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *BaseCommonDto) GetModifiedOk() (*time.Time, bool)` +`func (o *BaseCommonDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *BaseCommonDto) SetModified(v time.Time)` +`func (o *BaseCommonDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto1.md b/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto1.md index 0f19e055f..b572a4d92 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto1.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/BaseCommonDto1.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the Object | [optional] [readonly] **Name** | **NullableString** | Name of the Object | -**Created** | Pointer to **time.Time** | Creation date of the Object | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the Object | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the Object | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the Object | [optional] [readonly] ## Methods @@ -96,20 +96,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCreated -`func (o *BaseCommonDto1) GetCreated() time.Time` +`func (o *BaseCommonDto1) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *BaseCommonDto1) GetCreatedOk() (*time.Time, bool)` +`func (o *BaseCommonDto1) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *BaseCommonDto1) SetCreated(v time.Time)` +`func (o *BaseCommonDto1) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -121,20 +121,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *BaseCommonDto1) GetModified() time.Time` +`func (o *BaseCommonDto1) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *BaseCommonDto1) GetModifiedOk() (*time.Time, bool)` +`func (o *BaseCommonDto1) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *BaseCommonDto1) SetModified(v time.Time)` +`func (o *BaseCommonDto1) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Campaign.md b/docs/tools/sdk/go/Reference/Beta/Models/Campaign.md index 5822ca60a..131491050 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Campaign.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Campaign.md @@ -18,18 +18,18 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Id of the campaign | [optional] [readonly] **Name** | **string** | The campaign name. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | **Description** | **string** | The campaign description. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | -**Deadline** | Pointer to **time.Time** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] +**Deadline** | Pointer to **SailPointTime** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] **Type** | **string** | The type of campaign. Could be extended in the future. | **EmailNotificationEnabled** | Pointer to **bool** | Enables email notification for this campaign | [optional] [default to false] **AutoRevokeAllowed** | Pointer to **bool** | Allows auto revoke for this campaign | [optional] [default to false] **RecommendationsEnabled** | Pointer to **bool** | Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future. | [optional] [default to false] **Status** | Pointer to **string** | The campaign's current status. | [optional] [readonly] **CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] -**Created** | Pointer to **time.Time** | Created time of the campaign | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Created time of the campaign | [optional] [readonly] **TotalCertifications** | Pointer to **int32** | The total number of certifications in this campaign. | [optional] [readonly] **CompletedCertifications** | Pointer to **int32** | The number of completed certifications in this campaign. | [optional] [readonly] **Alerts** | Pointer to [**[]CampaignAlert**](campaign-alert) | A list of errors and warnings that have accumulated. | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Modified time of the campaign | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Modified time of the campaign | [optional] [readonly] **Filter** | Pointer to [**FullcampaignAllOfFilter**](fullcampaign-all-of-filter) | | [optional] **SunsetCommentsRequired** | Pointer to **bool** | Determines if comments on sunset date changes are required. | [optional] [default to true] **SourceOwnerCampaignInfo** | Pointer to [**FullcampaignAllOfSourceOwnerCampaignInfo**](fullcampaign-all-of-source-owner-campaign-info) | | [optional] @@ -125,20 +125,20 @@ SetDescription sets Description field to given value. ### GetDeadline -`func (o *Campaign) GetDeadline() time.Time` +`func (o *Campaign) GetDeadline() SailPointTime` GetDeadline returns the Deadline field if non-nil, zero value otherwise. ### GetDeadlineOk -`func (o *Campaign) GetDeadlineOk() (*time.Time, bool)` +`func (o *Campaign) GetDeadlineOk() (*SailPointTime, bool)` GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeadline -`func (o *Campaign) SetDeadline(v time.Time)` +`func (o *Campaign) SetDeadline(v SailPointTime)` SetDeadline sets Deadline field to given value. @@ -295,20 +295,20 @@ HasCorrelatedStatus returns a boolean if a field has been set. ### GetCreated -`func (o *Campaign) GetCreated() time.Time` +`func (o *Campaign) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Campaign) GetCreatedOk() (*time.Time, bool)` +`func (o *Campaign) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Campaign) SetCreated(v time.Time)` +`func (o *Campaign) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -395,20 +395,20 @@ HasAlerts returns a boolean if a field has been set. ### GetModified -`func (o *Campaign) GetModified() time.Time` +`func (o *Campaign) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Campaign) GetModifiedOk() (*time.Time, bool)` +`func (o *Campaign) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Campaign) SetModified(v time.Time)` +`func (o *Campaign) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CampaignActivatedCampaign.md b/docs/tools/sdk/go/Reference/Beta/Models/CampaignActivatedCampaign.md index badc5f879..6776efefd 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CampaignActivatedCampaign.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CampaignActivatedCampaign.md @@ -18,9 +18,9 @@ Name | Type | Description | Notes **Id** | **string** | Campaign's unique ID. | **Name** | **string** | Campaign's name. | **Description** | **string** | Campaign's extended description. | -**Created** | **time.Time** | Date and time when the campaign was created. | +**Created** | **SailPointTime** | Date and time when the campaign was created. | **Modified** | Pointer to **NullableTime** | Date and time when the campaign was last modified. | [optional] -**Deadline** | **time.Time** | Date and time when the campaign is due. | +**Deadline** | **SailPointTime** | Date and time when the campaign is due. | **Type** | **map[string]interface{}** | Campaign's type. | **CampaignOwner** | [**CampaignActivatedCampaignCampaignOwner**](campaign-activated-campaign-campaign-owner) | | **Status** | **map[string]interface{}** | Campaign's current status. | @@ -29,7 +29,7 @@ Name | Type | Description | Notes ### NewCampaignActivatedCampaign -`func NewCampaignActivatedCampaign(id string, name string, description string, created time.Time, deadline time.Time, type_ map[string]interface{}, campaignOwner CampaignActivatedCampaignCampaignOwner, status map[string]interface{}, ) *CampaignActivatedCampaign` +`func NewCampaignActivatedCampaign(id string, name string, description string, created SailPointTime, deadline SailPointTime, type_ map[string]interface{}, campaignOwner CampaignActivatedCampaignCampaignOwner, status map[string]interface{}, ) *CampaignActivatedCampaign` NewCampaignActivatedCampaign instantiates a new CampaignActivatedCampaign object This constructor will assign default values to properties that have it defined, @@ -106,40 +106,40 @@ SetDescription sets Description field to given value. ### GetCreated -`func (o *CampaignActivatedCampaign) GetCreated() time.Time` +`func (o *CampaignActivatedCampaign) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CampaignActivatedCampaign) GetCreatedOk() (*time.Time, bool)` +`func (o *CampaignActivatedCampaign) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CampaignActivatedCampaign) SetCreated(v time.Time)` +`func (o *CampaignActivatedCampaign) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *CampaignActivatedCampaign) GetModified() time.Time` +`func (o *CampaignActivatedCampaign) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CampaignActivatedCampaign) GetModifiedOk() (*time.Time, bool)` +`func (o *CampaignActivatedCampaign) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CampaignActivatedCampaign) SetModified(v time.Time)` +`func (o *CampaignActivatedCampaign) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -161,20 +161,20 @@ HasModified returns a boolean if a field has been set. UnsetModified ensures that no value is present for Modified, not even an explicit nil ### GetDeadline -`func (o *CampaignActivatedCampaign) GetDeadline() time.Time` +`func (o *CampaignActivatedCampaign) GetDeadline() SailPointTime` GetDeadline returns the Deadline field if non-nil, zero value otherwise. ### GetDeadlineOk -`func (o *CampaignActivatedCampaign) GetDeadlineOk() (*time.Time, bool)` +`func (o *CampaignActivatedCampaign) GetDeadlineOk() (*SailPointTime, bool)` GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeadline -`func (o *CampaignActivatedCampaign) SetDeadline(v time.Time)` +`func (o *CampaignActivatedCampaign) SetDeadline(v SailPointTime)` SetDeadline sets Deadline field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CampaignEndedCampaign.md b/docs/tools/sdk/go/Reference/Beta/Models/CampaignEndedCampaign.md index a0d4a36dd..bf1146596 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CampaignEndedCampaign.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CampaignEndedCampaign.md @@ -18,9 +18,9 @@ Name | Type | Description | Notes **Id** | **string** | Campaign's unique ID for the campaign. | **Name** | **string** | Campaign's unique ID. | **Description** | **string** | Campaign's extended description. | -**Created** | **time.Time** | Date and time when the campaign was created. | +**Created** | **SailPointTime** | Date and time when the campaign was created. | **Modified** | Pointer to **NullableTime** | Date and time when the campaign was last modified. | [optional] -**Deadline** | **time.Time** | Date and time when the campaign is due. | +**Deadline** | **SailPointTime** | Date and time when the campaign is due. | **Type** | **map[string]interface{}** | Campaign's type. | **CampaignOwner** | [**CampaignActivatedCampaignCampaignOwner**](campaign-activated-campaign-campaign-owner) | | **Status** | **map[string]interface{}** | Campaign's current status. | @@ -29,7 +29,7 @@ Name | Type | Description | Notes ### NewCampaignEndedCampaign -`func NewCampaignEndedCampaign(id string, name string, description string, created time.Time, deadline time.Time, type_ map[string]interface{}, campaignOwner CampaignActivatedCampaignCampaignOwner, status map[string]interface{}, ) *CampaignEndedCampaign` +`func NewCampaignEndedCampaign(id string, name string, description string, created SailPointTime, deadline SailPointTime, type_ map[string]interface{}, campaignOwner CampaignActivatedCampaignCampaignOwner, status map[string]interface{}, ) *CampaignEndedCampaign` NewCampaignEndedCampaign instantiates a new CampaignEndedCampaign object This constructor will assign default values to properties that have it defined, @@ -106,40 +106,40 @@ SetDescription sets Description field to given value. ### GetCreated -`func (o *CampaignEndedCampaign) GetCreated() time.Time` +`func (o *CampaignEndedCampaign) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CampaignEndedCampaign) GetCreatedOk() (*time.Time, bool)` +`func (o *CampaignEndedCampaign) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CampaignEndedCampaign) SetCreated(v time.Time)` +`func (o *CampaignEndedCampaign) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *CampaignEndedCampaign) GetModified() time.Time` +`func (o *CampaignEndedCampaign) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CampaignEndedCampaign) GetModifiedOk() (*time.Time, bool)` +`func (o *CampaignEndedCampaign) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CampaignEndedCampaign) SetModified(v time.Time)` +`func (o *CampaignEndedCampaign) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -161,20 +161,20 @@ HasModified returns a boolean if a field has been set. UnsetModified ensures that no value is present for Modified, not even an explicit nil ### GetDeadline -`func (o *CampaignEndedCampaign) GetDeadline() time.Time` +`func (o *CampaignEndedCampaign) GetDeadline() SailPointTime` GetDeadline returns the Deadline field if non-nil, zero value otherwise. ### GetDeadlineOk -`func (o *CampaignEndedCampaign) GetDeadlineOk() (*time.Time, bool)` +`func (o *CampaignEndedCampaign) GetDeadlineOk() (*SailPointTime, bool)` GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeadline -`func (o *CampaignEndedCampaign) SetDeadline(v time.Time)` +`func (o *CampaignEndedCampaign) SetDeadline(v SailPointTime)` SetDeadline sets Deadline field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CampaignGeneratedCampaign.md b/docs/tools/sdk/go/Reference/Beta/Models/CampaignGeneratedCampaign.md index f7316b3f0..f09381f0d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CampaignGeneratedCampaign.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CampaignGeneratedCampaign.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | **string** | Campaign's unique ID. | **Name** | **string** | Campaign's name. | **Description** | **string** | Campaign's extended description. | -**Created** | **time.Time** | Date and time when the campaign was created. | +**Created** | **SailPointTime** | Date and time when the campaign was created. | **Modified** | Pointer to **NullableString** | Date and time when the campaign was last modified. | [optional] **Deadline** | Pointer to **NullableString** | Date and time when the campaign must be finished. | [optional] **Type** | **map[string]interface{}** | Campaign's type. | @@ -29,7 +29,7 @@ Name | Type | Description | Notes ### NewCampaignGeneratedCampaign -`func NewCampaignGeneratedCampaign(id string, name string, description string, created time.Time, type_ map[string]interface{}, campaignOwner CampaignGeneratedCampaignCampaignOwner, status map[string]interface{}, ) *CampaignGeneratedCampaign` +`func NewCampaignGeneratedCampaign(id string, name string, description string, created SailPointTime, type_ map[string]interface{}, campaignOwner CampaignGeneratedCampaignCampaignOwner, status map[string]interface{}, ) *CampaignGeneratedCampaign` NewCampaignGeneratedCampaign instantiates a new CampaignGeneratedCampaign object This constructor will assign default values to properties that have it defined, @@ -106,20 +106,20 @@ SetDescription sets Description field to given value. ### GetCreated -`func (o *CampaignGeneratedCampaign) GetCreated() time.Time` +`func (o *CampaignGeneratedCampaign) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CampaignGeneratedCampaign) GetCreatedOk() (*time.Time, bool)` +`func (o *CampaignGeneratedCampaign) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CampaignGeneratedCampaign) SetCreated(v time.Time)` +`func (o *CampaignGeneratedCampaign) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CampaignReport.md b/docs/tools/sdk/go/Reference/Beta/Models/CampaignReport.md index 1d8cea697..3e0bbd73d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CampaignReport.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CampaignReport.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | Human-readable name of the SOD policy violation report result. | [optional] **Status** | Pointer to **string** | Status of a SOD policy violation report. | [optional] **ReportType** | [**ReportType**](report-type) | | -**LastRunAt** | Pointer to **time.Time** | The most recent date and time this report was run | [optional] [readonly] +**LastRunAt** | Pointer to **SailPointTime** | The most recent date and time this report was run | [optional] [readonly] ## Methods @@ -163,20 +163,20 @@ SetReportType sets ReportType field to given value. ### GetLastRunAt -`func (o *CampaignReport) GetLastRunAt() time.Time` +`func (o *CampaignReport) GetLastRunAt() SailPointTime` GetLastRunAt returns the LastRunAt field if non-nil, zero value otherwise. ### GetLastRunAtOk -`func (o *CampaignReport) GetLastRunAtOk() (*time.Time, bool)` +`func (o *CampaignReport) GetLastRunAtOk() (*SailPointTime, bool)` GetLastRunAtOk returns a tuple with the LastRunAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastRunAt -`func (o *CampaignReport) SetLastRunAt(v time.Time)` +`func (o *CampaignReport) SetLastRunAt(v SailPointTime)` SetLastRunAt sets LastRunAt field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CampaignTemplate.md b/docs/tools/sdk/go/Reference/Beta/Models/CampaignTemplate.md index b2ae5d496..25caf7152 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CampaignTemplate.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CampaignTemplate.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Id of the campaign template | [optional] **Name** | **string** | This template's name. Has no bearing on generated campaigns' names. | **Description** | **string** | This template's description. Has no bearing on generated campaigns' descriptions. | -**Created** | **time.Time** | Creation date of Campaign Template | [readonly] +**Created** | **SailPointTime** | Creation date of Campaign Template | [readonly] **Modified** | **NullableTime** | Modification date of Campaign Template | [readonly] **Scheduled** | Pointer to **bool** | Indicates if this campaign template has been scheduled. | [optional] [readonly] [default to false] **OwnerRef** | Pointer to [**CampaignTemplateOwnerRef**](campaign-template-owner-ref) | | [optional] @@ -29,7 +29,7 @@ Name | Type | Description | Notes ### NewCampaignTemplate -`func NewCampaignTemplate(name string, description string, created time.Time, modified NullableTime, campaign Campaign, ) *CampaignTemplate` +`func NewCampaignTemplate(name string, description string, created SailPointTime, modified NullableTime, campaign Campaign, ) *CampaignTemplate` NewCampaignTemplate instantiates a new CampaignTemplate object This constructor will assign default values to properties that have it defined, @@ -111,40 +111,40 @@ SetDescription sets Description field to given value. ### GetCreated -`func (o *CampaignTemplate) GetCreated() time.Time` +`func (o *CampaignTemplate) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CampaignTemplate) GetCreatedOk() (*time.Time, bool)` +`func (o *CampaignTemplate) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CampaignTemplate) SetCreated(v time.Time)` +`func (o *CampaignTemplate) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *CampaignTemplate) GetModified() time.Time` +`func (o *CampaignTemplate) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CampaignTemplate) GetModifiedOk() (*time.Time, bool)` +`func (o *CampaignTemplate) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CampaignTemplate) SetModified(v time.Time)` +`func (o *CampaignTemplate) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CancelableAccountActivity.md b/docs/tools/sdk/go/Reference/Beta/Models/CancelableAccountActivity.md index 0069d66b6..74368f0ea 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CancelableAccountActivity.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CancelableAccountActivity.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | ID of the account activity itself | [optional] **Name** | Pointer to **string** | | [optional] -**Created** | Pointer to **time.Time** | | [optional] +**Created** | Pointer to **SailPointTime** | | [optional] **Modified** | Pointer to **NullableTime** | | [optional] **Completed** | Pointer to **NullableTime** | | [optional] **CompletionStatus** | Pointer to [**NullableCompletionStatus**](completion-status) | | [optional] @@ -103,20 +103,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *CancelableAccountActivity) GetCreated() time.Time` +`func (o *CancelableAccountActivity) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CancelableAccountActivity) GetCreatedOk() (*time.Time, bool)` +`func (o *CancelableAccountActivity) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CancelableAccountActivity) SetCreated(v time.Time)` +`func (o *CancelableAccountActivity) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -128,20 +128,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *CancelableAccountActivity) GetModified() time.Time` +`func (o *CancelableAccountActivity) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CancelableAccountActivity) GetModifiedOk() (*time.Time, bool)` +`func (o *CancelableAccountActivity) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CancelableAccountActivity) SetModified(v time.Time)` +`func (o *CancelableAccountActivity) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -163,20 +163,20 @@ HasModified returns a boolean if a field has been set. UnsetModified ensures that no value is present for Modified, not even an explicit nil ### GetCompleted -`func (o *CancelableAccountActivity) GetCompleted() time.Time` +`func (o *CancelableAccountActivity) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *CancelableAccountActivity) GetCompletedOk() (*time.Time, bool)` +`func (o *CancelableAccountActivity) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *CancelableAccountActivity) SetCompleted(v time.Time)` +`func (o *CancelableAccountActivity) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CancelledRequestDetails.md b/docs/tools/sdk/go/Reference/Beta/Models/CancelledRequestDetails.md index e440805f8..5b291581d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CancelledRequestDetails.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CancelledRequestDetails.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Comment** | Pointer to **string** | Comment made by the owner when cancelling the associated request. | [optional] **Owner** | Pointer to [**OwnerDto**](owner-dto) | | [optional] -**Modified** | Pointer to **time.Time** | Date comment was added by the owner when cancelling the associated request. | [optional] +**Modified** | Pointer to **SailPointTime** | Date comment was added by the owner when cancelling the associated request. | [optional] ## Methods @@ -90,20 +90,20 @@ HasOwner returns a boolean if a field has been set. ### GetModified -`func (o *CancelledRequestDetails) GetModified() time.Time` +`func (o *CancelledRequestDetails) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CancelledRequestDetails) GetModifiedOk() (*time.Time, bool)` +`func (o *CancelledRequestDetails) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CancelledRequestDetails) SetModified(v time.Time)` +`func (o *CancelledRequestDetails) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CertificationDto.md b/docs/tools/sdk/go/Reference/Beta/Models/CertificationDto.md index df2039502..094e70fad 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CertificationDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CertificationDto.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CampaignRef** | [**CampaignReference**](campaign-reference) | | **Phase** | [**CertificationPhase**](certification-phase) | | -**Due** | **time.Time** | Date and time when the certification is due. | -**Signed** | **time.Time** | Date and time when the reviewer signed off on the certification. | +**Due** | **SailPointTime** | Date and time when the certification is due. | +**Signed** | **SailPointTime** | Date and time when the reviewer signed off on the certification. | **Reviewer** | [**Reviewer**](reviewer) | | **Reassignment** | Pointer to [**Reassignment**](reassignment) | | [optional] **HasErrors** | **bool** | Indicates whether the certification has any errors. | @@ -33,7 +33,7 @@ Name | Type | Description | Notes ### NewCertificationDto -`func NewCertificationDto(campaignRef CampaignReference, phase CertificationPhase, due time.Time, signed time.Time, reviewer Reviewer, hasErrors bool, completed bool, decisionsMade int32, decisionsTotal int32, entitiesCompleted int32, entitiesTotal int32, ) *CertificationDto` +`func NewCertificationDto(campaignRef CampaignReference, phase CertificationPhase, due SailPointTime, signed SailPointTime, reviewer Reviewer, hasErrors bool, completed bool, decisionsMade int32, decisionsTotal int32, entitiesCompleted int32, entitiesTotal int32, ) *CertificationDto` NewCertificationDto instantiates a new CertificationDto object This constructor will assign default values to properties that have it defined, @@ -90,40 +90,40 @@ SetPhase sets Phase field to given value. ### GetDue -`func (o *CertificationDto) GetDue() time.Time` +`func (o *CertificationDto) GetDue() SailPointTime` GetDue returns the Due field if non-nil, zero value otherwise. ### GetDueOk -`func (o *CertificationDto) GetDueOk() (*time.Time, bool)` +`func (o *CertificationDto) GetDueOk() (*SailPointTime, bool)` GetDueOk returns a tuple with the Due field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDue -`func (o *CertificationDto) SetDue(v time.Time)` +`func (o *CertificationDto) SetDue(v SailPointTime)` SetDue sets Due field to given value. ### GetSigned -`func (o *CertificationDto) GetSigned() time.Time` +`func (o *CertificationDto) GetSigned() SailPointTime` GetSigned returns the Signed field if non-nil, zero value otherwise. ### GetSignedOk -`func (o *CertificationDto) GetSignedOk() (*time.Time, bool)` +`func (o *CertificationDto) GetSignedOk() (*SailPointTime, bool)` GetSignedOk returns a tuple with the Signed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSigned -`func (o *CertificationDto) SetSigned(v time.Time)` +`func (o *CertificationDto) SetSigned(v SailPointTime)` SetSigned sets Signed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CertificationSignedOffCertification.md b/docs/tools/sdk/go/Reference/Beta/Models/CertificationSignedOffCertification.md index 2a8a5c15f..81ba91756 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CertificationSignedOffCertification.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CertificationSignedOffCertification.md @@ -17,12 +17,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | Certification's unique ID. | **Name** | **string** | Certification's name. | -**Created** | **time.Time** | Date and time when the certification was created. | +**Created** | **SailPointTime** | Date and time when the certification was created. | **Modified** | Pointer to **NullableTime** | Date and time when the certification was last modified. | [optional] **CampaignRef** | [**CampaignReference**](campaign-reference) | | **Phase** | [**CertificationPhase**](certification-phase) | | -**Due** | **time.Time** | Date and time when the certification is due. | -**Signed** | **time.Time** | Date and time when the reviewer signed off on the certification. | +**Due** | **SailPointTime** | Date and time when the certification is due. | +**Signed** | **SailPointTime** | Date and time when the reviewer signed off on the certification. | **Reviewer** | [**Reviewer**](reviewer) | | **Reassignment** | Pointer to [**Reassignment**](reassignment) | | [optional] **HasErrors** | **bool** | Indicates whether the certification has any errors. | @@ -37,7 +37,7 @@ Name | Type | Description | Notes ### NewCertificationSignedOffCertification -`func NewCertificationSignedOffCertification(id string, name string, created time.Time, campaignRef CampaignReference, phase CertificationPhase, due time.Time, signed time.Time, reviewer Reviewer, hasErrors bool, completed bool, decisionsMade int32, decisionsTotal int32, entitiesCompleted int32, entitiesTotal int32, ) *CertificationSignedOffCertification` +`func NewCertificationSignedOffCertification(id string, name string, created SailPointTime, campaignRef CampaignReference, phase CertificationPhase, due SailPointTime, signed SailPointTime, reviewer Reviewer, hasErrors bool, completed bool, decisionsMade int32, decisionsTotal int32, entitiesCompleted int32, entitiesTotal int32, ) *CertificationSignedOffCertification` NewCertificationSignedOffCertification instantiates a new CertificationSignedOffCertification object This constructor will assign default values to properties that have it defined, @@ -94,40 +94,40 @@ SetName sets Name field to given value. ### GetCreated -`func (o *CertificationSignedOffCertification) GetCreated() time.Time` +`func (o *CertificationSignedOffCertification) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CertificationSignedOffCertification) GetCreatedOk() (*time.Time, bool)` +`func (o *CertificationSignedOffCertification) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CertificationSignedOffCertification) SetCreated(v time.Time)` +`func (o *CertificationSignedOffCertification) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *CertificationSignedOffCertification) GetModified() time.Time` +`func (o *CertificationSignedOffCertification) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CertificationSignedOffCertification) GetModifiedOk() (*time.Time, bool)` +`func (o *CertificationSignedOffCertification) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CertificationSignedOffCertification) SetModified(v time.Time)` +`func (o *CertificationSignedOffCertification) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -189,40 +189,40 @@ SetPhase sets Phase field to given value. ### GetDue -`func (o *CertificationSignedOffCertification) GetDue() time.Time` +`func (o *CertificationSignedOffCertification) GetDue() SailPointTime` GetDue returns the Due field if non-nil, zero value otherwise. ### GetDueOk -`func (o *CertificationSignedOffCertification) GetDueOk() (*time.Time, bool)` +`func (o *CertificationSignedOffCertification) GetDueOk() (*SailPointTime, bool)` GetDueOk returns a tuple with the Due field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDue -`func (o *CertificationSignedOffCertification) SetDue(v time.Time)` +`func (o *CertificationSignedOffCertification) SetDue(v SailPointTime)` SetDue sets Due field to given value. ### GetSigned -`func (o *CertificationSignedOffCertification) GetSigned() time.Time` +`func (o *CertificationSignedOffCertification) GetSigned() SailPointTime` GetSigned returns the Signed field if non-nil, zero value otherwise. ### GetSignedOk -`func (o *CertificationSignedOffCertification) GetSignedOk() (*time.Time, bool)` +`func (o *CertificationSignedOffCertification) GetSignedOk() (*SailPointTime, bool)` GetSignedOk returns a tuple with the Signed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSigned -`func (o *CertificationSignedOffCertification) SetSigned(v time.Time)` +`func (o *CertificationSignedOffCertification) SetSigned(v SailPointTime)` SetSigned sets Signed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CertificationTask.md b/docs/tools/sdk/go/Reference/Beta/Models/CertificationTask.md index adde1e140..edbd27c2f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CertificationTask.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CertificationTask.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TargetId** | Pointer to **string** | The ID of the item being operated on by this task. | [optional] **Status** | Pointer to **string** | The status of the task. | [optional] **Errors** | Pointer to [**[]ErrorMessageDto**](error-message-dto) | | [optional] -**Created** | Pointer to **time.Time** | The date and time on which this task was created. | [optional] +**Created** | Pointer to **SailPointTime** | The date and time on which this task was created. | [optional] ## Methods @@ -194,20 +194,20 @@ HasErrors returns a boolean if a field has been set. ### GetCreated -`func (o *CertificationTask) GetCreated() time.Time` +`func (o *CertificationTask) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CertificationTask) GetCreatedOk() (*time.Time, bool)` +`func (o *CertificationTask) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CertificationTask) SetCreated(v time.Time)` +`func (o *CertificationTask) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ClientLogConfiguration.md b/docs/tools/sdk/go/Reference/Beta/Models/ClientLogConfiguration.md index 2365fa915..242bf369a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ClientLogConfiguration.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ClientLogConfiguration.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClientId** | Pointer to **string** | Log configuration's client ID | [optional] **DurationMinutes** | **int32** | Duration in minutes for log configuration to remain in effect before resetting to defaults | -**Expiration** | Pointer to **time.Time** | Expiration date-time of the log configuration request | [optional] +**Expiration** | Pointer to **SailPointTime** | Expiration date-time of the log configuration request | [optional] **RootLevel** | [**StandardLevel**](standard-level) | | **LogLevels** | Pointer to [**map[string]StandardLevel**](standard-level) | Mapping of identifiers to Standard Log Level values | [optional] @@ -87,20 +87,20 @@ SetDurationMinutes sets DurationMinutes field to given value. ### GetExpiration -`func (o *ClientLogConfiguration) GetExpiration() time.Time` +`func (o *ClientLogConfiguration) GetExpiration() SailPointTime` GetExpiration returns the Expiration field if non-nil, zero value otherwise. ### GetExpirationOk -`func (o *ClientLogConfiguration) GetExpirationOk() (*time.Time, bool)` +`func (o *ClientLogConfiguration) GetExpirationOk() (*SailPointTime, bool)` GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpiration -`func (o *ClientLogConfiguration) SetExpiration(v time.Time)` +`func (o *ClientLogConfiguration) SetExpiration(v SailPointTime)` SetExpiration sets Expiration field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Comment.md b/docs/tools/sdk/go/Reference/Beta/Models/Comment.md index ae2184563..e73014b77 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Comment.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Comment.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **CommenterId** | Pointer to **string** | Id of the identity making the comment | [optional] **CommenterName** | Pointer to **string** | Human-readable display name of the identity making the comment | [optional] **Body** | Pointer to **string** | Content of the comment | [optional] -**Date** | Pointer to **time.Time** | Date and time comment was made | [optional] +**Date** | Pointer to **SailPointTime** | Date and time comment was made | [optional] ## Methods @@ -116,20 +116,20 @@ HasBody returns a boolean if a field has been set. ### GetDate -`func (o *Comment) GetDate() time.Time` +`func (o *Comment) GetDate() SailPointTime` GetDate returns the Date field if non-nil, zero value otherwise. ### GetDateOk -`func (o *Comment) GetDateOk() (*time.Time, bool)` +`func (o *Comment) GetDateOk() (*SailPointTime, bool)` GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDate -`func (o *Comment) SetDate(v time.Time)` +`func (o *Comment) SetDate(v SailPointTime)` SetDate sets Date field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CommentDto.md b/docs/tools/sdk/go/Reference/Beta/Models/CommentDto.md index bca0dc28e..1abb9b084 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CommentDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CommentDto.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Comment** | Pointer to **NullableString** | Comment content. | [optional] **Author** | Pointer to [**CommentDtoAuthor**](comment-dto-author) | | [optional] -**Created** | Pointer to **time.Time** | Date and time comment was created. | [optional] +**Created** | Pointer to **SailPointTime** | Date and time comment was created. | [optional] ## Methods @@ -100,20 +100,20 @@ HasAuthor returns a boolean if a field has been set. ### GetCreated -`func (o *CommentDto) GetCreated() time.Time` +`func (o *CommentDto) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CommentDto) GetCreatedOk() (*time.Time, bool)` +`func (o *CommentDto) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CommentDto) SetCreated(v time.Time)` +`func (o *CommentDto) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CommentDto1.md b/docs/tools/sdk/go/Reference/Beta/Models/CommentDto1.md index 624b08be6..224a9a975 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CommentDto1.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CommentDto1.md @@ -16,7 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'CommentDto1', 'BetaCommentDto1'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Comment** | Pointer to **NullableString** | Comment content. | [optional] -**Created** | Pointer to **time.Time** | Date and time comment was created. | [optional] +**Created** | Pointer to **SailPointTime** | Date and time comment was created. | [optional] **Author** | Pointer to [**CommentDto1Author**](comment-dto1-author) | | [optional] ## Methods @@ -75,20 +75,20 @@ HasComment returns a boolean if a field has been set. UnsetComment ensures that no value is present for Comment, not even an explicit nil ### GetCreated -`func (o *CommentDto1) GetCreated() time.Time` +`func (o *CommentDto1) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CommentDto1) GetCreatedOk() (*time.Time, bool)` +`func (o *CommentDto1) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CommentDto1) SetCreated(v time.Time)` +`func (o *CommentDto1) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CommonAccessResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/CommonAccessResponse.md index 7cf12a0c0..244b11ec6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CommonAccessResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CommonAccessResponse.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **Access** | Pointer to [**CommonAccessItemAccess**](common-access-item-access) | | [optional] **Status** | Pointer to **string** | CONFIRMED or DENIED | [optional] **CommonAccessType** | Pointer to **string** | | [optional] -**LastUpdated** | Pointer to **time.Time** | | [optional] [readonly] +**LastUpdated** | Pointer to **SailPointTime** | | [optional] [readonly] **ReviewedByUser** | Pointer to **bool** | true if user has confirmed or denied status | [optional] **LastReviewed** | Pointer to **NullableTime** | | [optional] [readonly] **CreatedByUser** | Pointer to **bool** | | [optional] [default to false] @@ -145,20 +145,20 @@ HasCommonAccessType returns a boolean if a field has been set. ### GetLastUpdated -`func (o *CommonAccessResponse) GetLastUpdated() time.Time` +`func (o *CommonAccessResponse) GetLastUpdated() SailPointTime` GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. ### GetLastUpdatedOk -`func (o *CommonAccessResponse) GetLastUpdatedOk() (*time.Time, bool)` +`func (o *CommonAccessResponse) GetLastUpdatedOk() (*SailPointTime, bool)` GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastUpdated -`func (o *CommonAccessResponse) SetLastUpdated(v time.Time)` +`func (o *CommonAccessResponse) SetLastUpdated(v SailPointTime)` SetLastUpdated sets LastUpdated field to given value. @@ -195,20 +195,20 @@ HasReviewedByUser returns a boolean if a field has been set. ### GetLastReviewed -`func (o *CommonAccessResponse) GetLastReviewed() time.Time` +`func (o *CommonAccessResponse) GetLastReviewed() SailPointTime` GetLastReviewed returns the LastReviewed field if non-nil, zero value otherwise. ### GetLastReviewedOk -`func (o *CommonAccessResponse) GetLastReviewedOk() (*time.Time, bool)` +`func (o *CommonAccessResponse) GetLastReviewedOk() (*SailPointTime, bool)` GetLastReviewedOk returns a tuple with the LastReviewed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastReviewed -`func (o *CommonAccessResponse) SetLastReviewed(v time.Time)` +`func (o *CommonAccessResponse) SetLastReviewed(v SailPointTime)` SetLastReviewed sets LastReviewed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CompletedApproval.md b/docs/tools/sdk/go/Reference/Beta/Models/CompletedApproval.md index 9e65bba30..ba7233f8a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CompletedApproval.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CompletedApproval.md @@ -17,9 +17,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The approval id. | [optional] **Name** | Pointer to **string** | The name of the approval. | [optional] -**Created** | Pointer to **time.Time** | When the approval was created. | [optional] -**Modified** | Pointer to **time.Time** | When the approval was modified last time. | [optional] -**RequestCreated** | Pointer to **time.Time** | When the access-request was created. | [optional] +**Created** | Pointer to **SailPointTime** | When the approval was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the approval was modified last time. | [optional] +**RequestCreated** | Pointer to **SailPointTime** | When the access-request was created. | [optional] **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] **Requester** | Pointer to [**AccessItemRequesterDto**](access-item-requester-dto) | | [optional] **RequestedFor** | Pointer to [**RequestedItemStatusRequestedFor**](requested-item-status-requested-for) | | [optional] @@ -111,20 +111,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *CompletedApproval) GetCreated() time.Time` +`func (o *CompletedApproval) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CompletedApproval) GetCreatedOk() (*time.Time, bool)` +`func (o *CompletedApproval) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CompletedApproval) SetCreated(v time.Time)` +`func (o *CompletedApproval) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -136,20 +136,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *CompletedApproval) GetModified() time.Time` +`func (o *CompletedApproval) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CompletedApproval) GetModifiedOk() (*time.Time, bool)` +`func (o *CompletedApproval) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CompletedApproval) SetModified(v time.Time)` +`func (o *CompletedApproval) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -161,20 +161,20 @@ HasModified returns a boolean if a field has been set. ### GetRequestCreated -`func (o *CompletedApproval) GetRequestCreated() time.Time` +`func (o *CompletedApproval) GetRequestCreated() SailPointTime` GetRequestCreated returns the RequestCreated field if non-nil, zero value otherwise. ### GetRequestCreatedOk -`func (o *CompletedApproval) GetRequestCreatedOk() (*time.Time, bool)` +`func (o *CompletedApproval) GetRequestCreatedOk() (*SailPointTime, bool)` GetRequestCreatedOk returns a tuple with the RequestCreated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRequestCreated -`func (o *CompletedApproval) SetRequestCreated(v time.Time)` +`func (o *CompletedApproval) SetRequestCreated(v SailPointTime)` SetRequestCreated sets RequestCreated field to given value. @@ -506,20 +506,20 @@ HasState returns a boolean if a field has been set. ### GetRemoveDate -`func (o *CompletedApproval) GetRemoveDate() time.Time` +`func (o *CompletedApproval) GetRemoveDate() SailPointTime` GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. ### GetRemoveDateOk -`func (o *CompletedApproval) GetRemoveDateOk() (*time.Time, bool)` +`func (o *CompletedApproval) 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 *CompletedApproval) SetRemoveDate(v time.Time)` +`func (o *CompletedApproval) SetRemoveDate(v SailPointTime)` SetRemoveDate sets RemoveDate field to given value. @@ -566,20 +566,20 @@ HasRemoveDateUpdateRequested returns a boolean if a field has been set. ### GetCurrentRemoveDate -`func (o *CompletedApproval) GetCurrentRemoveDate() time.Time` +`func (o *CompletedApproval) GetCurrentRemoveDate() SailPointTime` GetCurrentRemoveDate returns the CurrentRemoveDate field if non-nil, zero value otherwise. ### GetCurrentRemoveDateOk -`func (o *CompletedApproval) GetCurrentRemoveDateOk() (*time.Time, bool)` +`func (o *CompletedApproval) GetCurrentRemoveDateOk() (*SailPointTime, bool)` GetCurrentRemoveDateOk returns a tuple with the CurrentRemoveDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCurrentRemoveDate -`func (o *CompletedApproval) SetCurrentRemoveDate(v time.Time)` +`func (o *CompletedApproval) SetCurrentRemoveDate(v SailPointTime)` SetCurrentRemoveDate sets CurrentRemoveDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CompletedApprovalPreApprovalTriggerResult.md b/docs/tools/sdk/go/Reference/Beta/Models/CompletedApprovalPreApprovalTriggerResult.md index 6c44a3ef0..6e954fbd4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CompletedApprovalPreApprovalTriggerResult.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CompletedApprovalPreApprovalTriggerResult.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Comment** | Pointer to **string** | The comment from the trigger | [optional] **Decision** | Pointer to [**CompletedApprovalState**](completed-approval-state) | | [optional] **Reviewer** | Pointer to **string** | The name of the approver | [optional] -**Date** | Pointer to **time.Time** | The date and time the trigger decided on the request | [optional] +**Date** | Pointer to **SailPointTime** | The date and time the trigger decided on the request | [optional] ## Methods @@ -116,20 +116,20 @@ HasReviewer returns a boolean if a field has been set. ### GetDate -`func (o *CompletedApprovalPreApprovalTriggerResult) GetDate() time.Time` +`func (o *CompletedApprovalPreApprovalTriggerResult) GetDate() SailPointTime` GetDate returns the Date field if non-nil, zero value otherwise. ### GetDateOk -`func (o *CompletedApprovalPreApprovalTriggerResult) GetDateOk() (*time.Time, bool)` +`func (o *CompletedApprovalPreApprovalTriggerResult) GetDateOk() (*SailPointTime, bool)` GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDate -`func (o *CompletedApprovalPreApprovalTriggerResult) SetDate(v time.Time)` +`func (o *CompletedApprovalPreApprovalTriggerResult) SetDate(v SailPointTime)` SetDate sets Date field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationDetailsResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationDetailsResponse.md index e927187bc..01424c8e8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationDetailsResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationDetailsResponse.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConfigType** | Pointer to [**ConfigTypeEnum**](config-type-enum) | | [optional] **TargetIdentity** | Pointer to [**Identity1**](identity1) | | [optional] -**StartDate** | Pointer to **time.Time** | The date from which to start reassigning work items | [optional] -**EndDate** | Pointer to **time.Time** | The date from which to stop reassigning work items. If this is an empty string it indicates a permanent reassignment. | [optional] +**StartDate** | Pointer to **SailPointTime** | The date from which to start reassigning work items | [optional] +**EndDate** | Pointer to **SailPointTime** | The date from which to stop reassigning work items. If this is an empty string it indicates a permanent reassignment. | [optional] **AuditDetails** | Pointer to [**AuditDetails**](audit-details) | | [optional] ## Methods @@ -92,20 +92,20 @@ HasTargetIdentity returns a boolean if a field has been set. ### GetStartDate -`func (o *ConfigurationDetailsResponse) GetStartDate() time.Time` +`func (o *ConfigurationDetailsResponse) GetStartDate() SailPointTime` GetStartDate returns the StartDate field if non-nil, zero value otherwise. ### GetStartDateOk -`func (o *ConfigurationDetailsResponse) GetStartDateOk() (*time.Time, bool)` +`func (o *ConfigurationDetailsResponse) GetStartDateOk() (*SailPointTime, bool)` GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStartDate -`func (o *ConfigurationDetailsResponse) SetStartDate(v time.Time)` +`func (o *ConfigurationDetailsResponse) SetStartDate(v SailPointTime)` SetStartDate sets StartDate field to given value. @@ -117,20 +117,20 @@ HasStartDate returns a boolean if a field has been set. ### GetEndDate -`func (o *ConfigurationDetailsResponse) GetEndDate() time.Time` +`func (o *ConfigurationDetailsResponse) GetEndDate() SailPointTime` GetEndDate returns the EndDate field if non-nil, zero value otherwise. ### GetEndDateOk -`func (o *ConfigurationDetailsResponse) GetEndDateOk() (*time.Time, bool)` +`func (o *ConfigurationDetailsResponse) GetEndDateOk() (*SailPointTime, bool)` GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEndDate -`func (o *ConfigurationDetailsResponse) SetEndDate(v time.Time)` +`func (o *ConfigurationDetailsResponse) SetEndDate(v SailPointTime)` SetEndDate sets EndDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationItemRequest.md b/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationItemRequest.md index 379685a58..872b25569 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationItemRequest.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ConfigurationItemRequest.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ReassignedFromId** | Pointer to **string** | The identity id to reassign an item from | [optional] **ReassignedToId** | Pointer to **string** | The identity id to reassign an item to | [optional] **ConfigType** | Pointer to [**ConfigTypeEnum**](config-type-enum) | | [optional] -**StartDate** | Pointer to **time.Time** | The date from which to start reassigning work items | [optional] +**StartDate** | Pointer to **SailPointTime** | The date from which to start reassigning work items | [optional] **EndDate** | Pointer to **NullableTime** | The date from which to stop reassigning work items. If this is an null string it indicates a permanent reassignment. | [optional] ## Methods @@ -117,20 +117,20 @@ HasConfigType returns a boolean if a field has been set. ### GetStartDate -`func (o *ConfigurationItemRequest) GetStartDate() time.Time` +`func (o *ConfigurationItemRequest) GetStartDate() SailPointTime` GetStartDate returns the StartDate field if non-nil, zero value otherwise. ### GetStartDateOk -`func (o *ConfigurationItemRequest) GetStartDateOk() (*time.Time, bool)` +`func (o *ConfigurationItemRequest) GetStartDateOk() (*SailPointTime, bool)` GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStartDate -`func (o *ConfigurationItemRequest) SetStartDate(v time.Time)` +`func (o *ConfigurationItemRequest) SetStartDate(v SailPointTime)` SetStartDate sets StartDate field to given value. @@ -142,20 +142,20 @@ HasStartDate returns a boolean if a field has been set. ### GetEndDate -`func (o *ConfigurationItemRequest) GetEndDate() time.Time` +`func (o *ConfigurationItemRequest) GetEndDate() SailPointTime` GetEndDate returns the EndDate field if non-nil, zero value otherwise. ### GetEndDateOk -`func (o *ConfigurationItemRequest) GetEndDateOk() (*time.Time, bool)` +`func (o *ConfigurationItemRequest) GetEndDateOk() (*SailPointTime, bool)` GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEndDate -`func (o *ConfigurationItemRequest) SetEndDate(v time.Time)` +`func (o *ConfigurationItemRequest) SetEndDate(v SailPointTime)` SetEndDate sets EndDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CreateOAuthClientResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/CreateOAuthClientResponse.md index 5a98b42f0..704c74398 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CreateOAuthClientResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CreateOAuthClientResponse.md @@ -31,15 +31,15 @@ Name | Type | Description | Notes **Enabled** | **bool** | An indicator of whether the API Client is enabled for use | **StrongAuthSupported** | **bool** | An indicator of whether the API Client supports strong authentication | **ClaimsSupported** | **bool** | An indicator of whether the API Client supports the serialization of SAML claims when used with the authorization_code flow | -**Created** | **time.Time** | The date and time, down to the millisecond, when the API Client was created | -**Modified** | **time.Time** | The date and time, down to the millisecond, when the API Client was last updated | +**Created** | **SailPointTime** | The date and time, down to the millisecond, when the API Client was created | +**Modified** | **SailPointTime** | The date and time, down to the millisecond, when the API Client was last updated | **Scope** | **[]string** | Scopes of the API Client. | ## Methods ### NewCreateOAuthClientResponse -`func NewCreateOAuthClientResponse(id string, secret string, businessName string, homepageUrl string, name string, description string, accessTokenValiditySeconds int32, refreshTokenValiditySeconds int32, redirectUris []string, grantTypes []GrantType, accessType AccessType, type_ ClientType, internal bool, enabled bool, strongAuthSupported bool, claimsSupported bool, created time.Time, modified time.Time, scope []string, ) *CreateOAuthClientResponse` +`func NewCreateOAuthClientResponse(id string, secret string, businessName string, homepageUrl string, name string, description string, accessTokenValiditySeconds int32, refreshTokenValiditySeconds int32, redirectUris []string, grantTypes []GrantType, accessType AccessType, type_ ClientType, internal bool, enabled bool, strongAuthSupported bool, claimsSupported bool, created SailPointTime, modified SailPointTime, scope []string, ) *CreateOAuthClientResponse` NewCreateOAuthClientResponse instantiates a new CreateOAuthClientResponse object This constructor will assign default values to properties that have it defined, @@ -376,40 +376,40 @@ SetClaimsSupported sets ClaimsSupported field to given value. ### GetCreated -`func (o *CreateOAuthClientResponse) GetCreated() time.Time` +`func (o *CreateOAuthClientResponse) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CreateOAuthClientResponse) GetCreatedOk() (*time.Time, bool)` +`func (o *CreateOAuthClientResponse) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CreateOAuthClientResponse) SetCreated(v time.Time)` +`func (o *CreateOAuthClientResponse) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *CreateOAuthClientResponse) GetModified() time.Time` +`func (o *CreateOAuthClientResponse) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *CreateOAuthClientResponse) GetModifiedOk() (*time.Time, bool)` +`func (o *CreateOAuthClientResponse) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *CreateOAuthClientResponse) SetModified(v time.Time)` +`func (o *CreateOAuthClientResponse) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/CreatePersonalAccessTokenResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/CreatePersonalAccessTokenResponse.md index 11c3996aa..6c2e2292d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/CreatePersonalAccessTokenResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/CreatePersonalAccessTokenResponse.md @@ -20,14 +20,14 @@ Name | Type | Description | Notes **Scope** | **[]string** | Scopes of the personal access token. | **Name** | **string** | The name of the personal access token. Cannot be the same as other personal access tokens owned by a user. | **Owner** | [**PatOwner**](pat-owner) | | -**Created** | **time.Time** | The date and time, down to the millisecond, when this personal access token was created. | +**Created** | **SailPointTime** | The date and time, down to the millisecond, when this personal access token was created. | **AccessTokenValiditySeconds** | **int32** | Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. | ## Methods ### NewCreatePersonalAccessTokenResponse -`func NewCreatePersonalAccessTokenResponse(id string, secret string, scope []string, name string, owner PatOwner, created time.Time, accessTokenValiditySeconds int32, ) *CreatePersonalAccessTokenResponse` +`func NewCreatePersonalAccessTokenResponse(id string, secret string, scope []string, name string, owner PatOwner, created SailPointTime, accessTokenValiditySeconds int32, ) *CreatePersonalAccessTokenResponse` NewCreatePersonalAccessTokenResponse instantiates a new CreatePersonalAccessTokenResponse object This constructor will assign default values to properties that have it defined, @@ -154,20 +154,20 @@ SetOwner sets Owner field to given value. ### GetCreated -`func (o *CreatePersonalAccessTokenResponse) GetCreated() time.Time` +`func (o *CreatePersonalAccessTokenResponse) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *CreatePersonalAccessTokenResponse) GetCreatedOk() (*time.Time, bool)` +`func (o *CreatePersonalAccessTokenResponse) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *CreatePersonalAccessTokenResponse) SetCreated(v time.Time)` +`func (o *CreatePersonalAccessTokenResponse) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Entitlement.md b/docs/tools/sdk/go/Reference/Beta/Models/Entitlement.md index 11b4d4e49..483d08f12 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Entitlement.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Entitlement.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The entitlement id | [optional] **Name** | Pointer to **string** | The entitlement name | [optional] -**Created** | Pointer to **time.Time** | Time when the entitlement was created | [optional] -**Modified** | Pointer to **time.Time** | Time when the entitlement was last modified | [optional] +**Created** | Pointer to **SailPointTime** | Time when the entitlement was created | [optional] +**Modified** | Pointer to **SailPointTime** | Time when the entitlement was last modified | [optional] **Attribute** | Pointer to **NullableString** | The entitlement attribute name | [optional] **Value** | Pointer to **string** | The value of the entitlement | [optional] **SourceSchemaObjectType** | Pointer to **string** | The object type of the entitlement from the source schema | [optional] @@ -105,20 +105,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *Entitlement) GetCreated() time.Time` +`func (o *Entitlement) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Entitlement) GetCreatedOk() (*time.Time, bool)` +`func (o *Entitlement) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Entitlement) SetCreated(v time.Time)` +`func (o *Entitlement) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -130,20 +130,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *Entitlement) GetModified() time.Time` +`func (o *Entitlement) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Entitlement) GetModifiedOk() (*time.Time, bool)` +`func (o *Entitlement) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Entitlement) SetModified(v time.Time)` +`func (o *Entitlement) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/EventAttributes.md b/docs/tools/sdk/go/Reference/Beta/Models/EventAttributes.md deleted file mode 100644 index e4bb0de8f..000000000 --- a/docs/tools/sdk/go/Reference/Beta/Models/EventAttributes.md +++ /dev/null @@ -1,213 +0,0 @@ ---- -id: beta-event-attributes -title: EventAttributes -pagination_label: EventAttributes -sidebar_label: EventAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'EventAttributes', 'BetaEventAttributes'] -slug: /tools/sdk/go/beta/models/event-attributes -tags: ['SDK', 'Software Development Kit', 'EventAttributes', 'BetaEventAttributes'] ---- - -# EventAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Description of the event trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] - -## Methods - -### NewEventAttributes - -`func NewEventAttributes(id NullableString, ) *EventAttributes` - -NewEventAttributes instantiates a new EventAttributes 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 - -### NewEventAttributesWithDefaults - -`func NewEventAttributesWithDefaults() *EventAttributes` - -NewEventAttributesWithDefaults instantiates a new EventAttributes 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 - -### GetId - -`func (o *EventAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *EventAttributes) 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 *EventAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *EventAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *EventAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *EventAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *EventAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *EventAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *EventAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *EventAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *EventAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *EventAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *EventAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *EventAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *EventAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *EventAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *EventAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *EventAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *EventAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *EventAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *EventAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *EventAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *EventAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *EventAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *EventAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *EventAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *EventAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *EventAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *EventAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ExternalAttributes.md b/docs/tools/sdk/go/Reference/Beta/Models/ExternalAttributes.md deleted file mode 100644 index 6eae2d03f..000000000 --- a/docs/tools/sdk/go/Reference/Beta/Models/ExternalAttributes.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -id: beta-external-attributes -title: ExternalAttributes -pagination_label: ExternalAttributes -sidebar_label: ExternalAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ExternalAttributes', 'BetaExternalAttributes'] -slug: /tools/sdk/go/beta/models/external-attributes -tags: ['SDK', 'Software Development Kit', 'ExternalAttributes', 'BetaExternalAttributes'] ---- - -# ExternalAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] - -## Methods - -### NewExternalAttributes - -`func NewExternalAttributes() *ExternalAttributes` - -NewExternalAttributes instantiates a new ExternalAttributes 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 - -### NewExternalAttributesWithDefaults - -`func NewExternalAttributesWithDefaults() *ExternalAttributes` - -NewExternalAttributesWithDefaults instantiates a new ExternalAttributes 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 - -### GetName - -`func (o *ExternalAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ExternalAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *ExternalAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ExternalAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *ExternalAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *ExternalAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetDescription - -`func (o *ExternalAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ExternalAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *ExternalAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ExternalAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *ExternalAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *ExternalAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetClientId - -`func (o *ExternalAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ExternalAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ExternalAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ExternalAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *ExternalAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *ExternalAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *ExternalAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *ExternalAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *ExternalAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *ExternalAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *ExternalAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *ExternalAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/Beta/Models/FormDefinitionResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/FormDefinitionResponse.md index 2fad67a37..c8dda7565 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/FormDefinitionResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/FormDefinitionResponse.md @@ -23,8 +23,8 @@ Name | Type | Description | Notes **FormInput** | Pointer to [**[]FormDefinitionInput**](form-definition-input) | List of form inputs required to create a form-instance object. | [optional] **FormElements** | Pointer to [**[]FormElement**](form-element) | List of nested form elements. | [optional] **FormConditions** | Pointer to [**[]FormCondition**](form-condition) | Conditional logic that can dynamically modify the form as the recipient is interacting with it. | [optional] -**Created** | Pointer to **time.Time** | Created is the date the form definition was created | [optional] -**Modified** | Pointer to **time.Time** | Modified is the last date the form definition was modified | [optional] +**Created** | Pointer to **SailPointTime** | Created is the date the form definition was created | [optional] +**Modified** | Pointer to **SailPointTime** | Modified is the last date the form definition was modified | [optional] ## Methods @@ -247,20 +247,20 @@ HasFormConditions returns a boolean if a field has been set. ### GetCreated -`func (o *FormDefinitionResponse) GetCreated() time.Time` +`func (o *FormDefinitionResponse) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *FormDefinitionResponse) GetCreatedOk() (*time.Time, bool)` +`func (o *FormDefinitionResponse) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *FormDefinitionResponse) SetCreated(v time.Time)` +`func (o *FormDefinitionResponse) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -272,20 +272,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *FormDefinitionResponse) GetModified() time.Time` +`func (o *FormDefinitionResponse) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *FormDefinitionResponse) GetModifiedOk() (*time.Time, bool)` +`func (o *FormDefinitionResponse) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *FormDefinitionResponse) SetModified(v time.Time)` +`func (o *FormDefinitionResponse) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/FormInstanceResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/FormInstanceResponse.md index 1e951fec2..081b29030 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/FormInstanceResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/FormInstanceResponse.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'FormInstanceResponse', 'BetaFormInsta Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Created** | Pointer to **time.Time** | Created is the date the form instance was assigned | [optional] +**Created** | Pointer to **SailPointTime** | Created is the date the form instance was assigned | [optional] **CreatedBy** | Pointer to [**FormInstanceCreatedBy**](form-instance-created-by) | | [optional] **Expire** | Pointer to **string** | Expire is the maximum amount of time that a form can be in progress. After this time is reached then the form will be moved to a CANCELED state automatically. The user will no longer be able to complete the submission. When a form instance is expires an audit log will be generated for that record | [optional] **FormConditions** | Pointer to [**[]FormCondition**](form-condition) | FormConditions is the conditional logic that modify the form dynamically modify the form as the recipient is interacting out the form | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes **FormErrors** | Pointer to [**[]FormError**](form-error) | FormErrors is an array of form validation errors from the last time the form instance was transitioned to the SUBMITTED state. If the form instance had validation errors then it would be moved to the IN PROGRESS state where the client can retrieve these errors | [optional] **FormInput** | Pointer to **map[string]map[string]interface{}** | FormInput is an object of form input labels to value | [optional] **Id** | Pointer to **string** | Unique guid identifying this form instance | [optional] -**Modified** | Pointer to **time.Time** | Modified is the last date the form instance was modified | [optional] +**Modified** | Pointer to **SailPointTime** | Modified is the last date the form instance was modified | [optional] **Recipients** | Pointer to [**[]FormInstanceRecipient**](form-instance-recipient) | Recipients references to the recipient of a form. The recipients are those who are responsible for filling out a form and completing it | [optional] **StandAloneForm** | Pointer to **bool** | StandAloneForm is a boolean flag to indicate if this form should be available for users to complete via the standalone form UI or should this only be available to be completed by as an embedded form | [optional] [default to false] **StandAloneFormUrl** | Pointer to **string** | StandAloneFormURL is the URL where this form may be completed by the designated recipients using the standalone form UI | [optional] @@ -52,20 +52,20 @@ but it doesn't guarantee that properties required by API are set ### GetCreated -`func (o *FormInstanceResponse) GetCreated() time.Time` +`func (o *FormInstanceResponse) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *FormInstanceResponse) GetCreatedOk() (*time.Time, bool)` +`func (o *FormInstanceResponse) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *FormInstanceResponse) SetCreated(v time.Time)` +`func (o *FormInstanceResponse) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -322,20 +322,20 @@ HasId returns a boolean if a field has been set. ### GetModified -`func (o *FormInstanceResponse) GetModified() time.Time` +`func (o *FormInstanceResponse) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *FormInstanceResponse) GetModifiedOk() (*time.Time, bool)` +`func (o *FormInstanceResponse) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *FormInstanceResponse) SetModified(v time.Time)` +`func (o *FormInstanceResponse) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/FullDiscoveredApplications.md b/docs/tools/sdk/go/Reference/Beta/Models/FullDiscoveredApplications.md index 3f0eef711..d35487d96 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/FullDiscoveredApplications.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/FullDiscoveredApplications.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **DiscoveredVendor** | Pointer to **string** | The vendor associated with the discovered application. | [optional] **Description** | Pointer to **string** | A brief description of the discovered application. | [optional] **RecommendedConnectors** | Pointer to **[]string** | List of recommended connectors for the application. | [optional] -**DiscoveredAt** | Pointer to **time.Time** | The timestamp when the application was last received via an entitlement aggregation invocation or a manual csv upload, in ISO 8601 format. | [optional] -**CreatedAt** | Pointer to **time.Time** | The timestamp when the application was first discovered, in ISO 8601 format. | [optional] +**DiscoveredAt** | Pointer to **SailPointTime** | The timestamp when the application was last received via an entitlement aggregation invocation or a manual csv upload, in ISO 8601 format. | [optional] +**CreatedAt** | Pointer to **SailPointTime** | The timestamp when the application was first discovered, in ISO 8601 format. | [optional] **Status** | Pointer to **string** | The status of an application within the discovery source. By default this field is set to \"ACTIVE\" when the application is discovered. If an application has been deleted from within the discovery source, the status will be set to \"INACTIVE\". | [optional] **AssociatedSources** | Pointer to **[]string** | List of associated sources related to this discovered application. | [optional] @@ -197,20 +197,20 @@ HasRecommendedConnectors returns a boolean if a field has been set. ### GetDiscoveredAt -`func (o *FullDiscoveredApplications) GetDiscoveredAt() time.Time` +`func (o *FullDiscoveredApplications) GetDiscoveredAt() SailPointTime` GetDiscoveredAt returns the DiscoveredAt field if non-nil, zero value otherwise. ### GetDiscoveredAtOk -`func (o *FullDiscoveredApplications) GetDiscoveredAtOk() (*time.Time, bool)` +`func (o *FullDiscoveredApplications) GetDiscoveredAtOk() (*SailPointTime, bool)` GetDiscoveredAtOk returns a tuple with the DiscoveredAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDiscoveredAt -`func (o *FullDiscoveredApplications) SetDiscoveredAt(v time.Time)` +`func (o *FullDiscoveredApplications) SetDiscoveredAt(v SailPointTime)` SetDiscoveredAt sets DiscoveredAt field to given value. @@ -222,20 +222,20 @@ HasDiscoveredAt returns a boolean if a field has been set. ### GetCreatedAt -`func (o *FullDiscoveredApplications) GetCreatedAt() time.Time` +`func (o *FullDiscoveredApplications) GetCreatedAt() SailPointTime` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *FullDiscoveredApplications) GetCreatedAtOk() (*time.Time, bool)` +`func (o *FullDiscoveredApplications) GetCreatedAtOk() (*SailPointTime, bool)` GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedAt -`func (o *FullDiscoveredApplications) SetCreatedAt(v time.Time)` +`func (o *FullDiscoveredApplications) SetCreatedAt(v SailPointTime)` SetCreatedAt sets CreatedAt field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Fullcampaign.md b/docs/tools/sdk/go/Reference/Beta/Models/Fullcampaign.md index 4a424f109..83cd5b7af 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Fullcampaign.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Fullcampaign.md @@ -18,18 +18,18 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Id of the campaign | [optional] [readonly] **Name** | **string** | The campaign name. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | **Description** | **string** | The campaign description. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | -**Deadline** | Pointer to **time.Time** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] +**Deadline** | Pointer to **SailPointTime** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] **Type** | **string** | The type of campaign. Could be extended in the future. | **EmailNotificationEnabled** | Pointer to **bool** | Enables email notification for this campaign | [optional] [default to false] **AutoRevokeAllowed** | Pointer to **bool** | Allows auto revoke for this campaign | [optional] [default to false] **RecommendationsEnabled** | Pointer to **bool** | Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future. | [optional] [default to false] **Status** | Pointer to **string** | The campaign's current status. | [optional] [readonly] **CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] -**Created** | Pointer to **time.Time** | Created time of the campaign | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Created time of the campaign | [optional] [readonly] **TotalCertifications** | Pointer to **int32** | The total number of certifications in this campaign. | [optional] [readonly] **CompletedCertifications** | Pointer to **int32** | The number of completed certifications in this campaign. | [optional] [readonly] **Alerts** | Pointer to [**[]CampaignAlert**](campaign-alert) | A list of errors and warnings that have accumulated. | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Modified time of the campaign | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Modified time of the campaign | [optional] [readonly] **Filter** | Pointer to [**FullcampaignAllOfFilter**](fullcampaign-all-of-filter) | | [optional] **SunsetCommentsRequired** | Pointer to **bool** | Determines if comments on sunset date changes are required. | [optional] [default to true] **SourceOwnerCampaignInfo** | Pointer to [**FullcampaignAllOfSourceOwnerCampaignInfo**](fullcampaign-all-of-source-owner-campaign-info) | | [optional] @@ -125,20 +125,20 @@ SetDescription sets Description field to given value. ### GetDeadline -`func (o *Fullcampaign) GetDeadline() time.Time` +`func (o *Fullcampaign) GetDeadline() SailPointTime` GetDeadline returns the Deadline field if non-nil, zero value otherwise. ### GetDeadlineOk -`func (o *Fullcampaign) GetDeadlineOk() (*time.Time, bool)` +`func (o *Fullcampaign) GetDeadlineOk() (*SailPointTime, bool)` GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeadline -`func (o *Fullcampaign) SetDeadline(v time.Time)` +`func (o *Fullcampaign) SetDeadline(v SailPointTime)` SetDeadline sets Deadline field to given value. @@ -295,20 +295,20 @@ HasCorrelatedStatus returns a boolean if a field has been set. ### GetCreated -`func (o *Fullcampaign) GetCreated() time.Time` +`func (o *Fullcampaign) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Fullcampaign) GetCreatedOk() (*time.Time, bool)` +`func (o *Fullcampaign) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Fullcampaign) SetCreated(v time.Time)` +`func (o *Fullcampaign) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -395,20 +395,20 @@ HasAlerts returns a boolean if a field has been set. ### GetModified -`func (o *Fullcampaign) GetModified() time.Time` +`func (o *Fullcampaign) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Fullcampaign) GetModifiedOk() (*time.Time, bool)` +`func (o *Fullcampaign) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Fullcampaign) SetModified(v time.Time)` +`func (o *Fullcampaign) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/GetActiveCampaigns200ResponseInner.md b/docs/tools/sdk/go/Reference/Beta/Models/GetActiveCampaigns200ResponseInner.md index aee94ff62..2dd411e2c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/GetActiveCampaigns200ResponseInner.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/GetActiveCampaigns200ResponseInner.md @@ -18,18 +18,18 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Id of the campaign | [optional] [readonly] **Name** | **string** | The campaign name. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | **Description** | **string** | The campaign description. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | -**Deadline** | Pointer to **time.Time** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] +**Deadline** | Pointer to **SailPointTime** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] **Type** | **string** | The type of campaign. Could be extended in the future. | **EmailNotificationEnabled** | Pointer to **bool** | Enables email notification for this campaign | [optional] [default to false] **AutoRevokeAllowed** | Pointer to **bool** | Allows auto revoke for this campaign | [optional] [default to false] **RecommendationsEnabled** | Pointer to **bool** | Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future. | [optional] [default to false] **Status** | Pointer to **string** | The campaign's current status. | [optional] [readonly] -**CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] -**Created** | Pointer to **time.Time** | Created time of the campaign | [optional] [readonly] +**CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] +**Created** | Pointer to **SailPointTime** | Created time of the campaign | [optional] [readonly] **TotalCertifications** | Pointer to **int32** | The total number of certifications in this campaign. | [optional] [readonly] **CompletedCertifications** | Pointer to **int32** | The number of completed certifications in this campaign. | [optional] [readonly] **Alerts** | Pointer to [**[]CampaignAlert**](campaign-alert) | A list of errors and warnings that have accumulated. | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Modified time of the campaign | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Modified time of the campaign | [optional] [readonly] **Filter** | Pointer to [**FullcampaignAllOfFilter**](fullcampaign-all-of-filter) | | [optional] **SunsetCommentsRequired** | Pointer to **bool** | Determines if comments on sunset date changes are required. | [optional] [default to true] **SourceOwnerCampaignInfo** | Pointer to [**FullcampaignAllOfSourceOwnerCampaignInfo**](fullcampaign-all-of-source-owner-campaign-info) | | [optional] @@ -125,20 +125,20 @@ SetDescription sets Description field to given value. ### GetDeadline -`func (o *GetActiveCampaigns200ResponseInner) GetDeadline() time.Time` +`func (o *GetActiveCampaigns200ResponseInner) GetDeadline() SailPointTime` GetDeadline returns the Deadline field if non-nil, zero value otherwise. ### GetDeadlineOk -`func (o *GetActiveCampaigns200ResponseInner) GetDeadlineOk() (*time.Time, bool)` +`func (o *GetActiveCampaigns200ResponseInner) GetDeadlineOk() (*SailPointTime, bool)` GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeadline -`func (o *GetActiveCampaigns200ResponseInner) SetDeadline(v time.Time)` +`func (o *GetActiveCampaigns200ResponseInner) SetDeadline(v SailPointTime)` SetDeadline sets Deadline field to given value. @@ -295,20 +295,20 @@ HasCorrelatedStatus returns a boolean if a field has been set. ### GetCreated -`func (o *GetActiveCampaigns200ResponseInner) GetCreated() time.Time` +`func (o *GetActiveCampaigns200ResponseInner) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *GetActiveCampaigns200ResponseInner) GetCreatedOk() (*time.Time, bool)` +`func (o *GetActiveCampaigns200ResponseInner) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *GetActiveCampaigns200ResponseInner) SetCreated(v time.Time)` +`func (o *GetActiveCampaigns200ResponseInner) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -395,20 +395,20 @@ HasAlerts returns a boolean if a field has been set. ### GetModified -`func (o *GetActiveCampaigns200ResponseInner) GetModified() time.Time` +`func (o *GetActiveCampaigns200ResponseInner) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *GetActiveCampaigns200ResponseInner) GetModifiedOk() (*time.Time, bool)` +`func (o *GetActiveCampaigns200ResponseInner) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *GetActiveCampaigns200ResponseInner) SetModified(v time.Time)` +`func (o *GetActiveCampaigns200ResponseInner) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/GetDiscoveredApplications200ResponseInner.md b/docs/tools/sdk/go/Reference/Beta/Models/GetDiscoveredApplications200ResponseInner.md index 1edf7a540..4ee2e61f1 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/GetDiscoveredApplications200ResponseInner.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/GetDiscoveredApplications200ResponseInner.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **DiscoveredVendor** | Pointer to **string** | The vendor associated with the discovered application. | [optional] **Description** | Pointer to **string** | A brief description of the discovered application. | [optional] **RecommendedConnectors** | Pointer to **[]string** | List of recommended connectors for the application. | [optional] -**DiscoveredAt** | Pointer to **time.Time** | The timestamp when the application was last received via an entitlement aggregation invocation or a manual csv upload, in ISO 8601 format. | [optional] -**CreatedAt** | Pointer to **time.Time** | The timestamp when the application was first discovered, in ISO 8601 format. | [optional] +**DiscoveredAt** | Pointer to **SailPointTime** | The timestamp when the application was last received via an entitlement aggregation invocation or a manual csv upload, in ISO 8601 format. | [optional] +**CreatedAt** | Pointer to **SailPointTime** | The timestamp when the application was first discovered, in ISO 8601 format. | [optional] **Status** | Pointer to **string** | The status of an application within the discovery source. By default this field is set to \"ACTIVE\" when the application is discovered. If an application has been deleted from within the discovery source, the status will be set to \"INACTIVE\". | [optional] **AssociatedSources** | Pointer to **[]string** | List of associated sources related to this discovered application. | [optional] @@ -197,20 +197,20 @@ HasRecommendedConnectors returns a boolean if a field has been set. ### GetDiscoveredAt -`func (o *GetDiscoveredApplications200ResponseInner) GetDiscoveredAt() time.Time` +`func (o *GetDiscoveredApplications200ResponseInner) GetDiscoveredAt() SailPointTime` GetDiscoveredAt returns the DiscoveredAt field if non-nil, zero value otherwise. ### GetDiscoveredAtOk -`func (o *GetDiscoveredApplications200ResponseInner) GetDiscoveredAtOk() (*time.Time, bool)` +`func (o *GetDiscoveredApplications200ResponseInner) GetDiscoveredAtOk() (*SailPointTime, bool)` GetDiscoveredAtOk returns a tuple with the DiscoveredAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDiscoveredAt -`func (o *GetDiscoveredApplications200ResponseInner) SetDiscoveredAt(v time.Time)` +`func (o *GetDiscoveredApplications200ResponseInner) SetDiscoveredAt(v SailPointTime)` SetDiscoveredAt sets DiscoveredAt field to given value. @@ -222,20 +222,20 @@ HasDiscoveredAt returns a boolean if a field has been set. ### GetCreatedAt -`func (o *GetDiscoveredApplications200ResponseInner) GetCreatedAt() time.Time` +`func (o *GetDiscoveredApplications200ResponseInner) GetCreatedAt() SailPointTime` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *GetDiscoveredApplications200ResponseInner) GetCreatedAtOk() (*time.Time, bool)` +`func (o *GetDiscoveredApplications200ResponseInner) GetCreatedAtOk() (*SailPointTime, bool)` GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedAt -`func (o *GetDiscoveredApplications200ResponseInner) SetCreatedAt(v time.Time)` +`func (o *GetDiscoveredApplications200ResponseInner) SetCreatedAt(v SailPointTime)` SetCreatedAt sets CreatedAt field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/GetOAuthClientResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/GetOAuthClientResponse.md index d5662df51..1ba66f6ea 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/GetOAuthClientResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/GetOAuthClientResponse.md @@ -30,8 +30,8 @@ Name | Type | Description | Notes **Enabled** | **bool** | An indicator of whether the API Client is enabled for use | **StrongAuthSupported** | **bool** | An indicator of whether the API Client supports strong authentication | **ClaimsSupported** | **bool** | An indicator of whether the API Client supports the serialization of SAML claims when used with the authorization_code flow | -**Created** | **time.Time** | The date and time, down to the millisecond, when the API Client was created | -**Modified** | **time.Time** | The date and time, down to the millisecond, when the API Client was last updated | +**Created** | **SailPointTime** | The date and time, down to the millisecond, when the API Client was created | +**Modified** | **SailPointTime** | The date and time, down to the millisecond, when the API Client was last updated | **Secret** | Pointer to **NullableString** | | [optional] **Metadata** | Pointer to **NullableString** | | [optional] **LastUsed** | Pointer to **NullableTime** | The date and time, down to the millisecond, when this API Client was last used to generate an access token. This timestamp does not get updated on every API Client usage, but only once a day. This property can be useful for identifying which API Clients are no longer actively used and can be removed. | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewGetOAuthClientResponse -`func NewGetOAuthClientResponse(id string, businessName NullableString, homepageUrl NullableString, name string, description NullableString, accessTokenValiditySeconds int32, refreshTokenValiditySeconds int32, redirectUris []string, grantTypes []GrantType, accessType AccessType, type_ ClientType, internal bool, enabled bool, strongAuthSupported bool, claimsSupported bool, created time.Time, modified time.Time, scope []string, ) *GetOAuthClientResponse` +`func NewGetOAuthClientResponse(id string, businessName NullableString, homepageUrl NullableString, name string, description NullableString, accessTokenValiditySeconds int32, refreshTokenValiditySeconds int32, redirectUris []string, grantTypes []GrantType, accessType AccessType, type_ ClientType, internal bool, enabled bool, strongAuthSupported bool, claimsSupported bool, created SailPointTime, modified SailPointTime, scope []string, ) *GetOAuthClientResponse` NewGetOAuthClientResponse instantiates a new GetOAuthClientResponse object This constructor will assign default values to properties that have it defined, @@ -398,40 +398,40 @@ SetClaimsSupported sets ClaimsSupported field to given value. ### GetCreated -`func (o *GetOAuthClientResponse) GetCreated() time.Time` +`func (o *GetOAuthClientResponse) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *GetOAuthClientResponse) GetCreatedOk() (*time.Time, bool)` +`func (o *GetOAuthClientResponse) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *GetOAuthClientResponse) SetCreated(v time.Time)` +`func (o *GetOAuthClientResponse) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *GetOAuthClientResponse) GetModified() time.Time` +`func (o *GetOAuthClientResponse) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *GetOAuthClientResponse) GetModifiedOk() (*time.Time, bool)` +`func (o *GetOAuthClientResponse) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *GetOAuthClientResponse) SetModified(v time.Time)` +`func (o *GetOAuthClientResponse) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -508,20 +508,20 @@ HasMetadata returns a boolean if a field has been set. UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil ### GetLastUsed -`func (o *GetOAuthClientResponse) GetLastUsed() time.Time` +`func (o *GetOAuthClientResponse) GetLastUsed() SailPointTime` GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. ### GetLastUsedOk -`func (o *GetOAuthClientResponse) GetLastUsedOk() (*time.Time, bool)` +`func (o *GetOAuthClientResponse) GetLastUsedOk() (*SailPointTime, bool)` GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastUsed -`func (o *GetOAuthClientResponse) SetLastUsed(v time.Time)` +`func (o *GetOAuthClientResponse) SetLastUsed(v SailPointTime)` SetLastUsed sets LastUsed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/GetPersonalAccessTokenResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/GetPersonalAccessTokenResponse.md index dac2876ab..fd7d7cd15 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/GetPersonalAccessTokenResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/GetPersonalAccessTokenResponse.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **Name** | **string** | The name of the personal access token. Cannot be the same as other personal access tokens owned by a user. | **Scope** | **[]string** | Scopes of the personal access token. | **Owner** | [**PatOwner**](pat-owner) | | -**Created** | **time.Time** | The date and time, down to the millisecond, when this personal access token was created. | +**Created** | **SailPointTime** | The date and time, down to the millisecond, when this personal access token was created. | **LastUsed** | Pointer to **NullableTime** | The date and time, down to the millisecond, when this personal access token was last used to generate an access token. This timestamp does not get updated on every PAT usage, but only once a day. This property can be useful for identifying which PATs are no longer actively used and can be removed. | [optional] **Managed** | Pointer to **bool** | If true, this token is managed by the SailPoint platform, and is not visible in the user interface. For example, Workflows will create managed personal access tokens for users who create workflows. | [optional] [default to false] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewGetPersonalAccessTokenResponse -`func NewGetPersonalAccessTokenResponse(id string, name string, scope []string, owner PatOwner, created time.Time, ) *GetPersonalAccessTokenResponse` +`func NewGetPersonalAccessTokenResponse(id string, name string, scope []string, owner PatOwner, created SailPointTime, ) *GetPersonalAccessTokenResponse` NewGetPersonalAccessTokenResponse instantiates a new GetPersonalAccessTokenResponse object This constructor will assign default values to properties that have it defined, @@ -134,40 +134,40 @@ SetOwner sets Owner field to given value. ### GetCreated -`func (o *GetPersonalAccessTokenResponse) GetCreated() time.Time` +`func (o *GetPersonalAccessTokenResponse) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *GetPersonalAccessTokenResponse) GetCreatedOk() (*time.Time, bool)` +`func (o *GetPersonalAccessTokenResponse) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *GetPersonalAccessTokenResponse) SetCreated(v time.Time)` +`func (o *GetPersonalAccessTokenResponse) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetLastUsed -`func (o *GetPersonalAccessTokenResponse) GetLastUsed() time.Time` +`func (o *GetPersonalAccessTokenResponse) GetLastUsed() SailPointTime` GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. ### GetLastUsedOk -`func (o *GetPersonalAccessTokenResponse) GetLastUsedOk() (*time.Time, bool)` +`func (o *GetPersonalAccessTokenResponse) GetLastUsedOk() (*SailPointTime, bool)` GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastUsed -`func (o *GetPersonalAccessTokenResponse) SetLastUsed(v time.Time)` +`func (o *GetPersonalAccessTokenResponse) SetLastUsed(v SailPointTime)` SetLastUsed sets LastUsed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Identity.md b/docs/tools/sdk/go/Reference/Beta/Models/Identity.md index c18cec864..011617ef8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Identity.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Identity.md @@ -17,15 +17,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the identity | [optional] [readonly] **Name** | **string** | The identity's name is equivalent to its Display Name attribute. | -**Created** | Pointer to **time.Time** | Creation date of the identity | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the identity | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the identity | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the identity | [optional] [readonly] **Alias** | Pointer to **string** | The identity's alternate unique identifier is equivalent to its Account Name on the authoritative source account schema. | [optional] **EmailAddress** | Pointer to **NullableString** | The email address of the identity | [optional] **ProcessingState** | Pointer to **NullableString** | The processing state of the identity | [optional] **IdentityStatus** | Pointer to **string** | The identity's status in the system | [optional] **ManagerRef** | Pointer to [**NullableIdentityManagerRef**](identity-manager-ref) | | [optional] **IsManager** | Pointer to **bool** | Whether this identity is a manager of another identity | [optional] [default to false] -**LastRefresh** | Pointer to **time.Time** | The last time the identity was refreshed by the system | [optional] +**LastRefresh** | Pointer to **SailPointTime** | The last time the identity was refreshed by the system | [optional] **Attributes** | Pointer to **map[string]interface{}** | A map with the identity attributes for the identity | [optional] **LifecycleState** | Pointer to [**IdentityLifecycleState**](identity-lifecycle-state) | | [optional] @@ -95,20 +95,20 @@ SetName sets Name field to given value. ### GetCreated -`func (o *Identity) GetCreated() time.Time` +`func (o *Identity) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Identity) GetCreatedOk() (*time.Time, bool)` +`func (o *Identity) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Identity) SetCreated(v time.Time)` +`func (o *Identity) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -120,20 +120,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *Identity) GetModified() time.Time` +`func (o *Identity) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Identity) GetModifiedOk() (*time.Time, bool)` +`func (o *Identity) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Identity) SetModified(v time.Time)` +`func (o *Identity) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -325,20 +325,20 @@ HasIsManager returns a boolean if a field has been set. ### GetLastRefresh -`func (o *Identity) GetLastRefresh() time.Time` +`func (o *Identity) GetLastRefresh() SailPointTime` GetLastRefresh returns the LastRefresh field if non-nil, zero value otherwise. ### GetLastRefreshOk -`func (o *Identity) GetLastRefreshOk() (*time.Time, bool)` +`func (o *Identity) GetLastRefreshOk() (*SailPointTime, bool)` GetLastRefreshOk returns a tuple with the LastRefresh field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastRefresh -`func (o *Identity) SetLastRefresh(v time.Time)` +`func (o *Identity) SetLastRefresh(v SailPointTime)` SetLastRefresh sets LastRefresh field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile.md b/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile.md index f7c27be0f..0a16822b6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the Object | [optional] [readonly] **Name** | **NullableString** | Name of the Object | -**Created** | Pointer to **time.Time** | Creation date of the Object | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the Object | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the Object | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the Object | [optional] [readonly] **Description** | Pointer to **NullableString** | Identity profile's description. | [optional] **Owner** | Pointer to [**NullableIdentityProfileAllOfOwner**](identity-profile-all-of-owner) | | [optional] **Priority** | Pointer to **int64** | Identity profile's priority. | [optional] @@ -105,20 +105,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCreated -`func (o *IdentityProfile) GetCreated() time.Time` +`func (o *IdentityProfile) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *IdentityProfile) GetCreatedOk() (*time.Time, bool)` +`func (o *IdentityProfile) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *IdentityProfile) SetCreated(v time.Time)` +`func (o *IdentityProfile) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -130,20 +130,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *IdentityProfile) GetModified() time.Time` +`func (o *IdentityProfile) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *IdentityProfile) GetModifiedOk() (*time.Time, bool)` +`func (o *IdentityProfile) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *IdentityProfile) SetModified(v time.Time)` +`func (o *IdentityProfile) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile1.md b/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile1.md index 20466aa00..bd4f85c50 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile1.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/IdentityProfile1.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the Object | [optional] [readonly] **Name** | **NullableString** | Name of the Object | -**Created** | Pointer to **time.Time** | Creation date of the Object | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the Object | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the Object | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the Object | [optional] [readonly] **Description** | Pointer to **NullableString** | Identity profile's description. | [optional] **Owner** | Pointer to [**NullableIdentityProfileAllOfOwner**](identity-profile-all-of-owner) | | [optional] **Priority** | Pointer to **int64** | Identity profile's priority. | [optional] @@ -105,20 +105,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCreated -`func (o *IdentityProfile1) GetCreated() time.Time` +`func (o *IdentityProfile1) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *IdentityProfile1) GetCreatedOk() (*time.Time, bool)` +`func (o *IdentityProfile1) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *IdentityProfile1) SetCreated(v time.Time)` +`func (o *IdentityProfile1) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -130,20 +130,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *IdentityProfile1) GetModified() time.Time` +`func (o *IdentityProfile1) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *IdentityProfile1) GetModifiedOk() (*time.Time, bool)` +`func (o *IdentityProfile1) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *IdentityProfile1) SetModified(v time.Time)` +`func (o *IdentityProfile1) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/InvocationStatus.md b/docs/tools/sdk/go/Reference/Beta/Models/InvocationStatus.md index 7982135ac..dbbfa0bba 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/InvocationStatus.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/InvocationStatus.md @@ -20,8 +20,8 @@ Name | Type | Description | Notes **SubscriptionName** | **string** | Subscription name | **SubscriptionId** | **string** | Subscription ID | **Type** | [**InvocationStatusType**](invocation-status-type) | | -**Created** | **time.Time** | Invocation created timestamp. ISO-8601 in UTC. | -**Completed** | Pointer to **time.Time** | Invocation completed timestamp; empty fields imply invocation is in-flight or not completed. ISO-8601 in UTC. | [optional] +**Created** | **SailPointTime** | Invocation created timestamp. ISO-8601 in UTC. | +**Completed** | Pointer to **SailPointTime** | Invocation completed timestamp; empty fields imply invocation is in-flight or not completed. ISO-8601 in UTC. | [optional] **StartInvocationInput** | [**StartInvocationInput**](start-invocation-input) | | **CompleteInvocationInput** | Pointer to [**CompleteInvocationInput**](complete-invocation-input) | | [optional] @@ -29,7 +29,7 @@ Name | Type | Description | Notes ### NewInvocationStatus -`func NewInvocationStatus(id string, triggerId string, subscriptionName string, subscriptionId string, type_ InvocationStatusType, created time.Time, startInvocationInput StartInvocationInput, ) *InvocationStatus` +`func NewInvocationStatus(id string, triggerId string, subscriptionName string, subscriptionId string, type_ InvocationStatusType, created SailPointTime, startInvocationInput StartInvocationInput, ) *InvocationStatus` NewInvocationStatus instantiates a new InvocationStatus object This constructor will assign default values to properties that have it defined, @@ -146,40 +146,40 @@ SetType sets Type field to given value. ### GetCreated -`func (o *InvocationStatus) GetCreated() time.Time` +`func (o *InvocationStatus) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *InvocationStatus) GetCreatedOk() (*time.Time, bool)` +`func (o *InvocationStatus) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *InvocationStatus) SetCreated(v time.Time)` +`func (o *InvocationStatus) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetCompleted -`func (o *InvocationStatus) GetCompleted() time.Time` +`func (o *InvocationStatus) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *InvocationStatus) GetCompletedOk() (*time.Time, bool)` +`func (o *InvocationStatus) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *InvocationStatus) SetCompleted(v time.Time)` +`func (o *InvocationStatus) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/LatestOutlierSummary.md b/docs/tools/sdk/go/Reference/Beta/Models/LatestOutlierSummary.md index f53ebc38e..106618e7b 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/LatestOutlierSummary.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/LatestOutlierSummary.md @@ -16,7 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'LatestOutlierSummary', 'BetaLatestOut Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | The type of outlier summary | [optional] -**SnapshotDate** | Pointer to **time.Time** | The date the bulk outlier detection ran/snapshot was created | [optional] +**SnapshotDate** | Pointer to **SailPointTime** | The date the bulk outlier detection ran/snapshot was created | [optional] **TotalOutliers** | Pointer to **int32** | Total number of outliers for the customer making the request | [optional] **TotalIdentities** | Pointer to **int32** | Total number of identities for the customer making the request | [optional] **TotalIgnored** | Pointer to **int32** | Total number of ignored outliers | [optional] @@ -67,20 +67,20 @@ HasType returns a boolean if a field has been set. ### GetSnapshotDate -`func (o *LatestOutlierSummary) GetSnapshotDate() time.Time` +`func (o *LatestOutlierSummary) GetSnapshotDate() SailPointTime` GetSnapshotDate returns the SnapshotDate field if non-nil, zero value otherwise. ### GetSnapshotDateOk -`func (o *LatestOutlierSummary) GetSnapshotDateOk() (*time.Time, bool)` +`func (o *LatestOutlierSummary) GetSnapshotDateOk() (*SailPointTime, bool)` GetSnapshotDateOk returns a tuple with the SnapshotDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSnapshotDate -`func (o *LatestOutlierSummary) SetSnapshotDate(v time.Time)` +`func (o *LatestOutlierSummary) SetSnapshotDate(v SailPointTime)` SetSnapshotDate sets SnapshotDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Launcher.md b/docs/tools/sdk/go/Reference/Beta/Models/Launcher.md index 26193068c..70b93ed1f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Launcher.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Launcher.md @@ -16,8 +16,8 @@ tags: ['SDK', 'Software Development Kit', 'Launcher', 'BetaLauncher'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | ID of the Launcher | -**Created** | **time.Time** | Date the Launcher was created | -**Modified** | **time.Time** | Date the Launcher was last modified | +**Created** | **SailPointTime** | Date the Launcher was created | +**Modified** | **SailPointTime** | Date the Launcher was last modified | **Owner** | [**LauncherOwner**](launcher-owner) | | **Name** | **string** | Name of the Launcher, limited to 255 characters | **Description** | **string** | Description of the Launcher, limited to 2000 characters | @@ -30,7 +30,7 @@ Name | Type | Description | Notes ### NewLauncher -`func NewLauncher(id string, created time.Time, modified time.Time, owner LauncherOwner, name string, description string, type_ string, disabled bool, config string, ) *Launcher` +`func NewLauncher(id string, created SailPointTime, modified SailPointTime, owner LauncherOwner, name string, description string, type_ string, disabled bool, config string, ) *Launcher` NewLauncher instantiates a new Launcher object This constructor will assign default values to properties that have it defined, @@ -67,40 +67,40 @@ SetId sets Id field to given value. ### GetCreated -`func (o *Launcher) GetCreated() time.Time` +`func (o *Launcher) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Launcher) GetCreatedOk() (*time.Time, bool)` +`func (o *Launcher) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Launcher) SetCreated(v time.Time)` +`func (o *Launcher) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *Launcher) GetModified() time.Time` +`func (o *Launcher) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Launcher) GetModifiedOk() (*time.Time, bool)` +`func (o *Launcher) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Launcher) SetModified(v time.Time)` +`func (o *Launcher) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/LifecycleState.md b/docs/tools/sdk/go/Reference/Beta/Models/LifecycleState.md index 0db9556f3..c172ce042 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/LifecycleState.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/LifecycleState.md @@ -19,8 +19,8 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | Lifecycle state name. | [optional] [readonly] **TechnicalName** | Pointer to **string** | Lifecycle state technical name. This is for internal use. | [optional] [readonly] **Description** | Pointer to **string** | Lifecycle state description. | [optional] -**Created** | Pointer to **time.Time** | Lifecycle state created date. | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Lifecycle state modified date. | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Lifecycle state created date. | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Lifecycle state modified date. | [optional] [readonly] **Enabled** | Pointer to **bool** | Indicates whether the lifecycle state is enabled or disabled. | [optional] [default to false] **IdentityCount** | Pointer to **int32** | Number of identities that have the lifecycle state. | [optional] [readonly] **EmailNotificationOption** | Pointer to [**EmailNotificationOption**](email-notification-option) | | [optional] @@ -148,20 +148,20 @@ HasDescription returns a boolean if a field has been set. ### GetCreated -`func (o *LifecycleState) GetCreated() time.Time` +`func (o *LifecycleState) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *LifecycleState) GetCreatedOk() (*time.Time, bool)` +`func (o *LifecycleState) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *LifecycleState) SetCreated(v time.Time)` +`func (o *LifecycleState) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -173,20 +173,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *LifecycleState) GetModified() time.Time` +`func (o *LifecycleState) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *LifecycleState) GetModifiedOk() (*time.Time, bool)` +`func (o *LifecycleState) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *LifecycleState) SetModified(v time.Time)` +`func (o *LifecycleState) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ListCompleteWorkflowLibrary200ResponseInner.md b/docs/tools/sdk/go/Reference/Beta/Models/ListCompleteWorkflowLibrary200ResponseInner.md index 608118f8d..76ba7bf60 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ListCompleteWorkflowLibrary200ResponseInner.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ListCompleteWorkflowLibrary200ResponseInner.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **FormFields** | Pointer to [**[]WorkflowLibraryFormFields**](workflow-library-form-fields) | One or more inputs that the operator accepts | [optional] **ExampleOutput** | Pointer to [**WorkflowLibraryActionExampleOutput**](workflow-library-action-example-output) | | [optional] **Deprecated** | Pointer to **bool** | | [optional] -**DeprecatedBy** | Pointer to **time.Time** | | [optional] +**DeprecatedBy** | Pointer to **SailPointTime** | | [optional] **VersionNumber** | Pointer to **int32** | Version number | [optional] **IsSimulationEnabled** | Pointer to **bool** | | [optional] **IsDynamicSchema** | Pointer to **bool** | Determines whether the dynamic output schema is returned in place of the action's output schema. The dynamic schema lists non-static properties, like properties of a workflow form where each form has different fields. These will be provided dynamically based on available form fields. | [optional] @@ -235,20 +235,20 @@ HasDeprecated returns a boolean if a field has been set. ### GetDeprecatedBy -`func (o *ListCompleteWorkflowLibrary200ResponseInner) GetDeprecatedBy() time.Time` +`func (o *ListCompleteWorkflowLibrary200ResponseInner) GetDeprecatedBy() SailPointTime` GetDeprecatedBy returns the DeprecatedBy field if non-nil, zero value otherwise. ### GetDeprecatedByOk -`func (o *ListCompleteWorkflowLibrary200ResponseInner) GetDeprecatedByOk() (*time.Time, bool)` +`func (o *ListCompleteWorkflowLibrary200ResponseInner) GetDeprecatedByOk() (*SailPointTime, bool)` GetDeprecatedByOk returns a tuple with the DeprecatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeprecatedBy -`func (o *ListCompleteWorkflowLibrary200ResponseInner) SetDeprecatedBy(v time.Time)` +`func (o *ListCompleteWorkflowLibrary200ResponseInner) SetDeprecatedBy(v SailPointTime)` SetDeprecatedBy sets DeprecatedBy field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/LoadAccountsTaskTask.md b/docs/tools/sdk/go/Reference/Beta/Models/LoadAccountsTaskTask.md index dd2fa0602..8bbe35920 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/LoadAccountsTaskTask.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/LoadAccountsTaskTask.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | The name of the aggregation process | [optional] **Description** | Pointer to **string** | The description of the task | [optional] **Launcher** | Pointer to **string** | The user who initiated the task | [optional] -**Created** | Pointer to **time.Time** | The Task creation date | [optional] +**Created** | Pointer to **SailPointTime** | The Task creation date | [optional] **Launched** | Pointer to **NullableTime** | The task start date | [optional] **Completed** | Pointer to **NullableTime** | The task completion date | [optional] **CompletionStatus** | Pointer to **NullableString** | Task completion status. | [optional] @@ -176,20 +176,20 @@ HasLauncher returns a boolean if a field has been set. ### GetCreated -`func (o *LoadAccountsTaskTask) GetCreated() time.Time` +`func (o *LoadAccountsTaskTask) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *LoadAccountsTaskTask) GetCreatedOk() (*time.Time, bool)` +`func (o *LoadAccountsTaskTask) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *LoadAccountsTaskTask) SetCreated(v time.Time)` +`func (o *LoadAccountsTaskTask) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -201,20 +201,20 @@ HasCreated returns a boolean if a field has been set. ### GetLaunched -`func (o *LoadAccountsTaskTask) GetLaunched() time.Time` +`func (o *LoadAccountsTaskTask) GetLaunched() SailPointTime` GetLaunched returns the Launched field if non-nil, zero value otherwise. ### GetLaunchedOk -`func (o *LoadAccountsTaskTask) GetLaunchedOk() (*time.Time, bool)` +`func (o *LoadAccountsTaskTask) GetLaunchedOk() (*SailPointTime, bool)` GetLaunchedOk returns a tuple with the Launched field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLaunched -`func (o *LoadAccountsTaskTask) SetLaunched(v time.Time)` +`func (o *LoadAccountsTaskTask) SetLaunched(v SailPointTime)` SetLaunched sets Launched field to given value. @@ -236,20 +236,20 @@ HasLaunched returns a boolean if a field has been set. UnsetLaunched ensures that no value is present for Launched, not even an explicit nil ### GetCompleted -`func (o *LoadAccountsTaskTask) GetCompleted() time.Time` +`func (o *LoadAccountsTaskTask) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *LoadAccountsTaskTask) GetCompletedOk() (*time.Time, bool)` +`func (o *LoadAccountsTaskTask) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *LoadAccountsTaskTask) SetCompleted(v time.Time)` +`func (o *LoadAccountsTaskTask) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/LoadEntitlementTask.md b/docs/tools/sdk/go/Reference/Beta/Models/LoadEntitlementTask.md index eee6ab4f6..6fb8e2c10 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/LoadEntitlementTask.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/LoadEntitlementTask.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **UniqueName** | Pointer to **string** | The name of the task | [optional] **Description** | Pointer to **string** | The description of the task | [optional] **Launcher** | Pointer to **string** | The user who initiated the task | [optional] -**Created** | Pointer to **time.Time** | The creation date of the task | [optional] +**Created** | Pointer to **SailPointTime** | The creation date of the task | [optional] **Returns** | Pointer to [**[]LoadEntitlementTaskReturnsInner**](load-entitlement-task-returns-inner) | Return values from the task | [optional] ## Methods @@ -169,20 +169,20 @@ HasLauncher returns a boolean if a field has been set. ### GetCreated -`func (o *LoadEntitlementTask) GetCreated() time.Time` +`func (o *LoadEntitlementTask) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *LoadEntitlementTask) GetCreatedOk() (*time.Time, bool)` +`func (o *LoadEntitlementTask) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *LoadEntitlementTask) SetCreated(v time.Time)` +`func (o *LoadEntitlementTask) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/LoadUncorrelatedAccountsTaskTask.md b/docs/tools/sdk/go/Reference/Beta/Models/LoadUncorrelatedAccountsTaskTask.md index 8b1cdd4fc..8b6b6337c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/LoadUncorrelatedAccountsTaskTask.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/LoadUncorrelatedAccountsTaskTask.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | The name of uncorrelated accounts process | [optional] **Description** | Pointer to **string** | The description of the task | [optional] **Launcher** | Pointer to **string** | The user who initiated the task | [optional] -**Created** | Pointer to **time.Time** | The Task creation date | [optional] +**Created** | Pointer to **SailPointTime** | The Task creation date | [optional] **Launched** | Pointer to **NullableTime** | The task start date | [optional] **Completed** | Pointer to **NullableTime** | The task completion date | [optional] **CompletionStatus** | Pointer to **NullableString** | Task completion status. | [optional] @@ -176,20 +176,20 @@ HasLauncher returns a boolean if a field has been set. ### GetCreated -`func (o *LoadUncorrelatedAccountsTaskTask) GetCreated() time.Time` +`func (o *LoadUncorrelatedAccountsTaskTask) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *LoadUncorrelatedAccountsTaskTask) GetCreatedOk() (*time.Time, bool)` +`func (o *LoadUncorrelatedAccountsTaskTask) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *LoadUncorrelatedAccountsTaskTask) SetCreated(v time.Time)` +`func (o *LoadUncorrelatedAccountsTaskTask) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -201,20 +201,20 @@ HasCreated returns a boolean if a field has been set. ### GetLaunched -`func (o *LoadUncorrelatedAccountsTaskTask) GetLaunched() time.Time` +`func (o *LoadUncorrelatedAccountsTaskTask) GetLaunched() SailPointTime` GetLaunched returns the Launched field if non-nil, zero value otherwise. ### GetLaunchedOk -`func (o *LoadUncorrelatedAccountsTaskTask) GetLaunchedOk() (*time.Time, bool)` +`func (o *LoadUncorrelatedAccountsTaskTask) GetLaunchedOk() (*SailPointTime, bool)` GetLaunchedOk returns a tuple with the Launched field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLaunched -`func (o *LoadUncorrelatedAccountsTaskTask) SetLaunched(v time.Time)` +`func (o *LoadUncorrelatedAccountsTaskTask) SetLaunched(v SailPointTime)` SetLaunched sets Launched field to given value. @@ -236,20 +236,20 @@ HasLaunched returns a boolean if a field has been set. UnsetLaunched ensures that no value is present for Launched, not even an explicit nil ### GetCompleted -`func (o *LoadUncorrelatedAccountsTaskTask) GetCompleted() time.Time` +`func (o *LoadUncorrelatedAccountsTaskTask) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *LoadUncorrelatedAccountsTaskTask) GetCompletedOk() (*time.Time, bool)` +`func (o *LoadUncorrelatedAccountsTaskTask) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *LoadUncorrelatedAccountsTaskTask) SetCompleted(v time.Time)` +`func (o *LoadUncorrelatedAccountsTaskTask) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ManagedClient.md b/docs/tools/sdk/go/Reference/Beta/Models/ManagedClient.md index d8cb780f3..2cf138924 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ManagedClient.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ManagedClient.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes **Cookbook** | Pointer to **string** | VA cookbook | [optional] [readonly] **Description** | **string** | ManagedClient description | **IpAddress** | Pointer to **string** | The public IP address of the ManagedClient | [optional] [readonly] -**LastSeen** | Pointer to **time.Time** | When the ManagedClient was last seen by the server | [optional] [readonly] +**LastSeen** | Pointer to **SailPointTime** | When the ManagedClient was last seen by the server | [optional] [readonly] **Name** | Pointer to **string** | ManagedClient name | [optional] **SinceLastSeen** | Pointer to **string** | Milliseconds since the ManagedClient has polled the server | [optional] [readonly] **Status** | Pointer to [**ManagedClientStatusEnum**](managed-client-status-enum) | Status of the ManagedClient | [optional] [readonly] @@ -264,20 +264,20 @@ HasIpAddress returns a boolean if a field has been set. ### GetLastSeen -`func (o *ManagedClient) GetLastSeen() time.Time` +`func (o *ManagedClient) GetLastSeen() SailPointTime` GetLastSeen returns the LastSeen field if non-nil, zero value otherwise. ### GetLastSeenOk -`func (o *ManagedClient) GetLastSeenOk() (*time.Time, bool)` +`func (o *ManagedClient) GetLastSeenOk() (*SailPointTime, bool)` GetLastSeenOk returns a tuple with the LastSeen field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastSeen -`func (o *ManagedClient) SetLastSeen(v time.Time)` +`func (o *ManagedClient) SetLastSeen(v SailPointTime)` SetLastSeen sets LastSeen field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatus.md b/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatus.md index 1d98077db..d1f78dda6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatus.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatus.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **Body** | **map[string]interface{}** | ManagedClientStatus body information | **Status** | [**ManagedClientStatusEnum**](managed-client-status-enum) | | **Type** | [**NullableManagedClientType**](managed-client-type) | | -**Timestamp** | **time.Time** | timestamp on the Client Status update | +**Timestamp** | **SailPointTime** | timestamp on the Client Status update | ## Methods ### NewManagedClientStatus -`func NewManagedClientStatus(body map[string]interface{}, status ManagedClientStatusEnum, type_ NullableManagedClientType, timestamp time.Time, ) *ManagedClientStatus` +`func NewManagedClientStatus(body map[string]interface{}, status ManagedClientStatusEnum, type_ NullableManagedClientType, timestamp SailPointTime, ) *ManagedClientStatus` NewManagedClientStatus instantiates a new ManagedClientStatus object This constructor will assign default values to properties that have it defined, @@ -111,20 +111,20 @@ SetType sets Type field to given value. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetTimestamp -`func (o *ManagedClientStatus) GetTimestamp() time.Time` +`func (o *ManagedClientStatus) GetTimestamp() SailPointTime` GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. ### GetTimestampOk -`func (o *ManagedClientStatus) GetTimestampOk() (*time.Time, bool)` +`func (o *ManagedClientStatus) GetTimestampOk() (*SailPointTime, bool)` GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTimestamp -`func (o *ManagedClientStatus) SetTimestamp(v time.Time)` +`func (o *ManagedClientStatus) SetTimestamp(v SailPointTime)` SetTimestamp sets Timestamp field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatusAggResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatusAggResponse.md index 1aa0dadb7..8612e42d4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatusAggResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ManagedClientStatusAggResponse.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **Body** | **map[string]interface{}** | ManagedClientStatus body information | **Status** | [**ManagedClientStatusEnum**](managed-client-status-enum) | | **Type** | [**NullableManagedClientType**](managed-client-type) | | -**Timestamp** | **time.Time** | timestamp on the Client Status update | +**Timestamp** | **SailPointTime** | timestamp on the Client Status update | ## Methods ### NewManagedClientStatusAggResponse -`func NewManagedClientStatusAggResponse(body map[string]interface{}, status ManagedClientStatusEnum, type_ NullableManagedClientType, timestamp time.Time, ) *ManagedClientStatusAggResponse` +`func NewManagedClientStatusAggResponse(body map[string]interface{}, status ManagedClientStatusEnum, type_ NullableManagedClientType, timestamp SailPointTime, ) *ManagedClientStatusAggResponse` NewManagedClientStatusAggResponse instantiates a new ManagedClientStatusAggResponse object This constructor will assign default values to properties that have it defined, @@ -111,20 +111,20 @@ SetType sets Type field to given value. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetTimestamp -`func (o *ManagedClientStatusAggResponse) GetTimestamp() time.Time` +`func (o *ManagedClientStatusAggResponse) GetTimestamp() SailPointTime` GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. ### GetTimestampOk -`func (o *ManagedClientStatusAggResponse) GetTimestampOk() (*time.Time, bool)` +`func (o *ManagedClientStatusAggResponse) GetTimestampOk() (*SailPointTime, bool)` GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTimestamp -`func (o *ManagedClientStatusAggResponse) SetTimestamp(v time.Time)` +`func (o *ManagedClientStatusAggResponse) SetTimestamp(v SailPointTime)` SetTimestamp sets Timestamp field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ManagedCluster.md b/docs/tools/sdk/go/Reference/Beta/Models/ManagedCluster.md index b8c12b04a..cafcdc469 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ManagedCluster.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ManagedCluster.md @@ -672,20 +672,20 @@ HasCcId returns a boolean if a field has been set. ### GetCreatedAt -`func (o *ManagedCluster) GetCreatedAt() time.Time` +`func (o *ManagedCluster) GetCreatedAt() SailPointTime` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *ManagedCluster) GetCreatedAtOk() (*time.Time, bool)` +`func (o *ManagedCluster) GetCreatedAtOk() (*SailPointTime, bool)` GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedAt -`func (o *ManagedCluster) SetCreatedAt(v time.Time)` +`func (o *ManagedCluster) SetCreatedAt(v SailPointTime)` SetCreatedAt sets CreatedAt field to given value. @@ -707,20 +707,20 @@ HasCreatedAt returns a boolean if a field has been set. UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil ### GetUpdatedAt -`func (o *ManagedCluster) GetUpdatedAt() time.Time` +`func (o *ManagedCluster) GetUpdatedAt() SailPointTime` GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. ### GetUpdatedAtOk -`func (o *ManagedCluster) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *ManagedCluster) GetUpdatedAtOk() (*SailPointTime, bool)` GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUpdatedAt -`func (o *ManagedCluster) SetUpdatedAt(v time.Time)` +`func (o *ManagedCluster) SetUpdatedAt(v SailPointTime)` SetUpdatedAt sets UpdatedAt field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ManualWorkItemDetails.md b/docs/tools/sdk/go/Reference/Beta/Models/ManualWorkItemDetails.md index ff101d05f..749b390fc 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ManualWorkItemDetails.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ManualWorkItemDetails.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Forwarded** | Pointer to **bool** | True if the request for this item was forwarded from one owner to another. | [optional] [default to false] **OriginalOwner** | Pointer to [**NullableManualWorkItemDetailsOriginalOwner**](manual-work-item-details-original-owner) | | [optional] **CurrentOwner** | Pointer to [**NullableManualWorkItemDetailsCurrentOwner**](manual-work-item-details-current-owner) | | [optional] -**Modified** | Pointer to **time.Time** | Time at which item was modified. | [optional] +**Modified** | Pointer to **SailPointTime** | Time at which item was modified. | [optional] **Status** | Pointer to [**ManualWorkItemState**](manual-work-item-state) | | [optional] **ForwardHistory** | Pointer to [**[]ApprovalForwardHistory**](approval-forward-history) | The history of approval forward action. | [optional] @@ -138,20 +138,20 @@ HasCurrentOwner returns a boolean if a field has been set. UnsetCurrentOwner ensures that no value is present for CurrentOwner, not even an explicit nil ### GetModified -`func (o *ManualWorkItemDetails) GetModified() time.Time` +`func (o *ManualWorkItemDetails) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *ManualWorkItemDetails) GetModifiedOk() (*time.Time, bool)` +`func (o *ManualWorkItemDetails) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *ManualWorkItemDetails) SetModified(v time.Time)` +`func (o *ManualWorkItemDetails) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrations.md b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrations.md index eb6d3c1ab..3b68a0969 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrations.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrations.md @@ -31,13 +31,13 @@ Name | Type | Description | Notes **ManagementWorkgroup** | Pointer to [**NullableMultiHostIntegrationsManagementWorkgroup**](multi-host-integrations-management-workgroup) | | [optional] **Healthy** | Pointer to **bool** | When this is true, it indicates that the source is healthy. | [optional] [default to false] **Status** | Pointer to **string** | Status identifier that gives specific information about why a source is or isn't healthy. | [optional] -**Since** | Pointer to **time.Time** | Timestamp that shows when a source health check was last performed. | [optional] +**Since** | Pointer to **SailPointTime** | Timestamp that shows when a source health check was last performed. | [optional] **ConnectorId** | Pointer to **string** | Connector ID | [optional] **ConnectorName** | Pointer to **string** | Name of the connector that was chosen during source creation. | [optional] **ConnectionType** | Pointer to **string** | Type of connection (direct or file). | [optional] **ConnectorImplementationId** | Pointer to **string** | Connector implementation ID. | [optional] -**Created** | Pointer to **time.Time** | Date-time when the source was created | [optional] -**Modified** | Pointer to **time.Time** | Date-time when the source was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | Date-time when the source was created | [optional] +**Modified** | Pointer to **SailPointTime** | Date-time when the source was last modified. | [optional] **CredentialProviderEnabled** | Pointer to **bool** | If this is true, it enables a credential provider for the source. If credentialProvider is turned on, then the source can use credential provider(s) to fetch credentials. | [optional] [default to false] **Category** | Pointer to **NullableString** | Source category (e.g. null, CredentialProvider). | [optional] @@ -457,20 +457,20 @@ HasStatus returns a boolean if a field has been set. ### GetSince -`func (o *MultiHostIntegrations) GetSince() time.Time` +`func (o *MultiHostIntegrations) GetSince() SailPointTime` GetSince returns the Since field if non-nil, zero value otherwise. ### GetSinceOk -`func (o *MultiHostIntegrations) GetSinceOk() (*time.Time, bool)` +`func (o *MultiHostIntegrations) GetSinceOk() (*SailPointTime, bool)` GetSinceOk returns a tuple with the Since field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSince -`func (o *MultiHostIntegrations) SetSince(v time.Time)` +`func (o *MultiHostIntegrations) SetSince(v SailPointTime)` SetSince sets Since field to given value. @@ -582,20 +582,20 @@ HasConnectorImplementationId returns a boolean if a field has been set. ### GetCreated -`func (o *MultiHostIntegrations) GetCreated() time.Time` +`func (o *MultiHostIntegrations) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *MultiHostIntegrations) GetCreatedOk() (*time.Time, bool)` +`func (o *MultiHostIntegrations) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *MultiHostIntegrations) SetCreated(v time.Time)` +`func (o *MultiHostIntegrations) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -607,20 +607,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *MultiHostIntegrations) GetModified() time.Time` +`func (o *MultiHostIntegrations) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *MultiHostIntegrations) GetModifiedOk() (*time.Time, bool)` +`func (o *MultiHostIntegrations) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *MultiHostIntegrations) SetModified(v time.Time)` +`func (o *MultiHostIntegrations) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsAggScheduleUpdate.md b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsAggScheduleUpdate.md index 1acf2371b..b0968990c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsAggScheduleUpdate.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsAggScheduleUpdate.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **AggregationCronSchedule** | **string** | Cron expression to schedule aggregation | **EnableSchedule** | **bool** | Boolean value for Multi-Host Integration aggregation schedule. This specifies if scheduled aggregation is enabled or disabled. | [default to false] **SourceIdList** | **[]string** | Source IDs of the Multi-Host Integration | -**Created** | Pointer to **time.Time** | Created date of Multi-Host Integration aggregation schedule | [optional] -**Modified** | Pointer to **time.Time** | Modified date of Multi-Host Integration aggregation schedule | [optional] +**Created** | Pointer to **SailPointTime** | Created date of Multi-Host Integration aggregation schedule | [optional] +**Modified** | Pointer to **SailPointTime** | Modified date of Multi-Host Integration aggregation schedule | [optional] ## Methods @@ -165,20 +165,20 @@ SetSourceIdList sets SourceIdList field to given value. ### GetCreated -`func (o *MultiHostIntegrationsAggScheduleUpdate) GetCreated() time.Time` +`func (o *MultiHostIntegrationsAggScheduleUpdate) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *MultiHostIntegrationsAggScheduleUpdate) GetCreatedOk() (*time.Time, bool)` +`func (o *MultiHostIntegrationsAggScheduleUpdate) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *MultiHostIntegrationsAggScheduleUpdate) SetCreated(v time.Time)` +`func (o *MultiHostIntegrationsAggScheduleUpdate) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -190,20 +190,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *MultiHostIntegrationsAggScheduleUpdate) GetModified() time.Time` +`func (o *MultiHostIntegrationsAggScheduleUpdate) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *MultiHostIntegrationsAggScheduleUpdate) GetModifiedOk() (*time.Time, bool)` +`func (o *MultiHostIntegrationsAggScheduleUpdate) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *MultiHostIntegrationsAggScheduleUpdate) SetModified(v time.Time)` +`func (o *MultiHostIntegrationsAggScheduleUpdate) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsCreate.md b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsCreate.md index c28770592..1102b819a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsCreate.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostIntegrationsCreate.md @@ -22,8 +22,8 @@ Name | Type | Description | Notes **Connector** | **string** | Connector script name. | **ConnectorAttributes** | Pointer to **map[string]interface{}** | Multi-Host Integration specific configuration. User can add any number of additional attributes. e.g. maxSourcesPerAggGroup, maxAllowedSources etc. | [optional] **ManagementWorkgroup** | Pointer to [**NullableMultiHostIntegrationsManagementWorkgroup**](multi-host-integrations-management-workgroup) | | [optional] -**Created** | Pointer to **time.Time** | Date-time when the source was created | [optional] -**Modified** | Pointer to **time.Time** | Date-time when the source was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | Date-time when the source was created | [optional] +**Modified** | Pointer to **SailPointTime** | Date-time when the source was last modified. | [optional] ## Methods @@ -221,20 +221,20 @@ HasManagementWorkgroup returns a boolean if a field has been set. UnsetManagementWorkgroup ensures that no value is present for ManagementWorkgroup, not even an explicit nil ### GetCreated -`func (o *MultiHostIntegrationsCreate) GetCreated() time.Time` +`func (o *MultiHostIntegrationsCreate) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *MultiHostIntegrationsCreate) GetCreatedOk() (*time.Time, bool)` +`func (o *MultiHostIntegrationsCreate) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *MultiHostIntegrationsCreate) SetCreated(v time.Time)` +`func (o *MultiHostIntegrationsCreate) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -246,20 +246,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *MultiHostIntegrationsCreate) GetModified() time.Time` +`func (o *MultiHostIntegrationsCreate) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *MultiHostIntegrationsCreate) GetModifiedOk() (*time.Time, bool)` +`func (o *MultiHostIntegrationsCreate) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *MultiHostIntegrationsCreate) SetModified(v time.Time)` +`func (o *MultiHostIntegrationsCreate) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostSources.md b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostSources.md index b75134abc..cd5d55109 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/MultiHostSources.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/MultiHostSources.md @@ -37,13 +37,13 @@ Name | Type | Description | Notes **ManagementWorkgroup** | Pointer to [**NullableMultiHostIntegrationsManagementWorkgroup**](multi-host-integrations-management-workgroup) | | [optional] **Healthy** | Pointer to **bool** | When this is true, it indicates that the source is healthy. | [optional] [default to false] **Status** | Pointer to **string** | Status identifier that gives specific information about why a source is or isn't healthy. | [optional] -**Since** | Pointer to **time.Time** | Timestamp that shows when a source health check was last performed. | [optional] +**Since** | Pointer to **SailPointTime** | Timestamp that shows when a source health check was last performed. | [optional] **ConnectorId** | Pointer to **string** | Connector ID | [optional] **ConnectorName** | **string** | Name of the connector that was chosen during source creation. | **ConnectionType** | Pointer to **string** | Type of connection (direct or file). | [optional] **ConnectorImplementationId** | Pointer to **string** | Connector implementation ID. | [optional] -**Created** | Pointer to **time.Time** | Date-time when the source was created | [optional] -**Modified** | Pointer to **time.Time** | Date-time when the source was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | Date-time when the source was created | [optional] +**Modified** | Pointer to **SailPointTime** | Date-time when the source was last modified. | [optional] **CredentialProviderEnabled** | Pointer to **bool** | If this is true, it enables a credential provider for the source. If credentialProvider is turned on, then the source can use credential provider(s) to fetch credentials. | [optional] [default to false] **Category** | Pointer to **NullableString** | Source category (e.g. null, CredentialProvider). | [optional] @@ -678,20 +678,20 @@ HasStatus returns a boolean if a field has been set. ### GetSince -`func (o *MultiHostSources) GetSince() time.Time` +`func (o *MultiHostSources) GetSince() SailPointTime` GetSince returns the Since field if non-nil, zero value otherwise. ### GetSinceOk -`func (o *MultiHostSources) GetSinceOk() (*time.Time, bool)` +`func (o *MultiHostSources) GetSinceOk() (*SailPointTime, bool)` GetSinceOk returns a tuple with the Since field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSince -`func (o *MultiHostSources) SetSince(v time.Time)` +`func (o *MultiHostSources) SetSince(v SailPointTime)` SetSince sets Since field to given value. @@ -798,20 +798,20 @@ HasConnectorImplementationId returns a boolean if a field has been set. ### GetCreated -`func (o *MultiHostSources) GetCreated() time.Time` +`func (o *MultiHostSources) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *MultiHostSources) GetCreatedOk() (*time.Time, bool)` +`func (o *MultiHostSources) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *MultiHostSources) SetCreated(v time.Time)` +`func (o *MultiHostSources) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -823,20 +823,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *MultiHostSources) GetModified() time.Time` +`func (o *MultiHostSources) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *MultiHostSources) GetModifiedOk() (*time.Time, bool)` +`func (o *MultiHostSources) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *MultiHostSources) SetModified(v time.Time)` +`func (o *MultiHostSources) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItem.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItem.md index 4b8ca5c29..203b47ee8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItem.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItem.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **ApprovalStatus** | Pointer to [**ApprovalStatus**](approval-status) | | [optional] **ApprovalOrder** | Pointer to **float32** | Approval order | [optional] **Comment** | Pointer to **string** | comment of approver | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] **NonEmployeeRequest** | Pointer to [**NonEmployeeRequestLite**](non-employee-request-lite) | | [optional] ## Methods @@ -196,20 +196,20 @@ HasComment returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeApprovalItem) GetModified() time.Time` +`func (o *NonEmployeeApprovalItem) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeApprovalItem) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeApprovalItem) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeApprovalItem) SetModified(v time.Time)` +`func (o *NonEmployeeApprovalItem) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -221,20 +221,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeApprovalItem) GetCreated() time.Time` +`func (o *NonEmployeeApprovalItem) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeApprovalItem) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeApprovalItem) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeApprovalItem) SetCreated(v time.Time)` +`func (o *NonEmployeeApprovalItem) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemBase.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemBase.md index deee2b222..3f143155f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemBase.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemBase.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **ApprovalStatus** | Pointer to [**ApprovalStatus**](approval-status) | | [optional] **ApprovalOrder** | Pointer to **float32** | Approval order | [optional] **Comment** | Pointer to **string** | comment of approver | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] ## Methods @@ -195,20 +195,20 @@ HasComment returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeApprovalItemBase) GetModified() time.Time` +`func (o *NonEmployeeApprovalItemBase) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeApprovalItemBase) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeApprovalItemBase) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeApprovalItemBase) SetModified(v time.Time)` +`func (o *NonEmployeeApprovalItemBase) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -220,20 +220,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeApprovalItemBase) GetCreated() time.Time` +`func (o *NonEmployeeApprovalItemBase) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeApprovalItemBase) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeApprovalItemBase) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeApprovalItemBase) SetCreated(v time.Time)` +`func (o *NonEmployeeApprovalItemBase) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemDetail.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemDetail.md index da94cf36f..9e469ff7d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemDetail.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeApprovalItemDetail.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **ApprovalStatus** | Pointer to [**ApprovalStatus**](approval-status) | | [optional] **ApprovalOrder** | Pointer to **float32** | Approval order | [optional] **Comment** | Pointer to **string** | comment of approver | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] **NonEmployeeRequest** | Pointer to [**NonEmployeeRequestWithoutApprovalItem**](non-employee-request-without-approval-item) | | [optional] ## Methods @@ -196,20 +196,20 @@ HasComment returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeApprovalItemDetail) GetModified() time.Time` +`func (o *NonEmployeeApprovalItemDetail) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeApprovalItemDetail) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeApprovalItemDetail) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeApprovalItemDetail) SetModified(v time.Time)` +`func (o *NonEmployeeApprovalItemDetail) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -221,20 +221,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeApprovalItemDetail) GetCreated() time.Time` +`func (o *NonEmployeeApprovalItemDetail) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeApprovalItemDetail) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeApprovalItemDetail) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeApprovalItemDetail) SetCreated(v time.Time)` +`func (o *NonEmployeeApprovalItemDetail) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeBulkUploadJob.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeBulkUploadJob.md index 1a2f9ebf3..123b1ad8d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeBulkUploadJob.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeBulkUploadJob.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The bulk upload job's ID. (UUID) | [optional] **SourceId** | Pointer to **string** | The ID of the source to bulk-upload non-employees to. (UUID) | [optional] -**Created** | Pointer to **time.Time** | The date-time the job was submitted. | [optional] -**Modified** | Pointer to **time.Time** | The date-time that the job was last updated. | [optional] +**Created** | Pointer to **SailPointTime** | The date-time the job was submitted. | [optional] +**Modified** | Pointer to **SailPointTime** | The date-time that the job was last updated. | [optional] **Status** | Pointer to **string** | Returns the following values indicating the progress or result of the bulk upload job. \"PENDING\" means the job is queued and waiting to be processed. \"IN_PROGRESS\" means the job is currently being processed. \"COMPLETED\" means the job has been completed without any errors. \"ERROR\" means the job failed to process with errors. | [optional] ## Methods @@ -92,20 +92,20 @@ HasSourceId returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeBulkUploadJob) GetCreated() time.Time` +`func (o *NonEmployeeBulkUploadJob) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeBulkUploadJob) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeBulkUploadJob) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeBulkUploadJob) SetCreated(v time.Time)` +`func (o *NonEmployeeBulkUploadJob) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -117,20 +117,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeBulkUploadJob) GetModified() time.Time` +`func (o *NonEmployeeBulkUploadJob) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeBulkUploadJob) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeBulkUploadJob) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeBulkUploadJob) SetModified(v time.Time)` +`func (o *NonEmployeeBulkUploadJob) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRecord.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRecord.md index 222a76ce5..40a594ceb 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRecord.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRecord.md @@ -24,10 +24,10 @@ Name | Type | Description | Notes **Manager** | Pointer to **string** | The account ID of a valid identity to serve as this non-employee's manager. | [optional] **SourceId** | Pointer to **string** | Non-Employee's source id. | [optional] **Data** | Pointer to **map[string]string** | Additional attributes for a non-employee. Up to 10 custom attributes can be added. | [optional] -**StartDate** | Pointer to **time.Time** | Non-Employee employment start date. | [optional] -**EndDate** | Pointer to **time.Time** | Non-Employee employment end date. | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**StartDate** | Pointer to **SailPointTime** | Non-Employee employment start date. | [optional] +**EndDate** | Pointer to **SailPointTime** | Non-Employee employment end date. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] ## Methods @@ -275,20 +275,20 @@ HasData returns a boolean if a field has been set. ### GetStartDate -`func (o *NonEmployeeRecord) GetStartDate() time.Time` +`func (o *NonEmployeeRecord) GetStartDate() SailPointTime` GetStartDate returns the StartDate field if non-nil, zero value otherwise. ### GetStartDateOk -`func (o *NonEmployeeRecord) GetStartDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRecord) GetStartDateOk() (*SailPointTime, bool)` GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStartDate -`func (o *NonEmployeeRecord) SetStartDate(v time.Time)` +`func (o *NonEmployeeRecord) SetStartDate(v SailPointTime)` SetStartDate sets StartDate field to given value. @@ -300,20 +300,20 @@ HasStartDate returns a boolean if a field has been set. ### GetEndDate -`func (o *NonEmployeeRecord) GetEndDate() time.Time` +`func (o *NonEmployeeRecord) GetEndDate() SailPointTime` GetEndDate returns the EndDate field if non-nil, zero value otherwise. ### GetEndDateOk -`func (o *NonEmployeeRecord) GetEndDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRecord) GetEndDateOk() (*SailPointTime, bool)` GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEndDate -`func (o *NonEmployeeRecord) SetEndDate(v time.Time)` +`func (o *NonEmployeeRecord) SetEndDate(v SailPointTime)` SetEndDate sets EndDate field to given value. @@ -325,20 +325,20 @@ HasEndDate returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeRecord) GetModified() time.Time` +`func (o *NonEmployeeRecord) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeRecord) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeRecord) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeRecord) SetModified(v time.Time)` +`func (o *NonEmployeeRecord) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -350,20 +350,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeRecord) GetCreated() time.Time` +`func (o *NonEmployeeRecord) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeRecord) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeRecord) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeRecord) SetCreated(v time.Time)` +`func (o *NonEmployeeRecord) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequest.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequest.md index ec5004db1..9f91cfa42 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequest.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequest.md @@ -30,11 +30,11 @@ Name | Type | Description | Notes **ApprovalItems** | Pointer to [**[]NonEmployeeApprovalItemBase**](non-employee-approval-item-base) | List of approval item for the request | [optional] **ApprovalStatus** | Pointer to [**ApprovalStatus**](approval-status) | | [optional] **Comment** | Pointer to **string** | Comment of requester | [optional] -**CompletionDate** | Pointer to **time.Time** | When the request was completely approved. | [optional] -**StartDate** | Pointer to **time.Time** | Non-Employee employment start date. | [optional] -**EndDate** | Pointer to **time.Time** | Non-Employee employment end date. | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**CompletionDate** | Pointer to **SailPointTime** | When the request was completely approved. | [optional] +**StartDate** | Pointer to **SailPointTime** | Non-Employee employment start date. | [optional] +**EndDate** | Pointer to **SailPointTime** | Non-Employee employment end date. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] ## Methods @@ -432,20 +432,20 @@ HasComment returns a boolean if a field has been set. ### GetCompletionDate -`func (o *NonEmployeeRequest) GetCompletionDate() time.Time` +`func (o *NonEmployeeRequest) GetCompletionDate() SailPointTime` GetCompletionDate returns the CompletionDate field if non-nil, zero value otherwise. ### GetCompletionDateOk -`func (o *NonEmployeeRequest) GetCompletionDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRequest) GetCompletionDateOk() (*SailPointTime, bool)` GetCompletionDateOk returns a tuple with the CompletionDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompletionDate -`func (o *NonEmployeeRequest) SetCompletionDate(v time.Time)` +`func (o *NonEmployeeRequest) SetCompletionDate(v SailPointTime)` SetCompletionDate sets CompletionDate field to given value. @@ -457,20 +457,20 @@ HasCompletionDate returns a boolean if a field has been set. ### GetStartDate -`func (o *NonEmployeeRequest) GetStartDate() time.Time` +`func (o *NonEmployeeRequest) GetStartDate() SailPointTime` GetStartDate returns the StartDate field if non-nil, zero value otherwise. ### GetStartDateOk -`func (o *NonEmployeeRequest) GetStartDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRequest) GetStartDateOk() (*SailPointTime, bool)` GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStartDate -`func (o *NonEmployeeRequest) SetStartDate(v time.Time)` +`func (o *NonEmployeeRequest) SetStartDate(v SailPointTime)` SetStartDate sets StartDate field to given value. @@ -482,20 +482,20 @@ HasStartDate returns a boolean if a field has been set. ### GetEndDate -`func (o *NonEmployeeRequest) GetEndDate() time.Time` +`func (o *NonEmployeeRequest) GetEndDate() SailPointTime` GetEndDate returns the EndDate field if non-nil, zero value otherwise. ### GetEndDateOk -`func (o *NonEmployeeRequest) GetEndDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRequest) GetEndDateOk() (*SailPointTime, bool)` GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEndDate -`func (o *NonEmployeeRequest) SetEndDate(v time.Time)` +`func (o *NonEmployeeRequest) SetEndDate(v SailPointTime)` SetEndDate sets EndDate field to given value. @@ -507,20 +507,20 @@ HasEndDate returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeRequest) GetModified() time.Time` +`func (o *NonEmployeeRequest) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeRequest) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeRequest) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeRequest) SetModified(v time.Time)` +`func (o *NonEmployeeRequest) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -532,20 +532,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeRequest) GetCreated() time.Time` +`func (o *NonEmployeeRequest) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeRequest) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeRequest) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeRequest) SetCreated(v time.Time)` +`func (o *NonEmployeeRequest) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestBody.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestBody.md index e210cde65..c8d5db162 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestBody.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestBody.md @@ -23,14 +23,14 @@ Name | Type | Description | Notes **Manager** | **string** | The account ID of a valid identity to serve as this non-employee's manager. | **SourceId** | **string** | Non-Employee's source id. | **Data** | Pointer to **map[string]string** | Additional attributes for a non-employee. Up to 10 custom attributes can be added. | [optional] -**StartDate** | **time.Time** | Non-Employee employment start date. | -**EndDate** | **time.Time** | Non-Employee employment end date. | +**StartDate** | **SailPointTime** | Non-Employee employment start date. | +**EndDate** | **SailPointTime** | Non-Employee employment end date. | ## Methods ### NewNonEmployeeRequestBody -`func NewNonEmployeeRequestBody(accountName string, firstName string, lastName string, email string, phone string, manager string, sourceId string, startDate time.Time, endDate time.Time, ) *NonEmployeeRequestBody` +`func NewNonEmployeeRequestBody(accountName string, firstName string, lastName string, email string, phone string, manager string, sourceId string, startDate SailPointTime, endDate SailPointTime, ) *NonEmployeeRequestBody` NewNonEmployeeRequestBody instantiates a new NonEmployeeRequestBody object This constructor will assign default values to properties that have it defined, @@ -212,40 +212,40 @@ HasData returns a boolean if a field has been set. ### GetStartDate -`func (o *NonEmployeeRequestBody) GetStartDate() time.Time` +`func (o *NonEmployeeRequestBody) GetStartDate() SailPointTime` GetStartDate returns the StartDate field if non-nil, zero value otherwise. ### GetStartDateOk -`func (o *NonEmployeeRequestBody) GetStartDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRequestBody) GetStartDateOk() (*SailPointTime, bool)` GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStartDate -`func (o *NonEmployeeRequestBody) SetStartDate(v time.Time)` +`func (o *NonEmployeeRequestBody) SetStartDate(v SailPointTime)` SetStartDate sets StartDate field to given value. ### GetEndDate -`func (o *NonEmployeeRequestBody) GetEndDate() time.Time` +`func (o *NonEmployeeRequestBody) GetEndDate() SailPointTime` GetEndDate returns the EndDate field if non-nil, zero value otherwise. ### GetEndDateOk -`func (o *NonEmployeeRequestBody) GetEndDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRequestBody) GetEndDateOk() (*SailPointTime, bool)` GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEndDate -`func (o *NonEmployeeRequestBody) SetEndDate(v time.Time)` +`func (o *NonEmployeeRequestBody) SetEndDate(v SailPointTime)` SetEndDate sets EndDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestWithoutApprovalItem.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestWithoutApprovalItem.md index d6c933462..602b06a39 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestWithoutApprovalItem.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeRequestWithoutApprovalItem.md @@ -27,11 +27,11 @@ Name | Type | Description | Notes **Data** | Pointer to **map[string]string** | Additional attributes for a non-employee. Up to 10 custom attributes can be added. | [optional] **ApprovalStatus** | Pointer to [**ApprovalStatus**](approval-status) | | [optional] **Comment** | Pointer to **string** | Comment of requester | [optional] -**CompletionDate** | Pointer to **time.Time** | When the request was completely approved. | [optional] +**CompletionDate** | Pointer to **SailPointTime** | When the request was completely approved. | [optional] **StartDate** | Pointer to **string** | Non-Employee employment start date. | [optional] **EndDate** | Pointer to **string** | Non-Employee employment end date. | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] ## Methods @@ -354,20 +354,20 @@ HasComment returns a boolean if a field has been set. ### GetCompletionDate -`func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDate() time.Time` +`func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDate() SailPointTime` GetCompletionDate returns the CompletionDate field if non-nil, zero value otherwise. ### GetCompletionDateOk -`func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDateOk() (*time.Time, bool)` +`func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDateOk() (*SailPointTime, bool)` GetCompletionDateOk returns a tuple with the CompletionDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompletionDate -`func (o *NonEmployeeRequestWithoutApprovalItem) SetCompletionDate(v time.Time)` +`func (o *NonEmployeeRequestWithoutApprovalItem) SetCompletionDate(v SailPointTime)` SetCompletionDate sets CompletionDate field to given value. @@ -429,20 +429,20 @@ HasEndDate returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeRequestWithoutApprovalItem) GetModified() time.Time` +`func (o *NonEmployeeRequestWithoutApprovalItem) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeRequestWithoutApprovalItem) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeRequestWithoutApprovalItem) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeRequestWithoutApprovalItem) SetModified(v time.Time)` +`func (o *NonEmployeeRequestWithoutApprovalItem) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -454,20 +454,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeRequestWithoutApprovalItem) GetCreated() time.Time` +`func (o *NonEmployeeRequestWithoutApprovalItem) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeRequestWithoutApprovalItem) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeRequestWithoutApprovalItem) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeRequestWithoutApprovalItem) SetCreated(v time.Time)` +`func (o *NonEmployeeRequestWithoutApprovalItem) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSchemaAttribute.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSchemaAttribute.md index c51982e4b..c958102ad 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSchemaAttribute.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSchemaAttribute.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | Schema Attribute Id | [optional] **System** | Pointer to **bool** | True if this schema attribute is mandatory on all non-employees sources. | [optional] [default to false] -**Modified** | Pointer to **time.Time** | When the schema attribute was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the schema attribute was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the schema attribute was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the schema attribute was created. | [optional] **Type** | [**NonEmployeeSchemaAttributeType**](non-employee-schema-attribute-type) | | **Label** | **string** | Label displayed on the UI for this schema attribute. | **TechnicalName** | **string** | The technical name of the attribute. Must be unique per source. | @@ -97,20 +97,20 @@ HasSystem returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeSchemaAttribute) GetModified() time.Time` +`func (o *NonEmployeeSchemaAttribute) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeSchemaAttribute) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeSchemaAttribute) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeSchemaAttribute) SetModified(v time.Time)` +`func (o *NonEmployeeSchemaAttribute) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -122,20 +122,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeSchemaAttribute) GetCreated() time.Time` +`func (o *NonEmployeeSchemaAttribute) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeSchemaAttribute) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeSchemaAttribute) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeSchemaAttribute) SetCreated(v time.Time)` +`func (o *NonEmployeeSchemaAttribute) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSource.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSource.md index 21d0bd3fa..3df16be50 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSource.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSource.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | Source description associated with this non-employee source. | [optional] **Approvers** | Pointer to [**[]IdentityReferenceWithId**](identity-reference-with-id) | List of approvers | [optional] **AccountManagers** | Pointer to [**[]IdentityReferenceWithId**](identity-reference-with-id) | List of account managers | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] **NonEmployeeCount** | Pointer to **NullableInt32** | The number of non-employee records on all sources that *requested-for* user manages. | [optional] ## Methods @@ -196,20 +196,20 @@ HasAccountManagers returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeSource) GetModified() time.Time` +`func (o *NonEmployeeSource) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeSource) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeSource) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeSource) SetModified(v time.Time)` +`func (o *NonEmployeeSource) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -221,20 +221,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeSource) GetCreated() time.Time` +`func (o *NonEmployeeSource) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeSource) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeSource) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeSource) SetCreated(v time.Time)` +`func (o *NonEmployeeSource) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithCloudExternalId.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithCloudExternalId.md index 26a63c84f..2ad5f0ed9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithCloudExternalId.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithCloudExternalId.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | Source description associated with this non-employee source. | [optional] **Approvers** | Pointer to [**[]IdentityReferenceWithId**](identity-reference-with-id) | List of approvers | [optional] **AccountManagers** | Pointer to [**[]IdentityReferenceWithId**](identity-reference-with-id) | List of account managers | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] **NonEmployeeCount** | Pointer to **NullableInt32** | The number of non-employee records on all sources that *requested-for* user manages. | [optional] **CloudExternalId** | Pointer to **string** | Legacy ID used for sources from the V1 API. This attribute will be removed from a future version of the API and will not be considered a breaking change. No clients should rely on this ID always being present. | [optional] @@ -197,20 +197,20 @@ HasAccountManagers returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeSourceWithCloudExternalId) GetModified() time.Time` +`func (o *NonEmployeeSourceWithCloudExternalId) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeSourceWithCloudExternalId) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeSourceWithCloudExternalId) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeSourceWithCloudExternalId) SetModified(v time.Time)` +`func (o *NonEmployeeSourceWithCloudExternalId) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -222,20 +222,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeSourceWithCloudExternalId) GetCreated() time.Time` +`func (o *NonEmployeeSourceWithCloudExternalId) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeSourceWithCloudExternalId) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeSourceWithCloudExternalId) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeSourceWithCloudExternalId) SetCreated(v time.Time)` +`func (o *NonEmployeeSourceWithCloudExternalId) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithNECount.md b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithNECount.md index 2da74a05b..a474a4f48 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithNECount.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NonEmployeeSourceWithNECount.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | Source description associated with this non-employee source. | [optional] **Approvers** | Pointer to [**[]IdentityReferenceWithId**](identity-reference-with-id) | List of approvers | [optional] **AccountManagers** | Pointer to [**[]IdentityReferenceWithId**](identity-reference-with-id) | List of account managers | [optional] -**Modified** | Pointer to **time.Time** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the request was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] **NonEmployeeCount** | Pointer to **int32** | Number of non-employee records associated with this source. This value is 'null' by default. To get the non-employee count, you must set the `non-employee-count` flag in your request to 'true'. | [optional] ## Methods @@ -196,20 +196,20 @@ HasAccountManagers returns a boolean if a field has been set. ### GetModified -`func (o *NonEmployeeSourceWithNECount) GetModified() time.Time` +`func (o *NonEmployeeSourceWithNECount) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NonEmployeeSourceWithNECount) GetModifiedOk() (*time.Time, bool)` +`func (o *NonEmployeeSourceWithNECount) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NonEmployeeSourceWithNECount) SetModified(v time.Time)` +`func (o *NonEmployeeSourceWithNECount) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -221,20 +221,20 @@ HasModified returns a boolean if a field has been set. ### GetCreated -`func (o *NonEmployeeSourceWithNECount) GetCreated() time.Time` +`func (o *NonEmployeeSourceWithNECount) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NonEmployeeSourceWithNECount) GetCreatedOk() (*time.Time, bool)` +`func (o *NonEmployeeSourceWithNECount) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NonEmployeeSourceWithNECount) SetCreated(v time.Time)` +`func (o *NonEmployeeSourceWithNECount) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/NotificationTemplateContext.md b/docs/tools/sdk/go/Reference/Beta/Models/NotificationTemplateContext.md index 71e495801..6392b960e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/NotificationTemplateContext.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/NotificationTemplateContext.md @@ -16,8 +16,8 @@ tags: ['SDK', 'Software Development Kit', 'NotificationTemplateContext', 'BetaNo Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Attributes** | Pointer to **map[string]interface{}** | A JSON object that stores the context. | [optional] -**Created** | Pointer to **time.Time** | When the global context was created | [optional] -**Modified** | Pointer to **time.Time** | When the global context was last modified | [optional] +**Created** | Pointer to **SailPointTime** | When the global context was created | [optional] +**Modified** | Pointer to **SailPointTime** | When the global context was last modified | [optional] ## Methods @@ -65,20 +65,20 @@ HasAttributes returns a boolean if a field has been set. ### GetCreated -`func (o *NotificationTemplateContext) GetCreated() time.Time` +`func (o *NotificationTemplateContext) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *NotificationTemplateContext) GetCreatedOk() (*time.Time, bool)` +`func (o *NotificationTemplateContext) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *NotificationTemplateContext) SetCreated(v time.Time)` +`func (o *NotificationTemplateContext) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -90,20 +90,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *NotificationTemplateContext) GetModified() time.Time` +`func (o *NotificationTemplateContext) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *NotificationTemplateContext) GetModifiedOk() (*time.Time, bool)` +`func (o *NotificationTemplateContext) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *NotificationTemplateContext) SetModified(v time.Time)` +`func (o *NotificationTemplateContext) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Outlier.md b/docs/tools/sdk/go/Reference/Beta/Models/Outlier.md index cb9afc79c..cf7155ead 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Outlier.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Outlier.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | The identity's unique identifier for the outlier record | [optional] **IdentityId** | Pointer to **string** | The ID of the identity that is detected as an outlier | [optional] **Type** | Pointer to **string** | The type of outlier summary | [optional] -**FirstDetectionDate** | Pointer to **time.Time** | The first date the outlier was detected | [optional] -**LatestDetectionDate** | Pointer to **time.Time** | The most recent date the outlier was detected | [optional] +**FirstDetectionDate** | Pointer to **SailPointTime** | The first date the outlier was detected | [optional] +**LatestDetectionDate** | Pointer to **SailPointTime** | The most recent date the outlier was detected | [optional] **Ignored** | Pointer to **bool** | Flag whether or not the outlier has been ignored | [optional] **Attributes** | Pointer to **map[string]interface{}** | Object containing mapped identity attributes | [optional] **Score** | Pointer to **float32** | The outlier score determined by the detection engine ranging from 0..1 | [optional] @@ -123,20 +123,20 @@ HasType returns a boolean if a field has been set. ### GetFirstDetectionDate -`func (o *Outlier) GetFirstDetectionDate() time.Time` +`func (o *Outlier) GetFirstDetectionDate() SailPointTime` GetFirstDetectionDate returns the FirstDetectionDate field if non-nil, zero value otherwise. ### GetFirstDetectionDateOk -`func (o *Outlier) GetFirstDetectionDateOk() (*time.Time, bool)` +`func (o *Outlier) GetFirstDetectionDateOk() (*SailPointTime, bool)` GetFirstDetectionDateOk returns a tuple with the FirstDetectionDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFirstDetectionDate -`func (o *Outlier) SetFirstDetectionDate(v time.Time)` +`func (o *Outlier) SetFirstDetectionDate(v SailPointTime)` SetFirstDetectionDate sets FirstDetectionDate field to given value. @@ -148,20 +148,20 @@ HasFirstDetectionDate returns a boolean if a field has been set. ### GetLatestDetectionDate -`func (o *Outlier) GetLatestDetectionDate() time.Time` +`func (o *Outlier) GetLatestDetectionDate() SailPointTime` GetLatestDetectionDate returns the LatestDetectionDate field if non-nil, zero value otherwise. ### GetLatestDetectionDateOk -`func (o *Outlier) GetLatestDetectionDateOk() (*time.Time, bool)` +`func (o *Outlier) GetLatestDetectionDateOk() (*SailPointTime, bool)` GetLatestDetectionDateOk returns a tuple with the LatestDetectionDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLatestDetectionDate -`func (o *Outlier) SetLatestDetectionDate(v time.Time)` +`func (o *Outlier) SetLatestDetectionDate(v SailPointTime)` SetLatestDetectionDate sets LatestDetectionDate field to given value. @@ -283,20 +283,20 @@ HasUnignoreType returns a boolean if a field has been set. UnsetUnignoreType ensures that no value is present for UnignoreType, not even an explicit nil ### GetUnignoreDate -`func (o *Outlier) GetUnignoreDate() time.Time` +`func (o *Outlier) GetUnignoreDate() SailPointTime` GetUnignoreDate returns the UnignoreDate field if non-nil, zero value otherwise. ### GetUnignoreDateOk -`func (o *Outlier) GetUnignoreDateOk() (*time.Time, bool)` +`func (o *Outlier) GetUnignoreDateOk() (*SailPointTime, bool)` GetUnignoreDateOk returns a tuple with the UnignoreDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUnignoreDate -`func (o *Outlier) SetUnignoreDate(v time.Time)` +`func (o *Outlier) SetUnignoreDate(v SailPointTime)` SetUnignoreDate sets UnignoreDate field to given value. @@ -318,20 +318,20 @@ HasUnignoreDate returns a boolean if a field has been set. UnsetUnignoreDate ensures that no value is present for UnignoreDate, not even an explicit nil ### GetIgnoreDate -`func (o *Outlier) GetIgnoreDate() time.Time` +`func (o *Outlier) GetIgnoreDate() SailPointTime` GetIgnoreDate returns the IgnoreDate field if non-nil, zero value otherwise. ### GetIgnoreDateOk -`func (o *Outlier) GetIgnoreDateOk() (*time.Time, bool)` +`func (o *Outlier) GetIgnoreDateOk() (*SailPointTime, bool)` GetIgnoreDateOk returns a tuple with the IgnoreDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIgnoreDate -`func (o *Outlier) SetIgnoreDate(v time.Time)` +`func (o *Outlier) SetIgnoreDate(v SailPointTime)` SetIgnoreDate sets IgnoreDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/OutlierSummary.md b/docs/tools/sdk/go/Reference/Beta/Models/OutlierSummary.md index 3a4aeb9a2..4a3e74579 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/OutlierSummary.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/OutlierSummary.md @@ -16,7 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'OutlierSummary', 'BetaOutlierSummary' Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | The type of outlier summary | [optional] -**SnapshotDate** | Pointer to **time.Time** | The date the bulk outlier detection ran/snapshot was created | [optional] +**SnapshotDate** | Pointer to **SailPointTime** | The date the bulk outlier detection ran/snapshot was created | [optional] **TotalOutliers** | Pointer to **int32** | Total number of outliers for the customer making the request | [optional] **TotalIdentities** | Pointer to **int32** | Total number of identities for the customer making the request | [optional] **TotalIgnored** | Pointer to **int32** | | [optional] [default to 0] @@ -67,20 +67,20 @@ HasType returns a boolean if a field has been set. ### GetSnapshotDate -`func (o *OutlierSummary) GetSnapshotDate() time.Time` +`func (o *OutlierSummary) GetSnapshotDate() SailPointTime` GetSnapshotDate returns the SnapshotDate field if non-nil, zero value otherwise. ### GetSnapshotDateOk -`func (o *OutlierSummary) GetSnapshotDateOk() (*time.Time, bool)` +`func (o *OutlierSummary) GetSnapshotDateOk() (*SailPointTime, bool)` GetSnapshotDateOk returns a tuple with the SnapshotDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSnapshotDate -`func (o *OutlierSummary) SetSnapshotDate(v time.Time)` +`func (o *OutlierSummary) SetSnapshotDate(v SailPointTime)` SetSnapshotDate sets SnapshotDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/OwnerReference.md b/docs/tools/sdk/go/Reference/Beta/Models/OwnerReference.md index 9a68ce13f..9077407b2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/OwnerReference.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/OwnerReference.md @@ -16,8 +16,8 @@ tags: ['SDK', 'Software Development Kit', 'OwnerReference', 'BetaOwnerReference' Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | Owner type. This field must be either left null or set to 'IDENTITY' on input, otherwise a 400 Bad Request error will result. | [optional] -**Id** | Pointer to **string** | Identity id | [optional] -**Name** | Pointer to **string** | Human-readable display name of the owner. It may be left null or omitted in a POST or PATCH. If set, it must match the current value of the owner's display name, otherwise a 400 Bad Request error will result. | [optional] +**Id** | Pointer to **string** | Owner's identity ID. | [optional] +**Name** | Pointer to **string** | Owner's name. It may be left null or omitted in a POST or PATCH. If set, it must match the current value of the owner's display name, otherwise a 400 Bad Request error will result. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/PasswordPolicyV3Dto.md b/docs/tools/sdk/go/Reference/Beta/Models/PasswordPolicyV3Dto.md index d509bcb2f..fb77ebd3f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/PasswordPolicyV3Dto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/PasswordPolicyV3Dto.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | The password policy Id. | [optional] **Description** | Pointer to **NullableString** | Description for current password policy. | [optional] **Name** | Pointer to **string** | The name of the password policy. | [optional] -**DateCreated** | Pointer to **time.Time** | Date the Password Policy was created. | [optional] +**DateCreated** | Pointer to **SailPointTime** | Date the Password Policy was created. | [optional] **LastUpdated** | Pointer to **NullableTime** | Date the Password Policy was updated. | [optional] **FirstExpirationReminder** | Pointer to **int64** | The number of days before expiration remaninder. | [optional] **AccountIdMinWordLength** | Pointer to **int64** | The minimun length of account Id. By default is equals to -1. | [optional] @@ -153,20 +153,20 @@ HasName returns a boolean if a field has been set. ### GetDateCreated -`func (o *PasswordPolicyV3Dto) GetDateCreated() time.Time` +`func (o *PasswordPolicyV3Dto) GetDateCreated() SailPointTime` GetDateCreated returns the DateCreated field if non-nil, zero value otherwise. ### GetDateCreatedOk -`func (o *PasswordPolicyV3Dto) GetDateCreatedOk() (*time.Time, bool)` +`func (o *PasswordPolicyV3Dto) GetDateCreatedOk() (*SailPointTime, bool)` GetDateCreatedOk returns a tuple with the DateCreated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDateCreated -`func (o *PasswordPolicyV3Dto) SetDateCreated(v time.Time)` +`func (o *PasswordPolicyV3Dto) SetDateCreated(v SailPointTime)` SetDateCreated sets DateCreated field to given value. @@ -178,20 +178,20 @@ HasDateCreated returns a boolean if a field has been set. ### GetLastUpdated -`func (o *PasswordPolicyV3Dto) GetLastUpdated() time.Time` +`func (o *PasswordPolicyV3Dto) GetLastUpdated() SailPointTime` GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. ### GetLastUpdatedOk -`func (o *PasswordPolicyV3Dto) GetLastUpdatedOk() (*time.Time, bool)` +`func (o *PasswordPolicyV3Dto) GetLastUpdatedOk() (*SailPointTime, bool)` GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastUpdated -`func (o *PasswordPolicyV3Dto) SetLastUpdated(v time.Time)` +`func (o *PasswordPolicyV3Dto) SetLastUpdated(v SailPointTime)` SetLastUpdated sets LastUpdated field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/PasswordSyncGroup.md b/docs/tools/sdk/go/Reference/Beta/Models/PasswordSyncGroup.md index 1982b6f46..d3ca91bb8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/PasswordSyncGroup.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/PasswordSyncGroup.md @@ -143,20 +143,20 @@ HasSourceIds returns a boolean if a field has been set. ### GetCreated -`func (o *PasswordSyncGroup) GetCreated() time.Time` +`func (o *PasswordSyncGroup) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *PasswordSyncGroup) GetCreatedOk() (*time.Time, bool)` +`func (o *PasswordSyncGroup) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *PasswordSyncGroup) SetCreated(v time.Time)` +`func (o *PasswordSyncGroup) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -178,20 +178,20 @@ HasCreated returns a boolean if a field has been set. UnsetCreated ensures that no value is present for Created, not even an explicit nil ### GetModified -`func (o *PasswordSyncGroup) GetModified() time.Time` +`func (o *PasswordSyncGroup) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *PasswordSyncGroup) GetModifiedOk() (*time.Time, bool)` +`func (o *PasswordSyncGroup) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *PasswordSyncGroup) SetModified(v time.Time)` +`func (o *PasswordSyncGroup) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/PatchServiceDeskIntegrationRequest.md b/docs/tools/sdk/go/Reference/Beta/Models/PatchServiceDeskIntegrationRequest.md deleted file mode 100644 index db2954b84..000000000 --- a/docs/tools/sdk/go/Reference/Beta/Models/PatchServiceDeskIntegrationRequest.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -id: beta-patch-service-desk-integration-request -title: PatchServiceDeskIntegrationRequest -pagination_label: PatchServiceDeskIntegrationRequest -sidebar_label: PatchServiceDeskIntegrationRequest -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'PatchServiceDeskIntegrationRequest', 'BetaPatchServiceDeskIntegrationRequest'] -slug: /tools/sdk/go/beta/models/patch-service-desk-integration-request -tags: ['SDK', 'Software Development Kit', 'PatchServiceDeskIntegrationRequest', 'BetaPatchServiceDeskIntegrationRequest'] ---- - -# PatchServiceDeskIntegrationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Operations** | Pointer to [**[]JsonPatchOperation**](json-patch-operation) | Operations to be applied | [optional] - -## Methods - -### NewPatchServiceDeskIntegrationRequest - -`func NewPatchServiceDeskIntegrationRequest() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequest instantiates a new PatchServiceDeskIntegrationRequest 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 - -### NewPatchServiceDeskIntegrationRequestWithDefaults - -`func NewPatchServiceDeskIntegrationRequestWithDefaults() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequestWithDefaults instantiates a new PatchServiceDeskIntegrationRequest 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 - -### GetOperations - -`func (o *PatchServiceDeskIntegrationRequest) GetOperations() []JsonPatchOperation` - -GetOperations returns the Operations field if non-nil, zero value otherwise. - -### GetOperationsOk - -`func (o *PatchServiceDeskIntegrationRequest) GetOperationsOk() (*[]JsonPatchOperation, bool)` - -GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOperations - -`func (o *PatchServiceDeskIntegrationRequest) SetOperations(v []JsonPatchOperation)` - -SetOperations sets Operations field to given value. - -### HasOperations - -`func (o *PatchServiceDeskIntegrationRequest) HasOperations() bool` - -HasOperations returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/Beta/Models/PendingApproval.md b/docs/tools/sdk/go/Reference/Beta/Models/PendingApproval.md index d8eda3176..a36a1af08 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/PendingApproval.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/PendingApproval.md @@ -17,9 +17,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The approval id. | [optional] **Name** | Pointer to **string** | The name of the approval. | [optional] -**Created** | Pointer to **time.Time** | When the approval was created. | [optional] -**Modified** | Pointer to **time.Time** | When the approval was modified last time. | [optional] -**RequestCreated** | Pointer to **time.Time** | When the access-request was created. | [optional] +**Created** | Pointer to **SailPointTime** | When the approval was created. | [optional] +**Modified** | Pointer to **SailPointTime** | When the approval was modified last time. | [optional] +**RequestCreated** | Pointer to **SailPointTime** | When the access-request was created. | [optional] **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] **Requester** | Pointer to [**AccessItemRequesterDto**](access-item-requester-dto) | | [optional] **RequestedFor** | Pointer to [**AccessItemRequestedForDto**](access-item-requested-for-dto) | | [optional] @@ -30,9 +30,9 @@ Name | Type | Description | Notes **ForwardHistory** | Pointer to [**[]ApprovalForwardHistory**](approval-forward-history) | The history of approval forward action. | [optional] **CommentRequiredWhenRejected** | Pointer to **bool** | When true the rejector has to provide comments when rejecting | [optional] [default to false] **ActionInProcess** | Pointer to [**PendingApprovalAction**](pending-approval-action) | | [optional] -**RemoveDate** | Pointer to **time.Time** | The date the role or access profile or entitlement is no longer assigned to the specified identity. | [optional] +**RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. | [optional] **RemoveDateUpdateRequested** | Pointer to **bool** | If true, then the request is to change the remove date or sunset date. | [optional] [default to false] -**CurrentRemoveDate** | Pointer to **time.Time** | The remove date or sunset date that was assigned at the time of the request. | [optional] +**CurrentRemoveDate** | Pointer to **SailPointTime** | The remove date or sunset date that was assigned at the time of the request. | [optional] **SodViolationContext** | Pointer to [**NullableSodViolationContextCheckCompleted1**](sod-violation-context-check-completed1) | | [optional] **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs, if any were included in the corresponding access request item | [optional] **RequestedAccounts** | Pointer to [**[]RequestedAccountRef**](requested-account-ref) | The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources. | [optional] @@ -108,20 +108,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *PendingApproval) GetCreated() time.Time` +`func (o *PendingApproval) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *PendingApproval) GetCreatedOk() (*time.Time, bool)` +`func (o *PendingApproval) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *PendingApproval) SetCreated(v time.Time)` +`func (o *PendingApproval) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -133,20 +133,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *PendingApproval) GetModified() time.Time` +`func (o *PendingApproval) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *PendingApproval) GetModifiedOk() (*time.Time, bool)` +`func (o *PendingApproval) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *PendingApproval) SetModified(v time.Time)` +`func (o *PendingApproval) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -158,20 +158,20 @@ HasModified returns a boolean if a field has been set. ### GetRequestCreated -`func (o *PendingApproval) GetRequestCreated() time.Time` +`func (o *PendingApproval) GetRequestCreated() SailPointTime` GetRequestCreated returns the RequestCreated field if non-nil, zero value otherwise. ### GetRequestCreatedOk -`func (o *PendingApproval) GetRequestCreatedOk() (*time.Time, bool)` +`func (o *PendingApproval) GetRequestCreatedOk() (*SailPointTime, bool)` GetRequestCreatedOk returns a tuple with the RequestCreated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRequestCreated -`func (o *PendingApproval) SetRequestCreated(v time.Time)` +`func (o *PendingApproval) SetRequestCreated(v SailPointTime)` SetRequestCreated sets RequestCreated field to given value. @@ -443,20 +443,20 @@ HasActionInProcess returns a boolean if a field has been set. ### GetRemoveDate -`func (o *PendingApproval) GetRemoveDate() time.Time` +`func (o *PendingApproval) GetRemoveDate() SailPointTime` GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. ### GetRemoveDateOk -`func (o *PendingApproval) GetRemoveDateOk() (*time.Time, bool)` +`func (o *PendingApproval) 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 *PendingApproval) SetRemoveDate(v time.Time)` +`func (o *PendingApproval) SetRemoveDate(v SailPointTime)` SetRemoveDate sets RemoveDate field to given value. @@ -493,20 +493,20 @@ HasRemoveDateUpdateRequested returns a boolean if a field has been set. ### GetCurrentRemoveDate -`func (o *PendingApproval) GetCurrentRemoveDate() time.Time` +`func (o *PendingApproval) GetCurrentRemoveDate() SailPointTime` GetCurrentRemoveDate returns the CurrentRemoveDate field if non-nil, zero value otherwise. ### GetCurrentRemoveDateOk -`func (o *PendingApproval) GetCurrentRemoveDateOk() (*time.Time, bool)` +`func (o *PendingApproval) GetCurrentRemoveDateOk() (*SailPointTime, bool)` GetCurrentRemoveDateOk returns a tuple with the CurrentRemoveDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCurrentRemoveDate -`func (o *PendingApproval) SetCurrentRemoveDate(v time.Time)` +`func (o *PendingApproval) SetCurrentRemoveDate(v SailPointTime)` SetCurrentRemoveDate sets CurrentRemoveDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/PreferencesDto.md b/docs/tools/sdk/go/Reference/Beta/Models/PreferencesDto.md index bb077e8d6..03ccbe1b7 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/PreferencesDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/PreferencesDto.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Key** | Pointer to **string** | The template notification key. | [optional] **Mediums** | Pointer to [**[]Medium**](medium) | List of preferred notification mediums, i.e., the mediums (or method) for which notifications are enabled. More mediums may be added in the future. | [optional] -**Modified** | Pointer to **time.Time** | Modified date of preference | [optional] +**Modified** | Pointer to **SailPointTime** | Modified date of preference | [optional] ## Methods @@ -90,20 +90,20 @@ HasMediums returns a boolean if a field has been set. ### GetModified -`func (o *PreferencesDto) GetModified() time.Time` +`func (o *PreferencesDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *PreferencesDto) GetModifiedOk() (*time.Time, bool)` +`func (o *PreferencesDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *PreferencesDto) SetModified(v time.Time)` +`func (o *PreferencesDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Product.md b/docs/tools/sdk/go/Reference/Beta/Models/Product.md index 1ddc44604..e064db8c0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Product.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Product.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **Attributes** | Pointer to **map[string]interface{}** | Additional attributes for a product | [optional] **Zone** | Pointer to **string** | Zone | [optional] **Status** | Pointer to **string** | Status of the product | [optional] -**StatusDateTime** | Pointer to **time.Time** | Status datetime | [optional] +**StatusDateTime** | Pointer to **SailPointTime** | Status datetime | [optional] **Reason** | Pointer to **string** | If there's a tenant provisioning failure then reason will have the description of error | [optional] **Notes** | Pointer to **string** | Product could have additional notes added during tenant provisioning. | [optional] **DateCreated** | Pointer to **NullableTime** | Date when the product was created | [optional] @@ -313,20 +313,20 @@ HasStatus returns a boolean if a field has been set. ### GetStatusDateTime -`func (o *Product) GetStatusDateTime() time.Time` +`func (o *Product) GetStatusDateTime() SailPointTime` GetStatusDateTime returns the StatusDateTime field if non-nil, zero value otherwise. ### GetStatusDateTimeOk -`func (o *Product) GetStatusDateTimeOk() (*time.Time, bool)` +`func (o *Product) GetStatusDateTimeOk() (*SailPointTime, bool)` GetStatusDateTimeOk returns a tuple with the StatusDateTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatusDateTime -`func (o *Product) SetStatusDateTime(v time.Time)` +`func (o *Product) SetStatusDateTime(v SailPointTime)` SetStatusDateTime sets StatusDateTime field to given value. @@ -388,20 +388,20 @@ HasNotes returns a boolean if a field has been set. ### GetDateCreated -`func (o *Product) GetDateCreated() time.Time` +`func (o *Product) GetDateCreated() SailPointTime` GetDateCreated returns the DateCreated field if non-nil, zero value otherwise. ### GetDateCreatedOk -`func (o *Product) GetDateCreatedOk() (*time.Time, bool)` +`func (o *Product) GetDateCreatedOk() (*SailPointTime, bool)` GetDateCreatedOk returns a tuple with the DateCreated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDateCreated -`func (o *Product) SetDateCreated(v time.Time)` +`func (o *Product) SetDateCreated(v SailPointTime)` SetDateCreated sets DateCreated field to given value. @@ -423,20 +423,20 @@ HasDateCreated returns a boolean if a field has been set. UnsetDateCreated ensures that no value is present for DateCreated, not even an explicit nil ### GetLastUpdated -`func (o *Product) GetLastUpdated() time.Time` +`func (o *Product) GetLastUpdated() SailPointTime` GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. ### GetLastUpdatedOk -`func (o *Product) GetLastUpdatedOk() (*time.Time, bool)` +`func (o *Product) GetLastUpdatedOk() (*SailPointTime, bool)` GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastUpdated -`func (o *Product) SetLastUpdated(v time.Time)` +`func (o *Product) SetLastUpdated(v SailPointTime)` SetLastUpdated sets LastUpdated field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel1.md b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel1.md index 0f5ad8194..90e6e20ed 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel1.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel1.md @@ -16,9 +16,9 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningCriteriaLevel1', 'BetaPro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Operation** | Pointer to [**ProvisioningCriteriaOperation**](provisioning-criteria-operation) | | [optional] -**Attribute** | Pointer to **NullableString** | Name of the Account attribute to be tested. If **operation** is one of EQUALS, NOT_EQUALS, CONTAINS, or HAS, this field is required. Otherwise, specifying it is an error. | [optional] -**Value** | Pointer to **NullableString** | String value to test the Account attribute w/r/t the specified operation. If the operation is one of EQUALS, NOT_EQUALS, or CONTAINS, this field is required. Otherwise, specifying it is an error. If the Attribute is not String-typed, it will be converted to the appropriate type. | [optional] -**Children** | Pointer to [**[]ProvisioningCriteriaLevel2**](provisioning-criteria-level2) | Array of child criteria. Required if the operation is AND or OR, otherwise it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] +**Attribute** | Pointer to **NullableString** | Name of the account attribute to be tested. If **operation** is one of `EQUALS`, `NOT_EQUALS`, `CONTAINS`, or `HAS`, this field is required. Otherwise, specifying it results in an error. | [optional] +**Value** | Pointer to **NullableString** | String value to test the account attribute w/r/t the specified operation. If the operation is one of `EQUALS`, `NOT_EQUALS`, or `CONTAINS`, this field is required. Otherwise, specifying it results in an error. If the attribute is not string-typed, the API will convert it to the appropriate type. | [optional] +**Children** | Pointer to [**[]ProvisioningCriteriaLevel2**](provisioning-criteria-level2) | Array of child criteria. This field is required if the operation is `AND` or `OR`. Otherwise, it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel2.md b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel2.md index 314821d87..29bacfbc0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel2.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel2.md @@ -16,9 +16,9 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningCriteriaLevel2', 'BetaPro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Operation** | Pointer to [**ProvisioningCriteriaOperation**](provisioning-criteria-operation) | | [optional] -**Attribute** | Pointer to **NullableString** | Name of the Account attribute to be tested. If **operation** is one of EQUALS, NOT_EQUALS, CONTAINS, or HAS, this field is required. Otherwise, specifying it is an error. | [optional] -**Value** | Pointer to **NullableString** | String value to test the Account attribute w/r/t the specified operation. If the operation is one of EQUALS, NOT_EQUALS, or CONTAINS, this field is required. Otherwise, specifying it is an error. If the Attribute is not String-typed, it will be converted to the appropriate type. | [optional] -**Children** | Pointer to [**[]ProvisioningCriteriaLevel3**](provisioning-criteria-level3) | Array of child criteria. Required if the operation is AND or OR, otherwise it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] +**Attribute** | Pointer to **NullableString** | Name of the account attribute to be tested. If **operation** is one of `EQUALS`, `NOT_EQUALS`, `CONTAINS`, or `HAS`, this field is required. Otherwise, specifying it results in an error. | [optional] +**Value** | Pointer to **NullableString** | String value to test the account attribute w/r/t the specified operation. If the operation is one of `EQUALS`, `NOT_EQUALS`, or `CONTAINS`, this field is required. Otherwise, specifying it results in an error. If the attribute is not string-typed, the API will convert it to the appropriate type. | [optional] +**Children** | Pointer to [**[]ProvisioningCriteriaLevel3**](provisioning-criteria-level3) | Array of child criteria. This field is required if the operation is `AND` or `OR`. Otherwise, it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel3.md b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel3.md index 46ebee8bb..3ba8536ac 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel3.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningCriteriaLevel3.md @@ -16,9 +16,9 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningCriteriaLevel3', 'BetaPro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Operation** | Pointer to [**ProvisioningCriteriaOperation**](provisioning-criteria-operation) | | [optional] -**Attribute** | Pointer to **NullableString** | Name of the Account attribute to be tested. If **operation** is one of EQUALS, NOT_EQUALS, CONTAINS, or HAS, this field is required. Otherwise, specifying it is an error. | [optional] -**Value** | Pointer to **string** | String value to test the Account attribute w/r/t the specified operation. If the operation is one of EQUALS, NOT_EQUALS, or CONTAINS, this field is required. Otherwise, specifying it is an error. If the Attribute is not String-typed, it will be converted to the appropriate type. | [optional] -**Children** | Pointer to **NullableString** | Array of child criteria. Required if the operation is AND or OR, otherwise it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] +**Attribute** | Pointer to **NullableString** | Name of the account attribute to be tested. If **operation** is one of `EQUALS`, `NOT_EQUALS`, `CONTAINS`, or `HAS`, this field is required. Otherwise, specifying it results in an error. | [optional] +**Value** | Pointer to **NullableString** | String value to test the account attribute w/r/t the specified operation. If the operation is one of `EQUALS`, `NOT_EQUALS`, or `CONTAINS`, this field is required. Otherwise, specifying it results in an error. If the attribute is not string-typed, the API will convert it to the appropriate type. | [optional] +**Children** | Pointer to **NullableString** | Array of child criteria. This field is required if the operation is `AND` or `OR`. Otherwise, it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] ## Methods @@ -124,6 +124,16 @@ SetValue sets Value field to given value. HasValue returns a boolean if a field has been set. +### SetValueNil + +`func (o *ProvisioningCriteriaLevel3) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *ProvisioningCriteriaLevel3) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil ### GetChildren `func (o *ProvisioningCriteriaLevel3) GetChildren() string` diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningPolicyDto.md b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningPolicyDto.md index 0d20a8708..ed0bf5fba 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningPolicyDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ProvisioningPolicyDto.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningPolicyDto', 'BetaProvisio Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | the provisioning policy name | +**Name** | **NullableString** | the provisioning policy name | **Description** | Pointer to **string** | the description of the provisioning policy | [optional] **UsageType** | Pointer to [**UsageType**](usage-type) | | [optional] **Fields** | Pointer to [**[]FieldDetailsDto**](field-details-dto) | | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewProvisioningPolicyDto -`func NewProvisioningPolicyDto(name string, ) *ProvisioningPolicyDto` +`func NewProvisioningPolicyDto(name NullableString, ) *ProvisioningPolicyDto` NewProvisioningPolicyDto instantiates a new ProvisioningPolicyDto object This constructor will assign default values to properties that have it defined, @@ -59,6 +59,16 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### SetNameNil + +`func (o *ProvisioningPolicyDto) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ProvisioningPolicyDto) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDescription `func (o *ProvisioningPolicyDto) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/Beta/Models/PublicIdentityConfig.md b/docs/tools/sdk/go/Reference/Beta/Models/PublicIdentityConfig.md index cfc839286..fc814d056 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/PublicIdentityConfig.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/PublicIdentityConfig.md @@ -100,20 +100,20 @@ HasModifiedBy returns a boolean if a field has been set. UnsetModifiedBy ensures that no value is present for ModifiedBy, not even an explicit nil ### GetModified -`func (o *PublicIdentityConfig) GetModified() time.Time` +`func (o *PublicIdentityConfig) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *PublicIdentityConfig) GetModifiedOk() (*time.Time, bool)` +`func (o *PublicIdentityConfig) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *PublicIdentityConfig) SetModified(v time.Time)` +`func (o *PublicIdentityConfig) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Requestability.md b/docs/tools/sdk/go/Reference/Beta/Models/Requestability.md index bf6ec11ce..db4f642a0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Requestability.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Requestability.md @@ -15,9 +15,10 @@ tags: ['SDK', 'Software Development Kit', 'Requestability', 'BetaRequestability' Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommentsRequired** | Pointer to **NullableBool** | Whether the requester of the containing object must provide comments justifying the request | [optional] [default to false] -**DenialCommentsRequired** | Pointer to **NullableBool** | Whether an approver must provide comments when denying the request | [optional] [default to false] -**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps in approving the request | [optional] +**CommentsRequired** | Pointer to **NullableBool** | Indicates whether the requester of the containing object must provide comments justifying the request. | [optional] [default to false] +**DenialCommentsRequired** | Pointer to **NullableBool** | Indicates whether an approver must provide comments when denying the request. | [optional] [default to false] +**ReauthorizationRequired** | Pointer to **NullableBool** | Indicates whether reauthorization is required for the request. | [optional] [default to false] +**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps involved in approving the request. | [optional] ## Methods @@ -108,6 +109,41 @@ HasDenialCommentsRequired returns a boolean if a field has been set. `func (o *Requestability) UnsetDenialCommentsRequired()` UnsetDenialCommentsRequired ensures that no value is present for DenialCommentsRequired, not even an explicit nil +### GetReauthorizationRequired + +`func (o *Requestability) GetReauthorizationRequired() bool` + +GetReauthorizationRequired returns the ReauthorizationRequired field if non-nil, zero value otherwise. + +### GetReauthorizationRequiredOk + +`func (o *Requestability) 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 *Requestability) SetReauthorizationRequired(v bool)` + +SetReauthorizationRequired sets ReauthorizationRequired field to given value. + +### HasReauthorizationRequired + +`func (o *Requestability) HasReauthorizationRequired() bool` + +HasReauthorizationRequired returns a boolean if a field has been set. + +### SetReauthorizationRequiredNil + +`func (o *Requestability) SetReauthorizationRequiredNil(b bool)` + + SetReauthorizationRequiredNil sets the value for ReauthorizationRequired to be an explicit nil + +### UnsetReauthorizationRequired +`func (o *Requestability) UnsetReauthorizationRequired()` + +UnsetReauthorizationRequired ensures that no value is present for ReauthorizationRequired, not even an explicit nil ### GetApprovalSchemes `func (o *Requestability) GetApprovalSchemes() []AccessProfileApprovalScheme` diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestabilityForRole.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestabilityForRole.md index ab7a559a4..a494adb52 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RequestabilityForRole.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestabilityForRole.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CommentsRequired** | Pointer to **NullableBool** | Whether the requester of the containing object must provide comments justifying the request | [optional] [default to false] **DenialCommentsRequired** | Pointer to **NullableBool** | Whether an approver must provide comments when denying the request | [optional] [default to false] +**ReauthorizationRequired** | Pointer to **NullableBool** | Indicates whether reauthorization is required for the request. | [optional] [default to false] **ApprovalSchemes** | Pointer to [**[]ApprovalSchemeForRole**](approval-scheme-for-role) | List describing the steps in approving the request | [optional] ## Methods @@ -108,6 +109,41 @@ HasDenialCommentsRequired returns a boolean if a field has been set. `func (o *RequestabilityForRole) UnsetDenialCommentsRequired()` UnsetDenialCommentsRequired ensures that no value is present for DenialCommentsRequired, not even an explicit nil +### GetReauthorizationRequired + +`func (o *RequestabilityForRole) GetReauthorizationRequired() bool` + +GetReauthorizationRequired returns the ReauthorizationRequired field if non-nil, zero value otherwise. + +### GetReauthorizationRequiredOk + +`func (o *RequestabilityForRole) 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 *RequestabilityForRole) SetReauthorizationRequired(v bool)` + +SetReauthorizationRequired sets ReauthorizationRequired field to given value. + +### HasReauthorizationRequired + +`func (o *RequestabilityForRole) HasReauthorizationRequired() bool` + +HasReauthorizationRequired returns a boolean if a field has been set. + +### SetReauthorizationRequiredNil + +`func (o *RequestabilityForRole) SetReauthorizationRequiredNil(b bool)` + + SetReauthorizationRequiredNil sets the value for ReauthorizationRequired to be an explicit nil + +### UnsetReauthorizationRequired +`func (o *RequestabilityForRole) UnsetReauthorizationRequired()` + +UnsetReauthorizationRequired ensures that no value is present for ReauthorizationRequired, not even an explicit nil ### GetApprovalSchemes `func (o *RequestabilityForRole) GetApprovalSchemes() []ApprovalSchemeForRole` diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestableObject.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestableObject.md index 661e24d2b..b9c5d6436 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RequestableObject.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestableObject.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | Id of the requestable object itself | [optional] **Name** | Pointer to **string** | Human-readable display name of the requestable object | [optional] -**Created** | Pointer to **time.Time** | The time when the requestable object was created | [optional] +**Created** | Pointer to **SailPointTime** | The time when the requestable object was created | [optional] **Modified** | Pointer to **NullableTime** | The time when the requestable object was last modified | [optional] **Description** | Pointer to **NullableString** | Description of the requestable object. | [optional] **Type** | Pointer to [**RequestableObjectType**](requestable-object-type) | | [optional] @@ -97,20 +97,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *RequestableObject) GetCreated() time.Time` +`func (o *RequestableObject) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *RequestableObject) GetCreatedOk() (*time.Time, bool)` +`func (o *RequestableObject) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *RequestableObject) SetCreated(v time.Time)` +`func (o *RequestableObject) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -122,20 +122,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *RequestableObject) GetModified() time.Time` +`func (o *RequestableObject) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *RequestableObject) GetModifiedOk() (*time.Time, bool)` +`func (o *RequestableObject) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *RequestableObject) SetModified(v time.Time)` +`func (o *RequestableObject) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestedForDtoRef.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestedForDtoRef.md new file mode 100644 index 000000000..9c02e7060 --- /dev/null +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestedForDtoRef.md @@ -0,0 +1,80 @@ +--- +id: beta-requested-for-dto-ref +title: RequestedForDtoRef +pagination_label: RequestedForDtoRef +sidebar_label: RequestedForDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedForDtoRef', 'BetaRequestedForDtoRef'] +slug: /tools/sdk/go/beta/models/requested-for-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedForDtoRef', 'BetaRequestedForDtoRef'] +--- + +# RequestedForDtoRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IdentityId** | **string** | The identity id for which the access is requested | +**RequestedItems** | [**[]RequestedItemDtoRef**](requested-item-dto-ref) | the details for the access items that are requested for the identity | + +## Methods + +### NewRequestedForDtoRef + +`func NewRequestedForDtoRef(identityId string, requestedItems []RequestedItemDtoRef, ) *RequestedForDtoRef` + +NewRequestedForDtoRef instantiates a new RequestedForDtoRef 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 + +### NewRequestedForDtoRefWithDefaults + +`func NewRequestedForDtoRefWithDefaults() *RequestedForDtoRef` + +NewRequestedForDtoRefWithDefaults instantiates a new RequestedForDtoRef 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 + +### GetIdentityId + +`func (o *RequestedForDtoRef) GetIdentityId() string` + +GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. + +### GetIdentityIdOk + +`func (o *RequestedForDtoRef) GetIdentityIdOk() (*string, bool)` + +GetIdentityIdOk returns a tuple with the IdentityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityId + +`func (o *RequestedForDtoRef) SetIdentityId(v string)` + +SetIdentityId sets IdentityId field to given value. + + +### GetRequestedItems + +`func (o *RequestedForDtoRef) GetRequestedItems() []RequestedItemDtoRef` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`func (o *RequestedForDtoRef) GetRequestedItemsOk() (*[]RequestedItemDtoRef, 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 *RequestedForDtoRef) SetRequestedItems(v []RequestedItemDtoRef)` + +SetRequestedItems sets RequestedItems field to given value. + + + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemDtoRef.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemDtoRef.md new file mode 100644 index 000000000..0a49d7769 --- /dev/null +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemDtoRef.md @@ -0,0 +1,266 @@ +--- +id: beta-requested-item-dto-ref +title: RequestedItemDtoRef +pagination_label: RequestedItemDtoRef +sidebar_label: RequestedItemDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedItemDtoRef', 'BetaRequestedItemDtoRef'] +slug: /tools/sdk/go/beta/models/requested-item-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedItemDtoRef', 'BetaRequestedItemDtoRef'] +--- + +# RequestedItemDtoRef + +## 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] +**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 + +### NewRequestedItemDtoRef + +`func NewRequestedItemDtoRef(type_ string, id string, ) *RequestedItemDtoRef` + +NewRequestedItemDtoRef instantiates a new RequestedItemDtoRef 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 + +### NewRequestedItemDtoRefWithDefaults + +`func NewRequestedItemDtoRefWithDefaults() *RequestedItemDtoRef` + +NewRequestedItemDtoRefWithDefaults instantiates a new RequestedItemDtoRef 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 *RequestedItemDtoRef) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *RequestedItemDtoRef) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetId(v string)` + +SetId sets Id field to given value. + + +### GetComment + +`func (o *RequestedItemDtoRef) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *RequestedItemDtoRef) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetClientMetadata + +`func (o *RequestedItemDtoRef) GetClientMetadata() map[string]string` + +GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. + +### GetClientMetadataOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetClientMetadata(v map[string]string)` + +SetClientMetadata sets ClientMetadata field to given value. + +### HasClientMetadata + +`func (o *RequestedItemDtoRef) HasClientMetadata() bool` + +HasClientMetadata returns a boolean if a field has been set. + +### GetRemoveDate + +`func (o *RequestedItemDtoRef) GetRemoveDate() SailPointTime` + +GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. + +### GetRemoveDateOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetRemoveDate(v SailPointTime)` + +SetRemoveDate sets RemoveDate field to given value. + +### HasRemoveDate + +`func (o *RequestedItemDtoRef) HasRemoveDate() bool` + +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` + +GetAccountSelection returns the AccountSelection field if non-nil, zero value otherwise. + +### GetAccountSelectionOk + +`func (o *RequestedItemDtoRef) GetAccountSelectionOk() (*[]SourceItemRef, bool)` + +GetAccountSelectionOk returns a tuple with the AccountSelection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountSelection + +`func (o *RequestedItemDtoRef) SetAccountSelection(v []SourceItemRef)` + +SetAccountSelection sets AccountSelection field to given value. + +### HasAccountSelection + +`func (o *RequestedItemDtoRef) HasAccountSelection() bool` + +HasAccountSelection returns a boolean if a field has been set. + +### SetAccountSelectionNil + +`func (o *RequestedItemDtoRef) SetAccountSelectionNil(b bool)` + + SetAccountSelectionNil sets the value for AccountSelection to be an explicit nil + +### UnsetAccountSelection +`func (o *RequestedItemDtoRef) UnsetAccountSelection()` + +UnsetAccountSelection ensures that no value is present for AccountSelection, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatus.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatus.md index 4a26216a8..190a52e01 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatus.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatus.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **AccountActivityItemId** | Pointer to **string** | Id of associated account activity item. | [optional] **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] **Modified** | Pointer to **NullableTime** | When the request was last modified. | [optional] -**Created** | Pointer to **time.Time** | When the request was created. | [optional] +**Created** | Pointer to **SailPointTime** | When the request was created. | [optional] **Requester** | Pointer to [**AccessItemRequester**](access-item-requester) | | [optional] **RequestedFor** | Pointer to [**RequestedItemStatusRequestedFor**](requested-item-status-requested-for) | | [optional] **RequesterComment** | Pointer to [**RequestedItemStatusRequesterComment**](requested-item-status-requester-comment) | | [optional] @@ -398,20 +398,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 ### GetModified -`func (o *RequestedItemStatus) GetModified() time.Time` +`func (o *RequestedItemStatus) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *RequestedItemStatus) GetModifiedOk() (*time.Time, bool)` +`func (o *RequestedItemStatus) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *RequestedItemStatus) SetModified(v time.Time)` +`func (o *RequestedItemStatus) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -433,20 +433,20 @@ HasModified returns a boolean if a field has been set. UnsetModified ensures that no value is present for Modified, not even an explicit nil ### GetCreated -`func (o *RequestedItemStatus) GetCreated() time.Time` +`func (o *RequestedItemStatus) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *RequestedItemStatus) GetCreatedOk() (*time.Time, bool)` +`func (o *RequestedItemStatus) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *RequestedItemStatus) SetCreated(v time.Time)` +`func (o *RequestedItemStatus) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -678,20 +678,20 @@ HasDescription returns a boolean if a field has been set. UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetRemoveDate -`func (o *RequestedItemStatus) GetRemoveDate() time.Time` +`func (o *RequestedItemStatus) GetRemoveDate() SailPointTime` GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. ### GetRemoveDateOk -`func (o *RequestedItemStatus) GetRemoveDateOk() (*time.Time, bool)` +`func (o *RequestedItemStatus) 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 *RequestedItemStatus) SetRemoveDate(v time.Time)` +`func (o *RequestedItemStatus) SetRemoveDate(v SailPointTime)` SetRemoveDate sets RemoveDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusCancelledRequestDetails.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusCancelledRequestDetails.md index 1c8d0a6a8..643a5953a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusCancelledRequestDetails.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusCancelledRequestDetails.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Comment** | Pointer to **string** | Comment made by the owner when cancelling the associated request. | [optional] **Owner** | Pointer to [**OwnerDto**](owner-dto) | | [optional] -**Modified** | Pointer to **time.Time** | Date comment was added by the owner when cancelling the associated request. | [optional] +**Modified** | Pointer to **SailPointTime** | Date comment was added by the owner when cancelling the associated request. | [optional] ## Methods @@ -90,20 +90,20 @@ HasOwner returns a boolean if a field has been set. ### GetModified -`func (o *RequestedItemStatusCancelledRequestDetails) GetModified() time.Time` +`func (o *RequestedItemStatusCancelledRequestDetails) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *RequestedItemStatusCancelledRequestDetails) GetModifiedOk() (*time.Time, bool)` +`func (o *RequestedItemStatusCancelledRequestDetails) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *RequestedItemStatusCancelledRequestDetails) SetModified(v time.Time)` +`func (o *RequestedItemStatusCancelledRequestDetails) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusRequesterComment.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusRequesterComment.md index 703499bf6..c653caf20 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusRequesterComment.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemStatusRequesterComment.md @@ -16,7 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'RequestedItemStatusRequesterComment', Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Comment** | Pointer to **NullableString** | Comment content. | [optional] -**Created** | Pointer to **time.Time** | Date and time comment was created. | [optional] +**Created** | Pointer to **SailPointTime** | Date and time comment was created. | [optional] **Author** | Pointer to [**CommentDto1Author**](comment-dto1-author) | | [optional] ## Methods @@ -75,20 +75,20 @@ HasComment returns a boolean if a field has been set. UnsetComment ensures that no value is present for Comment, not even an explicit nil ### GetCreated -`func (o *RequestedItemStatusRequesterComment) GetCreated() time.Time` +`func (o *RequestedItemStatusRequesterComment) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *RequestedItemStatusRequesterComment) GetCreatedOk() (*time.Time, bool)` +`func (o *RequestedItemStatusRequesterComment) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *RequestedItemStatusRequesterComment) SetCreated(v time.Time)` +`func (o *RequestedItemStatusRequesterComment) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Revocability.md b/docs/tools/sdk/go/Reference/Beta/Models/Revocability.md index 7d58b3ce9..43041a2d6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Revocability.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Revocability.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'Revocability', 'BetaRevocability'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps in approving the revocation request | [optional] +**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps involved in approving the revocation request. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Role.md b/docs/tools/sdk/go/Reference/Beta/Models/Role.md index 9fa1a881d..c424afbd7 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Role.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Role.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The id of the Role. This field must be left null when creating an Role, otherwise a 400 Bad Request error will result. | [optional] **Name** | **string** | The human-readable display name of the Role | -**Created** | Pointer to **time.Time** | Date the Role was created | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Date the Role was last modified. | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Date the Role was created | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Date the Role was last modified. | [optional] [readonly] **Description** | Pointer to **NullableString** | A human-readable description of the Role | [optional] **Owner** | [**OwnerReference**](owner-reference) | | **AccessProfiles** | Pointer to [**[]AccessProfileRef**](access-profile-ref) | | [optional] @@ -100,20 +100,20 @@ SetName sets Name field to given value. ### GetCreated -`func (o *Role) GetCreated() time.Time` +`func (o *Role) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Role) GetCreatedOk() (*time.Time, bool)` +`func (o *Role) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Role) SetCreated(v time.Time)` +`func (o *Role) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -125,20 +125,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *Role) GetModified() time.Time` +`func (o *Role) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Role) GetModifiedOk() (*time.Time, bool)` +`func (o *Role) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Role) SetModified(v time.Time)` +`func (o *Role) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RoleInsight.md b/docs/tools/sdk/go/Reference/Beta/Models/RoleInsight.md index adcfb2cb7..84562467e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RoleInsight.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RoleInsight.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | Insight id | [optional] **NumberOfUpdates** | Pointer to **int32** | Total number of updates for this role | [optional] -**CreatedDate** | Pointer to **time.Time** | The date-time insights were last created for this role. | [optional] +**CreatedDate** | Pointer to **SailPointTime** | The date-time insights were last created for this role. | [optional] **ModifiedDate** | Pointer to **NullableTime** | The date-time insights were last modified for this role. | [optional] **Role** | Pointer to [**RoleInsightsRole**](role-insights-role) | | [optional] **Insight** | Pointer to [**RoleInsightsInsight**](role-insights-insight) | | [optional] @@ -93,20 +93,20 @@ HasNumberOfUpdates returns a boolean if a field has been set. ### GetCreatedDate -`func (o *RoleInsight) GetCreatedDate() time.Time` +`func (o *RoleInsight) GetCreatedDate() SailPointTime` GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. ### GetCreatedDateOk -`func (o *RoleInsight) GetCreatedDateOk() (*time.Time, bool)` +`func (o *RoleInsight) GetCreatedDateOk() (*SailPointTime, bool)` GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedDate -`func (o *RoleInsight) SetCreatedDate(v time.Time)` +`func (o *RoleInsight) SetCreatedDate(v SailPointTime)` SetCreatedDate sets CreatedDate field to given value. @@ -118,20 +118,20 @@ HasCreatedDate returns a boolean if a field has been set. ### GetModifiedDate -`func (o *RoleInsight) GetModifiedDate() time.Time` +`func (o *RoleInsight) GetModifiedDate() SailPointTime` GetModifiedDate returns the ModifiedDate field if non-nil, zero value otherwise. ### GetModifiedDateOk -`func (o *RoleInsight) GetModifiedDateOk() (*time.Time, bool)` +`func (o *RoleInsight) GetModifiedDateOk() (*SailPointTime, bool)` GetModifiedDateOk returns a tuple with the ModifiedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModifiedDate -`func (o *RoleInsight) SetModifiedDate(v time.Time)` +`func (o *RoleInsight) SetModifiedDate(v SailPointTime)` SetModifiedDate sets ModifiedDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsResponse.md index ef2e6efc4..4496503ad 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsResponse.md @@ -16,8 +16,8 @@ tags: ['SDK', 'Software Development Kit', 'RoleInsightsResponse', 'BetaRoleInsig Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | Request Id for a role insight generation request | [optional] -**CreatedDate** | Pointer to **time.Time** | The date-time role insights request was created. | [optional] -**LastGenerated** | Pointer to **time.Time** | The date-time role insights request was completed. | [optional] +**CreatedDate** | Pointer to **SailPointTime** | The date-time role insights request was created. | [optional] +**LastGenerated** | Pointer to **SailPointTime** | The date-time role insights request was completed. | [optional] **NumberOfUpdates** | Pointer to **int32** | Total number of updates for this request. Starts with 0 and will have correct number when request is COMPLETED. | [optional] **RoleIds** | Pointer to **[]string** | The role IDs that are in this request. | [optional] **Status** | Pointer to **string** | Request status | [optional] @@ -68,20 +68,20 @@ HasId returns a boolean if a field has been set. ### GetCreatedDate -`func (o *RoleInsightsResponse) GetCreatedDate() time.Time` +`func (o *RoleInsightsResponse) GetCreatedDate() SailPointTime` GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. ### GetCreatedDateOk -`func (o *RoleInsightsResponse) GetCreatedDateOk() (*time.Time, bool)` +`func (o *RoleInsightsResponse) GetCreatedDateOk() (*SailPointTime, bool)` GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedDate -`func (o *RoleInsightsResponse) SetCreatedDate(v time.Time)` +`func (o *RoleInsightsResponse) SetCreatedDate(v SailPointTime)` SetCreatedDate sets CreatedDate field to given value. @@ -93,20 +93,20 @@ HasCreatedDate returns a boolean if a field has been set. ### GetLastGenerated -`func (o *RoleInsightsResponse) GetLastGenerated() time.Time` +`func (o *RoleInsightsResponse) GetLastGenerated() SailPointTime` GetLastGenerated returns the LastGenerated field if non-nil, zero value otherwise. ### GetLastGeneratedOk -`func (o *RoleInsightsResponse) GetLastGeneratedOk() (*time.Time, bool)` +`func (o *RoleInsightsResponse) GetLastGeneratedOk() (*SailPointTime, bool)` GetLastGeneratedOk returns a tuple with the LastGenerated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastGenerated -`func (o *RoleInsightsResponse) SetLastGenerated(v time.Time)` +`func (o *RoleInsightsResponse) SetLastGenerated(v SailPointTime)` SetLastGenerated sets LastGenerated field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsSummary.md b/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsSummary.md index 7cf7dac06..ea038429e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsSummary.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RoleInsightsSummary.md @@ -16,7 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'RoleInsightsSummary', 'BetaRoleInsigh Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **NumberOfUpdates** | Pointer to **int32** | Total number of roles with updates | [optional] -**LastGenerated** | Pointer to **time.Time** | The date-time role insights were last found. | [optional] +**LastGenerated** | Pointer to **SailPointTime** | The date-time role insights were last found. | [optional] **EntitlementsIncludedInRoles** | Pointer to **int32** | The number of entitlements included in roles (vs free radicals). | [optional] **TotalNumberOfEntitlements** | Pointer to **int32** | The total number of entitlements. | [optional] **IdentitiesWithAccessViaRoles** | Pointer to **int32** | The number of identities in roles vs. identities with just entitlements and not in roles. | [optional] @@ -68,20 +68,20 @@ HasNumberOfUpdates returns a boolean if a field has been set. ### GetLastGenerated -`func (o *RoleInsightsSummary) GetLastGenerated() time.Time` +`func (o *RoleInsightsSummary) GetLastGenerated() SailPointTime` GetLastGenerated returns the LastGenerated field if non-nil, zero value otherwise. ### GetLastGeneratedOk -`func (o *RoleInsightsSummary) GetLastGeneratedOk() (*time.Time, bool)` +`func (o *RoleInsightsSummary) GetLastGeneratedOk() (*SailPointTime, bool)` GetLastGeneratedOk returns a tuple with the LastGenerated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastGenerated -`func (o *RoleInsightsSummary) SetLastGenerated(v time.Time)` +`func (o *RoleInsightsSummary) SetLastGenerated(v SailPointTime)` SetLastGenerated sets LastGenerated field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRole.md b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRole.md index ed31a2bdb..8f7436029 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRole.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRole.md @@ -32,8 +32,8 @@ Name | Type | Description | Notes **Session** | Pointer to [**RoleMiningSessionParametersDto**](role-mining-session-parameters-dto) | | [optional] **Type** | Pointer to [**RoleMiningRoleType**](role-mining-role-type) | | [optional] **Id** | Pointer to **string** | Id of the potential role | [optional] -**CreatedDate** | Pointer to **time.Time** | The date-time when this potential role was created. | [optional] -**ModifiedDate** | Pointer to **time.Time** | The date-time when this potential role was modified. | [optional] +**CreatedDate** | Pointer to **SailPointTime** | The date-time when this potential role was created. | [optional] +**ModifiedDate** | Pointer to **SailPointTime** | The date-time when this potential role was modified. | [optional] ## Methods @@ -521,20 +521,20 @@ HasId returns a boolean if a field has been set. ### GetCreatedDate -`func (o *RoleMiningPotentialRole) GetCreatedDate() time.Time` +`func (o *RoleMiningPotentialRole) GetCreatedDate() SailPointTime` GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. ### GetCreatedDateOk -`func (o *RoleMiningPotentialRole) GetCreatedDateOk() (*time.Time, bool)` +`func (o *RoleMiningPotentialRole) GetCreatedDateOk() (*SailPointTime, bool)` GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedDate -`func (o *RoleMiningPotentialRole) SetCreatedDate(v time.Time)` +`func (o *RoleMiningPotentialRole) SetCreatedDate(v SailPointTime)` SetCreatedDate sets CreatedDate field to given value. @@ -546,20 +546,20 @@ HasCreatedDate returns a boolean if a field has been set. ### GetModifiedDate -`func (o *RoleMiningPotentialRole) GetModifiedDate() time.Time` +`func (o *RoleMiningPotentialRole) GetModifiedDate() SailPointTime` GetModifiedDate returns the ModifiedDate field if non-nil, zero value otherwise. ### GetModifiedDateOk -`func (o *RoleMiningPotentialRole) GetModifiedDateOk() (*time.Time, bool)` +`func (o *RoleMiningPotentialRole) GetModifiedDateOk() (*SailPointTime, bool)` GetModifiedDateOk returns a tuple with the ModifiedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModifiedDate -`func (o *RoleMiningPotentialRole) SetModifiedDate(v time.Time)` +`func (o *RoleMiningPotentialRole) SetModifiedDate(v SailPointTime)` SetModifiedDate sets ModifiedDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRoleSummary.md b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRoleSummary.md index da939d080..489489f86 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRoleSummary.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningPotentialRoleSummary.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes **Quality** | Pointer to **int32** | The quality metric (0-100) of this potential role. Higher quality values indicate this potential role has high density and freshness. | [optional] **Type** | Pointer to [**RoleMiningRoleType**](role-mining-role-type) | | [optional] **CreatedBy** | Pointer to [**RoleMiningPotentialRoleSummaryCreatedBy**](role-mining-potential-role-summary-created-by) | | [optional] -**CreatedDate** | Pointer to **time.Time** | The date-time when this potential role was created. | [optional] +**CreatedDate** | Pointer to **SailPointTime** | The date-time when this potential role was created. | [optional] **Saved** | Pointer to **bool** | The potential role's saved status | [optional] [default to false] **Description** | Pointer to **NullableString** | Description of the potential role | [optional] **Session** | Pointer to [**RoleMiningSessionParametersDto**](role-mining-session-parameters-dto) | | [optional] @@ -389,20 +389,20 @@ HasCreatedBy returns a boolean if a field has been set. ### GetCreatedDate -`func (o *RoleMiningPotentialRoleSummary) GetCreatedDate() time.Time` +`func (o *RoleMiningPotentialRoleSummary) GetCreatedDate() SailPointTime` GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. ### GetCreatedDateOk -`func (o *RoleMiningPotentialRoleSummary) GetCreatedDateOk() (*time.Time, bool)` +`func (o *RoleMiningPotentialRoleSummary) GetCreatedDateOk() (*SailPointTime, bool)` GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedDate -`func (o *RoleMiningPotentialRoleSummary) SetCreatedDate(v time.Time)` +`func (o *RoleMiningPotentialRoleSummary) SetCreatedDate(v SailPointTime)` SetCreatedDate sets CreatedDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionDraftRoleDto.md b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionDraftRoleDto.md index 09c51aa77..5545f86d8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionDraftRoleDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionDraftRoleDto.md @@ -20,11 +20,11 @@ Name | Type | Description | Notes **IdentityIds** | Pointer to **[]string** | The list of identities for this role mining session. | [optional] **EntitlementIds** | Pointer to **[]string** | The list of entitlement ids for this role mining session. | [optional] **ExcludedEntitlements** | Pointer to **[]string** | The list of excluded entitlement ids. | [optional] -**Modified** | Pointer to **time.Time** | Last modified date | [optional] +**Modified** | Pointer to **SailPointTime** | Last modified date | [optional] **Type** | Pointer to [**RoleMiningRoleType**](role-mining-role-type) | | [optional] **Id** | Pointer to **string** | Id of the potential draft role | [optional] -**CreatedDate** | Pointer to **time.Time** | The date-time when this potential draft role was created. | [optional] -**ModifiedDate** | Pointer to **time.Time** | The date-time when this potential draft role was modified. | [optional] +**CreatedDate** | Pointer to **SailPointTime** | The date-time when this potential draft role was created. | [optional] +**ModifiedDate** | Pointer to **SailPointTime** | The date-time when this potential draft role was modified. | [optional] ## Methods @@ -172,20 +172,20 @@ HasExcludedEntitlements returns a boolean if a field has been set. ### GetModified -`func (o *RoleMiningSessionDraftRoleDto) GetModified() time.Time` +`func (o *RoleMiningSessionDraftRoleDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *RoleMiningSessionDraftRoleDto) GetModifiedOk() (*time.Time, bool)` +`func (o *RoleMiningSessionDraftRoleDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *RoleMiningSessionDraftRoleDto) SetModified(v time.Time)` +`func (o *RoleMiningSessionDraftRoleDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -247,20 +247,20 @@ HasId returns a boolean if a field has been set. ### GetCreatedDate -`func (o *RoleMiningSessionDraftRoleDto) GetCreatedDate() time.Time` +`func (o *RoleMiningSessionDraftRoleDto) GetCreatedDate() SailPointTime` GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. ### GetCreatedDateOk -`func (o *RoleMiningSessionDraftRoleDto) GetCreatedDateOk() (*time.Time, bool)` +`func (o *RoleMiningSessionDraftRoleDto) GetCreatedDateOk() (*SailPointTime, bool)` GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedDate -`func (o *RoleMiningSessionDraftRoleDto) SetCreatedDate(v time.Time)` +`func (o *RoleMiningSessionDraftRoleDto) SetCreatedDate(v SailPointTime)` SetCreatedDate sets CreatedDate field to given value. @@ -272,20 +272,20 @@ HasCreatedDate returns a boolean if a field has been set. ### GetModifiedDate -`func (o *RoleMiningSessionDraftRoleDto) GetModifiedDate() time.Time` +`func (o *RoleMiningSessionDraftRoleDto) GetModifiedDate() SailPointTime` GetModifiedDate returns the ModifiedDate field if non-nil, zero value otherwise. ### GetModifiedDateOk -`func (o *RoleMiningSessionDraftRoleDto) GetModifiedDateOk() (*time.Time, bool)` +`func (o *RoleMiningSessionDraftRoleDto) GetModifiedDateOk() (*SailPointTime, bool)` GetModifiedDateOk returns a tuple with the ModifiedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModifiedDate -`func (o *RoleMiningSessionDraftRoleDto) SetModifiedDate(v time.Time)` +`func (o *RoleMiningSessionDraftRoleDto) SetModifiedDate(v SailPointTime)` SetModifiedDate sets ModifiedDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionResponse.md b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionResponse.md index 153483654..9a48a515a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionResponse.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RoleMiningSessionResponse.md @@ -30,8 +30,8 @@ Name | Type | Description | Notes **Name** | Pointer to **NullableString** | The session's saved name | [optional] **DataFilePath** | Pointer to **NullableString** | The data file path of the role mining session | [optional] **Id** | Pointer to **string** | Session Id for this role mining session | [optional] -**CreatedDate** | Pointer to **time.Time** | The date-time when this role mining session was created. | [optional] -**ModifiedDate** | Pointer to **time.Time** | The date-time when this role mining session was completed. | [optional] +**CreatedDate** | Pointer to **SailPointTime** | The date-time when this role mining session was created. | [optional] +**ModifiedDate** | Pointer to **SailPointTime** | The date-time when this role mining session was completed. | [optional] **Type** | Pointer to [**RoleMiningRoleType**](role-mining-role-type) | | [optional] ## Methods @@ -500,20 +500,20 @@ HasId returns a boolean if a field has been set. ### GetCreatedDate -`func (o *RoleMiningSessionResponse) GetCreatedDate() time.Time` +`func (o *RoleMiningSessionResponse) GetCreatedDate() SailPointTime` GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. ### GetCreatedDateOk -`func (o *RoleMiningSessionResponse) GetCreatedDateOk() (*time.Time, bool)` +`func (o *RoleMiningSessionResponse) GetCreatedDateOk() (*SailPointTime, bool)` GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedDate -`func (o *RoleMiningSessionResponse) SetCreatedDate(v time.Time)` +`func (o *RoleMiningSessionResponse) SetCreatedDate(v SailPointTime)` SetCreatedDate sets CreatedDate field to given value. @@ -525,20 +525,20 @@ HasCreatedDate returns a boolean if a field has been set. ### GetModifiedDate -`func (o *RoleMiningSessionResponse) GetModifiedDate() time.Time` +`func (o *RoleMiningSessionResponse) GetModifiedDate() SailPointTime` GetModifiedDate returns the ModifiedDate field if non-nil, zero value otherwise. ### GetModifiedDateOk -`func (o *RoleMiningSessionResponse) GetModifiedDateOk() (*time.Time, bool)` +`func (o *RoleMiningSessionResponse) GetModifiedDateOk() (*SailPointTime, bool)` GetModifiedDateOk returns a tuple with the ModifiedDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModifiedDate -`func (o *RoleMiningSessionResponse) SetModifiedDate(v time.Time)` +`func (o *RoleMiningSessionResponse) SetModifiedDate(v SailPointTime)` SetModifiedDate sets ModifiedDate field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Schedule.md b/docs/tools/sdk/go/Reference/Beta/Models/Schedule.md index 6ff9b6aa6..769c45d4a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Schedule.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Schedule.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **Months** | Pointer to [**ScheduleMonths**](schedule-months) | | [optional] **Days** | Pointer to [**ScheduleDays**](schedule-days) | | [optional] **Hours** | [**ScheduleHours**](schedule-hours) | | -**Expiration** | Pointer to **time.Time** | Specifies the time after which this schedule will no longer occur. | [optional] +**Expiration** | Pointer to **SailPointTime** | Specifies the time after which this schedule will no longer occur. | [optional] **TimeZoneId** | Pointer to **string** | The time zone to use when running the schedule. For instance, if the schedule is scheduled to run at 1AM, and this field is set to \"CST\", the schedule will run at 1AM CST. | [optional] ## Methods @@ -133,20 +133,20 @@ SetHours sets Hours field to given value. ### GetExpiration -`func (o *Schedule) GetExpiration() time.Time` +`func (o *Schedule) GetExpiration() SailPointTime` GetExpiration returns the Expiration field if non-nil, zero value otherwise. ### GetExpirationOk -`func (o *Schedule) GetExpirationOk() (*time.Time, bool)` +`func (o *Schedule) GetExpirationOk() (*SailPointTime, bool)` GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpiration -`func (o *Schedule) SetExpiration(v time.Time)` +`func (o *Schedule) SetExpiration(v SailPointTime)` SetExpiration sets Expiration field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Schedule1.md b/docs/tools/sdk/go/Reference/Beta/Models/Schedule1.md index 3cd6518db..476c3c356 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Schedule1.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Schedule1.md @@ -133,20 +133,20 @@ SetHours sets Hours field to given value. ### GetExpiration -`func (o *Schedule1) GetExpiration() time.Time` +`func (o *Schedule1) GetExpiration() SailPointTime` GetExpiration returns the Expiration field if non-nil, zero value otherwise. ### GetExpirationOk -`func (o *Schedule1) GetExpirationOk() (*time.Time, bool)` +`func (o *Schedule1) GetExpirationOk() (*SailPointTime, bool)` GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpiration -`func (o *Schedule1) SetExpiration(v time.Time)` +`func (o *Schedule1) SetExpiration(v SailPointTime)` SetExpiration sets Expiration field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ScheduledAttributes.md b/docs/tools/sdk/go/Reference/Beta/Models/ScheduledAttributes.md deleted file mode 100644 index bc574acfe..000000000 --- a/docs/tools/sdk/go/Reference/Beta/Models/ScheduledAttributes.md +++ /dev/null @@ -1,249 +0,0 @@ ---- -id: beta-scheduled-attributes -title: ScheduledAttributes -pagination_label: ScheduledAttributes -sidebar_label: ScheduledAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ScheduledAttributes', 'BetaScheduledAttributes'] -slug: /tools/sdk/go/beta/models/scheduled-attributes -tags: ['SDK', 'Software Development Kit', 'ScheduledAttributes', 'BetaScheduledAttributes'] ---- - -# ScheduledAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewScheduledAttributes - -`func NewScheduledAttributes(frequency NullableString, ) *ScheduledAttributes` - -NewScheduledAttributes instantiates a new ScheduledAttributes 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 - -### NewScheduledAttributesWithDefaults - -`func NewScheduledAttributesWithDefaults() *ScheduledAttributes` - -NewScheduledAttributesWithDefaults instantiates a new ScheduledAttributes 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 - -### GetFrequency - -`func (o *ScheduledAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *ScheduledAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *ScheduledAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *ScheduledAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *ScheduledAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *ScheduledAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *ScheduledAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *ScheduledAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *ScheduledAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *ScheduledAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *ScheduledAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *ScheduledAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *ScheduledAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *ScheduledAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *ScheduledAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *ScheduledAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *ScheduledAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *ScheduledAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *ScheduledAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *ScheduledAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *ScheduledAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *ScheduledAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *ScheduledAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *ScheduledAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *ScheduledAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *ScheduledAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *ScheduledAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *ScheduledAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *ScheduledAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *ScheduledAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *ScheduledAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *ScheduledAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *ScheduledAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *ScheduledAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *ScheduledAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Schema.md b/docs/tools/sdk/go/Reference/Beta/Models/Schema.md index a9063f67e..234583a6b 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Schema.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Schema.md @@ -20,13 +20,13 @@ Name | Type | Description | Notes **NativeObjectType** | Pointer to **string** | The name of the object type on the native system that the schema represents. | [optional] **IdentityAttribute** | Pointer to **string** | The name of the attribute used to calculate the unique identifier for an object in the schema. | [optional] **DisplayAttribute** | Pointer to **string** | The name of the attribute used to calculate the display value for an object in the schema. | [optional] -**HierarchyAttribute** | Pointer to **string** | The name of the attribute whose values represent other objects in a hierarchy. Only relevant to group schemas. | [optional] -**IncludePermissions** | Pointer to **bool** | Flag indicating whether or not the include permissions with the object data when aggregating the schema. | [optional] +**HierarchyAttribute** | Pointer to **NullableString** | The name of the attribute whose values represent other objects in a hierarchy. Only relevant to group schemas. | [optional] +**IncludePermissions** | Pointer to **bool** | Flag indicating whether or not the include permissions with the object data when aggregating the schema. | [optional] [default to false] **Features** | Pointer to **[]string** | Optional features that can be supported by a source. Modifying the features array may cause source configuration errors that are unsupportable. It is recommended to not modify this array for SailPoint supported connectors. * AUTHENTICATE: The source supports pass-through authentication. * COMPOSITE: The source supports composite source creation. * DIRECT_PERMISSIONS: The source supports returning DirectPermissions. * DISCOVER_SCHEMA: The source supports discovering schemas for users and groups. * ENABLE The source supports reading if an account is enabled or disabled. * MANAGER_LOOKUP: The source supports looking up managers as they are encountered in a feed. This is the opposite of NO_RANDOM_ACCESS. * NO_RANDOM_ACCESS: The source does not support random access and the getObject() methods should not be called and expected to perform. * PROXY: The source can serve as a proxy for another source. When an source has a proxy, all connector calls made with that source are redirected through the connector for the proxy source. * SEARCH * TEMPLATE * UNLOCK: The source supports reading if an account is locked or unlocked. * UNSTRUCTURED_TARGETS: The source supports returning unstructured Targets. * SHAREPOINT_TARGET: The source supports returning unstructured Target data for SharePoint. It will be typically used by AD, LDAP sources. * PROVISIONING: The source can both read and write accounts. Having this feature implies that the provision() method is implemented. It also means that direct and target permissions can also be provisioned if they can be returned by aggregation. * GROUP_PROVISIONING: The source can both read and write groups. Having this feature implies that the provision() method is implemented. * SYNC_PROVISIONING: The source can provision accounts synchronously. * PASSWORD: The source can provision password changes. Since sources can never read passwords, this is should only be used in conjunction with the PROVISIONING feature. * CURRENT_PASSWORD: Some source types support verification of the current password * ACCOUNT_ONLY_REQUEST: The source supports requesting accounts without entitlements. * ADDITIONAL_ACCOUNT_REQUEST: The source supports requesting additional accounts. * NO_AGGREGATION: A source that does not support aggregation. * GROUPS_HAVE_MEMBERS: The source models group memberships with a member attribute on the group object rather than a groups attribute on the account object. This effects the implementation of delta account aggregation. * NO_PERMISSIONS_PROVISIONING: Indicates that the connector cannot provision direct or target permissions for accounts. When DIRECT_PERMISSIONS and PROVISIONING features are present, it is assumed that the connector can also provision direct permissions. This feature disables that assumption and causes permission request to be converted to work items for accounts. * NO_GROUP_PERMISSIONS_PROVISIONING: Indicates that the connector cannot provision direct or target permissions for groups. When DIRECT_PERMISSIONS and PROVISIONING features are present, it is assumed that the connector can also provision direct permissions. This feature disables that assumption and causes permission request to be converted to work items for groups. * NO_UNSTRUCTURED_TARGETS_PROVISIONING: This string will be replaced by NO_GROUP_PERMISSIONS_PROVISIONING and NO_PERMISSIONS_PROVISIONING. * NO_DIRECT_PERMISSIONS_PROVISIONING: This string will be replaced by NO_GROUP_PERMISSIONS_PROVISIONING and NO_PERMISSIONS_PROVISIONING. * USES_UUID: Connectivity 2.0 flag used to indicate that the connector supports a compound naming structure. * PREFER_UUID: Used in ISC Provisioning AND Aggregation to decide if it should prefer account.uuid to account.nativeIdentity when data is read in through aggregation OR pushed out through provisioning. * ARM_SECURITY_EXTRACT: Indicates the application supports Security extracts for ARM * ARM_UTILIZATION_EXTRACT: Indicates the application supports Utilization extracts for ARM * ARM_CHANGELOG_EXTRACT: Indicates the application supports Change-log extracts for ARM | [optional] **Configuration** | Pointer to **map[string]interface{}** | Holds any extra configuration data that the schema may require. | [optional] **Attributes** | Pointer to [**[]AttributeDefinition**](attribute-definition) | The attribute definitions which form the schema. | [optional] -**Created** | Pointer to **time.Time** | The date the Schema was created. | [optional] -**Modified** | Pointer to **time.Time** | The date the Schema was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | The date the Schema was created. | [optional] +**Modified** | Pointer to **NullableTime** | The date the Schema was last modified. | [optional] ## Methods @@ -197,6 +197,16 @@ SetHierarchyAttribute sets HierarchyAttribute field to given value. HasHierarchyAttribute returns a boolean if a field has been set. +### SetHierarchyAttributeNil + +`func (o *Schema) SetHierarchyAttributeNil(b bool)` + + SetHierarchyAttributeNil sets the value for HierarchyAttribute to be an explicit nil + +### UnsetHierarchyAttribute +`func (o *Schema) UnsetHierarchyAttribute()` + +UnsetHierarchyAttribute ensures that no value is present for HierarchyAttribute, not even an explicit nil ### GetIncludePermissions `func (o *Schema) GetIncludePermissions() bool` @@ -299,20 +309,20 @@ HasAttributes returns a boolean if a field has been set. ### GetCreated -`func (o *Schema) GetCreated() time.Time` +`func (o *Schema) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Schema) GetCreatedOk() (*time.Time, bool)` +`func (o *Schema) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Schema) SetCreated(v time.Time)` +`func (o *Schema) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -324,20 +334,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *Schema) GetModified() time.Time` +`func (o *Schema) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Schema) GetModifiedOk() (*time.Time, bool)` +`func (o *Schema) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Schema) SetModified(v time.Time)` +`func (o *Schema) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -347,4 +357,14 @@ SetModified sets Modified field to given value. HasModified returns a boolean if a field has been set. +### SetModifiedNil + +`func (o *Schema) SetModifiedNil(b bool)` + + SetModifiedNil sets the value for Modified to be an explicit nil + +### UnsetModified +`func (o *Schema) UnsetModified()` + +UnsetModified ensures that no value is present for Modified, not even an explicit nil diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Sed.md b/docs/tools/sdk/go/Reference/Beta/Models/Sed.md index 07ce8bf7d..69c1e2227 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Sed.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Sed.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | name of the entitlement | [optional] **ApprovedBy** | Pointer to **string** | entitlement approved by | [optional] **ApprovedType** | Pointer to **string** | entitlement approved type | [optional] -**ApprovedWhen** | Pointer to **time.Time** | entitlement approved then | [optional] +**ApprovedWhen** | Pointer to **SailPointTime** | entitlement approved then | [optional] **Attribute** | Pointer to **string** | entitlement attribute | [optional] **Description** | Pointer to **string** | description of entitlement | [optional] **DisplayName** | Pointer to **string** | entitlement display name | [optional] @@ -126,20 +126,20 @@ HasApprovedType returns a boolean if a field has been set. ### GetApprovedWhen -`func (o *Sed) GetApprovedWhen() time.Time` +`func (o *Sed) GetApprovedWhen() SailPointTime` GetApprovedWhen returns the ApprovedWhen field if non-nil, zero value otherwise. ### GetApprovedWhenOk -`func (o *Sed) GetApprovedWhenOk() (*time.Time, bool)` +`func (o *Sed) GetApprovedWhenOk() (*SailPointTime, bool)` GetApprovedWhenOk returns a tuple with the ApprovedWhen field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetApprovedWhen -`func (o *Sed) SetApprovedWhen(v time.Time)` +`func (o *Sed) SetApprovedWhen(v SailPointTime)` SetApprovedWhen sets ApprovedWhen field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Segment.md b/docs/tools/sdk/go/Reference/Beta/Models/Segment.md index cb1e57e38..a2f66a370 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Segment.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Segment.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The segment's ID. | [optional] **Name** | Pointer to **string** | The segment's business name. | [optional] -**Created** | Pointer to **time.Time** | The time when the segment is created. | [optional] -**Modified** | Pointer to **time.Time** | The time when the segment is modified. | [optional] +**Created** | Pointer to **SailPointTime** | The time when the segment is created. | [optional] +**Modified** | Pointer to **SailPointTime** | The time when the segment is modified. | [optional] **Description** | Pointer to **string** | The segment's optional description. | [optional] **Owner** | Pointer to [**NullableOwnerReferenceSegments**](owner-reference-segments) | | [optional] **VisibilityCriteria** | Pointer to [**NullableVisibilityCriteria**](visibility-criteria) | | [optional] @@ -95,20 +95,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *Segment) GetCreated() time.Time` +`func (o *Segment) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Segment) GetCreatedOk() (*time.Time, bool)` +`func (o *Segment) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Segment) SetCreated(v time.Time)` +`func (o *Segment) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -120,20 +120,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *Segment) GetModified() time.Time` +`func (o *Segment) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Segment) GetModifiedOk() (*time.Time, bool)` +`func (o *Segment) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Segment) SetModified(v time.Time)` +`func (o *Segment) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/ServiceDeskIntegrationTemplateDto.md b/docs/tools/sdk/go/Reference/Beta/Models/ServiceDeskIntegrationTemplateDto.md index 53ee23113..f92cea9ae 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/ServiceDeskIntegrationTemplateDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/ServiceDeskIntegrationTemplateDto.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the Object | [optional] [readonly] **Name** | **NullableString** | Name of the Object | -**Created** | Pointer to **time.Time** | Creation date of the Object | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the Object | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the Object | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the Object | [optional] [readonly] **Type** | **string** | The 'type' property specifies the type of the Service Desk integration template. | [default to "Web Service SDIM"] **Attributes** | **map[string]interface{}** | The 'attributes' property value is a map of attributes available for integrations using this Service Desk integration template. | **ProvisioningConfig** | [**ProvisioningConfig**](provisioning-config) | | @@ -99,20 +99,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCreated -`func (o *ServiceDeskIntegrationTemplateDto) GetCreated() time.Time` +`func (o *ServiceDeskIntegrationTemplateDto) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *ServiceDeskIntegrationTemplateDto) GetCreatedOk() (*time.Time, bool)` +`func (o *ServiceDeskIntegrationTemplateDto) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *ServiceDeskIntegrationTemplateDto) SetCreated(v time.Time)` +`func (o *ServiceDeskIntegrationTemplateDto) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -124,20 +124,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *ServiceDeskIntegrationTemplateDto) GetModified() time.Time` +`func (o *ServiceDeskIntegrationTemplateDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *ServiceDeskIntegrationTemplateDto) GetModifiedOk() (*time.Time, bool)` +`func (o *ServiceDeskIntegrationTemplateDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *ServiceDeskIntegrationTemplateDto) SetModified(v time.Time)` +`func (o *ServiceDeskIntegrationTemplateDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SimIntegrationDetails.md b/docs/tools/sdk/go/Reference/Beta/Models/SimIntegrationDetails.md index 49cb0860a..3c82e95e4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SimIntegrationDetails.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SimIntegrationDetails.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | System-generated unique ID of the Object | [optional] [readonly] **Name** | **NullableString** | Name of the Object | -**Created** | Pointer to **time.Time** | Creation date of the Object | [optional] [readonly] -**Modified** | Pointer to **time.Time** | Last modification date of the Object | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Creation date of the Object | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Last modification date of the Object | [optional] [readonly] **Description** | Pointer to **string** | The description of the integration | [optional] **Type** | Pointer to **string** | The integration type | [optional] **Attributes** | Pointer to **map[string]interface{}** | The attributes map containing the credentials used to configure the integration. | [optional] @@ -104,20 +104,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCreated -`func (o *SimIntegrationDetails) GetCreated() time.Time` +`func (o *SimIntegrationDetails) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SimIntegrationDetails) GetCreatedOk() (*time.Time, bool)` +`func (o *SimIntegrationDetails) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SimIntegrationDetails) SetCreated(v time.Time)` +`func (o *SimIntegrationDetails) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -129,20 +129,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *SimIntegrationDetails) GetModified() time.Time` +`func (o *SimIntegrationDetails) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SimIntegrationDetails) GetModifiedOk() (*time.Time, bool)` +`func (o *SimIntegrationDetails) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SimIntegrationDetails) SetModified(v time.Time)` +`func (o *SimIntegrationDetails) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SlimDiscoveredApplications.md b/docs/tools/sdk/go/Reference/Beta/Models/SlimDiscoveredApplications.md index 6a47a44d9..23e730806 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SlimDiscoveredApplications.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SlimDiscoveredApplications.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **DiscoveredVendor** | Pointer to **string** | The vendor associated with the discovered application. | [optional] **Description** | Pointer to **string** | A brief description of the discovered application. | [optional] **RecommendedConnectors** | Pointer to **[]string** | List of recommended connectors for the application. | [optional] -**DiscoveredAt** | Pointer to **time.Time** | The timestamp when the application was last received via an entitlement aggregation invocation or a manual csv upload, in ISO 8601 format. | [optional] -**CreatedAt** | Pointer to **time.Time** | The timestamp when the application was first discovered, in ISO 8601 format. | [optional] +**DiscoveredAt** | Pointer to **SailPointTime** | The timestamp when the application was last received via an entitlement aggregation invocation or a manual csv upload, in ISO 8601 format. | [optional] +**CreatedAt** | Pointer to **SailPointTime** | The timestamp when the application was first discovered, in ISO 8601 format. | [optional] **Status** | Pointer to **string** | The status of an application within the discovery source. By default this field is set to \"ACTIVE\" when the application is discovered. If an application has been deleted from within the discovery source, the status will be set to \"INACTIVE\". | [optional] ## Methods @@ -196,20 +196,20 @@ HasRecommendedConnectors returns a boolean if a field has been set. ### GetDiscoveredAt -`func (o *SlimDiscoveredApplications) GetDiscoveredAt() time.Time` +`func (o *SlimDiscoveredApplications) GetDiscoveredAt() SailPointTime` GetDiscoveredAt returns the DiscoveredAt field if non-nil, zero value otherwise. ### GetDiscoveredAtOk -`func (o *SlimDiscoveredApplications) GetDiscoveredAtOk() (*time.Time, bool)` +`func (o *SlimDiscoveredApplications) GetDiscoveredAtOk() (*SailPointTime, bool)` GetDiscoveredAtOk returns a tuple with the DiscoveredAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDiscoveredAt -`func (o *SlimDiscoveredApplications) SetDiscoveredAt(v time.Time)` +`func (o *SlimDiscoveredApplications) SetDiscoveredAt(v SailPointTime)` SetDiscoveredAt sets DiscoveredAt field to given value. @@ -221,20 +221,20 @@ HasDiscoveredAt returns a boolean if a field has been set. ### GetCreatedAt -`func (o *SlimDiscoveredApplications) GetCreatedAt() time.Time` +`func (o *SlimDiscoveredApplications) GetCreatedAt() SailPointTime` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *SlimDiscoveredApplications) GetCreatedAtOk() (*time.Time, bool)` +`func (o *SlimDiscoveredApplications) GetCreatedAtOk() (*SailPointTime, bool)` GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedAt -`func (o *SlimDiscoveredApplications) SetCreatedAt(v time.Time)` +`func (o *SlimDiscoveredApplications) SetCreatedAt(v SailPointTime)` SetCreatedAt sets CreatedAt field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Slimcampaign.md b/docs/tools/sdk/go/Reference/Beta/Models/Slimcampaign.md index 20004a341..a76e86ad9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Slimcampaign.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Slimcampaign.md @@ -18,14 +18,14 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Id of the campaign | [optional] [readonly] **Name** | **string** | The campaign name. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | **Description** | **string** | The campaign description. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | -**Deadline** | Pointer to **time.Time** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] +**Deadline** | Pointer to **SailPointTime** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] **Type** | **string** | The type of campaign. Could be extended in the future. | **EmailNotificationEnabled** | Pointer to **bool** | Enables email notification for this campaign | [optional] [default to false] **AutoRevokeAllowed** | Pointer to **bool** | Allows auto revoke for this campaign | [optional] [default to false] **RecommendationsEnabled** | Pointer to **bool** | Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future. | [optional] [default to false] **Status** | Pointer to **string** | The campaign's current status. | [optional] [readonly] **CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] -**Created** | Pointer to **time.Time** | Created time of the campaign | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | Created time of the campaign | [optional] [readonly] **TotalCertifications** | Pointer to **int32** | The total number of certifications in this campaign. | [optional] [readonly] **CompletedCertifications** | Pointer to **int32** | The number of completed certifications in this campaign. | [optional] [readonly] **Alerts** | Pointer to [**[]CampaignAlert**](campaign-alert) | A list of errors and warnings that have accumulated. | [optional] [readonly] @@ -116,20 +116,20 @@ SetDescription sets Description field to given value. ### GetDeadline -`func (o *Slimcampaign) GetDeadline() time.Time` +`func (o *Slimcampaign) GetDeadline() SailPointTime` GetDeadline returns the Deadline field if non-nil, zero value otherwise. ### GetDeadlineOk -`func (o *Slimcampaign) GetDeadlineOk() (*time.Time, bool)` +`func (o *Slimcampaign) GetDeadlineOk() (*SailPointTime, bool)` GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeadline -`func (o *Slimcampaign) SetDeadline(v time.Time)` +`func (o *Slimcampaign) SetDeadline(v SailPointTime)` SetDeadline sets Deadline field to given value. @@ -286,20 +286,20 @@ HasCorrelatedStatus returns a boolean if a field has been set. ### GetCreated -`func (o *Slimcampaign) GetCreated() time.Time` +`func (o *Slimcampaign) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Slimcampaign) GetCreatedOk() (*time.Time, bool)` +`func (o *Slimcampaign) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Slimcampaign) SetCreated(v time.Time)` +`func (o *Slimcampaign) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SodPolicy.md b/docs/tools/sdk/go/Reference/Beta/Models/SodPolicy.md index 85a37d61d..a2687b3e9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SodPolicy.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SodPolicy.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | Policy ID. | [optional] [readonly] **Name** | Pointer to **string** | Policy business name. | [optional] -**Created** | Pointer to **time.Time** | The time when this SOD policy is created. | [optional] [readonly] -**Modified** | Pointer to **time.Time** | The time when this SOD policy is modified. | [optional] [readonly] +**Created** | Pointer to **SailPointTime** | The time when this SOD policy is created. | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | The time when this SOD policy is modified. | [optional] [readonly] **Description** | Pointer to **NullableString** | Optional description of the SOD policy. | [optional] **OwnerRef** | Pointer to [**SodPolicyOwnerRef**](sod-policy-owner-ref) | | [optional] **ExternalPolicyReference** | Pointer to **NullableString** | Optional external policy reference. | [optional] @@ -105,20 +105,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *SodPolicy) GetCreated() time.Time` +`func (o *SodPolicy) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SodPolicy) GetCreatedOk() (*time.Time, bool)` +`func (o *SodPolicy) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SodPolicy) SetCreated(v time.Time)` +`func (o *SodPolicy) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -130,20 +130,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *SodPolicy) GetModified() time.Time` +`func (o *SodPolicy) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SodPolicy) GetModifiedOk() (*time.Time, bool)` +`func (o *SodPolicy) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SodPolicy) SetModified(v time.Time)` +`func (o *SodPolicy) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SodPolicySchedule.md b/docs/tools/sdk/go/Reference/Beta/Models/SodPolicySchedule.md index 94b3b262f..2ae4529c3 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SodPolicySchedule.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SodPolicySchedule.md @@ -16,8 +16,8 @@ tags: ['SDK', 'Software Development Kit', 'SodPolicySchedule', 'BetaSodPolicySch Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | SOD Policy schedule name | [optional] -**Created** | Pointer to **time.Time** | The time when this SOD policy schedule is created. | [optional] -**Modified** | Pointer to **time.Time** | The time when this SOD policy schedule is modified. | [optional] +**Created** | Pointer to **SailPointTime** | The time when this SOD policy schedule is created. | [optional] +**Modified** | Pointer to **SailPointTime** | The time when this SOD policy schedule is modified. | [optional] **Description** | Pointer to **string** | SOD Policy schedule description | [optional] **Schedule** | Pointer to [**Schedule1**](schedule1) | | [optional] **Recipients** | Pointer to [**[]SodRecipient**](sod-recipient) | | [optional] @@ -71,20 +71,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *SodPolicySchedule) GetCreated() time.Time` +`func (o *SodPolicySchedule) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SodPolicySchedule) GetCreatedOk() (*time.Time, bool)` +`func (o *SodPolicySchedule) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SodPolicySchedule) SetCreated(v time.Time)` +`func (o *SodPolicySchedule) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -96,20 +96,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *SodPolicySchedule) GetModified() time.Time` +`func (o *SodPolicySchedule) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SodPolicySchedule) GetModifiedOk() (*time.Time, bool)` +`func (o *SodPolicySchedule) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SodPolicySchedule) SetModified(v time.Time)` +`func (o *SodPolicySchedule) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Source.md b/docs/tools/sdk/go/Reference/Beta/Models/Source.md index 30c38a5d4..eb7cb14d1 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Source.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Source.md @@ -42,8 +42,8 @@ Name | Type | Description | Notes **ConnectorName** | Pointer to **string** | Name of the connector that was chosen during source creation. | [optional] **ConnectionType** | Pointer to **string** | Type of connection (direct or file). | [optional] **ConnectorImplementationId** | Pointer to **string** | Connector implementation ID. | [optional] -**Created** | Pointer to **time.Time** | Date-time when the source was created | [optional] -**Modified** | Pointer to **time.Time** | Date-time when the source was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | Date-time when the source was created | [optional] +**Modified** | Pointer to **SailPointTime** | Date-time when the source was last modified. | [optional] **CredentialProviderEnabled** | Pointer to **bool** | If this is true, it enables a credential provider for the source. If credentialProvider is turned on, then the source can use credential provider(s) to fetch credentials. | [optional] [default to false] **Category** | Pointer to **NullableString** | Source category (e.g. null, CredentialProvider). | [optional] @@ -808,20 +808,20 @@ HasConnectorImplementationId returns a boolean if a field has been set. ### GetCreated -`func (o *Source) GetCreated() time.Time` +`func (o *Source) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Source) GetCreatedOk() (*time.Time, bool)` +`func (o *Source) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Source) SetCreated(v time.Time)` +`func (o *Source) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -833,20 +833,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *Source) GetModified() time.Time` +`func (o *Source) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Source) GetModifiedOk() (*time.Time, bool)` +`func (o *Source) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Source) SetModified(v time.Time)` +`func (o *Source) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceApp.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceApp.md index 9c0bde597..e7ca18b24 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SourceApp.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceApp.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | The source app id | [optional] **CloudAppId** | Pointer to **string** | The deprecated source app id | [optional] **Name** | Pointer to **string** | The source app name | [optional] -**Created** | Pointer to **time.Time** | Time when the source app was created | [optional] -**Modified** | Pointer to **time.Time** | Time when the source app was last modified | [optional] +**Created** | Pointer to **SailPointTime** | Time when the source app was created | [optional] +**Modified** | Pointer to **SailPointTime** | Time when the source app was last modified | [optional] **Enabled** | Pointer to **bool** | True if the source app is enabled | [optional] [default to false] **ProvisionRequestEnabled** | Pointer to **bool** | True if the source app is provision request enabled | [optional] [default to false] **Description** | Pointer to **string** | The description of the source app | [optional] @@ -124,20 +124,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *SourceApp) GetCreated() time.Time` +`func (o *SourceApp) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SourceApp) GetCreatedOk() (*time.Time, bool)` +`func (o *SourceApp) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SourceApp) SetCreated(v time.Time)` +`func (o *SourceApp) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -149,20 +149,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *SourceApp) GetModified() time.Time` +`func (o *SourceApp) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SourceApp) GetModifiedOk() (*time.Time, bool)` +`func (o *SourceApp) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SourceApp) SetModified(v time.Time)` +`func (o *SourceApp) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceAppPatchDto.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceAppPatchDto.md index 7109c2bf8..6b4a26b10 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SourceAppPatchDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceAppPatchDto.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | The source app id | [optional] **CloudAppId** | Pointer to **string** | The deprecated source app id | [optional] **Name** | Pointer to **string** | The source app name | [optional] -**Created** | Pointer to **time.Time** | Time when the source app was created | [optional] -**Modified** | Pointer to **time.Time** | Time when the source app was last modified | [optional] +**Created** | Pointer to **SailPointTime** | Time when the source app was created | [optional] +**Modified** | Pointer to **SailPointTime** | Time when the source app was last modified | [optional] **Enabled** | Pointer to **bool** | True if the source app is enabled | [optional] [default to false] **ProvisionRequestEnabled** | Pointer to **bool** | True if the source app is provision request enabled | [optional] [default to false] **Description** | Pointer to **string** | The description of the source app | [optional] @@ -125,20 +125,20 @@ HasName returns a boolean if a field has been set. ### GetCreated -`func (o *SourceAppPatchDto) GetCreated() time.Time` +`func (o *SourceAppPatchDto) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SourceAppPatchDto) GetCreatedOk() (*time.Time, bool)` +`func (o *SourceAppPatchDto) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SourceAppPatchDto) SetCreated(v time.Time)` +`func (o *SourceAppPatchDto) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -150,20 +150,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *SourceAppPatchDto) GetModified() time.Time` +`func (o *SourceAppPatchDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SourceAppPatchDto) GetModifiedOk() (*time.Time, bool)` +`func (o *SourceAppPatchDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SourceAppPatchDto) SetModified(v time.Time)` +`func (o *SourceAppPatchDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceCreated.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceCreated.md index 49bfe5b97..90df33790 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SourceCreated.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceCreated.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | **string** | Source's unique ID. | **Name** | **string** | Source name. | **Type** | **string** | Connection type. | -**Created** | **time.Time** | Date and time when the source was created. | +**Created** | **SailPointTime** | Date and time when the source was created. | **Connector** | **string** | Connector type used to connect to the source. | **Actor** | [**SourceCreatedActor**](source-created-actor) | | @@ -26,7 +26,7 @@ Name | Type | Description | Notes ### NewSourceCreated -`func NewSourceCreated(id string, name string, type_ string, created time.Time, connector string, actor SourceCreatedActor, ) *SourceCreated` +`func NewSourceCreated(id string, name string, type_ string, created SailPointTime, connector string, actor SourceCreatedActor, ) *SourceCreated` NewSourceCreated instantiates a new SourceCreated object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetType sets Type field to given value. ### GetCreated -`func (o *SourceCreated) GetCreated() time.Time` +`func (o *SourceCreated) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SourceCreated) GetCreatedOk() (*time.Time, bool)` +`func (o *SourceCreated) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SourceCreated) SetCreated(v time.Time)` +`func (o *SourceCreated) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceCreationErrors.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceCreationErrors.md index 81bd3ff44..dd8a01324 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SourceCreationErrors.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceCreationErrors.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **MultihostId** | Pointer to **string** | Multi-Host Integration ID. | [optional] [readonly] **SourceName** | Pointer to **string** | Source's human-readable name. | [optional] **SourceError** | Pointer to **string** | Source's human-readable description. | [optional] -**Created** | Pointer to **time.Time** | Date-time when the source was created | [optional] -**Modified** | Pointer to **time.Time** | Date-time when the source was last modified. | [optional] +**Created** | Pointer to **SailPointTime** | Date-time when the source was created | [optional] +**Modified** | Pointer to **SailPointTime** | Date-time when the source was last modified. | [optional] **Operation** | Pointer to **NullableString** | operation category (e.g. DELETE). | [optional] ## Methods @@ -118,20 +118,20 @@ HasSourceError returns a boolean if a field has been set. ### GetCreated -`func (o *SourceCreationErrors) GetCreated() time.Time` +`func (o *SourceCreationErrors) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SourceCreationErrors) GetCreatedOk() (*time.Time, bool)` +`func (o *SourceCreationErrors) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SourceCreationErrors) SetCreated(v time.Time)` +`func (o *SourceCreationErrors) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -143,20 +143,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *SourceCreationErrors) GetModified() time.Time` +`func (o *SourceCreationErrors) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SourceCreationErrors) GetModifiedOk() (*time.Time, bool)` +`func (o *SourceCreationErrors) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SourceCreationErrors) SetModified(v time.Time)` +`func (o *SourceCreationErrors) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceDeleted.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceDeleted.md index 8f0b2a36e..61aee9898 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SourceDeleted.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceDeleted.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | **string** | Source's unique ID. | **Name** | **string** | Source name. | **Type** | **string** | Connection type. | -**Deleted** | **time.Time** | Date and time when the source was deleted. | +**Deleted** | **SailPointTime** | Date and time when the source was deleted. | **Connector** | **string** | Connector type used to connect to the source. | **Actor** | [**SourceDeletedActor**](source-deleted-actor) | | @@ -26,7 +26,7 @@ Name | Type | Description | Notes ### NewSourceDeleted -`func NewSourceDeleted(id string, name string, type_ string, deleted time.Time, connector string, actor SourceDeletedActor, ) *SourceDeleted` +`func NewSourceDeleted(id string, name string, type_ string, deleted SailPointTime, connector string, actor SourceDeletedActor, ) *SourceDeleted` NewSourceDeleted instantiates a new SourceDeleted object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetType sets Type field to given value. ### GetDeleted -`func (o *SourceDeleted) GetDeleted() time.Time` +`func (o *SourceDeleted) GetDeleted() SailPointTime` GetDeleted returns the Deleted field if non-nil, zero value otherwise. ### GetDeletedOk -`func (o *SourceDeleted) GetDeletedOk() (*time.Time, bool)` +`func (o *SourceDeleted) GetDeletedOk() (*SailPointTime, bool)` GetDeletedOk returns a tuple with the Deleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeleted -`func (o *SourceDeleted) SetDeleted(v time.Time)` +`func (o *SourceDeleted) SetDeleted(v SailPointTime)` SetDeleted sets Deleted field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceItemRef.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceItemRef.md new file mode 100644 index 000000000..d7a4b20c8 --- /dev/null +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceItemRef.md @@ -0,0 +1,110 @@ +--- +id: beta-source-item-ref +title: SourceItemRef +pagination_label: SourceItemRef +sidebar_label: SourceItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SourceItemRef', 'BetaSourceItemRef'] +slug: /tools/sdk/go/beta/models/source-item-ref +tags: ['SDK', 'Software Development Kit', 'SourceItemRef', 'BetaSourceItemRef'] +--- + +# SourceItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SourceId** | Pointer to **NullableString** | The id for the source on which account selections are made | [optional] +**Accounts** | Pointer to [**[]AccountItemRef**](account-item-ref) | A list of account selections on the source. Currently, only one selection per source is supported. | [optional] + +## Methods + +### NewSourceItemRef + +`func NewSourceItemRef() *SourceItemRef` + +NewSourceItemRef instantiates a new SourceItemRef 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 + +### NewSourceItemRefWithDefaults + +`func NewSourceItemRefWithDefaults() *SourceItemRef` + +NewSourceItemRefWithDefaults instantiates a new SourceItemRef 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 + +### GetSourceId + +`func (o *SourceItemRef) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *SourceItemRef) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *SourceItemRef) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *SourceItemRef) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### SetSourceIdNil + +`func (o *SourceItemRef) SetSourceIdNil(b bool)` + + SetSourceIdNil sets the value for SourceId to be an explicit nil + +### UnsetSourceId +`func (o *SourceItemRef) UnsetSourceId()` + +UnsetSourceId ensures that no value is present for SourceId, not even an explicit nil +### GetAccounts + +`func (o *SourceItemRef) GetAccounts() []AccountItemRef` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *SourceItemRef) GetAccountsOk() (*[]AccountItemRef, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *SourceItemRef) SetAccounts(v []AccountItemRef)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *SourceItemRef) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + +### SetAccountsNil + +`func (o *SourceItemRef) SetAccountsNil(b bool)` + + SetAccountsNil sets the value for Accounts to be an explicit nil + +### UnsetAccounts +`func (o *SourceItemRef) UnsetAccounts()` + +UnsetAccounts ensures that no value is present for Accounts, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceUpdated.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceUpdated.md index 2fd5fa382..71d2cc5e2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SourceUpdated.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceUpdated.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | **string** | Source's unique ID. | **Name** | **string** | Source name. | **Type** | **string** | Connection type. | -**Modified** | **time.Time** | Date and time when the source was modified. | +**Modified** | **SailPointTime** | Date and time when the source was modified. | **Connector** | **string** | Connector type used to connect to the source. | **Actor** | [**SourceUpdatedActor**](source-updated-actor) | | @@ -26,7 +26,7 @@ Name | Type | Description | Notes ### NewSourceUpdated -`func NewSourceUpdated(id string, name string, type_ string, modified time.Time, connector string, actor SourceUpdatedActor, ) *SourceUpdated` +`func NewSourceUpdated(id string, name string, type_ string, modified SailPointTime, connector string, actor SourceUpdatedActor, ) *SourceUpdated` NewSourceUpdated instantiates a new SourceUpdated object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetType sets Type field to given value. ### GetModified -`func (o *SourceUpdated) GetModified() time.Time` +`func (o *SourceUpdated) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SourceUpdated) GetModifiedOk() (*time.Time, bool)` +`func (o *SourceUpdated) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SourceUpdated) SetModified(v time.Time)` +`func (o *SourceUpdated) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJob.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJob.md index 653aaabd3..10482b134 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJob.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJob.md @@ -18,16 +18,16 @@ Name | Type | Description | Notes **JobId** | **string** | Unique id assigned to this job. | **Status** | **string** | Status of the job. | **Type** | **string** | Type of the job, either export or import. | -**Expiration** | **time.Time** | The time until which the artifacts will be available for download. | -**Created** | **time.Time** | The time the job was started. | -**Modified** | **time.Time** | The time of the last update to the job. | +**Expiration** | **SailPointTime** | The time until which the artifacts will be available for download. | +**Created** | **SailPointTime** | The time the job was started. | +**Modified** | **SailPointTime** | The time of the last update to the job. | **Description** | Pointer to **string** | Optional user defined description/name for export job. | [optional] ## Methods ### NewSpConfigExportJob -`func NewSpConfigExportJob(jobId string, status string, type_ string, expiration time.Time, created time.Time, modified time.Time, ) *SpConfigExportJob` +`func NewSpConfigExportJob(jobId string, status string, type_ string, expiration SailPointTime, created SailPointTime, modified SailPointTime, ) *SpConfigExportJob` NewSpConfigExportJob instantiates a new SpConfigExportJob object This constructor will assign default values to properties that have it defined, @@ -104,60 +104,60 @@ SetType sets Type field to given value. ### GetExpiration -`func (o *SpConfigExportJob) GetExpiration() time.Time` +`func (o *SpConfigExportJob) GetExpiration() SailPointTime` GetExpiration returns the Expiration field if non-nil, zero value otherwise. ### GetExpirationOk -`func (o *SpConfigExportJob) GetExpirationOk() (*time.Time, bool)` +`func (o *SpConfigExportJob) GetExpirationOk() (*SailPointTime, bool)` GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpiration -`func (o *SpConfigExportJob) SetExpiration(v time.Time)` +`func (o *SpConfigExportJob) SetExpiration(v SailPointTime)` SetExpiration sets Expiration field to given value. ### GetCreated -`func (o *SpConfigExportJob) GetCreated() time.Time` +`func (o *SpConfigExportJob) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SpConfigExportJob) GetCreatedOk() (*time.Time, bool)` +`func (o *SpConfigExportJob) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SpConfigExportJob) SetCreated(v time.Time)` +`func (o *SpConfigExportJob) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *SpConfigExportJob) GetModified() time.Time` +`func (o *SpConfigExportJob) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SpConfigExportJob) GetModifiedOk() (*time.Time, bool)` +`func (o *SpConfigExportJob) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SpConfigExportJob) SetModified(v time.Time)` +`func (o *SpConfigExportJob) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJobStatus.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJobStatus.md index 057e66ee5..c2ea52b79 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJobStatus.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportJobStatus.md @@ -18,17 +18,17 @@ Name | Type | Description | Notes **JobId** | **string** | Unique id assigned to this job. | **Status** | **string** | Status of the job. | **Type** | **string** | Type of the job, either export or import. | -**Expiration** | **time.Time** | The time until which the artifacts will be available for download. | -**Created** | **time.Time** | The time the job was started. | -**Modified** | **time.Time** | The time of the last update to the job. | +**Expiration** | **SailPointTime** | The time until which the artifacts will be available for download. | +**Created** | **SailPointTime** | The time the job was started. | +**Modified** | **SailPointTime** | The time of the last update to the job. | **Description** | Pointer to **string** | Optional user defined description/name for export job. | [optional] -**Completed** | Pointer to **time.Time** | The time the job was completed. | [optional] +**Completed** | Pointer to **SailPointTime** | The time the job was completed. | [optional] ## Methods ### NewSpConfigExportJobStatus -`func NewSpConfigExportJobStatus(jobId string, status string, type_ string, expiration time.Time, created time.Time, modified time.Time, ) *SpConfigExportJobStatus` +`func NewSpConfigExportJobStatus(jobId string, status string, type_ string, expiration SailPointTime, created SailPointTime, modified SailPointTime, ) *SpConfigExportJobStatus` NewSpConfigExportJobStatus instantiates a new SpConfigExportJobStatus object This constructor will assign default values to properties that have it defined, @@ -105,60 +105,60 @@ SetType sets Type field to given value. ### GetExpiration -`func (o *SpConfigExportJobStatus) GetExpiration() time.Time` +`func (o *SpConfigExportJobStatus) GetExpiration() SailPointTime` GetExpiration returns the Expiration field if non-nil, zero value otherwise. ### GetExpirationOk -`func (o *SpConfigExportJobStatus) GetExpirationOk() (*time.Time, bool)` +`func (o *SpConfigExportJobStatus) GetExpirationOk() (*SailPointTime, bool)` GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpiration -`func (o *SpConfigExportJobStatus) SetExpiration(v time.Time)` +`func (o *SpConfigExportJobStatus) SetExpiration(v SailPointTime)` SetExpiration sets Expiration field to given value. ### GetCreated -`func (o *SpConfigExportJobStatus) GetCreated() time.Time` +`func (o *SpConfigExportJobStatus) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SpConfigExportJobStatus) GetCreatedOk() (*time.Time, bool)` +`func (o *SpConfigExportJobStatus) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SpConfigExportJobStatus) SetCreated(v time.Time)` +`func (o *SpConfigExportJobStatus) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *SpConfigExportJobStatus) GetModified() time.Time` +`func (o *SpConfigExportJobStatus) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SpConfigExportJobStatus) GetModifiedOk() (*time.Time, bool)` +`func (o *SpConfigExportJobStatus) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SpConfigExportJobStatus) SetModified(v time.Time)` +`func (o *SpConfigExportJobStatus) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -190,20 +190,20 @@ HasDescription returns a boolean if a field has been set. ### GetCompleted -`func (o *SpConfigExportJobStatus) GetCompleted() time.Time` +`func (o *SpConfigExportJobStatus) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *SpConfigExportJobStatus) GetCompletedOk() (*time.Time, bool)` +`func (o *SpConfigExportJobStatus) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *SpConfigExportJobStatus) SetCompleted(v time.Time)` +`func (o *SpConfigExportJobStatus) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportResults.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportResults.md index b1ce7a8da..7622a8bd0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportResults.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigExportResults.md @@ -16,7 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'SpConfigExportResults', 'BetaSpConfig Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Version** | Pointer to **int32** | Current version of the export results object. | [optional] -**Timestamp** | Pointer to **time.Time** | Time the export was completed. | [optional] +**Timestamp** | Pointer to **SailPointTime** | Time the export was completed. | [optional] **Tenant** | Pointer to **string** | Name of the tenant where this export originated. | [optional] **Description** | Pointer to **string** | Optional user defined description/name for export job. | [optional] **Options** | Pointer to [**ExportOptions**](export-options) | | [optional] @@ -68,20 +68,20 @@ HasVersion returns a boolean if a field has been set. ### GetTimestamp -`func (o *SpConfigExportResults) GetTimestamp() time.Time` +`func (o *SpConfigExportResults) GetTimestamp() SailPointTime` GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. ### GetTimestampOk -`func (o *SpConfigExportResults) GetTimestampOk() (*time.Time, bool)` +`func (o *SpConfigExportResults) GetTimestampOk() (*SailPointTime, bool)` GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTimestamp -`func (o *SpConfigExportResults) SetTimestamp(v time.Time)` +`func (o *SpConfigExportResults) SetTimestamp(v SailPointTime)` SetTimestamp sets Timestamp field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigImportJobStatus.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigImportJobStatus.md index 5d4981af6..6c6fed644 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigImportJobStatus.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigImportJobStatus.md @@ -18,17 +18,17 @@ Name | Type | Description | Notes **JobId** | **string** | Unique id assigned to this job. | **Status** | **string** | Status of the job. | **Type** | **string** | Type of the job, either export or import. | -**Expiration** | **time.Time** | The time until which the artifacts will be available for download. | -**Created** | **time.Time** | The time the job was started. | -**Modified** | **time.Time** | The time of the last update to the job. | +**Expiration** | **SailPointTime** | The time until which the artifacts will be available for download. | +**Created** | **SailPointTime** | The time the job was started. | +**Modified** | **SailPointTime** | The time of the last update to the job. | **Message** | Pointer to **string** | This message contains additional information about the overall status of the job. | [optional] -**Completed** | Pointer to **time.Time** | The time the job was completed. | [optional] +**Completed** | Pointer to **SailPointTime** | The time the job was completed. | [optional] ## Methods ### NewSpConfigImportJobStatus -`func NewSpConfigImportJobStatus(jobId string, status string, type_ string, expiration time.Time, created time.Time, modified time.Time, ) *SpConfigImportJobStatus` +`func NewSpConfigImportJobStatus(jobId string, status string, type_ string, expiration SailPointTime, created SailPointTime, modified SailPointTime, ) *SpConfigImportJobStatus` NewSpConfigImportJobStatus instantiates a new SpConfigImportJobStatus object This constructor will assign default values to properties that have it defined, @@ -105,60 +105,60 @@ SetType sets Type field to given value. ### GetExpiration -`func (o *SpConfigImportJobStatus) GetExpiration() time.Time` +`func (o *SpConfigImportJobStatus) GetExpiration() SailPointTime` GetExpiration returns the Expiration field if non-nil, zero value otherwise. ### GetExpirationOk -`func (o *SpConfigImportJobStatus) GetExpirationOk() (*time.Time, bool)` +`func (o *SpConfigImportJobStatus) GetExpirationOk() (*SailPointTime, bool)` GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpiration -`func (o *SpConfigImportJobStatus) SetExpiration(v time.Time)` +`func (o *SpConfigImportJobStatus) SetExpiration(v SailPointTime)` SetExpiration sets Expiration field to given value. ### GetCreated -`func (o *SpConfigImportJobStatus) GetCreated() time.Time` +`func (o *SpConfigImportJobStatus) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SpConfigImportJobStatus) GetCreatedOk() (*time.Time, bool)` +`func (o *SpConfigImportJobStatus) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SpConfigImportJobStatus) SetCreated(v time.Time)` +`func (o *SpConfigImportJobStatus) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *SpConfigImportJobStatus) GetModified() time.Time` +`func (o *SpConfigImportJobStatus) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SpConfigImportJobStatus) GetModifiedOk() (*time.Time, bool)` +`func (o *SpConfigImportJobStatus) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SpConfigImportJobStatus) SetModified(v time.Time)` +`func (o *SpConfigImportJobStatus) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -190,20 +190,20 @@ HasMessage returns a boolean if a field has been set. ### GetCompleted -`func (o *SpConfigImportJobStatus) GetCompleted() time.Time` +`func (o *SpConfigImportJobStatus) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *SpConfigImportJobStatus) GetCompletedOk() (*time.Time, bool)` +`func (o *SpConfigImportJobStatus) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *SpConfigImportJobStatus) SetCompleted(v time.Time)` +`func (o *SpConfigImportJobStatus) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigJob.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigJob.md index e11e6fc92..d8f226db9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigJob.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigJob.md @@ -18,15 +18,15 @@ Name | Type | Description | Notes **JobId** | **string** | Unique id assigned to this job. | **Status** | **string** | Status of the job. | **Type** | **string** | Type of the job, either export or import. | -**Expiration** | **time.Time** | The time until which the artifacts will be available for download. | -**Created** | **time.Time** | The time the job was started. | -**Modified** | **time.Time** | The time of the last update to the job. | +**Expiration** | **SailPointTime** | The time until which the artifacts will be available for download. | +**Created** | **SailPointTime** | The time the job was started. | +**Modified** | **SailPointTime** | The time of the last update to the job. | ## Methods ### NewSpConfigJob -`func NewSpConfigJob(jobId string, status string, type_ string, expiration time.Time, created time.Time, modified time.Time, ) *SpConfigJob` +`func NewSpConfigJob(jobId string, status string, type_ string, expiration SailPointTime, created SailPointTime, modified SailPointTime, ) *SpConfigJob` NewSpConfigJob instantiates a new SpConfigJob object This constructor will assign default values to properties that have it defined, @@ -103,60 +103,60 @@ SetType sets Type field to given value. ### GetExpiration -`func (o *SpConfigJob) GetExpiration() time.Time` +`func (o *SpConfigJob) GetExpiration() SailPointTime` GetExpiration returns the Expiration field if non-nil, zero value otherwise. ### GetExpirationOk -`func (o *SpConfigJob) GetExpirationOk() (*time.Time, bool)` +`func (o *SpConfigJob) GetExpirationOk() (*SailPointTime, bool)` GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpiration -`func (o *SpConfigJob) SetExpiration(v time.Time)` +`func (o *SpConfigJob) SetExpiration(v SailPointTime)` SetExpiration sets Expiration field to given value. ### GetCreated -`func (o *SpConfigJob) GetCreated() time.Time` +`func (o *SpConfigJob) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *SpConfigJob) GetCreatedOk() (*time.Time, bool)` +`func (o *SpConfigJob) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *SpConfigJob) SetCreated(v time.Time)` +`func (o *SpConfigJob) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *SpConfigJob) GetModified() time.Time` +`func (o *SpConfigJob) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *SpConfigJob) GetModifiedOk() (*time.Time, bool)` +`func (o *SpConfigJob) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *SpConfigJob) SetModified(v time.Time)` +`func (o *SpConfigJob) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigObject.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigObject.md index 8adc71e00..71cd0c928 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigObject.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigObject.md @@ -15,13 +15,13 @@ tags: ['SDK', 'Software Development Kit', 'SpConfigObject', 'BetaSpConfigObject' Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ObjectType** | Pointer to **string** | The object type this configuration is for. | [optional] -**ReferenceExtractors** | Pointer to **[]string** | List of json paths within an exported object of this type that represent references that need to be resolved. | [optional] -**SignatureRequired** | Pointer to **bool** | If true, this type of object will be JWS signed and cannot be modified before import. | [optional] [default to false] -**AlwaysResolveById** | Pointer to **bool** | Whether this object type has to be resolved always by ID | [optional] [default to false] -**LegacyObject** | Pointer to **bool** | Whether this is a legacy object | [optional] [default to false] -**OnePerTenant** | Pointer to **bool** | Whether there is only one object of this type | [optional] [default to false] -**Exportable** | Pointer to **bool** | Whether this object can be exported or it is just a reference object | [optional] [default to false] +**ObjectType** | Pointer to **string** | Object type the configuration is for. | [optional] +**ReferenceExtractors** | Pointer to **[]string** | List of JSON paths within an exported object of this type, representing references that must be resolved. | [optional] +**SignatureRequired** | Pointer to **bool** | Indicates whether this type of object will be JWS signed and cannot be modified before import. | [optional] [default to false] +**AlwaysResolveById** | Pointer to **bool** | Indicates whether this object type must be always be resolved by ID. | [optional] [default to false] +**LegacyObject** | Pointer to **bool** | Indicates whether this is a legacy object. | [optional] [default to false] +**OnePerTenant** | Pointer to **bool** | Indicates whether there is only one object of this type. | [optional] [default to false] +**Exportable** | Pointer to **bool** | Indicates whether the object can be exported or is just a reference object. | [optional] [default to false] **Rules** | Pointer to [**SpConfigRules**](sp-config-rules) | | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRule.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRule.md index fe0b7a5ef..a4144e190 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRule.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRule.md @@ -15,9 +15,9 @@ tags: ['SDK', 'Software Development Kit', 'SpConfigRule', 'BetaSpConfigRule'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Path** | Pointer to **string** | JSONPath expression denoting the path within the object where a value substitution should be applied | [optional] +**Path** | Pointer to **string** | JSONPath expression denoting the path within the object where a value substitution should be applied. | [optional] **Value** | Pointer to [**NullableSpConfigRuleValue**](sp-config-rule-value) | | [optional] -**Modes** | Pointer to **[]string** | Draft modes to which this rule will apply | [optional] +**Modes** | Pointer to **[]string** | Draft modes the rule will apply to. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRules.md b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRules.md index 36841db67..250a0b074 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRules.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SpConfigRules.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TakeFromTargetRules** | Pointer to [**[]SpConfigRule**](sp-config-rule) | | [optional] **DefaultRules** | Pointer to [**[]SpConfigRule**](sp-config-rule) | | [optional] -**Editable** | Pointer to **bool** | Whether this object can be edited | [optional] [default to false] +**Editable** | Pointer to **bool** | Indicates whether the object can be edited. | [optional] [default to false] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Tag.md b/docs/tools/sdk/go/Reference/Beta/Models/Tag.md index 90ed3b888..30c03928f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Tag.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Tag.md @@ -17,15 +17,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | Tag id | [readonly] **Name** | **string** | Name of the tag. | -**Created** | **time.Time** | Date the tag was created. | [readonly] -**Modified** | **time.Time** | Date the tag was last modified. | [readonly] +**Created** | **SailPointTime** | Date the tag was created. | [readonly] +**Modified** | **SailPointTime** | Date the tag was last modified. | [readonly] **TagCategoryRefs** | [**[]TagTagCategoryRefsInner**](tag-tag-category-refs-inner) | | [readonly] ## Methods ### NewTag -`func NewTag(id string, name string, created time.Time, modified time.Time, tagCategoryRefs []TagTagCategoryRefsInner, ) *Tag` +`func NewTag(id string, name string, created SailPointTime, modified SailPointTime, tagCategoryRefs []TagTagCategoryRefsInner, ) *Tag` NewTag instantiates a new Tag object This constructor will assign default values to properties that have it defined, @@ -82,40 +82,40 @@ SetName sets Name field to given value. ### GetCreated -`func (o *Tag) GetCreated() time.Time` +`func (o *Tag) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Tag) GetCreatedOk() (*time.Time, bool)` +`func (o *Tag) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Tag) SetCreated(v time.Time)` +`func (o *Tag) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *Tag) GetModified() time.Time` +`func (o *Tag) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Tag) GetModifiedOk() (*time.Time, bool)` +`func (o *Tag) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Tag) SetModified(v time.Time)` +`func (o *Tag) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/TaskResultSimplified.md b/docs/tools/sdk/go/Reference/Beta/Models/TaskResultSimplified.md index 23f5ac297..27d3b4233 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/TaskResultSimplified.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/TaskResultSimplified.md @@ -19,8 +19,8 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | Task name | [optional] **Description** | Pointer to **string** | Task description | [optional] **Launcher** | Pointer to **string** | User or process who launched the task | [optional] -**Completed** | Pointer to **time.Time** | Date time of completion | [optional] -**Launched** | Pointer to **time.Time** | Date time when the task was launched | [optional] +**Completed** | Pointer to **SailPointTime** | Date time of completion | [optional] +**Launched** | Pointer to **SailPointTime** | Date time when the task was launched | [optional] **CompletionStatus** | Pointer to **string** | Task result status | [optional] ## Methods @@ -144,20 +144,20 @@ HasLauncher returns a boolean if a field has been set. ### GetCompleted -`func (o *TaskResultSimplified) GetCompleted() time.Time` +`func (o *TaskResultSimplified) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *TaskResultSimplified) GetCompletedOk() (*time.Time, bool)` +`func (o *TaskResultSimplified) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *TaskResultSimplified) SetCompleted(v time.Time)` +`func (o *TaskResultSimplified) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. @@ -169,20 +169,20 @@ HasCompleted returns a boolean if a field has been set. ### GetLaunched -`func (o *TaskResultSimplified) GetLaunched() time.Time` +`func (o *TaskResultSimplified) GetLaunched() SailPointTime` GetLaunched returns the Launched field if non-nil, zero value otherwise. ### GetLaunchedOk -`func (o *TaskResultSimplified) GetLaunchedOk() (*time.Time, bool)` +`func (o *TaskResultSimplified) GetLaunchedOk() (*SailPointTime, bool)` GetLaunchedOk returns a tuple with the Launched field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLaunched -`func (o *TaskResultSimplified) SetLaunched(v time.Time)` +`func (o *TaskResultSimplified) SetLaunched(v SailPointTime)` SetLaunched sets Launched field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/TaskStatus.md b/docs/tools/sdk/go/Reference/Beta/Models/TaskStatus.md index 23b677f58..bc4859eca 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/TaskStatus.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/TaskStatus.md @@ -22,8 +22,8 @@ Name | Type | Description | Notes **ParentName** | **NullableString** | Name of the parent of the task this TaskStatus represents | **Launcher** | **string** | Service to execute the task this TaskStatus represents | **Target** | Pointer to [**NullableTarget**](target) | | [optional] -**Created** | **time.Time** | Creation date of the task this TaskStatus represents | -**Modified** | **time.Time** | Last modification date of the task this TaskStatus represents | +**Created** | **SailPointTime** | Creation date of the task this TaskStatus represents | +**Modified** | **SailPointTime** | Last modification date of the task this TaskStatus represents | **Launched** | **NullableTime** | Launch date of the task this TaskStatus represents | **Completed** | **NullableTime** | Completion date of the task this TaskStatus represents | **CompletionStatus** | **NullableString** | Completion status of the task this TaskStatus represents | @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewTaskStatus -`func NewTaskStatus(id string, type_ string, uniqueName string, description string, parentName NullableString, launcher string, created time.Time, modified time.Time, launched NullableTime, completed NullableTime, completionStatus NullableString, messages []TaskStatusMessage, returns []TaskReturnDetails, attributes map[string]interface{}, progress NullableString, percentComplete int32, ) *TaskStatus` +`func NewTaskStatus(id string, type_ string, uniqueName string, description string, parentName NullableString, launcher string, created SailPointTime, modified SailPointTime, launched NullableTime, completed NullableTime, completionStatus NullableString, messages []TaskStatusMessage, returns []TaskReturnDetails, attributes map[string]interface{}, progress NullableString, percentComplete int32, ) *TaskStatus` NewTaskStatus instantiates a new TaskStatus object This constructor will assign default values to properties that have it defined, @@ -220,60 +220,60 @@ HasTarget returns a boolean if a field has been set. UnsetTarget ensures that no value is present for Target, not even an explicit nil ### GetCreated -`func (o *TaskStatus) GetCreated() time.Time` +`func (o *TaskStatus) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *TaskStatus) GetCreatedOk() (*time.Time, bool)` +`func (o *TaskStatus) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *TaskStatus) SetCreated(v time.Time)` +`func (o *TaskStatus) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. ### GetModified -`func (o *TaskStatus) GetModified() time.Time` +`func (o *TaskStatus) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *TaskStatus) GetModifiedOk() (*time.Time, bool)` +`func (o *TaskStatus) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *TaskStatus) SetModified(v time.Time)` +`func (o *TaskStatus) SetModified(v SailPointTime)` SetModified sets Modified field to given value. ### GetLaunched -`func (o *TaskStatus) GetLaunched() time.Time` +`func (o *TaskStatus) GetLaunched() SailPointTime` GetLaunched returns the Launched field if non-nil, zero value otherwise. ### GetLaunchedOk -`func (o *TaskStatus) GetLaunchedOk() (*time.Time, bool)` +`func (o *TaskStatus) GetLaunchedOk() (*SailPointTime, bool)` GetLaunchedOk returns a tuple with the Launched field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLaunched -`func (o *TaskStatus) SetLaunched(v time.Time)` +`func (o *TaskStatus) SetLaunched(v SailPointTime)` SetLaunched sets Launched field to given value. @@ -290,20 +290,20 @@ SetLaunched sets Launched field to given value. UnsetLaunched ensures that no value is present for Launched, not even an explicit nil ### GetCompleted -`func (o *TaskStatus) GetCompleted() time.Time` +`func (o *TaskStatus) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *TaskStatus) GetCompletedOk() (*time.Time, bool)` +`func (o *TaskStatus) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *TaskStatus) SetCompleted(v time.Time)` +`func (o *TaskStatus) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/TemplateDto.md b/docs/tools/sdk/go/Reference/Beta/Models/TemplateDto.md index 978ea0c22..2e5655f56 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/TemplateDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/TemplateDto.md @@ -27,8 +27,8 @@ Name | Type | Description | Notes **ReplyTo** | Pointer to **string** | The \"Reply To\" line in the template | [optional] **Description** | Pointer to **string** | The description in the template | [optional] **Id** | Pointer to **string** | This is auto-generated. | [optional] -**Created** | Pointer to **time.Time** | The time when this template is created. This is auto-generated. | [optional] -**Modified** | Pointer to **time.Time** | The time when this template was last modified. This is auto-generated. | [optional] +**Created** | Pointer to **SailPointTime** | The time when this template is created. This is auto-generated. | [optional] +**Modified** | Pointer to **SailPointTime** | The time when this template was last modified. This is auto-generated. | [optional] **SlackTemplate** | Pointer to **NullableString** | | [optional] **TeamsTemplate** | Pointer to **NullableString** | | [optional] @@ -358,20 +358,20 @@ HasId returns a boolean if a field has been set. ### GetCreated -`func (o *TemplateDto) GetCreated() time.Time` +`func (o *TemplateDto) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *TemplateDto) GetCreatedOk() (*time.Time, bool)` +`func (o *TemplateDto) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *TemplateDto) SetCreated(v time.Time)` +`func (o *TemplateDto) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -383,20 +383,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *TemplateDto) GetModified() time.Time` +`func (o *TemplateDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *TemplateDto) GetModifiedOk() (*time.Time, bool)` +`func (o *TemplateDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *TemplateDto) SetModified(v time.Time)` +`func (o *TemplateDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/TriggerExampleInput.md b/docs/tools/sdk/go/Reference/Beta/Models/TriggerExampleInput.md index df3ac0f6f..6ea23e57e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/TriggerExampleInput.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/TriggerExampleInput.md @@ -22,8 +22,8 @@ Name | Type | Description | Notes **RequestedItemsStatus** | [**[]AccessRequestPostApprovalRequestedItemsStatusInner**](access-request-post-approval-requested-items-status-inner) | Details about the outcome of each requested access item. | **Source** | [**AccountUncorrelatedSource**](account-uncorrelated-source) | | **Status** | **map[string]interface{}** | The overall status of the collection. | -**Started** | **time.Time** | The date and time when the account collection started. | -**Completed** | **time.Time** | The date and time when the account collection finished. | +**Started** | **SailPointTime** | The date and time when the account collection started. | +**Completed** | **SailPointTime** | The date and time when the account collection finished. | **Errors** | **[]string** | List of any accumulated error messages that occurred during provisioning. | **Warnings** | **[]string** | List of any accumulated warning messages that occurred during provisioning. | **Stats** | [**AccountsCollectedForAggregationStats**](accounts-collected-for-aggregation-stats) | | @@ -56,11 +56,11 @@ Name | Type | Description | Notes **IdentityName** | **string** | Name of the identity correlated with the account. | **Name** | **string** | Source name. | **Type** | **string** | Connection type. | -**Created** | **time.Time** | Date and time when the status change occurred. | +**Created** | **SailPointTime** | Date and time when the status change occurred. | **Connector** | **string** | Connector type used to connect to the source. | **Actor** | [**SourceUpdatedActor**](source-updated-actor) | | -**Deleted** | **time.Time** | Date and time when the source was deleted. | -**Modified** | **time.Time** | Date and time when the source was modified. | +**Deleted** | **SailPointTime** | Date and time when the source was deleted. | +**Modified** | **SailPointTime** | Date and time when the source was modified. | **Application** | [**VAClusterStatusChangeEventApplication**](va-cluster-status-change-event-application) | | **HealthCheckResult** | [**VAClusterStatusChangeEventHealthCheckResult**](va-cluster-status-change-event-health-check-result) | | **PreviousHealthCheckResult** | [**VAClusterStatusChangeEventPreviousHealthCheckResult**](va-cluster-status-change-event-previous-health-check-result) | | @@ -69,7 +69,7 @@ Name | Type | Description | Notes ### NewTriggerExampleInput -`func NewTriggerExampleInput(accessRequestId string, requestedFor []AccessItemRequestedForDto1, requestedItems []AccessRequestPreApprovalRequestedItemsInner, requestedBy AccessItemRequesterDto1, requestedItemsStatus []AccessRequestPostApprovalRequestedItemsStatusInner, source AccountUncorrelatedSource, status map[string]interface{}, started time.Time, completed time.Time, errors []string, warnings []string, stats AccountsCollectedForAggregationStats, identity IdentityDeletedIdentity, account AccountUncorrelatedAccount, changes []IdentityAttributesChangedChangesInner, attributes map[string]interface{}, campaign CampaignGeneratedCampaign, certification CertificationSignedOffCertification, trackingNumber string, sources string, recipient ProvisioningCompletedRecipient, accountRequests []ProvisioningCompletedAccountRequestsInner, fileName string, ownerEmail string, ownerName string, query string, searchName string, searchResults SavedSearchCompleteSearchResults, signedS3Url string, uuid string, id string, nativeIdentifier string, sourceId string, sourceName string, identityId string, identityName string, name string, type_ string, created time.Time, connector string, actor SourceUpdatedActor, deleted time.Time, modified time.Time, application VAClusterStatusChangeEventApplication, healthCheckResult VAClusterStatusChangeEventHealthCheckResult, previousHealthCheckResult VAClusterStatusChangeEventPreviousHealthCheckResult, ) *TriggerExampleInput` +`func NewTriggerExampleInput(accessRequestId string, requestedFor []AccessItemRequestedForDto1, requestedItems []AccessRequestPreApprovalRequestedItemsInner, requestedBy AccessItemRequesterDto1, requestedItemsStatus []AccessRequestPostApprovalRequestedItemsStatusInner, source AccountUncorrelatedSource, status map[string]interface{}, started SailPointTime, completed SailPointTime, errors []string, warnings []string, stats AccountsCollectedForAggregationStats, identity IdentityDeletedIdentity, account AccountUncorrelatedAccount, changes []IdentityAttributesChangedChangesInner, attributes map[string]interface{}, campaign CampaignGeneratedCampaign, certification CertificationSignedOffCertification, trackingNumber string, sources string, recipient ProvisioningCompletedRecipient, accountRequests []ProvisioningCompletedAccountRequestsInner, fileName string, ownerEmail string, ownerName string, query string, searchName string, searchResults SavedSearchCompleteSearchResults, signedS3Url string, uuid string, id string, nativeIdentifier string, sourceId string, sourceName string, identityId string, identityName string, name string, type_ string, created SailPointTime, connector string, actor SourceUpdatedActor, deleted SailPointTime, modified SailPointTime, application VAClusterStatusChangeEventApplication, healthCheckResult VAClusterStatusChangeEventHealthCheckResult, previousHealthCheckResult VAClusterStatusChangeEventPreviousHealthCheckResult, ) *TriggerExampleInput` NewTriggerExampleInput instantiates a new TriggerExampleInput object This constructor will assign default values to properties that have it defined, @@ -226,40 +226,40 @@ SetStatus sets Status field to given value. ### GetStarted -`func (o *TriggerExampleInput) GetStarted() time.Time` +`func (o *TriggerExampleInput) GetStarted() SailPointTime` GetStarted returns the Started field if non-nil, zero value otherwise. ### GetStartedOk -`func (o *TriggerExampleInput) GetStartedOk() (*time.Time, bool)` +`func (o *TriggerExampleInput) GetStartedOk() (*SailPointTime, bool)` GetStartedOk returns a tuple with the Started field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStarted -`func (o *TriggerExampleInput) SetStarted(v time.Time)` +`func (o *TriggerExampleInput) SetStarted(v SailPointTime)` SetStarted sets Started field to given value. ### GetCompleted -`func (o *TriggerExampleInput) GetCompleted() time.Time` +`func (o *TriggerExampleInput) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *TriggerExampleInput) GetCompletedOk() (*time.Time, bool)` +`func (o *TriggerExampleInput) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *TriggerExampleInput) SetCompleted(v time.Time)` +`func (o *TriggerExampleInput) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. @@ -961,20 +961,20 @@ SetType sets Type field to given value. ### GetCreated -`func (o *TriggerExampleInput) GetCreated() time.Time` +`func (o *TriggerExampleInput) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *TriggerExampleInput) GetCreatedOk() (*time.Time, bool)` +`func (o *TriggerExampleInput) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *TriggerExampleInput) SetCreated(v time.Time)` +`func (o *TriggerExampleInput) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -1021,40 +1021,40 @@ SetActor sets Actor field to given value. ### GetDeleted -`func (o *TriggerExampleInput) GetDeleted() time.Time` +`func (o *TriggerExampleInput) GetDeleted() SailPointTime` GetDeleted returns the Deleted field if non-nil, zero value otherwise. ### GetDeletedOk -`func (o *TriggerExampleInput) GetDeletedOk() (*time.Time, bool)` +`func (o *TriggerExampleInput) GetDeletedOk() (*SailPointTime, bool)` GetDeletedOk returns a tuple with the Deleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeleted -`func (o *TriggerExampleInput) SetDeleted(v time.Time)` +`func (o *TriggerExampleInput) SetDeleted(v SailPointTime)` SetDeleted sets Deleted field to given value. ### GetModified -`func (o *TriggerExampleInput) GetModified() time.Time` +`func (o *TriggerExampleInput) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *TriggerExampleInput) GetModifiedOk() (*time.Time, bool)` +`func (o *TriggerExampleInput) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *TriggerExampleInput) SetModified(v time.Time)` +`func (o *TriggerExampleInput) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/UserApp.md b/docs/tools/sdk/go/Reference/Beta/Models/UserApp.md index cb726e60a..d079c0733 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/UserApp.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/UserApp.md @@ -16,8 +16,8 @@ tags: ['SDK', 'Software Development Kit', 'UserApp', 'BetaUserApp'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The user app id | [optional] -**Created** | Pointer to **time.Time** | Time when the user app was created | [optional] -**Modified** | Pointer to **time.Time** | Time when the user app was last modified | [optional] +**Created** | Pointer to **SailPointTime** | Time when the user app was created | [optional] +**Modified** | Pointer to **SailPointTime** | Time when the user app was last modified | [optional] **HasMultipleAccounts** | Pointer to **bool** | True if the owner has multiple accounts for the source | [optional] [default to false] **UseForPasswordManagement** | Pointer to **bool** | True if the source has password feature | [optional] [default to false] **ProvisionRequestEnabled** | Pointer to **bool** | True if the source app related to the user app is provision request enabled | [optional] [default to false] @@ -73,20 +73,20 @@ HasId returns a boolean if a field has been set. ### GetCreated -`func (o *UserApp) GetCreated() time.Time` +`func (o *UserApp) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *UserApp) GetCreatedOk() (*time.Time, bool)` +`func (o *UserApp) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *UserApp) SetCreated(v time.Time)` +`func (o *UserApp) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -98,20 +98,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *UserApp) GetModified() time.Time` +`func (o *UserApp) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *UserApp) GetModifiedOk() (*time.Time, bool)` +`func (o *UserApp) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *UserApp) SetModified(v time.Time)` +`func (o *UserApp) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/VAClusterStatusChangeEvent.md b/docs/tools/sdk/go/Reference/Beta/Models/VAClusterStatusChangeEvent.md index be5b179e8..10f7ca3c4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/VAClusterStatusChangeEvent.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/VAClusterStatusChangeEvent.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'VAClusterStatusChangeEvent', 'BetaVAC Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Created** | **time.Time** | Date and time when the status change occurred. | +**Created** | **SailPointTime** | Date and time when the status change occurred. | **Type** | **map[string]interface{}** | Type of the object that initiated the event. | **Application** | [**VAClusterStatusChangeEventApplication**](va-cluster-status-change-event-application) | | **HealthCheckResult** | [**VAClusterStatusChangeEventHealthCheckResult**](va-cluster-status-change-event-health-check-result) | | @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewVAClusterStatusChangeEvent -`func NewVAClusterStatusChangeEvent(created time.Time, type_ map[string]interface{}, application VAClusterStatusChangeEventApplication, healthCheckResult VAClusterStatusChangeEventHealthCheckResult, previousHealthCheckResult VAClusterStatusChangeEventPreviousHealthCheckResult, ) *VAClusterStatusChangeEvent` +`func NewVAClusterStatusChangeEvent(created SailPointTime, type_ map[string]interface{}, application VAClusterStatusChangeEventApplication, healthCheckResult VAClusterStatusChangeEventHealthCheckResult, previousHealthCheckResult VAClusterStatusChangeEventPreviousHealthCheckResult, ) *VAClusterStatusChangeEvent` NewVAClusterStatusChangeEvent instantiates a new VAClusterStatusChangeEvent object This constructor will assign default values to properties that have it defined, @@ -42,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetCreated -`func (o *VAClusterStatusChangeEvent) GetCreated() time.Time` +`func (o *VAClusterStatusChangeEvent) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *VAClusterStatusChangeEvent) GetCreatedOk() (*time.Time, bool)` +`func (o *VAClusterStatusChangeEvent) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *VAClusterStatusChangeEvent) SetCreated(v time.Time)` +`func (o *VAClusterStatusChangeEvent) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMapping.md b/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMapping.md index 5ad672a85..d803bfba2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMapping.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMapping.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | The unique identifier for the vendor-connector mapping. | [optional] **Vendor** | Pointer to **string** | The name of the vendor. | [optional] **Connector** | Pointer to **string** | The name of the connector. | [optional] -**CreatedAt** | Pointer to **time.Time** | The creation timestamp of the mapping. | [optional] +**CreatedAt** | Pointer to **SailPointTime** | The creation timestamp of the mapping. | [optional] **CreatedBy** | Pointer to **string** | The identifier of the user who created the mapping. | [optional] **UpdatedAt** | Pointer to [**NullableVendorConnectorMappingUpdatedAt**](vendor-connector-mapping-updated-at) | | [optional] **UpdatedBy** | Pointer to [**NullableVendorConnectorMappingUpdatedBy**](vendor-connector-mapping-updated-by) | | [optional] @@ -121,20 +121,20 @@ HasConnector returns a boolean if a field has been set. ### GetCreatedAt -`func (o *VendorConnectorMapping) GetCreatedAt() time.Time` +`func (o *VendorConnectorMapping) GetCreatedAt() SailPointTime` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *VendorConnectorMapping) GetCreatedAtOk() (*time.Time, bool)` +`func (o *VendorConnectorMapping) GetCreatedAtOk() (*SailPointTime, bool)` GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreatedAt -`func (o *VendorConnectorMapping) SetCreatedAt(v time.Time)` +`func (o *VendorConnectorMapping) SetCreatedAt(v SailPointTime)` SetCreatedAt sets CreatedAt field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingDeletedAt.md b/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingDeletedAt.md index 58b9a5019..df1b7236f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingDeletedAt.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingDeletedAt.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'VendorConnectorMappingDeletedAt', 'Be Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Time** | Pointer to **time.Time** | The timestamp when the mapping was deleted, represented in ISO 8601 format, if applicable. | [optional] +**Time** | Pointer to **SailPointTime** | The timestamp when the mapping was deleted, represented in ISO 8601 format, if applicable. | [optional] **Valid** | Pointer to **bool** | A flag indicating if the 'Time' field is set and valid, i.e., if the mapping has been deleted. | [optional] [default to false] ## Methods @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetTime -`func (o *VendorConnectorMappingDeletedAt) GetTime() time.Time` +`func (o *VendorConnectorMappingDeletedAt) GetTime() SailPointTime` GetTime returns the Time field if non-nil, zero value otherwise. ### GetTimeOk -`func (o *VendorConnectorMappingDeletedAt) GetTimeOk() (*time.Time, bool)` +`func (o *VendorConnectorMappingDeletedAt) GetTimeOk() (*SailPointTime, bool)` GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTime -`func (o *VendorConnectorMappingDeletedAt) SetTime(v time.Time)` +`func (o *VendorConnectorMappingDeletedAt) SetTime(v SailPointTime)` SetTime sets Time field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingUpdatedAt.md b/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingUpdatedAt.md index 74e0b7bed..772482eb4 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingUpdatedAt.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/VendorConnectorMappingUpdatedAt.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'VendorConnectorMappingUpdatedAt', 'Be Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Time** | Pointer to **time.Time** | The timestamp when the mapping was last updated, represented in ISO 8601 format. | [optional] +**Time** | Pointer to **SailPointTime** | The timestamp when the mapping was last updated, represented in ISO 8601 format. | [optional] **Valid** | Pointer to **bool** | A flag indicating if the 'Time' field is set and valid. | [optional] [default to false] ## Methods @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetTime -`func (o *VendorConnectorMappingUpdatedAt) GetTime() time.Time` +`func (o *VendorConnectorMappingUpdatedAt) GetTime() SailPointTime` GetTime returns the Time field if non-nil, zero value otherwise. ### GetTimeOk -`func (o *VendorConnectorMappingUpdatedAt) GetTimeOk() (*time.Time, bool)` +`func (o *VendorConnectorMappingUpdatedAt) GetTimeOk() (*SailPointTime, bool)` GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTime -`func (o *VendorConnectorMappingUpdatedAt) SetTime(v time.Time)` +`func (o *VendorConnectorMappingUpdatedAt) SetTime(v SailPointTime)` SetTime sets Time field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkItems.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkItems.md index 033f353bc..141158cb8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkItems.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkItems.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **RequesterDisplayName** | Pointer to **NullableString** | The displayname of the requester | [optional] **OwnerId** | Pointer to **NullableString** | The ID of the owner | [optional] **OwnerName** | Pointer to **string** | The name of the owner | [optional] -**Created** | Pointer to **time.Time** | | [optional] +**Created** | Pointer to **SailPointTime** | | [optional] **Modified** | Pointer to **NullableTime** | | [optional] **Description** | Pointer to **string** | The description of the work item | [optional] **State** | Pointer to [**NullableWorkItemState**](work-item-state) | | [optional] @@ -209,20 +209,20 @@ HasOwnerName returns a boolean if a field has been set. ### GetCreated -`func (o *WorkItems) GetCreated() time.Time` +`func (o *WorkItems) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *WorkItems) GetCreatedOk() (*time.Time, bool)` +`func (o *WorkItems) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *WorkItems) SetCreated(v time.Time)` +`func (o *WorkItems) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -234,20 +234,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *WorkItems) GetModified() time.Time` +`func (o *WorkItems) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *WorkItems) GetModifiedOk() (*time.Time, bool)` +`func (o *WorkItems) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *WorkItems) SetModified(v time.Time)` +`func (o *WorkItems) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -459,20 +459,20 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetCompleted -`func (o *WorkItems) GetCompleted() time.Time` +`func (o *WorkItems) GetCompleted() SailPointTime` GetCompleted returns the Completed field if non-nil, zero value otherwise. ### GetCompletedOk -`func (o *WorkItems) GetCompletedOk() (*time.Time, bool)` +`func (o *WorkItems) GetCompletedOk() (*SailPointTime, bool)` GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCompleted -`func (o *WorkItems) SetCompleted(v time.Time)` +`func (o *WorkItems) SetCompleted(v SailPointTime)` SetCompleted sets Completed field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/Workflow.md b/docs/tools/sdk/go/Reference/Beta/Models/Workflow.md index 0055edfff..34fa709e8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/Workflow.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/Workflow.md @@ -22,11 +22,11 @@ Name | Type | Description | Notes **Enabled** | Pointer to **bool** | Enable or disable the workflow. Workflows cannot be created in an enabled state. | [optional] [default to false] **Trigger** | Pointer to [**WorkflowTrigger**](workflow-trigger) | | [optional] **Id** | Pointer to **string** | Workflow ID. This is a UUID generated upon creation. | [optional] -**Modified** | Pointer to **time.Time** | The date and time the workflow was modified. | [optional] +**Modified** | Pointer to **SailPointTime** | The date and time the workflow was modified. | [optional] **ModifiedBy** | Pointer to [**WorkflowModifiedBy**](workflow-modified-by) | | [optional] **ExecutionCount** | Pointer to **int32** | The number of times this workflow has been executed. | [optional] **FailureCount** | Pointer to **int32** | The number of times this workflow has failed during execution. | [optional] -**Created** | Pointer to **time.Time** | The date and time the workflow was created. | [optional] +**Created** | Pointer to **SailPointTime** | The date and time the workflow was created. | [optional] **Creator** | Pointer to [**WorkflowAllOfCreator**](workflow-all-of-creator) | | [optional] ## Methods @@ -225,20 +225,20 @@ HasId returns a boolean if a field has been set. ### GetModified -`func (o *Workflow) GetModified() time.Time` +`func (o *Workflow) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *Workflow) GetModifiedOk() (*time.Time, bool)` +`func (o *Workflow) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *Workflow) SetModified(v time.Time)` +`func (o *Workflow) SetModified(v SailPointTime)` SetModified sets Modified field to given value. @@ -325,20 +325,20 @@ HasFailureCount returns a boolean if a field has been set. ### GetCreated -`func (o *Workflow) GetCreated() time.Time` +`func (o *Workflow) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *Workflow) GetCreatedOk() (*time.Time, bool)` +`func (o *Workflow) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *Workflow) SetCreated(v time.Time)` +`func (o *Workflow) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecution.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecution.md index 7f38b6253..6ce57f7e1 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecution.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecution.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Workflow execution ID. | [optional] **WorkflowId** | Pointer to **string** | Workflow ID. | [optional] **RequestId** | Pointer to **string** | Backend ID that tracks a workflow request in the system. Provide this ID in a customer support ticket for debugging purposes. | [optional] -**StartTime** | Pointer to **time.Time** | Date/time when the workflow started. | [optional] -**CloseTime** | Pointer to **time.Time** | Date/time when the workflow ended. | [optional] +**StartTime** | Pointer to **SailPointTime** | Date/time when the workflow started. | [optional] +**CloseTime** | Pointer to **SailPointTime** | Date/time when the workflow ended. | [optional] **Status** | Pointer to **string** | Workflow execution status. | [optional] ## Methods @@ -118,20 +118,20 @@ HasRequestId returns a boolean if a field has been set. ### GetStartTime -`func (o *WorkflowExecution) GetStartTime() time.Time` +`func (o *WorkflowExecution) GetStartTime() SailPointTime` GetStartTime returns the StartTime field if non-nil, zero value otherwise. ### GetStartTimeOk -`func (o *WorkflowExecution) GetStartTimeOk() (*time.Time, bool)` +`func (o *WorkflowExecution) GetStartTimeOk() (*SailPointTime, bool)` GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStartTime -`func (o *WorkflowExecution) SetStartTime(v time.Time)` +`func (o *WorkflowExecution) SetStartTime(v SailPointTime)` SetStartTime sets StartTime field to given value. @@ -143,20 +143,20 @@ HasStartTime returns a boolean if a field has been set. ### GetCloseTime -`func (o *WorkflowExecution) GetCloseTime() time.Time` +`func (o *WorkflowExecution) GetCloseTime() SailPointTime` GetCloseTime returns the CloseTime field if non-nil, zero value otherwise. ### GetCloseTimeOk -`func (o *WorkflowExecution) GetCloseTimeOk() (*time.Time, bool)` +`func (o *WorkflowExecution) GetCloseTimeOk() (*SailPointTime, bool)` GetCloseTimeOk returns a tuple with the CloseTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCloseTime -`func (o *WorkflowExecution) SetCloseTime(v time.Time)` +`func (o *WorkflowExecution) SetCloseTime(v SailPointTime)` SetCloseTime sets CloseTime field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecutionEvent.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecutionEvent.md index 4927f77c0..2c710c815 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecutionEvent.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowExecutionEvent.md @@ -16,7 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'WorkflowExecutionEvent', 'BetaWorkflo Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **map[string]interface{}** | The type of event | [optional] -**Timestamp** | Pointer to **time.Time** | The date-time when the event occurred | [optional] +**Timestamp** | Pointer to **SailPointTime** | The date-time when the event occurred | [optional] **Attributes** | Pointer to **map[string]interface{}** | Additional attributes associated with the event | [optional] ## Methods @@ -65,20 +65,20 @@ HasType returns a boolean if a field has been set. ### GetTimestamp -`func (o *WorkflowExecutionEvent) GetTimestamp() time.Time` +`func (o *WorkflowExecutionEvent) GetTimestamp() SailPointTime` GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. ### GetTimestampOk -`func (o *WorkflowExecutionEvent) GetTimestampOk() (*time.Time, bool)` +`func (o *WorkflowExecutionEvent) GetTimestampOk() (*SailPointTime, bool)` GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTimestamp -`func (o *WorkflowExecutionEvent) SetTimestamp(v time.Time)` +`func (o *WorkflowExecutionEvent) SetTimestamp(v SailPointTime)` SetTimestamp sets Timestamp field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryAction.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryAction.md index 7afc1b9ef..6522a8a83 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryAction.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryAction.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **FormFields** | Pointer to [**[]WorkflowLibraryFormFields**](workflow-library-form-fields) | One or more inputs that the action accepts | [optional] **ExampleOutput** | Pointer to [**WorkflowLibraryActionExampleOutput**](workflow-library-action-example-output) | | [optional] **Deprecated** | Pointer to **bool** | | [optional] -**DeprecatedBy** | Pointer to **time.Time** | | [optional] +**DeprecatedBy** | Pointer to **SailPointTime** | | [optional] **VersionNumber** | Pointer to **int32** | Version number | [optional] **IsSimulationEnabled** | Pointer to **bool** | | [optional] **IsDynamicSchema** | Pointer to **bool** | Determines whether the dynamic output schema is returned in place of the action's output schema. The dynamic schema lists non-static properties, like properties of a workflow form where each form has different fields. These will be provided dynamically based on available form fields. | [optional] @@ -234,20 +234,20 @@ HasDeprecated returns a boolean if a field has been set. ### GetDeprecatedBy -`func (o *WorkflowLibraryAction) GetDeprecatedBy() time.Time` +`func (o *WorkflowLibraryAction) GetDeprecatedBy() SailPointTime` GetDeprecatedBy returns the DeprecatedBy field if non-nil, zero value otherwise. ### GetDeprecatedByOk -`func (o *WorkflowLibraryAction) GetDeprecatedByOk() (*time.Time, bool)` +`func (o *WorkflowLibraryAction) GetDeprecatedByOk() (*SailPointTime, bool)` GetDeprecatedByOk returns a tuple with the DeprecatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeprecatedBy -`func (o *WorkflowLibraryAction) SetDeprecatedBy(v time.Time)` +`func (o *WorkflowLibraryAction) SetDeprecatedBy(v SailPointTime)` SetDeprecatedBy sets DeprecatedBy field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryOperator.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryOperator.md index 49ded8e87..cfa891340 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryOperator.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryOperator.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | Description of the operator | [optional] **IsDynamicSchema** | Pointer to **bool** | Determines whether the dynamic output schema is returned in place of the action's output schema. The dynamic schema lists non-static properties, like properties of a workflow form where each form has different fields. These will be provided dynamically based on available form fields. | [optional] **Deprecated** | Pointer to **bool** | | [optional] -**DeprecatedBy** | Pointer to **time.Time** | | [optional] +**DeprecatedBy** | Pointer to **SailPointTime** | | [optional] **IsSimulationEnabled** | Pointer to **bool** | | [optional] **FormFields** | Pointer to [**[]WorkflowLibraryFormFields**](workflow-library-form-fields) | One or more inputs that the operator accepts | [optional] @@ -196,20 +196,20 @@ HasDeprecated returns a boolean if a field has been set. ### GetDeprecatedBy -`func (o *WorkflowLibraryOperator) GetDeprecatedBy() time.Time` +`func (o *WorkflowLibraryOperator) GetDeprecatedBy() SailPointTime` GetDeprecatedBy returns the DeprecatedBy field if non-nil, zero value otherwise. ### GetDeprecatedByOk -`func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*time.Time, bool)` +`func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*SailPointTime, bool)` GetDeprecatedByOk returns a tuple with the DeprecatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeprecatedBy -`func (o *WorkflowLibraryOperator) SetDeprecatedBy(v time.Time)` +`func (o *WorkflowLibraryOperator) SetDeprecatedBy(v SailPointTime)` SetDeprecatedBy sets DeprecatedBy field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryTrigger.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryTrigger.md index 19529db78..48975cdad 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryTrigger.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowLibraryTrigger.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Trigger ID. This is a static namespaced ID for the trigger. | [optional] **Type** | Pointer to **string** | Trigger type | [optional] **Deprecated** | Pointer to **bool** | | [optional] -**DeprecatedBy** | Pointer to **time.Time** | | [optional] +**DeprecatedBy** | Pointer to **SailPointTime** | | [optional] **IsSimulationEnabled** | Pointer to **bool** | | [optional] **OutputSchema** | Pointer to **map[string]interface{}** | Example output schema | [optional] **Name** | Pointer to **string** | Trigger Name | [optional] @@ -123,20 +123,20 @@ HasDeprecated returns a boolean if a field has been set. ### GetDeprecatedBy -`func (o *WorkflowLibraryTrigger) GetDeprecatedBy() time.Time` +`func (o *WorkflowLibraryTrigger) GetDeprecatedBy() SailPointTime` GetDeprecatedBy returns the DeprecatedBy field if non-nil, zero value otherwise. ### GetDeprecatedByOk -`func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*time.Time, bool)` +`func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*SailPointTime, bool)` GetDeprecatedByOk returns a tuple with the DeprecatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeprecatedBy -`func (o *WorkflowLibraryTrigger) SetDeprecatedBy(v time.Time)` +`func (o *WorkflowLibraryTrigger) SetDeprecatedBy(v SailPointTime)` SetDeprecatedBy sets DeprecatedBy field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowTrigger.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowTrigger.md index 14f88aa15..50a189c24 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowTrigger.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowTrigger.md @@ -17,13 +17,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | The trigger type | **DisplayName** | Pointer to **NullableString** | | [optional] -**Attributes** | [**NullableWorkflowTriggerAttributes**](workflow-trigger-attributes) | | +**Attributes** | **map[string]interface{}** | Workflow Trigger Attributes. | ## Methods ### NewWorkflowTrigger -`func NewWorkflowTrigger(type_ string, attributes NullableWorkflowTriggerAttributes, ) *WorkflowTrigger` +`func NewWorkflowTrigger(type_ string, attributes map[string]interface{}, ) *WorkflowTrigger` NewWorkflowTrigger instantiates a new WorkflowTrigger object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ HasDisplayName returns a boolean if a field has been set. UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil ### GetAttributes -`func (o *WorkflowTrigger) GetAttributes() WorkflowTriggerAttributes` +`func (o *WorkflowTrigger) GetAttributes() map[string]interface{}` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *WorkflowTrigger) GetAttributesOk() (*WorkflowTriggerAttributes, bool)` +`func (o *WorkflowTrigger) GetAttributesOk() (*map[string]interface{}, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *WorkflowTrigger) SetAttributes(v WorkflowTriggerAttributes)` +`func (o *WorkflowTrigger) SetAttributes(v map[string]interface{})` SetAttributes sets Attributes field to given value. diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowTriggerAttributes.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkflowTriggerAttributes.md deleted file mode 100644 index 224e5bc85..000000000 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkflowTriggerAttributes.md +++ /dev/null @@ -1,532 +0,0 @@ ---- -id: beta-workflow-trigger-attributes -title: WorkflowTriggerAttributes -pagination_label: WorkflowTriggerAttributes -sidebar_label: WorkflowTriggerAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'WorkflowTriggerAttributes', 'BetaWorkflowTriggerAttributes'] -slug: /tools/sdk/go/beta/models/workflow-trigger-attributes -tags: ['SDK', 'Software Development Kit', 'WorkflowTriggerAttributes', 'BetaWorkflowTriggerAttributes'] ---- - -# WorkflowTriggerAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewWorkflowTriggerAttributes - -`func NewWorkflowTriggerAttributes(id NullableString, frequency NullableString, ) *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributes instantiates a new WorkflowTriggerAttributes 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 - -### NewWorkflowTriggerAttributesWithDefaults - -`func NewWorkflowTriggerAttributesWithDefaults() *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributesWithDefaults instantiates a new WorkflowTriggerAttributes 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 - -### GetId - -`func (o *WorkflowTriggerAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WorkflowTriggerAttributes) 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 *WorkflowTriggerAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *WorkflowTriggerAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *WorkflowTriggerAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *WorkflowTriggerAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *WorkflowTriggerAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *WorkflowTriggerAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *WorkflowTriggerAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *WorkflowTriggerAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *WorkflowTriggerAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *WorkflowTriggerAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *WorkflowTriggerAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *WorkflowTriggerAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *WorkflowTriggerAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *WorkflowTriggerAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *WorkflowTriggerAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *WorkflowTriggerAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *WorkflowTriggerAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *WorkflowTriggerAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *WorkflowTriggerAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil -### GetName - -`func (o *WorkflowTriggerAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *WorkflowTriggerAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *WorkflowTriggerAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *WorkflowTriggerAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *WorkflowTriggerAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *WorkflowTriggerAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetClientId - -`func (o *WorkflowTriggerAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *WorkflowTriggerAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *WorkflowTriggerAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *WorkflowTriggerAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *WorkflowTriggerAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *WorkflowTriggerAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *WorkflowTriggerAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *WorkflowTriggerAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *WorkflowTriggerAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *WorkflowTriggerAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *WorkflowTriggerAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *WorkflowTriggerAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil -### GetFrequency - -`func (o *WorkflowTriggerAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *WorkflowTriggerAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *WorkflowTriggerAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *WorkflowTriggerAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *WorkflowTriggerAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *WorkflowTriggerAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *WorkflowTriggerAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *WorkflowTriggerAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *WorkflowTriggerAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *WorkflowTriggerAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *WorkflowTriggerAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *WorkflowTriggerAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *WorkflowTriggerAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *WorkflowTriggerAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *WorkflowTriggerAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *WorkflowTriggerAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *WorkflowTriggerAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *WorkflowTriggerAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *WorkflowTriggerAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *WorkflowTriggerAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *WorkflowTriggerAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *WorkflowTriggerAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *WorkflowTriggerAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *WorkflowTriggerAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *WorkflowTriggerAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *WorkflowTriggerAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *WorkflowTriggerAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *WorkflowTriggerAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *WorkflowTriggerAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/Beta/Models/WorkgroupDto.md b/docs/tools/sdk/go/Reference/Beta/Models/WorkgroupDto.md index ae255aa1a..4853a8183 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/WorkgroupDto.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/WorkgroupDto.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | Governance group description. | [optional] **MemberCount** | Pointer to **int64** | Number of members in the governance group. | [optional] [readonly] **ConnectionCount** | Pointer to **int64** | Number of connections in the governance group. | [optional] [readonly] -**Created** | Pointer to **time.Time** | | [optional] -**Modified** | Pointer to **time.Time** | | [optional] +**Created** | Pointer to **SailPointTime** | | [optional] +**Modified** | Pointer to **SailPointTime** | | [optional] ## Methods @@ -195,20 +195,20 @@ HasConnectionCount returns a boolean if a field has been set. ### GetCreated -`func (o *WorkgroupDto) GetCreated() time.Time` +`func (o *WorkgroupDto) GetCreated() SailPointTime` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *WorkgroupDto) GetCreatedOk() (*time.Time, bool)` +`func (o *WorkgroupDto) GetCreatedOk() (*SailPointTime, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *WorkgroupDto) SetCreated(v time.Time)` +`func (o *WorkgroupDto) SetCreated(v SailPointTime)` SetCreated sets Created field to given value. @@ -220,20 +220,20 @@ HasCreated returns a boolean if a field has been set. ### GetModified -`func (o *WorkgroupDto) GetModified() time.Time` +`func (o *WorkgroupDto) GetModified() SailPointTime` GetModified returns the Modified field if non-nil, zero value otherwise. ### GetModifiedOk -`func (o *WorkgroupDto) GetModifiedOk() (*time.Time, bool)` +`func (o *WorkgroupDto) GetModifiedOk() (*SailPointTime, bool)` GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModified -`func (o *WorkgroupDto) SetModified(v time.Time)` +`func (o *WorkgroupDto) SetModified(v SailPointTime)` SetModified sets Modified field to given value. diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md index 85635a15d..2d4be1579 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md @@ -84,17 +84,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -161,18 +165,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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") + 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -233,17 +241,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + + + 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) @@ -308,17 +320,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md index ee6874be5..7ef59c4e7 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md @@ -64,6 +64,7 @@ Create Access Profile Create an access profile. A user with `ROLE_SUBADMIN` or `SOURCE_SUBADMIN` authority must be associated with the access profile's source. The maximum supported length for the description field is 2000 characters. Longer descriptions will be preserved for existing access profiles. However, any new access profiles as well as any updates to existing descriptions are limited to 2000 characters. +>**Note:** To use this endpoint, you need all the listed scopes. [API Spec](https://developer.sailpoint.com/docs/api/v2024/create-access-profile) @@ -98,12 +99,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -188,11 +190,20 @@ func main() { "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + + var accessProfile v2024.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -249,16 +260,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to delete # string | ID of the Access Profile to delete + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + + + 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) @@ -309,19 +324,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + + var accessProfileBulkDeleteRequest v2024.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -374,16 +399,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180837ca6693d017ca8d097500149 # string | ID of the Access Profile # string | ID of the Access Profile + id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + + + 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) @@ -443,21 +472,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. - 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) - 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 := 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) + id := `2c91808a7813090a017814121919ecca` // string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -514,23 +547,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 8c190e6787aa4ed9a90bd9d5344523fb # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) - 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) - 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 "SailPoint Support" # string | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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* **created**: *gt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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, 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) - 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) + forSubadmin := `8c190e6787aa4ed9a90bd9d5344523fb` // string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) + 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) + 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 "SailPoint Support"` // string | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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* **created**: *gt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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, 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -613,17 +650,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to patch # string | ID of the Access Profile to patch - jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch + jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -690,17 +737,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) # []AccessProfileBulkUpdateRequestInner | + 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 := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() + + var accessProfileBulkUpdateRequestInner v2024.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(data, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md index 752381db7..c7b6fc045 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md @@ -83,13 +83,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -97,11 +98,14 @@ func main() { "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. (optional) + }`) // CommentDto | Reviewer's comment. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + + 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) @@ -155,20 +159,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + + var forwardApprovalDto v2024.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -218,17 +232,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + + + 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) @@ -285,19 +303,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestId := 2c91808568c529c60168cca6f90c1313 # string | Access Request ID. # string | Access Request ID. - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) + accessRequestId := `2c91808568c529c60168cca6f90c1313` // string | Access Request ID. # string | Access Request ID. + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -351,21 +373,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 2c91808568c529c60168cca6f90c1313 # string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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) + ownerId := `2c91808568c529c60168cca6f90c1313` // string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -398,7 +424,7 @@ Name | Type | Description | Notes **limit** | **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. | [default to 250] **offset** | **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. | [default to 0] **count** | **bool** | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to false] - **filters** | **string** | Filter results using the standard syntax described in [V3 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* | + **filters** | **string** | Filter results using the standard syntax described in [V3 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* | **sorters** | **string** | Sort results using the standard syntax described 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** | ### Return type @@ -419,21 +445,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 2c91808568c529c60168cca6f90c1313 # string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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* (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* (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) + ownerId := `2c91808568c529c60168cca6f90c1313` // string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -487,13 +517,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -501,11 +532,20 @@ func main() { "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + var commentDto v2024.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md index 122d0d9a9..39799099c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md @@ -67,18 +67,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 7025c863-c270-4ba6-beea-edf3cb091573 # string | Manager's identity ID. # string | Manager's identity ID. - 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. + identityId := `7025c863-c270-4ba6-beea-edf3cb091573` // string | Manager's identity ID. # string | Manager's identity ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md index b6f6b7da2..6f97762f3 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md @@ -38,6 +38,7 @@ Method | HTTP request | Description [**get-access-request-config**](#get-access-request-config) | **Get** `/access-request-config` | Get Access Request Configuration [**list-access-request-status**](#list-access-request-status) | **Get** `/access-request-status` | Access Request Status [**list-administrators-access-request-status**](#list-administrators-access-request-status) | **Get** `/access-request-administration` | Access Request Status for Administrators +[**load-account-selections**](#load-account-selections) | **Post** `/access-requests/accounts-selection` | Get accounts selections for identity [**set-access-request-config**](#set-access-request-config) | **Put** `/access-request-config` | Update Access Request Configuration @@ -78,19 +79,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkApproveAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "I approve these request items", "approvalIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ] - }`) # BulkApproveAccessRequest | + }`) // BulkApproveAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() + + var bulkApproveAccessRequest v2024.BulkApproveAccessRequest + if err := json.Unmarshal(data, &bulkApproveAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,19 +151,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + + var cancelAccessRequest v2024.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -202,19 +223,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkCancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ], "comment" : "I requested this role by mistake." - }`) # BulkCancelAccessRequest | + }`) // BulkCancelAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() + + var bulkCancelAccessRequest v2024.BulkCancelAccessRequest + if err := json.Unmarshal(data, &bulkCancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -286,22 +317,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - closeAccessRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." - }`) # CloseAccessRequest | + }`) // CloseAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() + + var closeAccessRequest v2024.CloseAccessRequest + if err := json.Unmarshal(data, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -335,6 +376,7 @@ __GRANT_ACCESS__ * Allows any authenticated token (except API) to call this endpoint to request to grant access to themselves. Depending on the configuration, a user can request access for others. * Roles, access profiles and entitlements can be requested. * While requesting entitlements, maximum of 25 entitlements and 10 recipients are allowed in a request. +* Now supports an alternate field 'requestedForWithRequestedItems' for users to specify account selections while requesting items where they have more than one account on the source. __REVOKE_ACCESS__ * Can only be requested for a single identity at a time. @@ -345,6 +387,7 @@ __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. [API Spec](https://developer.sailpoint.com/docs/api/v2024/create-access-request) @@ -380,13 +423,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ - "requestedFor" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210584" ], + data := []byte(`{ + "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", "requestedAppName" : "test-app" @@ -400,7 +444,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", @@ -409,7 +455,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", @@ -418,7 +466,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", @@ -427,7 +477,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", @@ -436,13 +488,151 @@ 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", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] + }, { + "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + + var accessRequest v2024.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -487,15 +677,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + + + 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) @@ -555,25 +749,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assignedTo := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) - filters := accountActivityItemId eq "2c918086771c86df0177401efcdf54c0" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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) + requestedFor := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assignedTo := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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) + filters := `accountActivityItemId eq "2c918086771c86df0177401efcdf54c0"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -632,25 +830,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assignedTo := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) - filters := accountActivityItemId eq "2c918086771c86df0177401efcdf54c0" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **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) + requestedFor := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assignedTo := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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) + filters := `accountActivityItemId eq "2c918086771c86df0177401efcdf54c0"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -662,6 +864,140 @@ func main() { [[Back to top]](#) +## load-account-selections +Get accounts selections for identity +Use this API to fetch account information for an identity against the items in an access request. + +Used to fetch accountSelection for the AccessRequest prior to submitting for async processing. + + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/load-account-selections) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiLoadAccountSelectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountsSelectionRequest** | [**AccountsSelectionRequest**](../models/accounts-selection-request) | | + +### Return type + +[**AccountsSelectionResponse**](../models/accounts-selection-response) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + data := []byte(`{ + "requestedFor" : "2c918084660f45d6016617daa9210584", + "clientMetadata" : { + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", + "requestedAppName" : "test-app" + }, + "requestType" : "GRANT_ACCESS", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] + }`) // AccountsSelectionRequest | + + + var accountsSelectionRequest v2024.AccountsSelectionRequest + if err := json.Unmarshal(data, &accountsSelectionRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + ## set-access-request-config Update Access Request Configuration This endpoint replaces the current access-request configuration. @@ -699,12 +1035,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -722,18 +1059,34 @@ func main() { }, "autoApprovalEnabled" : true, "entitlementRequestConfig" : { - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + + var accessRequestConfig v2024.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md index 643bc0c47..3ae76ce1d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md @@ -93,16 +93,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account activity id # string | The account activity id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + + + 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) @@ -158,23 +162,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c91808568c529c60168cca6f90c1313 # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c91808568c529c60168cca6f90c1313 # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c91808568c529c60168cca6f90c1313 # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - 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) - 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 "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) + requestedFor := `2c91808568c529c60168cca6f90c1313` // string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c91808568c529c60168cca6f90c1313` // string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c91808568c529c60168cca6f90c1313` // string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md index fbd089966..6a23d552d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md @@ -88,17 +88,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md index dc09c0c5b..c4a744e67 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md @@ -66,20 +66,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountId := ef38f94347e94562b5bb8424a56397d8 # string | ID of IDN account # string | ID of IDN account - 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) - 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) + accountId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of IDN account # string | ID of IDN account + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md index 6ea21d009..c96f6da55 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md @@ -108,12 +108,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -122,11 +123,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + + var accountAttributesCreate v2024.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -182,16 +192,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + + + 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) @@ -262,17 +276,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -326,20 +344,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest v2024.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -404,17 +432,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -475,19 +507,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + + var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -541,20 +583,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest v2024.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -619,17 +671,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -690,19 +746,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + + var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -755,16 +821,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() + + + 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) @@ -820,19 +890,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - 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) - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -886,21 +960,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - detailLevel := FULL # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) - 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) + 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) + 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) + detailLevel := `FULL` // string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -959,13 +1037,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -973,11 +1052,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + + var accountAttributes v2024.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1030,16 +1118,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + + + 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) @@ -1094,21 +1186,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + + var accountUnlockRequest v2024.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1172,17 +1274,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - requestBody := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + requestBody := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md index e4d972469..a0116f5b4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md @@ -64,20 +64,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - detail := FULL # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) - 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) + 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) + detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + + + 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) @@ -125,15 +129,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + + + 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) @@ -183,16 +191,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md index 3a1b7a27a..a99f8dd43 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md @@ -75,17 +75,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -149,19 +153,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - mine := true # bool | Returns the list of approvals for the current caller (optional) # bool | Returns the list of approvals for the current caller (optional) - 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) + 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") + mine := true // bool | Returns the list of approvals for the current caller (optional) # bool | Returns the list of approvals for the current caller (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md index a9ce04d68..08a030e9e 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md @@ -82,13 +82,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppCreateDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -97,11 +98,20 @@ func main() { "type" : "SOURCE" }, "matchAllAccounts" : true - }`) # SourceAppCreateDto | + }`) // SourceAppCreateDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() + + var sourceAppCreateDto v2024.SourceAppCreateDto + if err := json.Unmarshal(data, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -168,19 +178,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - requestBody := fmt.Sprintf(`[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) + 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") + requestBody := fmt.Sprintf(`[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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -245,17 +265,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -320,17 +344,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -398,20 +426,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -476,21 +508,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -555,20 +591,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* - 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") - 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) - 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() + + + 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) @@ -633,21 +673,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -714,19 +758,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the user app # string | ID of the user 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") - 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the user app # string | ID of the user 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() + + + 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) @@ -791,21 +839,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -869,20 +921,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() + + + 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) @@ -950,18 +1006,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the source app to patch # string | ID of the source app to patch - 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 := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the source app to patch # string | ID of the source app to patch + 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 := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -1028,18 +1088,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the user app to patch # string | ID of the user app to patch - 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 := fmt.Sprintf(``) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the user app to patch # string | ID of the user app to patch + 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 := fmt.Sprintf(``) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -1102,13 +1166,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppBulkUpdateRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -1119,11 +1184,14 @@ func main() { "path" : "/matchAllAccounts", "value" : false } ] - }`) # SourceAppBulkUpdateRequest | (optional) + }`) // SourceAppBulkUpdateRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md index ce48f8f97..bd6b45e7a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md @@ -79,17 +79,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -149,16 +153,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -225,18 +233,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. - 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 := fmt.Sprintf(``) # []JsonPatchOperation | + id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. + 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 := fmt.Sprintf(``) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md index 6d2dd3795..d89334246 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md @@ -65,16 +65,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + + + 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) @@ -132,17 +136,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID - jsonPatchOperation := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md index 63dd7857d..00a0205d0 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md @@ -71,23 +71,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := name_example # string | name of branding item # string | name of branding item - productName := productName_example # string | product name # string | product name - actionButtonColor := actionButtonColor_example # string | hex value of color for action button (optional) # string | hex value of color for action button (optional) - activeLinkColor := activeLinkColor_example # string | hex value of color for link (optional) # string | hex value of color for link (optional) - navigationColor := navigationColor_example # string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) - emailFromAddress := emailFromAddress_example # string | email from address (optional) # string | email from address (optional) - 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) + name := `name_example` // string | name of branding item # string | name of branding item + productName := `productName_example` // string | product name # string | product name + actionButtonColor := `actionButtonColor_example` // string | hex value of color for action button (optional) # string | hex value of color for action button (optional) + activeLinkColor := `activeLinkColor_example` // string | hex value of color for link (optional) # string | hex value of color for link (optional) + navigationColor := `navigationColor_example` // string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) + emailFromAddress := `emailFromAddress_example` // string | email from address (optional) # string | email from address (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -140,16 +144,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be deleted # string | The name of the branding item to be deleted + name := `default` // string | The name of the branding item to be deleted # string | The name of the branding item to be deleted - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + + + 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) @@ -200,16 +208,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved + name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() + + + 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) @@ -254,15 +266,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() + + + 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) @@ -323,24 +339,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - name2 := name_example # string | name of branding item # string | name of branding item - productName := productName_example # string | product name # string | product name - actionButtonColor := actionButtonColor_example # string | hex value of color for action button (optional) # string | hex value of color for action button (optional) - activeLinkColor := activeLinkColor_example # string | hex value of color for link (optional) # string | hex value of color for link (optional) - navigationColor := navigationColor_example # string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) - emailFromAddress := emailFromAddress_example # string | email from address (optional) # string | email from address (optional) - 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) + name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved + name2 := `name_example` // string | name of branding item # string | name of branding item + productName := `productName_example` // string | product name # string | product name + actionButtonColor := `actionButtonColor_example` // string | hex value of color for action button (optional) # string | hex value of color for action button (optional) + activeLinkColor := `activeLinkColor_example` // string | hex value of color for link (optional) # string | hex value of color for link (optional) + navigationColor := `navigationColor_example` // string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) + emailFromAddress := `emailFromAddress_example` // string | email from address (optional) # string | email from address (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md index 54b867924..f6856f1cc 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md @@ -86,12 +86,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -108,11 +109,20 @@ func main() { "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | + }`) // CampaignFilterDetails | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() + + var campaignFilterDetails v2024.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | A json list of IDs of campaign filters to delete. + requestBody := fmt.Sprintf(``) // []string | A json list of IDs of campaign filters to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -221,16 +241,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e9f9a1397b842fd5a65842087040d3ac # string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. + id := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() + + + 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) @@ -281,18 +305,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() + + + 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) @@ -346,13 +374,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filterId := e9f9a1397b842fd5a65842087040d3ac # string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. - campaignFilterDetails := fmt.Sprintf(`{ + filterId := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -369,11 +398,20 @@ func main() { "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | A campaign filter details with updated field values. + }`) // CampaignFilterDetails | A campaign filter details with updated field values. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() + + var campaignFilterDetails v2024.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md index c4a18d888..a0cc2038a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md @@ -156,19 +156,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - campaignCompleteOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() + + + 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) @@ -218,12 +222,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -332,11 +337,20 @@ func main() { "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + + var campaign v2024.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -386,13 +400,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -516,11 +531,20 @@ func main() { "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + + var campaignTemplate v2024.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -574,16 +598,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -635,16 +663,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -692,18 +724,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignsDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # CampaignsDeleteRequest | IDs of the campaigns to delete. + }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() + + var campaignsDeleteRequest v2024.CampaignsDeleteRequest + if err := json.Unmarshal(data, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -758,21 +800,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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) - 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) - 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 "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) + 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) + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -811,7 +857,7 @@ Name | Type | Description | Notes ### Return type -[**GetActiveCampaigns200ResponseInner**](../models/get-active-campaigns200-response-inner) +[**GetCampaign200Response**](../models/get-campaign200-response) ### HTTP request headers @@ -827,22 +873,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() + + + 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`: GetActiveCampaigns200ResponseInner + // response from `GetCampaign`: GetCampaign200Response fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) } ``` @@ -891,16 +941,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + + + 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) @@ -946,15 +1000,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + + + 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) @@ -1008,16 +1066,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Requested campaign template's ID. # string | Requested campaign template's ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1071,16 +1133,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -1136,20 +1202,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 # string | Sort results using the standard syntax described 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) + 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) + 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` // string | Sort results using the standard syntax described 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1204,24 +1274,34 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + + var adminReviewReassign v2024.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1276,17 +1356,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being modified. # string | ID of the campaign template being modified. - jsonPatchOperation := fmt.Sprintf(`[{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) + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. + jsonPatchOperation := fmt.Sprintf(`[{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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1336,18 +1426,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + + var campaignReportsConfig v2024.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1402,13 +1502,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 04bedce387bd47b2ae1f86eb0bb36dee # string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -1427,11 +1528,14 @@ func main() { }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + + + 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) @@ -1484,19 +1588,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "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) + }`) // 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + + + 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) @@ -1550,16 +1658,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + + + 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) @@ -1615,17 +1727,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + + + 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) @@ -1689,16 +1805,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1753,17 +1873,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign template being modified. # string | ID of the campaign template being modified. - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md index 16910796c..30803f2d4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md @@ -83,22 +83,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - type_ := ACCESS_PROFILE # string | The type of access review item to retrieve summaries for # string | The type of access review item to retrieve summaries for - 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) - 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 := 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + type_ := `ACCESS_PROFILE` // string | The type of access review item to retrieve summaries for # string | The type of access review item to retrieve summaries for + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -152,17 +156,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() + + + 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) @@ -220,21 +228,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - 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) - 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 := 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -289,17 +301,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md index 5c5a2e6cc..07a974d53 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md @@ -92,16 +92,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 63b32151-26c0-42f4-9299-8898dc1c9daa # string | The task ID # string | The task ID + id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + + + 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) @@ -154,16 +158,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification id # string | The certification id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + + + 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) @@ -222,21 +230,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - certificationId := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - itemId := 2c91808671bcbab40171bd945d961227 # string | The certification item ID # string | The certification item ID - filters := target eq "SYS.OBJAUTH2" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) - 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) - 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) + certificationId := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + itemId := `2c91808671bcbab40171bd945d961227` // string | The certification item ID # string | The certification item ID + filters := `target eq "SYS.OBJAUTH2"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -289,20 +301,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reviewerIdentity := Ada.1de82e55078344 # string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) - 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) - 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) + reviewerIdentity := `Ada.1de82e55078344` // string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -360,21 +376,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - 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) - 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 "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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -435,24 +455,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - 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) - 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 := 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **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: **id**: *eq, in* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) - sorters := access.name,-accessProfile.sourceName # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) - entitlements := identityEntitlement # string | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** 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 entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + 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) + 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 := `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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **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: **id**: *eq, in* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) + sorters := `access.name,-accessProfile.sourceName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) + entitlements := `identityEntitlement` // string | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** 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 entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -506,21 +530,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reviewerIdentity := me # string | Reviewer's identity. *me* indicates the current user. (optional) # string | Reviewer's identity. *me* indicates the current user. (optional) - 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) - 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 := 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) + reviewerIdentity := `me` // string | Reviewer's identity. *me* indicates the current user. (optional) # string | Reviewer's identity. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -574,17 +602,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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. + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() + + var reviewDecision v2024.ReviewDecision + if err := json.Unmarshal(data, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -638,13 +676,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -654,11 +693,20 @@ func main() { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() + + var reviewReassign v2024.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -711,16 +759,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + + + 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) @@ -779,13 +831,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -795,11 +848,20 @@ func main() { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + + var reviewReassign v2024.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md index d54a87857..f476e8100 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md @@ -85,18 +85,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deployRequest := fmt.Sprintf(`{ + data := []byte(`{ "draftId" : "3d0fe04b-57df-4a46-a83b-8f04b0f9d10b" - }`) # DeployRequest | The deploy request body. + }`) // DeployRequest | The deploy request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() + + var deployRequest v2024.DeployRequest + if err := json.Unmarshal(data, &deployRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -153,23 +163,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" - }`) # ObjectMappingRequest | The object mapping request body. + }`) // ObjectMappingRequest | The object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() + + var objectMappingRequest v2024.ObjectMappingRequest + if err := json.Unmarshal(data, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -226,13 +246,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingBulkCreateRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -246,11 +267,20 @@ func main() { "enabled" : false, "objectType" : "IDENTITY" } ] - }`) # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() + + var objectMappingBulkCreateRequest v2024.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(data, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -299,13 +329,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionPayload := fmt.Sprintf(`{ - "cronString" : "0 0 12 * * ?", + data := []byte(`{ + "cronString" : "0 0 12 * * * *", "timeZoneId" : "America/Chicago", "startTime" : "2024-08-16T14:16:58.389Z", "jobType" : "BACKUP", @@ -326,11 +357,20 @@ func main() { }, "sourceBackupId" : "5678b87d-48ca-439a-868f-2160001da8c2" } - }`) # ScheduledActionPayload | The scheduled action creation request body. + }`) // ScheduledActionPayload | The scheduled action creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() + + var scheduledActionPayload v2024.ScheduledActionPayload + if err := json.Unmarshal(data, &scheduledActionPayload); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -384,17 +424,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() + + + 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) @@ -451,16 +495,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 07659d7d-2cce-47c0-9e49-185787ee565a # string | The id of the backup to delete. # string | The id of the backup to delete. + id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the backup to delete. # string | The id of the backup to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() + + + 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) @@ -515,16 +563,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 07659d7d-2cce-47c0-9e49-185787ee565a # string | The id of the draft to delete. # string | The id of the draft to delete. + id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the draft to delete. # string | The id of the draft to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() + + + 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) @@ -580,17 +632,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + + + 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) @@ -641,16 +697,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionId := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | The ID of the scheduled action. # string | The ID of the scheduled action. + scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() + + + 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) @@ -705,16 +765,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the uploaded configuration. # string | The id of the uploaded configuration. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() + + + 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) @@ -765,16 +829,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the deploy. # string | The id of the deploy. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the deploy. # string | The id of the deploy. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() + + + 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) @@ -830,16 +898,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + + + 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) @@ -892,16 +964,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the uploaded configuration. # string | The id of the uploaded configuration. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() + + + 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) @@ -950,16 +1026,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() + + + 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) @@ -1004,15 +1084,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() + + + 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) @@ -1061,16 +1145,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() + + + 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) @@ -1115,15 +1203,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() + + + 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) @@ -1172,16 +1264,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() + + + 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) @@ -1238,13 +1334,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingBulkPatchRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -1257,11 +1354,20 @@ func main() { "value" : "New Target Value" } ] } - }`) # ObjectMappingBulkPatchRequest | The object mapping request body. + }`) // ObjectMappingBulkPatchRequest | The object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() + + var objectMappingBulkPatchRequest v2024.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(data, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1315,13 +1421,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionId := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | The ID of the scheduled action. # string | The ID of the scheduled action. - jsonPatch := fmt.Sprintf(`{ + scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -1331,11 +1438,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. + }`) // JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md index b26a2ce0a..082a3b95c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md @@ -63,18 +63,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorCustomizerCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerCreateRequest | Connector customizer to create. + }`) // ConnectorCustomizerCreateRequest | Connector customizer to create. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() + + var connectorCustomizerCreateRequest v2024.ConnectorCustomizerCreateRequest + if err := json.Unmarshal(data, &connectorCustomizerCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -127,16 +137,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | The id of the connector customizer. # string | The id of the connector customizer. + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | The id of the connector customizer. # string | The id of the connector customizer. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() + + + 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) @@ -189,16 +203,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | ID of the connector customizer to delete. # string | ID of the connector customizer to delete. + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to delete. # string | ID of the connector customizer to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() + + + 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) @@ -249,16 +267,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | ID of the connector customizer to get. # string | ID of the connector customizer to get. + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to get. # string | ID of the connector customizer to get. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() + + + 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) @@ -308,17 +330,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() + + + 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) @@ -372,19 +398,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | ID of the connector customizer to update. # string | ID of the connector customizer to update. - connectorCustomizerUpdateRequest := fmt.Sprintf(`{ + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to update. # string | ID of the connector customizer to update. + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md index 023d616d0..c1cba972f 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md @@ -67,12 +67,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorRuleCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -97,11 +98,20 @@ func main() { "description" : "This rule does that", "attributes" : { }, "type" : "BuildMap" - }`) # ConnectorRuleCreateRequest | Connector rule to create. + }`) // ConnectorRuleCreateRequest | Connector rule to create. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() + + var connectorRuleCreateRequest v2024.ConnectorRuleCreateRequest + if err := json.Unmarshal(data, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -154,16 +164,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to delete. # string | ID of the connector rule to delete. + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to delete. # string | ID of the connector rule to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + + + 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) @@ -214,16 +228,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to get. # string | ID of the connector rule to get. + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to get. # string | ID of the connector rule to get. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + + + 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) @@ -274,18 +292,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -339,13 +361,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to update. # string | ID of the connector rule to update. - connectorRuleUpdateRequest := fmt.Sprintf(`{ + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to update. # string | ID of the connector rule to update. + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -371,11 +394,14 @@ func main() { "attributes" : { }, "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" - }`) # ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() + + + 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) @@ -424,19 +450,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceCode := fmt.Sprintf(`{ + data := []byte(`{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" - }`) # SourceCode | Code to validate. + }`) // SourceCode | Code to validate. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() + + var sourceCode v2024.SourceCode + if err := json.Unmarshal(data, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md index b80e5ee72..6a69c4fa3 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md @@ -81,22 +81,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - v3CreateConnectorDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" - }`) # V3CreateConnectorDto | + }`) // V3CreateConnectorDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() + + var v3CreateConnectorDto v2024.V3CreateConnectorDto + if err := json.Unmarshal(data, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -149,16 +159,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + + + 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) @@ -210,17 +224,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() + + + 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) @@ -273,16 +291,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() + + + 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) @@ -335,20 +357,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := directConnect 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) - 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) - 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) + filters := `directConnect 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + + + 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) @@ -401,16 +427,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + + + 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) @@ -463,16 +493,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + + + 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) @@ -527,17 +561,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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\" + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + + + 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) @@ -591,17 +629,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -655,17 +697,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -719,17 +765,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -784,17 +834,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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\" + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() + + + 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) @@ -860,17 +914,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []JsonPatchOperation | A list of connector detail update operations + 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 := fmt.Sprintf(``) // []JsonPatchOperation | A list of connector detail update operations - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md index bdbd16087..26da1fb5f 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md @@ -80,12 +80,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -195,11 +196,14 @@ func main() { }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() + + + 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) @@ -248,12 +252,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -261,11 +266,14 @@ func main() { "id" : "00000000-0000-0000-0000-000000000000", "type" : "action", "versionNumber" : 1 - }`) # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() + + + 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) @@ -319,17 +327,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() + + + 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) @@ -378,12 +390,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "formInput" : { "input1" : "Sales" }, @@ -403,11 +416,14 @@ func main() { "formDefinitionId" : "00000000-0000-0000-0000-000000000000", "state" : "ASSIGNED", "ttl" : 1571827560 - }`) # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() + + + 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) @@ -460,16 +476,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + + + 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) @@ -521,19 +541,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := 0 # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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") + offset := 0 // int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -588,17 +612,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + + + 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) @@ -651,16 +679,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + + + 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) @@ -713,16 +745,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + + + 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) @@ -777,17 +813,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + + + 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) @@ -836,16 +876,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`[{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) + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() + + + 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) @@ -899,17 +943,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID - body := fmt.Sprintf(`[{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) + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() + + + 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) @@ -963,17 +1011,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID - body := fmt.Sprintf(`[{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) + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() + + + 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) @@ -1025,19 +1077,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := 250 # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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") + offset := 250 // int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -1096,20 +1152,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID - formElementID := 1 # string | Form element ID # string | Form element ID - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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) + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + formElementID := `1` // string | Form element ID # string | Form element ID + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() + + + 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) @@ -1154,15 +1214,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + + + 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) @@ -1207,15 +1271,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + + + 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) @@ -1272,16 +1340,17 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID - limit := 10 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) - 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 := ac # 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) - formElementPreviewRequest := fmt.Sprintf(`{ + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + limit := 10 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) + 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 := `ac` // 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) + data := []byte(`{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -1291,11 +1360,14 @@ func main() { }, "dataSourceType" : "STATIC" } - }`) # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md index 03dbf3534..b7b79c279 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md @@ -80,21 +80,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - customPasswordInstruction := fmt.Sprintf(`{ + 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") + data := []byte(`{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" - }`) # CustomPasswordInstruction | + }`) // CustomPasswordInstruction | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() + + var customPasswordInstruction v2024.CustomPasswordInstruction + if err := json.Unmarshal(data, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -160,18 +170,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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) + pageId := `mfa:select` // string | The page ID of custom password instructions to delete. # string | The page ID of custom password instructions 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + + + 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) @@ -235,18 +249,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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) + pageId := `mfa:select` // string | The page ID of custom password instructions to query. # string | The page ID of custom password instructions to query. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md index e3b94f8d6..5ac2638d2 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md @@ -65,16 +65,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - dataSegment := fmt.Sprintf(``) # DataSegment | + data := []byte(``) // DataSegment | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() + + var dataSegment v2024.DataSegment + if err := json.Unmarshal(data, &dataSegment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,18 +150,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The segment ID to delete. # string | The segment ID 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") - 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) + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The segment ID to delete. # string | The segment ID 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() + + + 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) @@ -214,17 +228,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -289,17 +307,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -364,17 +386,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -441,23 +467,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - enabled := true # bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) # bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) - unique := false # bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) # bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) - published := true # bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) # bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) - 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) - 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) + 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") + enabled := true // bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) # bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) + unique := false // bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) # bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) + published := true // bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) # bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -523,18 +553,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The segment ID to modify. # string | The segment ID to modify. - 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 := fmt.Sprintf(`[{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 + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. + 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 := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -596,18 +636,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []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) + 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 := fmt.Sprintf(``) // []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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md index 57f075f84..7633756f5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md @@ -71,13 +71,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleId := 6603fba3004f43c687610a29195252ce # string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. - dimension := fmt.Sprintf(`{ + roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -163,11 +164,20 @@ func main() { "type" : "STANDARD" }, "parentId" : "2c918086749d78830174a1a40e121518" - }`) # Dimension | + }`) // Dimension | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() + + var dimension v2024.Dimension + if err := json.Unmarshal(data, &dimension); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -224,19 +234,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleId := 6603fba3004f43c687610a29195252ce # string | Parent Role Id of the dimensions. # string | Parent Role Id of the dimensions. - dimensionBulkDeleteRequest := fmt.Sprintf(`{ + roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimensions. # string | Parent Role Id of the dimensions. + data := []byte(`{ "dimensionIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # DimensionBulkDeleteRequest | + }`) // DimensionBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() + + var dimensionBulkDeleteRequest v2024.DimensionBulkDeleteRequest + if err := json.Unmarshal(data, &dimensionBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -292,17 +312,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() + + + 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) @@ -357,17 +381,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() + + + 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) @@ -429,22 +457,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) - 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 := 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) + 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 + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -506,22 +538,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) - 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 := 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) + 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 + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -582,22 +618,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleId := 6603fba3004f43c687610a29195252ce # string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - 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) + roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -657,18 +697,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) # []JsonPatchOperation | + 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 + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md index 5aa35ebee..3da10755c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md @@ -135,19 +135,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The entitlement id. # string | The entitlement id. - 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. - 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 := `2c91808c74ff913f0175097daa9d59cd` // string | The entitlement id. # string | The entitlement id. + 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -216,19 +220,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The entitlement id. # string | The entitlement id. - 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. - 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 := `2c91808c74ff913f0175097daa9d59cd` // string | The entitlement id. # string | The entitlement id. + 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -291,17 +299,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -366,17 +378,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -449,18 +465,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Source Id # string | 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") - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id # string | 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() + + + 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) @@ -530,22 +550,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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: **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) + 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") + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -615,22 +639,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # 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") - 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) - 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: **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) + id := `2c91808c74ff913f0175097daa9d59cd` // 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") + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -703,25 +731,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - accountId := ef38f94347e94562b5bb8424a56397d8 # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) - segmentedForIdentity := me # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) - forSegmentIds := 041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649 # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) - includeUnsegmented := true # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) - 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) - 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: **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) + 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") + accountId := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) + segmentedForIdentity := `me` // string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) + forSegmentIds := `041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649` // string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) + includeUnsegmented := true // bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -791,18 +823,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the entitlement to patch # string | ID of the entitlement to patch - 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 := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the entitlement to patch # string | ID of the entitlement to patch + 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 := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -868,23 +904,40 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # 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") - entitlementRequestConfig := fmt.Sprintf(`{ - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" - }`) # EntitlementRequestConfig | + id := `2c91808a7813090a017814121e121518` // 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") + data := []byte(`{ + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } + }`) // EntitlementRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() + + var entitlementRequestConfig v2024.EntitlementRequestConfig + if err := json.Unmarshal(data, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -950,17 +1003,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1027,13 +1084,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - entitlementBulkUpdateRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -1044,11 +1102,20 @@ func main() { "path" : "/requestable", "value" : false } ] - }`) # EntitlementBulkUpdateRequest | + }`) // EntitlementBulkUpdateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() + + var entitlementBulkUpdateRequest v2024.EntitlementBulkUpdateRequest + if err := json.Unmarshal(data, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md index 3fc8546e4..dd0ab17ef 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md @@ -19,8 +19,14 @@ All URIs are relative to *https://sailpoint.api.identitynow.com/v2024* Method | HTTP request | Description ------------- | ------------- | ------------- [**create-auth-org-network-config**](#create-auth-org-network-config) | **Post** `/auth-org/network-config` | Create security network configuration. +[**get-auth-org-lockout-config**](#get-auth-org-lockout-config) | **Get** `/auth-org/lockout-config` | Get Auth Org Lockout Configuration. [**get-auth-org-network-config**](#get-auth-org-network-config) | **Get** `/auth-org/network-config` | Get security network configuration. +[**get-auth-org-service-provider-config**](#get-auth-org-service-provider-config) | **Get** `/auth-org/service-provider-config` | Get Service Provider Configuration. +[**get-auth-org-session-config**](#get-auth-org-session-config) | **Get** `/auth-org/session-config` | Get Auth Org Session Configuration. +[**patch-auth-org-lockout-config**](#patch-auth-org-lockout-config) | **Patch** `/auth-org/lockout-config` | Update Auth Org Lockout Configuration [**patch-auth-org-network-config**](#patch-auth-org-network-config) | **Patch** `/auth-org/network-config` | Update security network configuration. +[**patch-auth-org-service-provider-config**](#patch-auth-org-service-provider-config) | **Patch** `/auth-org/service-provider-config` | Update Service Provider Configuration +[**patch-auth-org-session-config**](#patch-auth-org-session-config) | **Patch** `/auth-org/session-config` | Update Auth Org Session Configuration ## create-auth-org-network-config @@ -60,20 +66,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - networkConfiguration := fmt.Sprintf(`{ + data := []byte(`{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() + + var networkConfiguration v2024.NetworkConfiguration + if err := json.Unmarshal(data, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -85,6 +101,63 @@ func main() { [[Back to top]](#) +## get-auth-org-lockout-config +Get Auth Org Lockout Configuration. +This API returns the details of an org's lockout auth configuration. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-auth-org-lockout-config) + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthOrgLockoutConfigRequest struct via the builder pattern + + +### Return type + +[**LockoutConfiguration**](../models/lockout-configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + + + + 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) +} +``` + +[[Back to top]](#) + ## get-auth-org-network-config Get security network configuration. This API returns the details of an org's network auth configuration. @@ -118,15 +191,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + + + 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) @@ -138,6 +215,189 @@ func main() { [[Back to top]](#) +## get-auth-org-service-provider-config +Get Service Provider Configuration. +This API returns the details of an org's service provider auth configuration. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-auth-org-service-provider-config) + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthOrgServiceProviderConfigRequest struct via the builder pattern + + +### Return type + +[**ServiceProviderConfiguration**](../models/service-provider-configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + + + + 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) +} +``` + +[[Back to top]](#) + +## get-auth-org-session-config +Get Auth Org Session Configuration. +This API returns the details of an org's session auth configuration. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-auth-org-session-config) + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthOrgSessionConfigRequest struct via the builder pattern + + +### Return type + +[**SessionConfiguration**](../models/session-configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + + + + 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) +} +``` + +[[Back to top]](#) + +## patch-auth-org-lockout-config +Update Auth Org Lockout Configuration +This API updates an existing lockout configuration for an org using PATCH + + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/patch-auth-org-lockout-config) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthOrgLockoutConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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` | + +### Return type + +[**LockoutConfiguration**](../models/lockout-configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + ## patch-auth-org-network-config Update security network configuration. This API updates an existing network configuration for an org using PATCH @@ -176,16 +436,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := fmt.Sprintf(`[{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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -197,3 +467,139 @@ func main() { [[Back to top]](#) +## patch-auth-org-service-provider-config +Update Service Provider Configuration +This API updates an existing service provider configuration for an org using PATCH. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/patch-auth-org-service-provider-config) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthOrgServiceProviderConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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) | + +### Return type + +[**ServiceProviderConfiguration**](../models/service-provider-configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + +## patch-auth-org-session-config +Update Auth Org Session Configuration +This API updates an existing session configuration for an org using PATCH. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/patch-auth-org-session-config) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthOrgSessionConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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.` | + +### Return type + +[**SessionConfiguration**](../models/session-configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md index beed997c1..cf6300215 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md @@ -81,13 +81,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -102,11 +103,20 @@ func main() { "description" : "Description of the Governance Group", "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" - }`) # WorkgroupDto | + }`) // WorkgroupDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() + + var workgroupDto v2024.WorkgroupDto + if err := json.Unmarshal(data, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -171,17 +181,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -248,18 +262,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - identityPreviewResponseIdentity := fmt.Sprintf(``) # []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + identityPreviewResponseIdentity := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + + var identityPreviewResponseIdentity v2024.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -331,19 +355,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupBulkDeleteRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] - }`) # WorkgroupBulkDeleteRequest | + }`) // WorkgroupBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() + + var workgroupBulkDeleteRequest v2024.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(data, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -408,17 +442,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -487,21 +525,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + + + 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) @@ -570,21 +612,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + + + 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) @@ -649,21 +695,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 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) + 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") + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -732,18 +782,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) # []JsonPatchOperation | (optional) + 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") + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -813,18 +867,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - identityPreviewResponseIdentity := fmt.Sprintf(``) # []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + identityPreviewResponseIdentity := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + + var identityPreviewResponseIdentity v2024.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md index 803af2371..47cf1b00c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md @@ -76,23 +76,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -153,23 +163,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -230,23 +250,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -307,17 +337,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an 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") + accessRequestRecommendationActionItemDto := fmt.Sprintf(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -384,23 +424,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityId := 2c91808570313110017040b06f344ec9 # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") - limit := 15 # int32 | Max number of results to return. (optional) (default to 15) # int32 | Max number of results to return. (optional) (default to 15) - 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) - includeTranslationMessages := false # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) - 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) + 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") + identityId := `2c91808570313110017040b06f344ec9` // string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") + limit := 15 // int32 | Max number of results to return. (optional) (default to 15) # int32 | Max number of results to return. (optional) (default to 15) + 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) + includeTranslationMessages := false // bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -460,16 +504,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -534,21 +582,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -613,21 +665,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -692,21 +748,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -767,24 +827,34 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - accessRequestRecommendationConfigDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "scoreThreshold" : 0.5, "startDateAttribute" : "startDate", "restrictionAttribute" : "location", "moverAttribute" : "isMover", "joinerAttribute" : "isJoiner", "useRestrictionAttribute" : true - }`) # AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. + }`) // AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() + + var accessRequestRecommendationConfigDto v2024.AccessRequestRecommendationConfigDto + if err := json.Unmarshal(data, &accessRequestRecommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md index 8bf461332..6a48fa782 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md @@ -69,13 +69,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - commonAccessItemRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -85,11 +86,20 @@ func main() { "ownerId" : "ownerId" }, "status" : "CONFIRMED" - }`) # CommonAccessItemRequest | + }`) // CommonAccessItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() + + var commonAccessItemRequest v2024.CommonAccessItemRequest + if err := json.Unmarshal(data, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -154,21 +164,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -229,17 +243,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access + 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 := fmt.Sprintf(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() + + var commonAccessIDStatus v2024.CommonAccessIDStatus + if err := json.Unmarshal(data, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md index 2f606d56a..27a634232 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md @@ -78,17 +78,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + + + 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) @@ -153,21 +157,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -233,22 +241,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) - 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) + 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") + 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -309,17 +321,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + + + 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) @@ -387,17 +403,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -470,22 +490,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - outlierId := 2c918085842e69ae018432d22ccb212f # string | The outlier id # string | The outlier 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") - 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) - 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) - 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) + outlierId := `2c918085842e69ae018432d22ccb212f` // string | The outlier id # string | The outlier 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() + + + 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) @@ -546,17 +570,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []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") + requestBody := fmt.Sprintf(``) // []string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -629,23 +663,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - outlierId := 2c918085842e69ae018432d22ccb212f # string | The outlier id # string | The outlier id - contributingFeatureName := entitlement_count # string | The name of contributing feature # string | The name of contributing feature - 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") - 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) - 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) - 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) + outlierId := `2c918085842e69ae018432d22ccb212f` // string | The outlier id # string | The outlier id + contributingFeatureName := `entitlement_count` // string | The name of contributing feature # string | The name of contributing feature + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() + + + 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) @@ -706,17 +744,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []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") + requestBody := fmt.Sprintf(``) // []string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md index 8a23e770c..3530eba6c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md @@ -77,20 +77,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - strategy := entitlement # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. - 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") - 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) - 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) + strategy := `entitlement` // string | The strategy used to create peer groups. Currently, 'entitlement' is supported. # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md index 90afeb4b9..04e9ed58f 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md @@ -69,13 +69,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationRequestDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -93,11 +94,20 @@ func main() { } ], "includeTranslationMessages" : false, "includeDebugInformation" : true - }`) # RecommendationRequestDto | + }`) // RecommendationRequestDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() + + var recommendationRequestDto v2024.RecommendationRequestDto + if err := json.Unmarshal(data, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -157,16 +167,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -227,22 +241,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationConfigDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false - }`) # RecommendationConfigDto | + }`) // RecommendationConfigDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() + + var recommendationConfigDto v2024.RecommendationConfigDto + if err := json.Unmarshal(data, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md index 4310293e1..4238de804 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md @@ -100,27 +100,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - minEntitlementPopularity := 56 # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) - includeCommonAccess := true # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) - roleMiningPotentialRoleProvisionRequest := fmt.Sprintf(`{ + 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 + 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") + minEntitlementPopularity := 56 // int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) + includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) + data := []byte(`{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false - }`) # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() + + + 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) @@ -181,13 +185,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - roleMiningSessionDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -218,11 +223,20 @@ func main() { "minNumIdentitiesInPotentialRole" : 20, "identityCount" : 0, "type" : "SPECIALIZED" - }`) # RoleMiningSessionDto | Role mining session parameters + }`) // RoleMiningSessionDto | Role mining session parameters - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() + + var roleMiningSessionDto v2024.RoleMiningSessionDto + if err := json.Unmarshal(data, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -291,19 +305,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 - 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") + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -370,18 +388,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -449,22 +471,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 - 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") - roleMiningPotentialRoleExportRequest := fmt.Sprintf(`{ + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 + 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") + data := []byte(`{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true - }`) # RoleMiningPotentialRoleExportRequest | (optional) + }`) // RoleMiningPotentialRoleExportRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() + + + 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) @@ -533,19 +559,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 - 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") + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -610,21 +640,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sorters := createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) - filters := (createdByName co "int") and (createdById sw "2c9180907") and (type eq "COMMON") and ((name co "entt") or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) - 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) - 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) + 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") + sorters := `createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) + filters := `(createdByName co "int") and (createdById sw "2c9180907") and (type eq "COMMON") and ((name co "entt") or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -692,19 +726,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() + + + 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) @@ -777,24 +815,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) (default to true) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) - sorters := popularity # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity, entitlementName, applicationName** The default sort is **popularity** 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) - filters := applicationName sw "AD" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) + 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 + 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) (default to true) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) + sorters := `popularity` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity, entitlementName, applicationName** The default sort is **popularity** 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) + filters := `applicationName sw "AD"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -866,23 +908,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - sorters := populariity # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity** (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: **popularity** (optional) - filters := applicationName sw "AD" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) + 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 + 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") + sorters := `populariity` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity** (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: **popularity** (optional) + filters := `applicationName sw "AD"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -954,23 +1000,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - 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 := 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: **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) - 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) - 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) + 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 + 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") + 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 := `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: **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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1037,18 +1087,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1119,22 +1173,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - potentialRoleId := 62f28d91-7d9f-4d17-be15-666d5b41d77f # 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") - filters := applicationName 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: **applicationName**: *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: **applicationName**: *sw* (optional) - 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) - 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) + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + potentialRoleId := `62f28d91-7d9f-4d17-be15-666d5b41d77f` // 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") + filters := `applicationName 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: **applicationName**: *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: **applicationName**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1205,22 +1263,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - potentialRoleId := 62f28d91-7d9f-4d17-be15-666d5b41d77f # 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") - filters := entitlementRef.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: **entitlementRef.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: **entitlementRef.name**: *sw* (optional) - 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) - 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) + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + potentialRoleId := `62f28d91-7d9f-4d17-be15-666d5b41d77f` // 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") + filters := `entitlementRef.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: **entitlementRef.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: **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1291,22 +1353,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - potentialRoleId := e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 # string | A potential role id # string | A potential role id - sourceId := 2c9180877620c1460176267f336a106f # string | A source id # string | A 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") - sorters := -usageCount # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) - 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) - 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) + potentialRoleId := `e0cc5d7d-bf7f-4f81-b2af-8885b09d9923` // string | A potential role id # string | A potential role id + sourceId := `2c9180877620c1460176267f336a106f` // string | A source id # string | A 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") + sorters := `-usageCount` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1376,22 +1442,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sorters := createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate** (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: **createdDate** (optional) - filters := (createdByName co "int")and (createdById sw "2c9180907")and (type eq "COMMON")and ((name co "entt")or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) - 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) - 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) + 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") + sorters := `createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate** (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: **createdDate** (optional) + filters := `(createdByName co "int")and (createdById sw "2c9180907")and (type eq "COMMON")and ((name co "entt")or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1456,17 +1526,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1531,17 +1605,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1606,17 +1684,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1681,21 +1763,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := saved eq "true" and name sw "RM Session" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **saved**: *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: **saved**: *eq* **name**: *eq, sw* (optional) - sorters := createdBy,createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) - 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) - 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) + 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 := `saved eq "true" and name sw "RM Session"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **saved**: *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: **saved**: *eq* **name**: *eq, sw* (optional) + sorters := `createdBy,createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1759,20 +1845,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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 is supported for the following fields: **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 is supported for the following fields: **modified** (optional) - 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) - 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) + 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") + 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 is supported for the following fields: **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 is supported for the following fields: **modified** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1852,19 +1942,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 | The potential role summary id # string | The potential role summary 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") - patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | + 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 | The potential role summary id # string | The potential role summary 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") + patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + + var patchPotentialRoleRequestInner v2024.PatchPotentialRoleRequestInner + if err := json.Unmarshal(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1944,19 +2044,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 | The potential role summary id # string | The potential role summary 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") - patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | + 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 | The potential role summary id # string | The potential role summary 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") + patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + + var patchPotentialRoleRequestInner v2024.PatchPotentialRoleRequestInner + if err := json.Unmarshal(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2022,18 +2132,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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 := fmt.Sprintf(`[{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. + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id to be patched # string | The role mining session id to be patched + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2101,22 +2221,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - roleMiningPotentialRoleEditEntitlements := fmt.Sprintf(`{ + 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 + 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") + data := []byte(`{ "ids" : [ "entId1", "entId2" ], "exclude" : true - }`) # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() + + var roleMiningPotentialRoleEditEntitlements v2024.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(data, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md index a12894d92..8bd522d4a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md @@ -76,18 +76,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - objectType := application # string | Object type. Available options ['application'] # string | Object type. Available options ['application'] - 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") + objectType := `application` // string | Object type. Available options ['application'] # string | Object type. Available options ['application'] + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -153,19 +157,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - objectType := application # string | Object type. Available options ['application'] # string | Object type. Available options ['application'] - 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") - 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'] + objectType := `application` // string | Object type. Available options ['application'] # string | Object type. Available options ['application'] + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md index 14215a8ef..d0d294ea5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md @@ -96,17 +96,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -169,17 +173,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -246,17 +254,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -323,18 +335,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id # string | Identity Id - 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") + identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -401,19 +417,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id to get the role assignments for # string | Identity Id to get the role assignments for - 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") - 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) + identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id to get the role assignments for # string | Identity Id to get the role assignments for + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() + + + 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) @@ -479,22 +499,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := id eq "6c9079b270a266a60170a2779fcb0006" or correlated 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: **id**: *eq, in* **name**: *eq, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) - sorters := name,-cloudStatus # string | Sort results using the standard syntax described 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, alias, cloudStatus** (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, alias, cloudStatus** (optional) - defaultFilter := NONE # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") - 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) - 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) + 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 := `id eq "6c9079b270a266a60170a2779fcb0006" or correlated 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: **id**: *eq, in* **name**: *eq, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) + sorters := `name,-cloudStatus` // string | Sort results using the standard syntax described 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, alias, cloudStatus** (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, alias, cloudStatus** (optional) + defaultFilter := `NONE` // string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() + + + 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) @@ -559,17 +583,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -634,21 +662,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID - sendAccountVerificationRequest := fmt.Sprintf(`{ + 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 := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + data := []byte(`{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" - }`) # SendAccountVerificationRequest | + }`) // SendAccountVerificationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() + + var sendAccountVerificationRequest v2024.SendAccountVerificationRequest + if err := json.Unmarshal(data, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -712,20 +750,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - inviteIdentitiesRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false - }`) # InviteIdentitiesRequest | + }`) // InviteIdentitiesRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() + + var inviteIdentitiesRequest v2024.InviteIdentitiesRequest + if err := json.Unmarshal(data, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -793,19 +841,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - processIdentitiesRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] - }`) # ProcessIdentitiesRequest | + }`) // ProcessIdentitiesRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() + + var processIdentitiesRequest v2024.ProcessIdentitiesRequest + if err := json.Unmarshal(data, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -870,17 +928,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md index 9ede7a2c3..5dc4b0c70 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md @@ -72,13 +72,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttribute := fmt.Sprintf(`{ + 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") + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -99,11 +100,20 @@ func main() { "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + + var identityAttribute v2024.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -168,17 +178,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -237,19 +251,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttributeNames := fmt.Sprintf(`{ + 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") + data := []byte(`{ "ids" : [ "name", "displayName" ] - }`) # IdentityAttributeNames | + }`) // IdentityAttributeNames | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() + + var identityAttributeNames v2024.IdentityAttributeNames + if err := json.Unmarshal(data, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -312,17 +336,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -386,20 +414,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - includeSystem := false # bool | Include 'system' attributes in the response. (optional) (default to false) # bool | Include 'system' attributes in the response. (optional) (default to false) - includeSilent := false # bool | Include 'silent' attributes in the response. (optional) (default to false) # bool | Include 'silent' attributes in the response. (optional) (default to false) - 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) + 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") + includeSystem := false // bool | Include 'system' attributes in the response. (optional) (default to false) # bool | Include 'system' attributes in the response. (optional) (default to false) + includeSilent := false // bool | Include 'silent' attributes in the response. (optional) (default to false) # bool | Include 'silent' attributes in the response. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() + + + 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) @@ -465,14 +497,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttribute := fmt.Sprintf(`{ + 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") + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -493,11 +526,20 @@ func main() { "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + + var identityAttribute v2024.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md index e845470dc..81e61d5e7 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md @@ -87,23 +87,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - snapshot1 := 2007-03-01T13:00:00Z # string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) - snapshot2 := 2008-03-01T13:00:00Z # string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) - accessItemTypes := fmt.Sprintf(``) # []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - 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) + 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") + snapshot1 := `2007-03-01T13:00:00Z` // string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) + snapshot2 := `2008-03-01T13:00:00Z` // string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) + accessItemTypes := fmt.Sprintf(``) // []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -176,24 +180,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - accessType := role # string | The specific type which needs to be compared # string | The specific type which needs to be compared - 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") - accessAssociated := 2007-03-01T13:00:00Z # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) - snapshot1 := 2008-03-01T13:00:00Z # string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) - snapshot2 := 2009-03-01T13:00:00Z # string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + accessType := `role` // string | The specific type which needs to be compared # string | The specific type which needs to be compared + 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") + accessAssociated := 2007-03-01T13:00:00Z // bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) + snapshot1 := `2008-03-01T13:00:00Z` // string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) + snapshot2 := `2009-03-01T13:00:00Z` // string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -258,17 +266,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -339,23 +351,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - from := 2024-03-01T13:00:00Z # string | The optional instant until which access events are returned (optional) # string | The optional instant until which access events are returned (optional) - eventTypes := fmt.Sprintf(`[AccessAddedEvent, AccessRemovedEvent]`) # []string | An optional list of event types to return. If null or empty, all events are returned (optional) - accessItemTypes := fmt.Sprintf(`[entitlement, account]`) # []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - 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) + 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") + from := `2024-03-01T13:00:00Z` // string | The optional instant until which access events are returned (optional) # string | The optional instant until which access events are returned (optional) + eventTypes := fmt.Sprintf(`[AccessAddedEvent, AccessRemovedEvent]`) // []string | An optional list of event types to return. If null or empty, all events are returned (optional) + accessItemTypes := fmt.Sprintf(`[entitlement, account]`) // []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -422,18 +438,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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 := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -504,23 +524,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - before := 2007-03-01T13:00:00Z # string | The date before which snapshot summary is required (optional) # string | The date before which snapshot summary is required (optional) - interval := interval_example # string | The interval indicating day or month. Defaults to month if not specified (optional) # string | The interval indicating day or month. Defaults to month if not specified (optional) - timeZone := UTC # string | The time zone. Defaults to UTC if not provided (optional) # string | The time zone. Defaults to UTC if not provided (optional) - 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) - 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) + 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") + before := `2007-03-01T13:00:00Z` // string | The date before which snapshot summary is required (optional) # string | The date before which snapshot summary is required (optional) + interval := `interval_example` // string | The interval indicating day or month. Defaults to month if not specified (optional) # string | The interval indicating day or month. Defaults to month if not specified (optional) + timeZone := `UTC` // string | The time zone. Defaults to UTC if not provided (optional) # string | The time zone. Defaults to UTC if not provided (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -585,17 +609,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -660,21 +688,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - startsWithQuery := Ada # string | This param is used for starts-with search for first, last and display name of the identity (optional) # string | This param is used for starts-with search for first, last and display name of the identity (optional) - isDeleted := true # bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) - isActive := true # bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) - 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) + 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") + startsWithQuery := `Ada` // string | This param is used for starts-with search for first, last and display name of the identity (optional) # string | This param is used for starts-with search for first, last and display name of the identity (optional) + isDeleted := true // bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) + isActive := true // bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() + + + 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) @@ -744,21 +776,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - type_ := account # string | The type of access item for the identity. If not provided, it defaults to account (optional) # string | The type of access item for the identity. If not provided, it defaults to account (optional) - 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) - 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) + 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") + type_ := `account` // string | The type of access item for the identity. If not provided, it defaults to account (optional) # string | The type of access item for the identity. If not provided, it defaults to account (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() + + + 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) @@ -826,19 +862,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + 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") + type_ := `account` // string | The access item type (optional) # string | The access item type (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + + + 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) @@ -908,22 +948,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - start := 2007-03-01T13:00:00Z # string | The specified start date (optional) # string | The specified start date (optional) - interval := interval_example # string | The interval indicating the range in day or month for the specified interval-name (optional) # string | The interval indicating the range in day or month for the specified interval-name (optional) - 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) - 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) + 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") + start := `2007-03-01T13:00:00Z` // string | The specified start date (optional) # string | The specified start date (optional) + interval := `interval_example` // string | The interval indicating the range in day or month for the specified interval-name (optional) # string | The interval indicating the range in day or month for the specified interval-name (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md index d3617f74e..cd3544461 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md @@ -75,12 +75,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -128,11 +129,20 @@ func main() { "name" : "aName", "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + + var identityProfile v2024.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -186,16 +196,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -248,16 +262,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | Identity Profile bulk delete request body. + requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -310,20 +334,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -384,13 +412,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityPreviewRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -416,11 +445,20 @@ func main() { } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() + + var identityPreviewRequest v2024.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -473,16 +511,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | The Identity Profile ID. # string | The Identity Profile ID. + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | The Identity Profile ID. # string | The Identity Profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + + + 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) @@ -535,16 +577,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -593,16 +639,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileExportedObject := fmt.Sprintf(``) # []IdentityProfileExportedObject | Previously exported Identity Profiles. + identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + + var identityProfileExportedObject v2024.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -655,20 +711,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -725,16 +785,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -796,17 +860,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. - jsonPatchOperation := fmt.Sprintf(`[{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. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md index b19420ff9..030e3234c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md @@ -103,13 +103,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. - lifecycleState := fmt.Sprintf(`{ + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + data := []byte(`{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -133,11 +134,20 @@ func main() { "technicalName" : "Technical Name", "identityState" : "identityState", "enabled" : true - }`) # LifecycleState | Lifecycle state to be created. + }`) // LifecycleState | Lifecycle state to be created. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() + + var lifecycleState v2024.LifecycleState + if err := json.Unmarshal(data, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -192,17 +202,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + + + 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) @@ -257,17 +271,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + + + 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) @@ -324,20 +342,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. - 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) - 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) + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) @@ -391,17 +413,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c9180857893f1290178944561990364 # string | ID of the identity to update. # string | ID of the identity to update. - setLifecycleStateRequest := fmt.Sprintf(``) # SetLifecycleStateRequest | + identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. + data := []byte(``) // SetLifecycleStateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() + + var setLifecycleStateRequest v2024.SetLifecycleStateRequest + if err := json.Unmarshal(data, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -457,18 +489,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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 + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md index c54dfe2e1..96b690064 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md @@ -57,15 +57,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + + + 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) @@ -114,16 +118,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + + + 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) @@ -168,15 +176,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + + + 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) @@ -225,12 +237,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -240,11 +253,20 @@ func main() { "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + + var mfaDuoConfig v2024.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -293,16 +315,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) # []KbaAnswerRequestItem | + kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + + var kbaAnswerRequestItem v2024.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -351,22 +383,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + + var mfaOktaConfig v2024.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -419,16 +461,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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'. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountClassifyAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountClassifyAPI.md new file mode 100644 index 000000000..63db027a1 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountClassifyAPI.md @@ -0,0 +1,89 @@ +--- +id: v2024-machine-account-classify +title: MachineAccountClassify +pagination_label: MachineAccountClassify +sidebar_label: MachineAccountClassify +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'MachineAccountClassify', 'V2024MachineAccountClassify'] +slug: /tools/sdk/go/v2024/methods/machine-account-classify +tags: ['SDK', 'Software Development Kit', 'MachineAccountClassify', 'V2024MachineAccountClassify'] +--- + +# MachineAccountClassifyAPI + +All URIs are relative to *https://sailpoint.api.identitynow.com/v2024* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**send-classify-machine-account**](#send-classify-machine-account) | **Post** `/accounts/{id}/classify` | Classify a Single Machine Account + + +## send-classify-machine-account +Classify a Single Machine Account +Use this API to classify a single machine account. +A token with API, ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/send-classify-machine-account) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Account ID. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSendClassifyMachineAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **classificationMode** | **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. | [default to "default"] + +### Return type + +[**SendClassifyMachineAccount200Response**](../models/send-classify-machine-account200-response) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +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) + 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) +} +``` + +[[Back to top]](#) + diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountMappingsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountMappingsAPI.md new file mode 100644 index 000000000..f6b8892d0 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountMappingsAPI.md @@ -0,0 +1,347 @@ +--- +id: v2024-machine-account-mappings +title: MachineAccountMappings +pagination_label: MachineAccountMappings +sidebar_label: MachineAccountMappings +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'MachineAccountMappings', 'V2024MachineAccountMappings'] +slug: /tools/sdk/go/v2024/methods/machine-account-mappings +tags: ['SDK', 'Software Development Kit', 'MachineAccountMappings', 'V2024MachineAccountMappings'] +--- + +# MachineAccountMappingsAPI + +All URIs are relative to *https://sailpoint.api.identitynow.com/v2024* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create-machine-account-mappings**](#create-machine-account-mappings) | **Post** `/sources/{sourceId}/machine-account-mappings` | Create Machine Account Mappings +[**delete-machine-account-mappings**](#delete-machine-account-mappings) | **Delete** `/sources/{sourceId}/machine-account-mappings` | Delete Source's Machine Account Mappings +[**list-machine-account-mappings**](#list-machine-account-mappings) | **Get** `/sources/{sourceId}/machine-account-mappings` | Machine Account Mapping for Source +[**set-machine-account-mappings**](#set-machine-account-mappings) | **Put** `/sources/{sourceId}/machine-mappings` | Update Source's Machine Account Mappings + + +## create-machine-account-mappings +Create Machine Account Mappings +Creates Machine Account Mappings for both identities and accounts for a source. +A token with API, ORG_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/create-machine-account-mappings) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Source ID. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMachineAccountMappingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **attributeMappings** | [**AttributeMappings**](../models/attribute-mappings) | | + +### Return type + +[**[]AttributeMappings**](../models/attribute-mappings) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + data := []byte(`{ + "transformDefinition" : { + "attributes" : { + "input" : { + "attributes" : { + "name" : "8d3e0094e99445de98eef6c75e25jc04", + "attributeName" : "givenName", + "sourceName" : "delimited-src" + }, + "type" : "accountAttribute" + } + }, + "id" : "ToUpper", + "type" : "reference" + }, + "target" : { + "sourceId" : "2c9180835d2e5168015d32f890ca1581", + "attributeName" : "businessApplication", + "type" : "IDENTITY" + } + }`) // AttributeMappings | + + + var attributeMappings v2024.AttributeMappings + if err := json.Unmarshal(data, &attributeMappings); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + +## delete-machine-account-mappings +Delete Source's Machine Account Mappings +Use this API to remove machine account attribute mappings for a Source. +A token with ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-machine-account-mappings) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | source ID. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteMachineAccountMappingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | source ID. # string | source ID. + + + + 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) + } +} +``` + +[[Back to top]](#) + +## list-machine-account-mappings +Machine Account Mapping for Source +Retrieves Machine account mappings for a specified source using Source ID. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/list-machine-account-mappings) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Source ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListMachineAccountMappingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **limit** | **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. | [default to 250] + **offset** | **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. | [default to 0] + +### Return type + +[**[]AttributeMappings**](../models/attribute-mappings) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID # string | Source ID + 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) + 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) +} +``` + +[[Back to top]](#) + +## set-machine-account-mappings +Update Source's Machine Account Mappings +Use this API to update Machine Account Attribute Mapping for a Source. A token with ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/set-machine-account-mappings) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Source ID. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetMachineAccountMappingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **attributeMappings** | [**AttributeMappings**](../models/attribute-mappings) | | + +### Return type + +[**[]AttributeMappings**](../models/attribute-mappings) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + data := []byte(`{ + "transformDefinition" : { + "attributes" : { + "input" : { + "attributes" : { + "name" : "8d3e0094e99445de98eef6c75e25jc04", + "attributeName" : "givenName", + "sourceName" : "delimited-src" + }, + "type" : "accountAttribute" + } + }, + "id" : "ToUpper", + "type" : "reference" + }, + "target" : { + "sourceId" : "2c9180835d2e5168015d32f890ca1581", + "attributeName" : "businessApplication", + "type" : "IDENTITY" + } + }`) // AttributeMappings | + + + var attributeMappings v2024.AttributeMappings + if err := json.Unmarshal(data, &attributeMappings); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md index acdb3e156..567bb3c13 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md @@ -73,17 +73,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -148,21 +152,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -229,18 +237,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - requestBody := fmt.Sprintf(`{Add machine identity attribute={value=[{op=add, path=/environment, value=test}]}, Replace machine identity attribute={value=[{op=replace, path=/environment, value=test}]}, Remove machine identity attribute={value=[{op=remove, path=/environment}]}}`) # []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 + 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") + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineClassificationConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineClassificationConfigAPI.md new file mode 100644 index 000000000..62c9c1f78 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineClassificationConfigAPI.md @@ -0,0 +1,233 @@ +--- +id: v2024-machine-classification-config +title: MachineClassificationConfig +pagination_label: MachineClassificationConfig +sidebar_label: MachineClassificationConfig +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'MachineClassificationConfig', 'V2024MachineClassificationConfig'] +slug: /tools/sdk/go/v2024/methods/machine-classification-config +tags: ['SDK', 'Software Development Kit', 'MachineClassificationConfig', 'V2024MachineClassificationConfig'] +--- + +# MachineClassificationConfigAPI + +All URIs are relative to *https://sailpoint.api.identitynow.com/v2024* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete-machine-classification-config**](#delete-machine-classification-config) | **Delete** `/sources/{sourceId}/machine-classification-config` | Delete Source's Classification Config +[**get-machine-classification-config**](#get-machine-classification-config) | **Get** `/sources/{sourceId}/machine-classification-config` | Machine Classification Config for Source +[**set-machine-classification-config**](#set-machine-classification-config) | **Put** `/sources/{sourceId}/machine-classification-config` | Update Source's Classification Config + + +## delete-machine-classification-config +Delete Source's Classification Config +Use this API to remove Classification Config for a Source. +A token with ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-machine-classification-config) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Source ID. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteMachineClassificationConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + + + + 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) + } +} +``` + +[[Back to top]](#) + +## get-machine-classification-config +Machine Classification Config for Source +This API returns a Machine Classification Config for a Source using Source ID. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-machine-classification-config) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Source ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMachineClassificationConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**MachineClassificationConfig**](../models/machine-classification-config) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID # string | Source ID + + + + 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) +} +``` + +[[Back to top]](#) + +## set-machine-classification-config +Update Source's Classification Config +Use this API to update Classification Config for a Source. A token with ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. + +[API Spec](https://developer.sailpoint.com/docs/api/v2024/set-machine-classification-config) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Source ID. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetMachineClassificationConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **machineClassificationConfig** | [**MachineClassificationConfig**](../models/machine-classification-config) | | + +### Return type + +[**MachineClassificationConfig**](../models/machine-classification-config) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + data := []byte(`{ + "criteria" : "criteria", + "created" : "2017-07-11T18:45:37.098Z", + "modified" : "2018-06-25T20:22:28.104Z", + "classificationMethod" : "SOURCE", + "enabled" : true + }`) // MachineClassificationConfig | + + + var machineClassificationConfig v2024.MachineClassificationConfig + if err := json.Unmarshal(data, &machineClassificationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md index 32acad482..36a8726a4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md @@ -72,13 +72,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - machineIdentity := fmt.Sprintf(`{ + 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") + data := []byte(`{ "created" : "2015-05-28T14:07:17Z", "businessApplication" : "ADService", "name" : "aName", @@ -87,11 +88,20 @@ func main() { "attributes" : "{\"Region\":\"EU\"}", "id" : "id12345", "manuallyEdited" : true - }`) # MachineIdentity | + }`) // MachineIdentity | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() + + var machineIdentity v2024.MachineIdentity + if err := json.Unmarshal(data, &machineIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -156,17 +166,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -229,17 +243,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -304,21 +322,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := 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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (optional) - sorters := businessApplication # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **businessApplication, 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: **businessApplication, name** (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) - 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) + 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 := `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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (optional) + sorters := `businessApplication` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **businessApplication, 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: **businessApplication, name** (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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() + + + 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) @@ -385,18 +407,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - requestBody := fmt.Sprintf(`{Add machine identity attribute={value=[{op=add, path=/attributes/securityRisk, value=medium}]}, Replace machine identity attribute={value=[{op=replace, path=/attributes/securityRisk, value=medium}]}, Remove machine identity attribute={value=[{op=remove, path=/attributes/securityRisk}]}}`) # []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + 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") + requestBody := fmt.Sprintf(`[{op=add, path=/attributes/securityRisk, value=medium}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md index 8f1cc1176..c60ba281c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md @@ -63,21 +63,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" - }`) # ManagedClientRequest | + }`) // ManagedClientRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() + + var managedClientRequest v2024.ManagedClientRequest + if err := json.Unmarshal(data, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -130,16 +140,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + + + 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) @@ -190,16 +204,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + + + 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) @@ -253,17 +271,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + + + 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) @@ -315,19 +337,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -381,17 +407,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | JSONPatch payload used to update the object. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md index d9b12ba2b..c852a934c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md @@ -63,22 +63,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterType := fmt.Sprintf(`{ + data := []byte(`{ "managedProcessIds" : [ "someId", "someId2" ], "pod" : "megapod-useast1", "org" : "denali-cjh", "id" : "aClusterTypeId", "type" : "idn" - }`) # ManagedClusterType | + }`) // ManagedClusterType | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() + + var managedClusterType v2024.ManagedClusterType + if err := json.Unmarshal(data, &managedClusterType); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -132,16 +142,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterTypeId # string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() + + + 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) @@ -193,16 +207,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterTypeId # string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() + + + 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) @@ -256,20 +274,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := IDN # string | Type descriptor (optional) # string | Type descriptor (optional) - pod := megapod-useast1 # string | Pinned pod (or default) (optional) # string | Pinned pod (or default) (optional) - org := denali-xyz # string | Pinned org (or default) (optional) # string | Pinned org (or default) (optional) - 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) + type_ := `IDN` // string | Type descriptor (optional) # string | Type descriptor (optional) + pod := `megapod-useast1` // string | Pinned pod (or default) (optional) # string | Pinned pod (or default) (optional) + org := `denali-xyz` // string | Pinned org (or default) (optional) # string | Pinned org (or default) (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() + + + 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) @@ -324,13 +346,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterTypeId # string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - jsonPatch := fmt.Sprintf(`{ + id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -340,11 +363,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSONPatch payload used to update the schema. + }`) // JsonPatch | The JSONPatch payload used to update the schema. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md index bc3a25299..6d1e49307 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md @@ -65,12 +65,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterRequest := fmt.Sprintf(`{ + data := []byte(`{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -78,11 +79,20 @@ func main() { "name" : "Managed Cluster Name", "description" : "A short description of the managed cluster.", "type" : "idn" - }`) # ManagedClusterRequest | + }`) // ManagedClusterRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() + + var managedClusterRequest v2024.ManagedClusterRequest + if err := json.Unmarshal(data, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -136,17 +146,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() + + + 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) @@ -197,16 +211,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + + + 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) @@ -259,16 +277,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180897de347a2017de8859e8c5039 # string | Managed cluster ID. # string | Managed cluster ID. + id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + + + 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) @@ -320,19 +342,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -386,17 +412,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + 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. + data := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() + + var putClientLogConfigurationRequest v2024.PutClientLogConfigurationRequest + if err := json.Unmarshal(data, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -450,16 +486,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClustersAPI.Update(context.Background(), id).Execute() + + + 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) @@ -513,17 +553,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180897de347a2017de8859e8c5039 # string | Managed cluster ID. # string | Managed cluster ID. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | JSONPatch payload used to update the object. + id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md index bc7876c18..c8f9e9a23 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md @@ -72,12 +72,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostIntegrationsCreate := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "MyName", "id" : "2c91808568c529c60168cca6f90c1313", @@ -102,11 +103,20 @@ func main() { "name" : "My Multi-Host Integration", "description" : "This is the Multi-Host Integration.", "modified" : "2024-01-23T18:08:50.897Z" - }`) # MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() + + var multiHostIntegrationsCreate v2024.MultiHostIntegrationsCreate + if err := json.Unmarshal(data, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -162,17 +172,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - multiHostIntegrationsCreateSources := fmt.Sprintf(``) # []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. + multiHostIntegrationsCreateSources := fmt.Sprintf(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() + + var multiHostIntegrationsCreateSources v2024.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(data, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -225,16 +245,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() + + + 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) @@ -288,18 +312,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - 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) + multihostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() + + + 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) @@ -356,18 +384,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - 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) + multiHostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() + + + 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) @@ -422,16 +454,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() + + + 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) @@ -487,21 +523,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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: **type**: *in* **forSubAdminId**: *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: **type**: *in* **forSubAdminId**: *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) - 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) + 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) + 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 := `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: **type**: *in* **forSubAdminId**: *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: **type**: *in* **forSubAdminId**: *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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() + + + 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) @@ -556,16 +596,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostId := 004091cb79b04636b88662afa50a4440 # string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration + multiHostId := `004091cb79b04636b88662afa50a4440` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() + + + 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) @@ -612,15 +656,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() + + + 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) @@ -680,21 +728,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - 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) - 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 := 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) + multihostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + + + 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) @@ -749,16 +801,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1324 # string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration + multihostId := `2c91808568c529c60168cca6f90c1324` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() + + + 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) @@ -813,17 +869,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() + + + 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) @@ -879,17 +939,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := anId # string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. - updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) # []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. + multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. + updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() + + var updateMultiHostSourcesRequestInner v2024.UpdateMultiHostSourcesRequestInner + if err := json.Unmarshal(data, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md index 18fee7347..acf4f3ef8 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,19 +122,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "Approved by manager" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + + var nonEmployeeApprovalDecision v2024.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -184,13 +194,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -203,11 +214,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -256,13 +276,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -275,11 +296,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -328,12 +358,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -358,11 +389,20 @@ func main() { }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + + var nonEmployeeSourceRequestBody v2024.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -417,24 +457,34 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + + var nonEmployeeSchemaAttributeBody v2024.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -488,16 +538,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -544,16 +598,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordsInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() + + var deleteNonEmployeeRecordsInBulkRequest v2024.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -605,16 +669,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -669,17 +737,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -730,16 +802,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := e136567de87e4d029e60b3c3c55db56d # string | Source Id # string | Source Id + sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -790,16 +866,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -850,16 +930,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source Id (UUID) # string | Source Id (UUID) + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + + + 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) @@ -910,16 +994,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Source Id (UUID) # string | Source Id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + + + 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) @@ -974,17 +1062,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + + + 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) @@ -1041,16 +1133,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1105,16 +1201,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source ID (UUID) # string | Source ID (UUID) + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + + + 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) @@ -1168,16 +1268,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -1234,16 +1338,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ac110005-7156-1150-8171-5b292e3e0084 # string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) + id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -1300,16 +1408,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1364,17 +1476,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -1431,16 +1547,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b7c28b350017c2a2ec5790aa1 # string | Source Id # string | Source Id + sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -1494,16 +1614,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -1557,17 +1681,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source Id (UUID) # string | Source Id (UUID) - data := BINARY_DATA_HERE # *os.File | # *os.File | + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) + data := BINARY_DATA_HERE // *os.File | # *os.File | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + + + 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) @@ -1625,21 +1753,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c91808280430dfb0180431a59440460 # string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) - 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) - 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 := 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) + requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -1694,20 +1826,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1765,21 +1901,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := e136567de87e4d029e60b3c3c55db56d # string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. - 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) - 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,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) + requestedFor := `e136567de87e4d029e60b3c3c55db56d` // string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. + 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) + 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,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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1835,21 +1975,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - requestedFor := me # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) - 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) + 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) + 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) + requestedFor := `me` // string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + + + 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) @@ -1907,17 +2051,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - jsonPatchOperation := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1975,18 +2129,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - jsonPatchOperation := fmt.Sprintf(`[{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'. + attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + jsonPatchOperation := fmt.Sprintf(`[{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'. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2040,17 +2204,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := e136567de87e4d029e60b3c3c55db56d # string | Source Id # string | Source Id - jsonPatchOperation := fmt.Sprintf(`[{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. + sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2104,19 +2278,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "approved" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + + var nonEmployeeRejectApprovalDecision v2024.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2174,14 +2358,15 @@ import ( "context" "fmt" "os" + "encoding/json" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -2194,11 +2379,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md index 25059db94..189f1c0f0 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md @@ -81,19 +81,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - domainAddress := fmt.Sprintf(`{ + 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") + data := []byte(`{ "domain" : "sailpoint.com" - }`) # DomainAddress | + }`) // DomainAddress | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() + + var domainAddress v2024.DomainAddress + if err := json.Unmarshal(data, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -156,13 +166,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - templateDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -179,11 +190,20 @@ func main() { "from" : "$__global.emailFromAddress", "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" - }`) # TemplateDto | + }`) // TemplateDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() + + var templateDto v2024.TemplateDto + if err := json.Unmarshal(data, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -244,22 +264,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - emailStatusDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" - }`) # EmailStatusDto | + }`) // EmailStatusDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() + + var emailStatusDto v2024.EmailStatusDto + if err := json.Unmarshal(data, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -320,17 +350,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []TemplateBulkDeleteDto | + 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 := fmt.Sprintf(``) // []TemplateBulkDeleteDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() + + var templateBulkDeleteDto v2024.TemplateBulkDeleteDto + if err := json.Unmarshal(data, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -393,17 +433,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -461,16 +505,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -531,17 +579,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -606,17 +658,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -677,16 +733,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -751,21 +811,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -825,16 +889,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -897,19 +965,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -972,19 +1044,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -1045,20 +1121,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - mailFromAttributesDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" - }`) # MailFromAttributesDto | + }`) // MailFromAttributesDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() + + var mailFromAttributesDto v2024.MailFromAttributesDto + if err := json.Unmarshal(data, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1119,21 +1205,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sendTestNotificationRequestDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" - }`) # SendTestNotificationRequestDto | + }`) // SendTestNotificationRequestDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() + + var sendTestNotificationRequestDto v2024.SendTestNotificationRequestDto + if err := json.Unmarshal(data, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md index 108a9ee9e..8cf78e92a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md @@ -62,12 +62,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -83,11 +84,20 @@ func main() { "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + + var createOAuthClientRequest v2024.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,16 +150,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + + + 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) @@ -200,16 +214,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + + + 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) @@ -258,16 +276,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + + + 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) @@ -321,17 +343,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md index ade659131..78a8f3fa5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md @@ -70,16 +70,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -142,19 +146,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + 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") + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -215,17 +223,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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. + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md index ca39182e4..16db8b566 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md @@ -65,21 +65,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig v2024.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -124,15 +134,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + + + 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) @@ -183,21 +197,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig v2024.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md index 1d1d2aca0..0cf2360c5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md @@ -127,15 +127,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + + + 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) @@ -212,16 +216,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md index e4146f9af..91195f10d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md @@ -94,21 +94,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - passwordDigitTokenReset := fmt.Sprintf(`{ + 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") + data := []byte(`{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" - }`) # PasswordDigitTokenReset | + }`) // PasswordDigitTokenReset | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() + + var passwordDigitTokenReset v2024.PasswordDigitTokenReset + if err := json.Unmarshal(data, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 089899f13a8f4da7824996191587bab9 # string | Password change request ID # string | Password change request ID + id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + + + 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) @@ -220,19 +234,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + + var passwordInfoQueryDTO v2024.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -300,22 +324,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + + var passwordChangeRequest v2024.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md index 20c23d977..bb10f0719 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md @@ -67,12 +67,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -104,11 +105,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0002 # string | The ID of password policy to delete. # string | The ID of password policy to delete. + id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + + + 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) @@ -221,16 +235,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0005 # string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. + id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + + + 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) @@ -282,18 +300,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -347,13 +369,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0007 # string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -385,11 +408,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md index 7f94a1129..2ada6331d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md @@ -91,23 +91,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup v2024.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -160,16 +170,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -220,16 +234,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -280,18 +298,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -345,24 +367,34 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 6881f631-3bd5-4213-9c75-8e05cc3e35dd # string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup v2024.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md index 18457359f..f863b77e7 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md @@ -69,20 +69,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + + var createPersonalAccessTokenRequest v2024.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -135,16 +145,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The personal access token id # string | The personal access token id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + + + 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) @@ -192,17 +206,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + + + 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) @@ -257,17 +275,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The Personal Access Token id # string | The Personal Access Token id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md index 77b940382..045fa35dd 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md @@ -63,21 +63,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := firstname eq "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: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) - 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) + 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) + 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 := `firstname eq "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: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md index fb81da85b..628ee6986 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md @@ -62,15 +62,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + + + 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) @@ -119,12 +123,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -138,11 +143,20 @@ func main() { "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + + var publicIdentityConfig v2024.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md index a175c6a6b..dcfae0934 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md @@ -65,16 +65,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := a1ed223247144cc29d23c632624b4767 # string | ID of the running Report to cancel # string | ID of the running Report to cancel + id := `a1ed223247144cc29d23c632624b4767` // string | ID of the running Report to cancel # string | ID of the running Report to cancel - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + + + 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) @@ -128,19 +132,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taskResultId := ef38f94347e94562b5bb8424a56397d8 # string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report - fileFormat := csv # string | Output format of the requested report file # string | Output format of the requested report file - 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) + taskResultId := `ef38f94347e94562b5bb8424a56397d8` // string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report + fileFormat := `csv` // string | Output format of the requested report file # string | Output format of the requested report file + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() + + + 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) @@ -194,17 +202,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() + + + 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) @@ -253,22 +265,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportDetails := fmt.Sprintf(`{ + data := []byte(`{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } - }`) # ReportDetails | + }`) // ReportDetails | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() + + var reportDetails v2024.ReportDetails + if err := json.Unmarshal(data, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md index e0fcedc6b..16d5aba07 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md @@ -67,24 +67,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := e7eab60924f64aa284175b9fa3309599 # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) # []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) - term := Finance Role # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) - statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) # []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) - 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) - 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 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) + identityId := `e7eab60924f64aa284175b9fa3309599` // string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) // []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) + term := `Finance Role` // string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) + statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) // []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md index 9b8694191..ab36b3739 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md @@ -77,16 +77,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -153,19 +157,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -238,24 +246,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - insightId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role insight id # string | The role insight id - entitlementId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # 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") - hasEntitlement := true # bool | Identity has this entitlement or not (optional) (default to false) # bool | Identity has this entitlement or not (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) - 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) - 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) + insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id + entitlementId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // 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") + hasEntitlement := true // bool | Identity has this entitlement or not (optional) (default to false) # bool | Identity has this entitlement or not (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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -320,17 +332,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -395,21 +411,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -475,18 +495,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + + + 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) @@ -553,19 +577,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -633,17 +661,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -703,16 +735,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md index f11d6150c..7a2eb8ce9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md @@ -113,12 +113,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -276,11 +277,20 @@ func main() { }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + + var role v2024.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -332,18 +342,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + + var roleBulkDeleteRequest v2024.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -400,18 +420,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The role's id. # string | The role's id. - 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. + id := `2c91808c74ff913f0175097daa9d59cd` // string | The role's id. # string | The role's id. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() + + + 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) @@ -464,16 +488,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() + + + 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) @@ -516,15 +544,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() + + + 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) @@ -579,16 +611,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c24359c389374d0fb8585698a2189e3d # string | The Id of the bulk update task. # string | The Id of the bulk update task. + id := `c24359c389374d0fb8585698a2189e3d` // string | The Id of the bulk update task. # string | The Id of the bulk update task. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() + + + 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) @@ -642,16 +678,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.GetRole(context.Background(), id).Execute() + + + 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) @@ -709,21 +749,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed - 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) - 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 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -793,22 +837,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | Containing role's ID. # string | Containing role's 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") - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - 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) + id := `2c91808a7813090a017814121919ecca` // string | Containing role's ID. # string | Containing role's 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") + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -866,23 +914,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - filters := requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *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, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* (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) - 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) + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + filters := `requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *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, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* (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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -956,17 +1008,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role to patch # string | ID of the Role to patch - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1023,29 +1085,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # 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 50) # 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 50) - 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) - 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) - 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) - roleListFilterDTO := fmt.Sprintf(`{ + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // 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 50) # 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 50) + 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) + 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) + 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) + data := []byte(`{ "ammKeyValues" : [ { "attribute" : "iscFederalClassifications", "values" : [ "secret" ] } ], "filters" : "dimensional eq false" - }`) # RoleListFilterDTO | (optional) + }`) // RoleListFilterDTO | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -1102,18 +1168,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c24359c389374d0fb8585698a2189e3d # string | The Id of a role # string | The Id of a role - 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. + id := `c24359c389374d0fb8585698a2189e3d` // string | The Id of a role # string | The Id of a role + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() + + + 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) @@ -1165,12 +1235,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByFilterRequest := fmt.Sprintf(`{ + data := []byte(`{ "values" : [ { "attribute" : "iscFederalClassifications", "values" : [ "topSecret" ] @@ -1178,11 +1249,20 @@ func main() { "filters" : " requestable eq false", "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByFilterRequest | + }`) // RoleMetadataBulkUpdateByFilterRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() + + var roleMetadataBulkUpdateByFilterRequest v2024.RoleMetadataBulkUpdateByFilterRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByFilterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1234,12 +1314,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByIdRequest := fmt.Sprintf(`{ + data := []byte(`{ "roles" : [ "b1db89554cfa431cb8b9921ea38d9367" ], "values" : [ { "attribute" : "iscFederalClassifications", @@ -1247,11 +1328,20 @@ func main() { } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByIdRequest | + }`) // RoleMetadataBulkUpdateByIdRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() + + var roleMetadataBulkUpdateByIdRequest v2024.RoleMetadataBulkUpdateByIdRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByIdRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1303,12 +1393,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByQueryRequest := fmt.Sprintf(`{ + data := []byte(`{ "query" : { "query\"" : { "indices" : [ "roles" ], @@ -1331,11 +1422,20 @@ func main() { } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByQueryRequest | + }`) // RoleMetadataBulkUpdateByQueryRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() + + var roleMetadataBulkUpdateByQueryRequest v2024.RoleMetadataBulkUpdateByQueryRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByQueryRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md index 7418ca124..08c5bc8d1 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md @@ -80,13 +80,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - simIntegrationDetails := fmt.Sprintf(`{ + 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") + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -103,11 +104,20 @@ func main() { "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | DTO containing the details of the SIM integration + }`) // SimIntegrationDetails | DTO containing the details of the SIM integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + + var simIntegrationDetails v2024.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -172,17 +182,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -245,17 +259,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -315,16 +333,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -390,14 +412,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + id := `12345` // string | SIM integration id # string | SIM integration 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") + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -407,11 +430,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -477,14 +509,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + id := `12345` // string | SIM integration id # string | SIM integration 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") + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -494,11 +527,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -564,14 +606,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - simIntegrationDetails := fmt.Sprintf(`{ + 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") + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -588,11 +631,20 @@ func main() { "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | The full DTO of the integration containing the updated model + }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + + var simIntegrationDetails v2024.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md index d4c660111..2777724db 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md @@ -98,12 +98,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -158,11 +159,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + + var sodPolicy v2024.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -217,17 +227,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + + + 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) @@ -278,16 +292,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -340,17 +358,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + + + 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) @@ -403,16 +425,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportResultId := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the report reference to download. # string | The ID of the report reference to download. + reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + + + 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) @@ -457,15 +483,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + + + 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) @@ -519,16 +549,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + + + 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) @@ -581,16 +615,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -643,16 +681,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + + + 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) @@ -705,16 +747,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + + + 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) @@ -768,20 +814,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -837,17 +887,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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 + 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 := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -901,13 +961,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. + data := []byte(`{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -992,11 +1053,20 @@ func main() { "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + + var sodPolicySchedule v2024.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1051,13 +1121,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -1112,11 +1183,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + + var sodPolicy v2024.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1169,16 +1249,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The SOD policy ID to run. # string | The SOD policy ID to run. + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + + + 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) @@ -1227,18 +1311,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + + + 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) @@ -1291,16 +1379,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The SOD policy ID to run. # string | The SOD policy ID to run. + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md index 21d3b31e9..e01d63de9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md @@ -74,12 +74,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -90,11 +91,20 @@ func main() { "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + + var identityWithNewAccess v2024.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,16 +153,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess1 := fmt.Sprintf(`{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 | + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() + + var identityWithNewAccess1 v2024.IdentityWithNewAccess1 + if err := json.Unmarshal(data, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md index a5f42395d..dc0450587 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md @@ -62,18 +62,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - exportPayload := fmt.Sprintf(`{ + data := []byte(`{ "description" : "Export Job 1 Test" - }`) # ExportPayload | Export options control what will be included in the export. + }`) // ExportPayload | Export options control what will be included in the export. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() + + var exportPayload v2024.ExportPayload + if err := json.Unmarshal(data, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -128,16 +138,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + + + 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) @@ -192,16 +206,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + + + 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) @@ -256,16 +274,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + + + 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) @@ -322,16 +344,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + + + 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) @@ -392,18 +418,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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 := fmt.Sprintf(``) # ImportOptions | (optional) + data := BINARY_DATA_HERE // *os.File | JSON file containing the objects to be imported. # *os.File | JSON file containing the objects to be imported. + 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) + data := []byte(``) // ImportOptions | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() + + + 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) @@ -448,15 +478,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md index cd441dd8d..48824401f 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md @@ -71,16 +71,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createSavedSearchRequest := fmt.Sprintf(``) # CreateSavedSearchRequest | The saved search to persist. + data := []byte(``) // CreateSavedSearchRequest | The saved search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() + + var createSavedSearchRequest v2024.CreateSavedSearchRequest + if err := json.Unmarshal(data, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -134,16 +144,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + + + 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) @@ -196,13 +210,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - searchArguments := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -212,11 +227,20 @@ func main() { "type" : "IDENTITY" } ], "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() + + var searchArguments v2024.SearchArguments + if err := json.Unmarshal(data, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -268,16 +292,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + + + 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) @@ -330,19 +358,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -399,13 +431,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - savedSearch := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -449,11 +482,20 @@ func main() { "modified" : "2018-06-25T20:22:28.104Z", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] - }`) # SavedSearch | The saved search to persist. + }`) // SavedSearch | The saved search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() + + var savedSearch v2024.SavedSearch + if err := json.Unmarshal(data, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md index 5786724ad..fd24e84b8 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md @@ -87,16 +87,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createScheduledSearchRequest := fmt.Sprintf(`{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. + data := []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() + + var createScheduledSearchRequest v2024.CreateScheduledSearchRequest + if err := json.Unmarshal(data, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -150,16 +160,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + + + 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) @@ -210,16 +224,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + + + 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) @@ -272,19 +290,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -339,20 +361,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - typedReference := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" - }`) # TypedReference | The recipient to be removed from the scheduled search. + }`) // TypedReference | The recipient to be removed from the scheduled search. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() + + var typedReference v2024.TypedReference + if err := json.Unmarshal(data, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -405,13 +437,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - scheduledSearch := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -501,11 +534,20 @@ func main() { "modified" : "", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false - }`) # ScheduledSearch | The scheduled search to persist. + }`) // ScheduledSearch | The scheduled search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() + + var scheduledSearch v2024.ScheduledSearch + if err := json.Unmarshal(data, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md index dc2d36851..5e655d530 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md @@ -84,12 +84,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -205,14 +206,23 @@ func main() { "type" : "access" } } - }`) # Search | - 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) - 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) + }`) // Search | + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + + var search v2024.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -261,12 +271,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -382,11 +393,20 @@ func main() { "type" : "access" } } - }`) # Search | + }`) // Search | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SearchAPI.SearchCount(context.Background()).Search(search).Execute() + + var search v2024.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -439,17 +459,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() + + + 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) @@ -501,12 +525,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -622,14 +647,23 @@ func main() { "type" : "access" } } - }`) # Search | - 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 := 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) + }`) // Search | + 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 := 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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + + var search v2024.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md index 90cdd5d97..10544e5c5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md @@ -90,24 +90,34 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - searchAttributeConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() + + var searchAttributeConfig v2024.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -172,17 +182,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -242,18 +256,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() + + + 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) @@ -318,17 +336,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -396,18 +418,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := promotedMailAttribute # string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. - 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 := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) # []JsonPatchOperation | + name := `promotedMailAttribute` // string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. + 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 := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md index 06c6b8229..872347709 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md @@ -77,12 +77,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -105,11 +106,20 @@ func main() { "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + + var segment v2024.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -163,16 +173,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to delete. # string | The segment ID to delete. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + + + 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) @@ -223,16 +237,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to retrieve. # string | The segment ID to retrieve. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() + + + 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) @@ -283,18 +301,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -349,17 +371,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to modify. # string | The segment ID to modify. - requestBody := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md index e0e288584..5b0d412d4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md @@ -88,12 +88,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -126,11 +127,20 @@ func main() { }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -183,16 +193,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete + id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -243,16 +257,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get + id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -305,16 +323,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + + + 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) @@ -359,15 +381,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + + + 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) @@ -420,20 +446,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 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) + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + + + 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) @@ -478,15 +508,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + + + 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) @@ -520,7 +554,7 @@ Other parameters are passed through a pointer to a apiPatchServiceDeskIntegratio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchServiceDeskIntegrationRequest** | [**PatchServiceDeskIntegrationRequest**](../models/patch-service-desk-integration-request) | 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. | + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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. | ### Return type @@ -540,17 +574,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - patchServiceDeskIntegrationRequest := fmt.Sprintf(``) # PatchServiceDeskIntegrationRequest | 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. + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + jsonPatchOperation := fmt.Sprintf(``) // []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).PatchServiceDeskIntegrationRequest(patchServiceDeskIntegrationRequest).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -604,13 +648,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -643,11 +688,20 @@ func main() { }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -696,19 +750,29 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + + var queuedCheckConfigDetails v2024.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md index 63e175433..77b81323c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md @@ -63,16 +63,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + + + 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) @@ -129,20 +133,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source - 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) - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md index b0732a9f2..a0e71568b 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md @@ -168,13 +168,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -213,11 +214,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -267,12 +277,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -354,12 +365,21 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # 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) + }`) // 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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + + var source v2024.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -414,17 +434,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - schedule1 := fmt.Sprintf(``) # Schedule1 | + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(``) // Schedule1 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() + + var schedule1 v2024.Schedule1 + if err := json.Unmarshal(data, &schedule1); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -479,13 +509,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -518,11 +549,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + + var schema v2024.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -593,17 +633,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -668,17 +712,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -731,17 +779,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -793,16 +845,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() + + + 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) @@ -857,17 +913,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - scheduleType := ACCOUNT_AGGREGATION # string | The Schedule type. # string | The Schedule type. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + + + 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) @@ -920,17 +980,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -982,16 +1046,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + + + 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) @@ -1042,16 +1110,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id + id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() + + + 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) @@ -1107,17 +1179,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() + + + 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) @@ -1180,17 +1256,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1245,17 +1325,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -1308,16 +1392,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSource(context.Background(), id).Execute() + + + 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) @@ -1382,17 +1470,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1446,17 +1538,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() + + + 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) @@ -1509,16 +1605,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() + + + 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) @@ -1582,16 +1682,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1644,16 +1748,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + + + 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) @@ -1709,17 +1817,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - scheduleType := ACCOUNT_AGGREGATION # string | The Schedule type. # string | The Schedule type. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + + + 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) @@ -1780,16 +1892,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() + + + 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) @@ -1845,17 +1961,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -1910,18 +2030,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + + + 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) @@ -1990,19 +2114,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Source Id # string | 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") - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id # string | 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).DisableOptimization(disableOptimization).Execute() + + + 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) @@ -2062,17 +2190,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() + + + 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) @@ -2126,17 +2258,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() + + + 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) @@ -2197,18 +2333,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + 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) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() + + + 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) @@ -2274,18 +2414,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 75dbec1ebe154d5785da27b95e1dd5d7 # string | Source Id # string | 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") - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + id := `75dbec1ebe154d5785da27b95e1dd5d7` // string | Source Id # string | 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") + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() + + + 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) @@ -2338,16 +2482,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + + + 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) @@ -2402,22 +2550,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 "Employees" # string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - 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) + 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) + 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 "Employees"` // string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + + + 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) @@ -2470,16 +2622,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + + + 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) @@ -2533,13 +2689,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id - correlationConfig := fmt.Sprintf(`{ + id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + data := []byte(`{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -2559,11 +2716,20 @@ func main() { } ], "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" - }`) # CorrelationConfig | + }`) // CorrelationConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() + + var correlationConfig v2024.CorrelationConfig + if err := json.Unmarshal(data, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2629,25 +2795,35 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - nativeChangeDetectionConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], "allNonEntitlementAttributes" : false, "allEntitlements" : false, "enabled" : true - }`) # NativeChangeDetectionConfig | + }`) // NativeChangeDetectionConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() + + var nativeChangeDetectionConfig v2024.NativeChangeDetectionConfig + if err := json.Unmarshal(data, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2705,14 +2881,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - provisioningPolicyDto := fmt.Sprintf(`{ + 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. + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -2751,11 +2928,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2821,13 +3007,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -2909,11 +3096,20 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + + var source v2024.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2980,14 +3176,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - attrSyncSourceConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -3004,11 +3201,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4b232a", "type" : "SOURCE" } - }`) # AttrSyncSourceConfig | + }`) // AttrSyncSourceConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() + + var attrSyncSourceConfig v2024.AttrSyncSourceConfig + if err := json.Unmarshal(data, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3074,14 +3280,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -3114,11 +3321,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + + var schema v2024.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3172,20 +3388,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source - resourceObjectsRequest := fmt.Sprintf(`{ + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + data := []byte(`{ "maxCount" : 100, "objectType" : "group" - }`) # ResourceObjectsRequest | + }`) // ResourceObjectsRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() + + var resourceObjectsRequest v2024.ResourceObjectsRequest + if err := json.Unmarshal(data, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3250,17 +3476,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -3313,16 +3543,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + + + 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) @@ -3375,16 +3609,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source. # string | The ID of the Source. + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + + + 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) @@ -3440,17 +3678,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - passwordPolicyHoldersDtoInner := fmt.Sprintf(``) # []PasswordPolicyHoldersDtoInner | + sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + passwordPolicyHoldersDtoInner := fmt.Sprintf(``) // []PasswordPolicyHoldersDtoInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() + + var passwordPolicyHoldersDtoInner v2024.PasswordPolicyHoldersDtoInner + if err := json.Unmarshal(data, &passwordPolicyHoldersDtoInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3504,17 +3752,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - provisioningPolicyDto := fmt.Sprintf(``) # []ProvisioningPolicyDto | + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3572,18 +3830,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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. + 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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3652,17 +3920,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - jsonPatchOperation := fmt.Sprintf(`[{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). + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + jsonPatchOperation := fmt.Sprintf(`[{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). - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3727,13 +4005,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceEntitlementRequestConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -3745,11 +4024,20 @@ func main() { } ], "requestCommentRequired" : true } - }`) # SourceEntitlementRequestConfig | + }`) // SourceEntitlementRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() + + var sourceEntitlementRequestConfig v2024.SourceEntitlementRequestConfig + if err := json.Unmarshal(data, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3810,18 +4098,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - scheduleType := ACCOUNT_AGGREGATION # string | The Schedule type. # string | The Schedule type. - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) # []JsonPatchOperation | The JSONPatch payload used to update the schedule. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schedule. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3906,18 +4204,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. - jsonPatchOperation := fmt.Sprintf(`[{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. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md index 7a14d70cc..d3b578a5d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md @@ -72,16 +72,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - batchId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | Batch Id # string | Batch Id + batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + + + 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) @@ -127,15 +131,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + + + 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) @@ -205,23 +213,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := displayName co "Read and Write" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) - sorters := 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, sourceName, status** (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, sourceName, status** (optional) - countOnly := count-only=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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (optional) (default to false) - 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) + 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) + 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 := `displayName co "Read and Write"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) + sorters := `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, sourceName, status** (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, sourceName, status** (optional) + countOnly := count-only=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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -275,17 +287,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ebab396f-0af1-4050-89b7-dafc63ec70e7 # string | id is sed id # string | id is sed id - sedPatch := fmt.Sprintf(``) # []SedPatch | Sed Patch Request + id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id + sedPatch := fmt.Sprintf(``) // []SedPatch | Sed Patch Request - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() + + var sedPatch v2024.SedPatch + if err := json.Unmarshal(data, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -335,16 +357,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedApproval := fmt.Sprintf(``) # []SedApproval | Sed Approval + sedApproval := fmt.Sprintf(``) // []SedApproval | Sed Approval - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() + + var sedApproval v2024.SedApproval + if err := json.Unmarshal(data, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -394,22 +426,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedAssignment := fmt.Sprintf(`{ + data := []byte(`{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] - }`) # SedAssignment | Sed Assignment Request + }`) // SedAssignment | Sed Assignment Request - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() + + var sedAssignment v2024.SedAssignment + if err := json.Unmarshal(data, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -459,19 +501,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedBatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] - }`) # SedBatchRequest | Sed Batch Request (optional) + }`) // SedBatchRequest | Sed Batch Request (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md index 0e2a47c21..63ac22748 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md @@ -121,17 +121,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -178,12 +182,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkRemoveTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -194,11 +199,20 @@ func main() { "type" : "IDENTITY" } ], "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() + + var bulkRemoveTaggedObject v2024.BulkRemoveTaggedObject + if err := json.Unmarshal(data, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -251,17 +265,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -315,19 +333,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -386,20 +408,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. - 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) - 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) + type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -455,25 +481,35 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to update. # string | The type of tagged object to update. - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + + var taggedObject v2024.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -524,23 +560,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + + var taggedObject v2024.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -587,12 +633,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkAddTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -604,11 +651,20 @@ func main() { } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() + + var bulkAddTaggedObject v2024.BulkAddTaggedObject + if err := json.Unmarshal(data, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md index 23464e669..dd30992c8 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md @@ -73,19 +73,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -146,19 +150,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -223,17 +231,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -299,21 +311,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -379,18 +395,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | The JSONPatch payload used to update the object. + 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") + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md index 569d60daf..a6a31bdfb 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md @@ -51,15 +51,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TenantAPI.GetTenant(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md index 678b9863e..01b087715 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md @@ -70,16 +70,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -145,21 +149,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "op" : "replace", "path" : "/description", "value" : "New description" - }`) # JsonPatchOperation | + }`) // JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md index f1a7016f3..fcb2bba31 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md @@ -64,20 +64,30 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + + var transform v2024.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -130,16 +140,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to delete # string | ID of the transform to delete + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + + + 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) @@ -190,16 +204,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to retrieve # string | ID of the transform to retrieve + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() + + + 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) @@ -252,20 +270,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + + + 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) @@ -319,21 +341,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md index e84c22817..194c5d9aa 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md @@ -122,24 +122,34 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | The ID of the invocation to complete. # string | The ID of the invocation to complete. - 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") - completeInvocation := fmt.Sprintf(`{ + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the invocation to complete. # string | The ID of the invocation to complete. + 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") + data := []byte(`{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." - }`) # CompleteInvocation | + }`) // CompleteInvocation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() + + var completeInvocation v2024.CompleteInvocation + if err := json.Unmarshal(data, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -200,13 +210,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - subscriptionPostRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -230,11 +241,20 @@ func main() { "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPostRequest | + }`) // SubscriptionPostRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() + + var subscriptionPostRequest v2024.SubscriptionPostRequest + if err := json.Unmarshal(data, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -299,17 +319,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -372,21 +396,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -453,21 +481,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -532,21 +564,25 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -614,18 +650,28 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | ID of the Subscription to patch # string | ID of the Subscription to patch - 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 := fmt.Sprintf(``) # []SubscriptionPatchRequestInner | + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | ID of the Subscription to patch # string | ID of the Subscription to patch + 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 := fmt.Sprintf(``) // []SubscriptionPatchRequestInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() + + var subscriptionPatchRequestInner v2024.SubscriptionPatchRequestInner + if err := json.Unmarshal(data, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -686,13 +732,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - testInvocation := fmt.Sprintf(`{ + 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") + data := []byte(`{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -701,11 +748,20 @@ func main() { "contentJson" : { "workflowId" : 1234 } - }`) # TestInvocation | + }`) // TestInvocation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() + + var testInvocation v2024.TestInvocation + if err := json.Unmarshal(data, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -767,22 +823,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - validateFilterInputDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } - }`) # ValidateFilterInputDto | + }`) // ValidateFilterInputDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() + + var validateFilterInputDto v2024.ValidateFilterInputDto + if err := json.Unmarshal(data, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -857,14 +923,15 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - subscriptionPutRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -887,11 +954,20 @@ func main() { "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPutRequest | + }`) // SubscriptionPutRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() + + var subscriptionPutRequest v2024.SubscriptionPutRequest + if err := json.Unmarshal(data, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md index e47de532a..dad2849bb 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md @@ -68,16 +68,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -138,21 +142,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantUiMetadataItemUpdateRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" - }`) # TenantUiMetadataItemUpdateRequest | + }`) // TenantUiMetadataItemUpdateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() + + var tenantUiMetadataItemUpdateRequest v2024.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(data, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md index 0924656f4..f19418662 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md @@ -62,12 +62,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -89,11 +90,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping v2024.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,12 +153,13 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -170,11 +181,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping v2024.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -220,15 +240,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md index aff0840a4..5fce87c45 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md @@ -87,17 +87,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -150,16 +154,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -213,17 +221,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + + + 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) @@ -289,22 +301,32 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item - 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") - workItemForward := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item + 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") + data := []byte(`{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true - }`) # WorkItemForward | + }`) // WorkItemForward | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() + + var workItemForward v2024.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -354,19 +376,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 1211bcaa32112bcef6122adb21cef1ac # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - 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) - 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 | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -427,17 +453,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() + + + 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) @@ -486,16 +516,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ef38f94347e94562b5bb8424a56397d8 # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -548,16 +582,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the work item. # string | ID of the work item. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + + + 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) @@ -606,16 +644,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 1211bcaa32112bcef6122adb21cef1ac # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -667,19 +709,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + + + 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) @@ -734,17 +780,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -797,16 +847,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -860,17 +914,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md index 2d41f3ee3..067fab46a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md @@ -85,23 +85,33 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - configurationItemRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + + var configurationItemRequest v2024.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -168,18 +178,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # string | unique identity id # string | unique identity id - 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") + identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -245,19 +259,23 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # string | unique identity id # string | unique identity id - configType := accessRequests # ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type - 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 := fmt.Sprintf(`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) + identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id + configType := accessRequests // ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type + 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 := fmt.Sprintf(`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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() + + + 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) @@ -317,16 +335,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -391,17 +413,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -461,16 +487,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -530,16 +560,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -605,24 +639,34 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # 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") - configurationItemRequest := fmt.Sprintf(`{ + identityId := `2c91808781a71ddb0181b9090b5c504e` // 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") + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + + var configurationItemRequest v2024.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -683,21 +727,31 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantConfigurationRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "configDetails" : { "disabled" : true } - }`) # TenantConfigurationRequest | + }`) // TenantConfigurationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() + + var tenantConfigurationRequest v2024.TenantConfigurationRequest + if err := json.Unmarshal(data, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md index bc6cd7a33..11a002cb9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md @@ -77,16 +77,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | The workflow execution ID # string | The workflow execution ID + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -138,17 +142,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - createExternalExecuteWorkflowRequest := fmt.Sprintf(``) # CreateExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -197,16 +205,26 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + + var createWorkflowRequest v2024.CreateWorkflowRequest + if err := json.Unmarshal(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -259,16 +277,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + + + 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) @@ -321,16 +343,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + + + 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) @@ -381,16 +407,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + + + 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) @@ -443,16 +473,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow execution ID. # string | Workflow execution ID. + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -505,16 +539,20 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow execution # string | Id of the workflow execution + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + + + 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) @@ -581,20 +619,24 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow ID. # string | Workflow ID. - 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) - 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) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow ID. # string | Workflow ID. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -644,17 +686,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + + + 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) @@ -705,18 +751,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -761,15 +811,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + + + 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) @@ -820,18 +874,22 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -876,15 +934,19 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + + + 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) @@ -938,17 +1000,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - jsonPatchOperation := fmt.Sprintf(`[{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + jsonPatchOperation := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1002,13 +1074,14 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -1037,21 +1110,24 @@ func main() { }, "trigger" : { "displayName" : "displayName", - "attributes" : { - "description" : "Triggered when an identity's manager attribute changes", - "formDefinitionId" : "Admin_Access_Request_Form", - "attributeToFilter" : "LifecycleState", - "id" : "idn:identity-attributes-changed", - "filter.$" : "$.changes[?(@.attribute == 'manager')]" - }, + "attributes" : "{}", "type" : "EVENT" }, "enabled" : false - }`) # WorkflowBody | + }`) // WorkflowBody | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + + var workflowBody v2024.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1105,17 +1181,21 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -1129,10 +1209,19 @@ func main() { ## test-workflow Test Workflow By Id +:::info + +Workflow must be disabled in order to use this endpoint. + +::: + Test a workflow with the provided input data. The input data should resemble the input that the trigger will send the workflow. See the [event trigger documentation](https://developer.sailpoint.com/idn/docs/event-triggers/available) for an example input for the trigger that initiates this workflow. + This endpoint will return an execution ID, which can be used to lookup more information about the execution using the `Get a Workflow Execution` endpoint. + **This will cause a live run of the workflow, which could result in unintended modifications to your IDN tenant.** + [API Spec](https://developer.sailpoint.com/docs/api/v2024/test-workflow) ### Path Parameters @@ -1171,17 +1260,27 @@ import ( "context" "fmt" "os" - v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2024.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + + var testWorkflowRequest v2024.TestWorkflowRequest + if err := json.Unmarshal(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md index 006374e54..4d3fa5578 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md @@ -19,6 +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] ## Methods @@ -139,4 +140,39 @@ SetClientMetadata sets ClientMetadata field to given value. HasClientMetadata returns a boolean if a field has been set. +### GetRequestedForWithRequestedItems + +`func (o *AccessRequest) GetRequestedForWithRequestedItems() []RequestedForDtoRef` + +GetRequestedForWithRequestedItems returns the RequestedForWithRequestedItems field if non-nil, zero value otherwise. + +### GetRequestedForWithRequestedItemsOk + +`func (o *AccessRequest) GetRequestedForWithRequestedItemsOk() (*[]RequestedForDtoRef, bool)` + +GetRequestedForWithRequestedItemsOk returns a tuple with the RequestedForWithRequestedItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedForWithRequestedItems + +`func (o *AccessRequest) SetRequestedForWithRequestedItems(v []RequestedForDtoRef)` + +SetRequestedForWithRequestedItems sets RequestedForWithRequestedItems field to given value. + +### HasRequestedForWithRequestedItems + +`func (o *AccessRequest) HasRequestedForWithRequestedItems() bool` + +HasRequestedForWithRequestedItems returns a boolean if a field has been set. + +### SetRequestedForWithRequestedItemsNil + +`func (o *AccessRequest) SetRequestedForWithRequestedItemsNil(b bool)` + + SetRequestedForWithRequestedItemsNil sets the value for RequestedForWithRequestedItems to be an explicit nil + +### UnsetRequestedForWithRequestedItems +`func (o *AccessRequest) UnsetRequestedForWithRequestedItems()` + +UnsetRequestedForWithRequestedItems ensures that no value is present for RequestedForWithRequestedItems, not even an explicit nil diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequestItem.md b/docs/tools/sdk/go/Reference/V2024/Models/AccessRequestItem.md index 009be43d0..72a01e5ac 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequestItem.md +++ b/docs/tools/sdk/go/Reference/V2024/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 '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 @@ -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/V2024/Models/AccountInfoRef.md b/docs/tools/sdk/go/Reference/V2024/Models/AccountInfoRef.md new file mode 100644 index 000000000..724a22f31 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AccountInfoRef.md @@ -0,0 +1,168 @@ +--- +id: v2024-account-info-ref +title: AccountInfoRef +pagination_label: AccountInfoRef +sidebar_label: AccountInfoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountInfoRef', 'V2024AccountInfoRef'] +slug: /tools/sdk/go/v2024/models/account-info-ref +tags: ['SDK', 'Software Development Kit', 'AccountInfoRef', 'V2024AccountInfoRef'] +--- + +# AccountInfoRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The uuid for the account, available under the 'objectguid' attribute | [optional] +**NativeIdentity** | Pointer to **string** | The 'distinguishedName' attribute for the account | [optional] +**Type** | Pointer to [**DtoType**](dto-type) | | [optional] +**Id** | Pointer to **string** | The account id | [optional] +**Name** | Pointer to **string** | The account display name | [optional] + +## Methods + +### NewAccountInfoRef + +`func NewAccountInfoRef() *AccountInfoRef` + +NewAccountInfoRef instantiates a new AccountInfoRef 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 + +### NewAccountInfoRefWithDefaults + +`func NewAccountInfoRefWithDefaults() *AccountInfoRef` + +NewAccountInfoRefWithDefaults instantiates a new AccountInfoRef 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 + +### GetUuid + +`func (o *AccountInfoRef) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *AccountInfoRef) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *AccountInfoRef) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *AccountInfoRef) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetNativeIdentity + +`func (o *AccountInfoRef) GetNativeIdentity() string` + +GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. + +### GetNativeIdentityOk + +`func (o *AccountInfoRef) 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 *AccountInfoRef) SetNativeIdentity(v string)` + +SetNativeIdentity sets NativeIdentity field to given value. + +### HasNativeIdentity + +`func (o *AccountInfoRef) HasNativeIdentity() bool` + +HasNativeIdentity returns a boolean if a field has been set. + +### GetType + +`func (o *AccountInfoRef) GetType() DtoType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AccountInfoRef) GetTypeOk() (*DtoType, 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 *AccountInfoRef) SetType(v DtoType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AccountInfoRef) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *AccountInfoRef) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccountInfoRef) 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 *AccountInfoRef) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AccountInfoRef) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *AccountInfoRef) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountInfoRef) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AccountInfoRef) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AccountInfoRef) HasName() bool` + +HasName returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AccountItemRef.md b/docs/tools/sdk/go/Reference/V2024/Models/AccountItemRef.md new file mode 100644 index 000000000..fe896d3c8 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AccountItemRef.md @@ -0,0 +1,100 @@ +--- +id: v2024-account-item-ref +title: AccountItemRef +pagination_label: AccountItemRef +sidebar_label: AccountItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountItemRef', 'V2024AccountItemRef'] +slug: /tools/sdk/go/v2024/models/account-item-ref +tags: ['SDK', 'Software Development Kit', 'AccountItemRef', 'V2024AccountItemRef'] +--- + +# AccountItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUuid** | Pointer to **NullableString** | The uuid for the account, available under the 'objectguid' attribute | [optional] +**NativeIdentity** | Pointer to **string** | The 'distinguishedName' attribute for the account | [optional] + +## Methods + +### NewAccountItemRef + +`func NewAccountItemRef() *AccountItemRef` + +NewAccountItemRef instantiates a new AccountItemRef 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 + +### NewAccountItemRefWithDefaults + +`func NewAccountItemRefWithDefaults() *AccountItemRef` + +NewAccountItemRefWithDefaults instantiates a new AccountItemRef 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 + +### GetAccountUuid + +`func (o *AccountItemRef) GetAccountUuid() string` + +GetAccountUuid returns the AccountUuid field if non-nil, zero value otherwise. + +### GetAccountUuidOk + +`func (o *AccountItemRef) GetAccountUuidOk() (*string, bool)` + +GetAccountUuidOk returns a tuple with the AccountUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUuid + +`func (o *AccountItemRef) SetAccountUuid(v string)` + +SetAccountUuid sets AccountUuid field to given value. + +### HasAccountUuid + +`func (o *AccountItemRef) HasAccountUuid() bool` + +HasAccountUuid returns a boolean if a field has been set. + +### SetAccountUuidNil + +`func (o *AccountItemRef) SetAccountUuidNil(b bool)` + + SetAccountUuidNil sets the value for AccountUuid to be an explicit nil + +### UnsetAccountUuid +`func (o *AccountItemRef) UnsetAccountUuid()` + +UnsetAccountUuid ensures that no value is present for AccountUuid, not even an explicit nil +### GetNativeIdentity + +`func (o *AccountItemRef) GetNativeIdentity() string` + +GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. + +### GetNativeIdentityOk + +`func (o *AccountItemRef) 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 *AccountItemRef) SetNativeIdentity(v string)` + +SetNativeIdentity sets NativeIdentity field to given value. + +### HasNativeIdentity + +`func (o *AccountItemRef) HasNativeIdentity() bool` + +HasNativeIdentity returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AccountsSelectionRequest.md b/docs/tools/sdk/go/Reference/V2024/Models/AccountsSelectionRequest.md new file mode 100644 index 000000000..de08a4b61 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AccountsSelectionRequest.md @@ -0,0 +1,142 @@ +--- +id: v2024-accounts-selection-request +title: AccountsSelectionRequest +pagination_label: AccountsSelectionRequest +sidebar_label: AccountsSelectionRequest +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountsSelectionRequest', 'V2024AccountsSelectionRequest'] +slug: /tools/sdk/go/v2024/models/accounts-selection-request +tags: ['SDK', 'Software Development Kit', 'AccountsSelectionRequest', 'V2024AccountsSelectionRequest'] +--- + +# AccountsSelectionRequest + +## Properties + +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** | [**[]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 []AccessRequestItem, ) *AccountsSelectionRequest` + +NewAccountsSelectionRequest instantiates a new AccountsSelectionRequest 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 + +### NewAccountsSelectionRequestWithDefaults + +`func NewAccountsSelectionRequestWithDefaults() *AccountsSelectionRequest` + +NewAccountsSelectionRequestWithDefaults instantiates a new AccountsSelectionRequest 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 + +### GetRequestedFor + +`func (o *AccountsSelectionRequest) GetRequestedFor() []string` + +GetRequestedFor returns the RequestedFor field if non-nil, zero value otherwise. + +### GetRequestedForOk + +`func (o *AccountsSelectionRequest) GetRequestedForOk() (*[]string, bool)` + +GetRequestedForOk returns a tuple with the RequestedFor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedFor + +`func (o *AccountsSelectionRequest) SetRequestedFor(v []string)` + +SetRequestedFor sets RequestedFor field to given value. + + +### GetRequestType + +`func (o *AccountsSelectionRequest) GetRequestType() AccessRequestType` + +GetRequestType returns the RequestType field if non-nil, zero value otherwise. + +### GetRequestTypeOk + +`func (o *AccountsSelectionRequest) GetRequestTypeOk() (*AccessRequestType, bool)` + +GetRequestTypeOk returns a tuple with the RequestType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestType + +`func (o *AccountsSelectionRequest) SetRequestType(v AccessRequestType)` + +SetRequestType sets RequestType field to given value. + +### HasRequestType + +`func (o *AccountsSelectionRequest) HasRequestType() bool` + +HasRequestType returns a boolean if a field has been set. + +### SetRequestTypeNil + +`func (o *AccountsSelectionRequest) SetRequestTypeNil(b bool)` + + SetRequestTypeNil sets the value for RequestType to be an explicit nil + +### UnsetRequestType +`func (o *AccountsSelectionRequest) UnsetRequestType()` + +UnsetRequestType ensures that no value is present for RequestType, not even an explicit nil +### GetRequestedItems + +`func (o *AccountsSelectionRequest) GetRequestedItems() []AccessRequestItem` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`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 []AccessRequestItem)` + +SetRequestedItems sets RequestedItems field to given value. + + +### GetClientMetadata + +`func (o *AccountsSelectionRequest) GetClientMetadata() map[string]string` + +GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. + +### GetClientMetadataOk + +`func (o *AccountsSelectionRequest) 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 *AccountsSelectionRequest) SetClientMetadata(v map[string]string)` + +SetClientMetadata sets ClientMetadata field to given value. + +### HasClientMetadata + +`func (o *AccountsSelectionRequest) HasClientMetadata() bool` + +HasClientMetadata returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AccountsSelectionResponse.md b/docs/tools/sdk/go/Reference/V2024/Models/AccountsSelectionResponse.md new file mode 100644 index 000000000..e9f28cc4e --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AccountsSelectionResponse.md @@ -0,0 +1,64 @@ +--- +id: v2024-accounts-selection-response +title: AccountsSelectionResponse +pagination_label: AccountsSelectionResponse +sidebar_label: AccountsSelectionResponse +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountsSelectionResponse', 'V2024AccountsSelectionResponse'] +slug: /tools/sdk/go/v2024/models/accounts-selection-response +tags: ['SDK', 'Software Development Kit', 'AccountsSelectionResponse', 'V2024AccountsSelectionResponse'] +--- + +# AccountsSelectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identities** | Pointer to [**[]IdentityAccountSelections**](identity-account-selections) | A list of available account selections per identity in the request, for all the requested items | [optional] + +## Methods + +### NewAccountsSelectionResponse + +`func NewAccountsSelectionResponse() *AccountsSelectionResponse` + +NewAccountsSelectionResponse instantiates a new AccountsSelectionResponse 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 + +### NewAccountsSelectionResponseWithDefaults + +`func NewAccountsSelectionResponseWithDefaults() *AccountsSelectionResponse` + +NewAccountsSelectionResponseWithDefaults instantiates a new AccountsSelectionResponse 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 + +### GetIdentities + +`func (o *AccountsSelectionResponse) GetIdentities() []IdentityAccountSelections` + +GetIdentities returns the Identities field if non-nil, zero value otherwise. + +### GetIdentitiesOk + +`func (o *AccountsSelectionResponse) GetIdentitiesOk() (*[]IdentityAccountSelections, bool)` + +GetIdentitiesOk returns a tuple with the Identities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentities + +`func (o *AccountsSelectionResponse) SetIdentities(v []IdentityAccountSelections)` + +SetIdentities sets Identities field to given value. + +### HasIdentities + +`func (o *AccountsSelectionResponse) HasIdentities() bool` + +HasIdentities returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AttributeDefinitionType.md b/docs/tools/sdk/go/Reference/V2024/Models/AttributeDefinitionType.md index ecc67c0a1..f7799614e 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/AttributeDefinitionType.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/AttributeDefinitionType.md @@ -22,4 +22,6 @@ tags: ['SDK', 'Software Development Kit', 'AttributeDefinitionType', 'V2024Attri * `BOOLEAN` (value: `"BOOLEAN"`) +* `DATE` (value: `"DATE"`) + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappings.md b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappings.md new file mode 100644 index 000000000..b745bf1de --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappings.md @@ -0,0 +1,90 @@ +--- +id: v2024-attribute-mappings +title: AttributeMappings +pagination_label: AttributeMappings +sidebar_label: AttributeMappings +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AttributeMappings', 'V2024AttributeMappings'] +slug: /tools/sdk/go/v2024/models/attribute-mappings +tags: ['SDK', 'Software Development Kit', 'AttributeMappings', 'V2024AttributeMappings'] +--- + +# AttributeMappings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Target** | Pointer to [**AttributeMappingsAllOfTarget**](attribute-mappings-all-of-target) | | [optional] +**TransformDefinition** | Pointer to [**AttributeMappingsAllOfTransformDefinition**](attribute-mappings-all-of-transform-definition) | | [optional] + +## Methods + +### NewAttributeMappings + +`func NewAttributeMappings() *AttributeMappings` + +NewAttributeMappings instantiates a new AttributeMappings 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 + +### NewAttributeMappingsWithDefaults + +`func NewAttributeMappingsWithDefaults() *AttributeMappings` + +NewAttributeMappingsWithDefaults instantiates a new AttributeMappings 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 + +### GetTarget + +`func (o *AttributeMappings) GetTarget() AttributeMappingsAllOfTarget` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *AttributeMappings) GetTargetOk() (*AttributeMappingsAllOfTarget, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *AttributeMappings) SetTarget(v AttributeMappingsAllOfTarget)` + +SetTarget sets Target field to given value. + +### HasTarget + +`func (o *AttributeMappings) HasTarget() bool` + +HasTarget returns a boolean if a field has been set. + +### GetTransformDefinition + +`func (o *AttributeMappings) GetTransformDefinition() AttributeMappingsAllOfTransformDefinition` + +GetTransformDefinition returns the TransformDefinition field if non-nil, zero value otherwise. + +### GetTransformDefinitionOk + +`func (o *AttributeMappings) GetTransformDefinitionOk() (*AttributeMappingsAllOfTransformDefinition, bool)` + +GetTransformDefinitionOk returns a tuple with the TransformDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransformDefinition + +`func (o *AttributeMappings) SetTransformDefinition(v AttributeMappingsAllOfTransformDefinition)` + +SetTransformDefinition sets TransformDefinition field to given value. + +### HasTransformDefinition + +`func (o *AttributeMappings) HasTransformDefinition() bool` + +HasTransformDefinition returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTarget.md b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTarget.md new file mode 100644 index 000000000..f2fec3088 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTarget.md @@ -0,0 +1,116 @@ +--- +id: v2024-attribute-mappings-all-of-target +title: AttributeMappingsAllOfTarget +pagination_label: AttributeMappingsAllOfTarget +sidebar_label: AttributeMappingsAllOfTarget +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AttributeMappingsAllOfTarget', 'V2024AttributeMappingsAllOfTarget'] +slug: /tools/sdk/go/v2024/models/attribute-mappings-all-of-target +tags: ['SDK', 'Software Development Kit', 'AttributeMappingsAllOfTarget', 'V2024AttributeMappingsAllOfTarget'] +--- + +# AttributeMappingsAllOfTarget + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | The type of target entity | [optional] +**AttributeName** | Pointer to **string** | Name of the targeted attribute | [optional] +**SourceId** | Pointer to **string** | The ID of Source | [optional] + +## Methods + +### NewAttributeMappingsAllOfTarget + +`func NewAttributeMappingsAllOfTarget() *AttributeMappingsAllOfTarget` + +NewAttributeMappingsAllOfTarget instantiates a new AttributeMappingsAllOfTarget 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 + +### NewAttributeMappingsAllOfTargetWithDefaults + +`func NewAttributeMappingsAllOfTargetWithDefaults() *AttributeMappingsAllOfTarget` + +NewAttributeMappingsAllOfTargetWithDefaults instantiates a new AttributeMappingsAllOfTarget 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 *AttributeMappingsAllOfTarget) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AttributeMappingsAllOfTarget) 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 *AttributeMappingsAllOfTarget) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AttributeMappingsAllOfTarget) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetAttributeName + +`func (o *AttributeMappingsAllOfTarget) GetAttributeName() string` + +GetAttributeName returns the AttributeName field if non-nil, zero value otherwise. + +### GetAttributeNameOk + +`func (o *AttributeMappingsAllOfTarget) GetAttributeNameOk() (*string, bool)` + +GetAttributeNameOk returns a tuple with the AttributeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributeName + +`func (o *AttributeMappingsAllOfTarget) SetAttributeName(v string)` + +SetAttributeName sets AttributeName field to given value. + +### HasAttributeName + +`func (o *AttributeMappingsAllOfTarget) HasAttributeName() bool` + +HasAttributeName returns a boolean if a field has been set. + +### GetSourceId + +`func (o *AttributeMappingsAllOfTarget) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *AttributeMappingsAllOfTarget) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *AttributeMappingsAllOfTarget) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *AttributeMappingsAllOfTarget) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinition.md b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinition.md new file mode 100644 index 000000000..b0d1195e6 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinition.md @@ -0,0 +1,116 @@ +--- +id: v2024-attribute-mappings-all-of-transform-definition +title: AttributeMappingsAllOfTransformDefinition +pagination_label: AttributeMappingsAllOfTransformDefinition +sidebar_label: AttributeMappingsAllOfTransformDefinition +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AttributeMappingsAllOfTransformDefinition', 'V2024AttributeMappingsAllOfTransformDefinition'] +slug: /tools/sdk/go/v2024/models/attribute-mappings-all-of-transform-definition +tags: ['SDK', 'Software Development Kit', 'AttributeMappingsAllOfTransformDefinition', 'V2024AttributeMappingsAllOfTransformDefinition'] +--- + +# AttributeMappingsAllOfTransformDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | The type of transform | [optional] +**Attributes** | Pointer to [**AttributeMappingsAllOfTransformDefinitionAttributes**](attribute-mappings-all-of-transform-definition-attributes) | | [optional] +**Id** | Pointer to **string** | Transform Operation | [optional] + +## Methods + +### NewAttributeMappingsAllOfTransformDefinition + +`func NewAttributeMappingsAllOfTransformDefinition() *AttributeMappingsAllOfTransformDefinition` + +NewAttributeMappingsAllOfTransformDefinition instantiates a new AttributeMappingsAllOfTransformDefinition 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 + +### NewAttributeMappingsAllOfTransformDefinitionWithDefaults + +`func NewAttributeMappingsAllOfTransformDefinitionWithDefaults() *AttributeMappingsAllOfTransformDefinition` + +NewAttributeMappingsAllOfTransformDefinitionWithDefaults instantiates a new AttributeMappingsAllOfTransformDefinition 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 *AttributeMappingsAllOfTransformDefinition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AttributeMappingsAllOfTransformDefinition) 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 *AttributeMappingsAllOfTransformDefinition) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AttributeMappingsAllOfTransformDefinition) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetAttributes + +`func (o *AttributeMappingsAllOfTransformDefinition) GetAttributes() AttributeMappingsAllOfTransformDefinitionAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *AttributeMappingsAllOfTransformDefinition) GetAttributesOk() (*AttributeMappingsAllOfTransformDefinitionAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *AttributeMappingsAllOfTransformDefinition) SetAttributes(v AttributeMappingsAllOfTransformDefinitionAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *AttributeMappingsAllOfTransformDefinition) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetId + +`func (o *AttributeMappingsAllOfTransformDefinition) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AttributeMappingsAllOfTransformDefinition) 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 *AttributeMappingsAllOfTransformDefinition) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AttributeMappingsAllOfTransformDefinition) HasId() bool` + +HasId returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributes.md b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributes.md new file mode 100644 index 000000000..416495b45 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributes.md @@ -0,0 +1,64 @@ +--- +id: v2024-attribute-mappings-all-of-transform-definition-attributes +title: AttributeMappingsAllOfTransformDefinitionAttributes +pagination_label: AttributeMappingsAllOfTransformDefinitionAttributes +sidebar_label: AttributeMappingsAllOfTransformDefinitionAttributes +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AttributeMappingsAllOfTransformDefinitionAttributes', 'V2024AttributeMappingsAllOfTransformDefinitionAttributes'] +slug: /tools/sdk/go/v2024/models/attribute-mappings-all-of-transform-definition-attributes +tags: ['SDK', 'Software Development Kit', 'AttributeMappingsAllOfTransformDefinitionAttributes', 'V2024AttributeMappingsAllOfTransformDefinitionAttributes'] +--- + +# AttributeMappingsAllOfTransformDefinitionAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Input** | Pointer to [**AttributeMappingsAllOfTransformDefinitionAttributesInput**](attribute-mappings-all-of-transform-definition-attributes-input) | | [optional] + +## Methods + +### NewAttributeMappingsAllOfTransformDefinitionAttributes + +`func NewAttributeMappingsAllOfTransformDefinitionAttributes() *AttributeMappingsAllOfTransformDefinitionAttributes` + +NewAttributeMappingsAllOfTransformDefinitionAttributes instantiates a new AttributeMappingsAllOfTransformDefinitionAttributes 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 + +### NewAttributeMappingsAllOfTransformDefinitionAttributesWithDefaults + +`func NewAttributeMappingsAllOfTransformDefinitionAttributesWithDefaults() *AttributeMappingsAllOfTransformDefinitionAttributes` + +NewAttributeMappingsAllOfTransformDefinitionAttributesWithDefaults instantiates a new AttributeMappingsAllOfTransformDefinitionAttributes 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 + +### GetInput + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributes) GetInput() AttributeMappingsAllOfTransformDefinitionAttributesInput` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributes) GetInputOk() (*AttributeMappingsAllOfTransformDefinitionAttributesInput, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributes) SetInput(v AttributeMappingsAllOfTransformDefinitionAttributesInput)` + +SetInput sets Input field to given value. + +### HasInput + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributes) HasInput() bool` + +HasInput returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributesInput.md b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributesInput.md new file mode 100644 index 000000000..6a7ac6faf --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributesInput.md @@ -0,0 +1,90 @@ +--- +id: v2024-attribute-mappings-all-of-transform-definition-attributes-input +title: AttributeMappingsAllOfTransformDefinitionAttributesInput +pagination_label: AttributeMappingsAllOfTransformDefinitionAttributesInput +sidebar_label: AttributeMappingsAllOfTransformDefinitionAttributesInput +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AttributeMappingsAllOfTransformDefinitionAttributesInput', 'V2024AttributeMappingsAllOfTransformDefinitionAttributesInput'] +slug: /tools/sdk/go/v2024/models/attribute-mappings-all-of-transform-definition-attributes-input +tags: ['SDK', 'Software Development Kit', 'AttributeMappingsAllOfTransformDefinitionAttributesInput', 'V2024AttributeMappingsAllOfTransformDefinitionAttributesInput'] +--- + +# AttributeMappingsAllOfTransformDefinitionAttributesInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | The Type of Attribute | [optional] +**Attributes** | Pointer to [**AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes**](attribute-mappings-all-of-transform-definition-attributes-input-attributes) | | [optional] + +## Methods + +### NewAttributeMappingsAllOfTransformDefinitionAttributesInput + +`func NewAttributeMappingsAllOfTransformDefinitionAttributesInput() *AttributeMappingsAllOfTransformDefinitionAttributesInput` + +NewAttributeMappingsAllOfTransformDefinitionAttributesInput instantiates a new AttributeMappingsAllOfTransformDefinitionAttributesInput 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 + +### NewAttributeMappingsAllOfTransformDefinitionAttributesInputWithDefaults + +`func NewAttributeMappingsAllOfTransformDefinitionAttributesInputWithDefaults() *AttributeMappingsAllOfTransformDefinitionAttributesInput` + +NewAttributeMappingsAllOfTransformDefinitionAttributesInputWithDefaults instantiates a new AttributeMappingsAllOfTransformDefinitionAttributesInput 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 *AttributeMappingsAllOfTransformDefinitionAttributesInput) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInput) 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 *AttributeMappingsAllOfTransformDefinitionAttributesInput) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInput) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetAttributes + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInput) GetAttributes() AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInput) GetAttributesOk() (*AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInput) SetAttributes(v AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInput) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes.md b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes.md new file mode 100644 index 000000000..09fcd4570 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes.md @@ -0,0 +1,116 @@ +--- +id: v2024-attribute-mappings-all-of-transform-definition-attributes-input-attributes +title: AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes +pagination_label: AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes +sidebar_label: AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes', 'V2024AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes'] +slug: /tools/sdk/go/v2024/models/attribute-mappings-all-of-transform-definition-attributes-input-attributes +tags: ['SDK', 'Software Development Kit', 'AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes', 'V2024AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes'] +--- + +# AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AttributeName** | Pointer to **string** | The name of attribute | [optional] +**SourceName** | Pointer to **string** | Name of the Source | [optional] +**Name** | Pointer to **string** | ID of the Source | [optional] + +## Methods + +### NewAttributeMappingsAllOfTransformDefinitionAttributesInputAttributes + +`func NewAttributeMappingsAllOfTransformDefinitionAttributesInputAttributes() *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes` + +NewAttributeMappingsAllOfTransformDefinitionAttributesInputAttributes instantiates a new AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes 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 + +### NewAttributeMappingsAllOfTransformDefinitionAttributesInputAttributesWithDefaults + +`func NewAttributeMappingsAllOfTransformDefinitionAttributesInputAttributesWithDefaults() *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes` + +NewAttributeMappingsAllOfTransformDefinitionAttributesInputAttributesWithDefaults instantiates a new AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes 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 + +### GetAttributeName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) GetAttributeName() string` + +GetAttributeName returns the AttributeName field if non-nil, zero value otherwise. + +### GetAttributeNameOk + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) GetAttributeNameOk() (*string, bool)` + +GetAttributeNameOk returns a tuple with the AttributeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributeName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) SetAttributeName(v string)` + +SetAttributeName sets AttributeName field to given value. + +### HasAttributeName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) HasAttributeName() bool` + +HasAttributeName returns a boolean if a field has been set. + +### GetSourceName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) GetSourceName() string` + +GetSourceName returns the SourceName field if non-nil, zero value otherwise. + +### GetSourceNameOk + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) GetSourceNameOk() (*string, bool)` + +GetSourceNameOk returns a tuple with the SourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) SetSourceName(v string)` + +SetSourceName sets SourceName field to given value. + +### HasSourceName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) HasSourceName() bool` + +HasSourceName returns a boolean if a field has been set. + +### GetName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AttributeMappingsAllOfTransformDefinitionAttributesInputAttributes) HasName() bool` + +HasName 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 5fe24b2d7..f5b716fbd 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRequestConfig.md @@ -15,10 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'EntitlementRequestConfig', 'V2024Enti Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowEntitlementRequest** | Pointer to **bool** | If this is true, entitlement requests are allowed. | [optional] [default to false] -**RequestCommentsRequired** | Pointer to **bool** | If this is true, comments are required to submit entitlement requests. | [optional] [default to false] -**DeniedCommentsRequired** | Pointer to **bool** | If this is true, comments are required to reject entitlement requests. | [optional] [default to false] -**GrantRequestApprovalSchemes** | Pointer to **NullableString** | Approval schemes for granting entitlement request. This can be empty if no approval is needed. Multiple schemes must be comma-separated. The valid schemes are \"entitlementOwner\", \"sourceOwner\", \"manager\" and \"`workgroup:{id}`\". You can use multiple governance groups (workgroups). | [optional] [default to "sourceOwner"] +**AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] ## Methods @@ -39,114 +36,29 @@ NewEntitlementRequestConfigWithDefaults instantiates a new EntitlementRequestCon 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 -### GetAllowEntitlementRequest +### GetAccessRequestConfig -`func (o *EntitlementRequestConfig) GetAllowEntitlementRequest() bool` +`func (o *EntitlementRequestConfig) GetAccessRequestConfig() EntitlementAccessRequestConfig` -GetAllowEntitlementRequest returns the AllowEntitlementRequest field if non-nil, zero value otherwise. +GetAccessRequestConfig returns the AccessRequestConfig field if non-nil, zero value otherwise. -### GetAllowEntitlementRequestOk +### GetAccessRequestConfigOk -`func (o *EntitlementRequestConfig) GetAllowEntitlementRequestOk() (*bool, bool)` +`func (o *EntitlementRequestConfig) GetAccessRequestConfigOk() (*EntitlementAccessRequestConfig, bool)` -GetAllowEntitlementRequestOk returns a tuple with the AllowEntitlementRequest field if it's non-nil, zero value otherwise +GetAccessRequestConfigOk returns a tuple with the AccessRequestConfig field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAllowEntitlementRequest +### SetAccessRequestConfig -`func (o *EntitlementRequestConfig) SetAllowEntitlementRequest(v bool)` +`func (o *EntitlementRequestConfig) SetAccessRequestConfig(v EntitlementAccessRequestConfig)` -SetAllowEntitlementRequest sets AllowEntitlementRequest field to given value. +SetAccessRequestConfig sets AccessRequestConfig field to given value. -### HasAllowEntitlementRequest +### HasAccessRequestConfig -`func (o *EntitlementRequestConfig) HasAllowEntitlementRequest() bool` +`func (o *EntitlementRequestConfig) HasAccessRequestConfig() bool` -HasAllowEntitlementRequest returns a boolean if a field has been set. +HasAccessRequestConfig returns a boolean if a field has been set. -### GetRequestCommentsRequired - -`func (o *EntitlementRequestConfig) GetRequestCommentsRequired() bool` - -GetRequestCommentsRequired returns the RequestCommentsRequired field if non-nil, zero value otherwise. - -### GetRequestCommentsRequiredOk - -`func (o *EntitlementRequestConfig) GetRequestCommentsRequiredOk() (*bool, bool)` - -GetRequestCommentsRequiredOk returns a tuple with the RequestCommentsRequired field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestCommentsRequired - -`func (o *EntitlementRequestConfig) SetRequestCommentsRequired(v bool)` - -SetRequestCommentsRequired sets RequestCommentsRequired field to given value. - -### HasRequestCommentsRequired - -`func (o *EntitlementRequestConfig) HasRequestCommentsRequired() bool` - -HasRequestCommentsRequired returns a boolean if a field has been set. - -### GetDeniedCommentsRequired - -`func (o *EntitlementRequestConfig) GetDeniedCommentsRequired() bool` - -GetDeniedCommentsRequired returns the DeniedCommentsRequired field if non-nil, zero value otherwise. - -### GetDeniedCommentsRequiredOk - -`func (o *EntitlementRequestConfig) GetDeniedCommentsRequiredOk() (*bool, bool)` - -GetDeniedCommentsRequiredOk returns a tuple with the DeniedCommentsRequired field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeniedCommentsRequired - -`func (o *EntitlementRequestConfig) SetDeniedCommentsRequired(v bool)` - -SetDeniedCommentsRequired sets DeniedCommentsRequired field to given value. - -### HasDeniedCommentsRequired - -`func (o *EntitlementRequestConfig) HasDeniedCommentsRequired() bool` - -HasDeniedCommentsRequired returns a boolean if a field has been set. - -### GetGrantRequestApprovalSchemes - -`func (o *EntitlementRequestConfig) GetGrantRequestApprovalSchemes() string` - -GetGrantRequestApprovalSchemes returns the GrantRequestApprovalSchemes field if non-nil, zero value otherwise. - -### GetGrantRequestApprovalSchemesOk - -`func (o *EntitlementRequestConfig) GetGrantRequestApprovalSchemesOk() (*string, bool)` - -GetGrantRequestApprovalSchemesOk returns a tuple with the GrantRequestApprovalSchemes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGrantRequestApprovalSchemes - -`func (o *EntitlementRequestConfig) SetGrantRequestApprovalSchemes(v string)` - -SetGrantRequestApprovalSchemes sets GrantRequestApprovalSchemes field to given value. - -### HasGrantRequestApprovalSchemes - -`func (o *EntitlementRequestConfig) HasGrantRequestApprovalSchemes() bool` - -HasGrantRequestApprovalSchemes returns a boolean if a field has been set. - -### SetGrantRequestApprovalSchemesNil - -`func (o *EntitlementRequestConfig) SetGrantRequestApprovalSchemesNil(b bool)` - - SetGrantRequestApprovalSchemesNil sets the value for GrantRequestApprovalSchemes to be an explicit nil - -### UnsetGrantRequestApprovalSchemes -`func (o *EntitlementRequestConfig) UnsetGrantRequestApprovalSchemes()` - -UnsetGrantRequestApprovalSchemes ensures that no value is present for GrantRequestApprovalSchemes, not even an explicit nil diff --git a/docs/tools/sdk/go/Reference/V2024/Models/EventAttributes.md b/docs/tools/sdk/go/Reference/V2024/Models/EventAttributes.md deleted file mode 100644 index 8511eb423..000000000 --- a/docs/tools/sdk/go/Reference/V2024/Models/EventAttributes.md +++ /dev/null @@ -1,213 +0,0 @@ ---- -id: v2024-event-attributes -title: EventAttributes -pagination_label: EventAttributes -sidebar_label: EventAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'EventAttributes', 'V2024EventAttributes'] -slug: /tools/sdk/go/v2024/models/event-attributes -tags: ['SDK', 'Software Development Kit', 'EventAttributes', 'V2024EventAttributes'] ---- - -# EventAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Description of the event trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] - -## Methods - -### NewEventAttributes - -`func NewEventAttributes(id NullableString, ) *EventAttributes` - -NewEventAttributes instantiates a new EventAttributes 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 - -### NewEventAttributesWithDefaults - -`func NewEventAttributesWithDefaults() *EventAttributes` - -NewEventAttributesWithDefaults instantiates a new EventAttributes 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 - -### GetId - -`func (o *EventAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *EventAttributes) 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 *EventAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *EventAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *EventAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *EventAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *EventAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *EventAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *EventAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *EventAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *EventAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *EventAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *EventAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *EventAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *EventAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *EventAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *EventAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *EventAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *EventAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *EventAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *EventAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *EventAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *EventAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *EventAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *EventAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *EventAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *EventAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *EventAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *EventAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2024/Models/ExternalAttributes.md b/docs/tools/sdk/go/Reference/V2024/Models/ExternalAttributes.md deleted file mode 100644 index 9477b2416..000000000 --- a/docs/tools/sdk/go/Reference/V2024/Models/ExternalAttributes.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -id: v2024-external-attributes -title: ExternalAttributes -pagination_label: ExternalAttributes -sidebar_label: ExternalAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ExternalAttributes', 'V2024ExternalAttributes'] -slug: /tools/sdk/go/v2024/models/external-attributes -tags: ['SDK', 'Software Development Kit', 'ExternalAttributes', 'V2024ExternalAttributes'] ---- - -# ExternalAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] - -## Methods - -### NewExternalAttributes - -`func NewExternalAttributes() *ExternalAttributes` - -NewExternalAttributes instantiates a new ExternalAttributes 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 - -### NewExternalAttributesWithDefaults - -`func NewExternalAttributesWithDefaults() *ExternalAttributes` - -NewExternalAttributesWithDefaults instantiates a new ExternalAttributes 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 - -### GetName - -`func (o *ExternalAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ExternalAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *ExternalAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ExternalAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *ExternalAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *ExternalAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetDescription - -`func (o *ExternalAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ExternalAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *ExternalAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ExternalAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *ExternalAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *ExternalAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetClientId - -`func (o *ExternalAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ExternalAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ExternalAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ExternalAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *ExternalAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *ExternalAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *ExternalAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *ExternalAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *ExternalAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *ExternalAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *ExternalAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *ExternalAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2024/Models/FederationProtocolDetails.md b/docs/tools/sdk/go/Reference/V2024/Models/FederationProtocolDetails.md new file mode 100644 index 000000000..b7d4ea11e --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/FederationProtocolDetails.md @@ -0,0 +1,90 @@ +--- +id: v2024-federation-protocol-details +title: FederationProtocolDetails +pagination_label: FederationProtocolDetails +sidebar_label: FederationProtocolDetails +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'FederationProtocolDetails', 'V2024FederationProtocolDetails'] +slug: /tools/sdk/go/v2024/models/federation-protocol-details +tags: ['SDK', 'Software Development Kit', 'FederationProtocolDetails', 'V2024FederationProtocolDetails'] +--- + +# FederationProtocolDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] + +## Methods + +### NewFederationProtocolDetails + +`func NewFederationProtocolDetails() *FederationProtocolDetails` + +NewFederationProtocolDetails instantiates a new FederationProtocolDetails 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 + +### NewFederationProtocolDetailsWithDefaults + +`func NewFederationProtocolDetailsWithDefaults() *FederationProtocolDetails` + +NewFederationProtocolDetailsWithDefaults instantiates a new FederationProtocolDetails 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 + +### GetRole + +`func (o *FederationProtocolDetails) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *FederationProtocolDetails) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *FederationProtocolDetails) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *FederationProtocolDetails) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *FederationProtocolDetails) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *FederationProtocolDetails) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *FederationProtocolDetails) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *FederationProtocolDetails) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/GetCampaign200Response.md b/docs/tools/sdk/go/Reference/V2024/Models/GetCampaign200Response.md new file mode 100644 index 000000000..305035eab --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/GetCampaign200Response.md @@ -0,0 +1,771 @@ +--- +id: v2024-get-campaign200-response +title: GetCampaign200Response +pagination_label: GetCampaign200Response +sidebar_label: GetCampaign200Response +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'GetCampaign200Response', 'V2024GetCampaign200Response'] +slug: /tools/sdk/go/v2024/models/get-campaign200-response +tags: ['SDK', 'Software Development Kit', 'GetCampaign200Response', 'V2024GetCampaign200Response'] +--- + +# GetCampaign200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableString** | Id of the campaign | [optional] [readonly] +**Name** | **string** | The campaign name. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | +**Description** | **NullableString** | The campaign description. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | +**Deadline** | Pointer to **NullableTime** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] +**Type** | **string** | The type of campaign. Could be extended in the future. | +**EmailNotificationEnabled** | Pointer to **bool** | Enables email notification for this campaign | [optional] [default to false] +**AutoRevokeAllowed** | Pointer to **bool** | Allows auto revoke for this campaign | [optional] [default to false] +**RecommendationsEnabled** | Pointer to **bool** | Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future. | [optional] [default to false] +**Status** | Pointer to **NullableString** | The campaign's current status. | [optional] [readonly] +**CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] +**Created** | Pointer to **NullableTime** | Created time of the campaign | [optional] [readonly] +**TotalCertifications** | Pointer to **NullableInt32** | The total number of certifications in this campaign. | [optional] [readonly] +**CompletedCertifications** | Pointer to **NullableInt32** | The number of completed certifications in this campaign. | [optional] [readonly] +**Alerts** | Pointer to [**[]CampaignAlert**](campaign-alert) | A list of errors and warnings that have accumulated. | [optional] [readonly] +**Modified** | Pointer to **NullableTime** | Modified time of the campaign | [optional] [readonly] +**Filter** | Pointer to [**NullableCampaignAllOfFilter**](campaign-all-of-filter) | | [optional] +**SunsetCommentsRequired** | Pointer to **bool** | Determines if comments on sunset date changes are required. | [optional] [default to true] +**SourceOwnerCampaignInfo** | Pointer to [**NullableCampaignAllOfSourceOwnerCampaignInfo**](campaign-all-of-source-owner-campaign-info) | | [optional] +**SearchCampaignInfo** | Pointer to [**NullableCampaignAllOfSearchCampaignInfo**](campaign-all-of-search-campaign-info) | | [optional] +**RoleCompositionCampaignInfo** | Pointer to [**NullableCampaignAllOfRoleCompositionCampaignInfo**](campaign-all-of-role-composition-campaign-info) | | [optional] +**MachineAccountCampaignInfo** | Pointer to [**NullableCampaignAllOfMachineAccountCampaignInfo**](campaign-all-of-machine-account-campaign-info) | | [optional] +**SourcesWithOrphanEntitlements** | Pointer to [**[]CampaignAllOfSourcesWithOrphanEntitlements**](campaign-all-of-sources-with-orphan-entitlements) | A list of sources in the campaign that contain \\\"orphan entitlements\\\" (entitlements without a corresponding Managed Attribute). An empty list indicates the campaign has no orphan entitlements. Null indicates there may be unknown orphan entitlements in the campaign (the campaign was created before this feature was implemented). | [optional] [readonly] +**MandatoryCommentRequirement** | Pointer to **string** | Determines whether comments are required for decisions during certification reviews. You can require comments for all decisions, revoke-only decisions, or no decisions. By default, comments are not required for decisions. | [optional] + +## Methods + +### NewGetCampaign200Response + +`func NewGetCampaign200Response(name string, description NullableString, type_ string, ) *GetCampaign200Response` + +NewGetCampaign200Response instantiates a new GetCampaign200Response 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 + +### NewGetCampaign200ResponseWithDefaults + +`func NewGetCampaign200ResponseWithDefaults() *GetCampaign200Response` + +NewGetCampaign200ResponseWithDefaults instantiates a new GetCampaign200Response 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 + +### GetId + +`func (o *GetCampaign200Response) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GetCampaign200Response) 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 *GetCampaign200Response) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *GetCampaign200Response) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GetCampaign200Response) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GetCampaign200Response) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetName + +`func (o *GetCampaign200Response) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetCampaign200Response) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetCampaign200Response) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *GetCampaign200Response) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *GetCampaign200Response) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *GetCampaign200Response) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *GetCampaign200Response) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *GetCampaign200Response) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDeadline + +`func (o *GetCampaign200Response) GetDeadline() SailPointTime` + +GetDeadline returns the Deadline field if non-nil, zero value otherwise. + +### GetDeadlineOk + +`func (o *GetCampaign200Response) GetDeadlineOk() (*SailPointTime, bool)` + +GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeadline + +`func (o *GetCampaign200Response) SetDeadline(v SailPointTime)` + +SetDeadline sets Deadline field to given value. + +### HasDeadline + +`func (o *GetCampaign200Response) HasDeadline() bool` + +HasDeadline returns a boolean if a field has been set. + +### SetDeadlineNil + +`func (o *GetCampaign200Response) SetDeadlineNil(b bool)` + + SetDeadlineNil sets the value for Deadline to be an explicit nil + +### UnsetDeadline +`func (o *GetCampaign200Response) UnsetDeadline()` + +UnsetDeadline ensures that no value is present for Deadline, not even an explicit nil +### GetType + +`func (o *GetCampaign200Response) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GetCampaign200Response) 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 *GetCampaign200Response) SetType(v string)` + +SetType sets Type field to given value. + + +### GetEmailNotificationEnabled + +`func (o *GetCampaign200Response) GetEmailNotificationEnabled() bool` + +GetEmailNotificationEnabled returns the EmailNotificationEnabled field if non-nil, zero value otherwise. + +### GetEmailNotificationEnabledOk + +`func (o *GetCampaign200Response) GetEmailNotificationEnabledOk() (*bool, bool)` + +GetEmailNotificationEnabledOk returns a tuple with the EmailNotificationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailNotificationEnabled + +`func (o *GetCampaign200Response) SetEmailNotificationEnabled(v bool)` + +SetEmailNotificationEnabled sets EmailNotificationEnabled field to given value. + +### HasEmailNotificationEnabled + +`func (o *GetCampaign200Response) HasEmailNotificationEnabled() bool` + +HasEmailNotificationEnabled returns a boolean if a field has been set. + +### GetAutoRevokeAllowed + +`func (o *GetCampaign200Response) GetAutoRevokeAllowed() bool` + +GetAutoRevokeAllowed returns the AutoRevokeAllowed field if non-nil, zero value otherwise. + +### GetAutoRevokeAllowedOk + +`func (o *GetCampaign200Response) GetAutoRevokeAllowedOk() (*bool, bool)` + +GetAutoRevokeAllowedOk returns a tuple with the AutoRevokeAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoRevokeAllowed + +`func (o *GetCampaign200Response) SetAutoRevokeAllowed(v bool)` + +SetAutoRevokeAllowed sets AutoRevokeAllowed field to given value. + +### HasAutoRevokeAllowed + +`func (o *GetCampaign200Response) HasAutoRevokeAllowed() bool` + +HasAutoRevokeAllowed returns a boolean if a field has been set. + +### GetRecommendationsEnabled + +`func (o *GetCampaign200Response) GetRecommendationsEnabled() bool` + +GetRecommendationsEnabled returns the RecommendationsEnabled field if non-nil, zero value otherwise. + +### GetRecommendationsEnabledOk + +`func (o *GetCampaign200Response) GetRecommendationsEnabledOk() (*bool, bool)` + +GetRecommendationsEnabledOk returns a tuple with the RecommendationsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommendationsEnabled + +`func (o *GetCampaign200Response) SetRecommendationsEnabled(v bool)` + +SetRecommendationsEnabled sets RecommendationsEnabled field to given value. + +### HasRecommendationsEnabled + +`func (o *GetCampaign200Response) HasRecommendationsEnabled() bool` + +HasRecommendationsEnabled returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetCampaign200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetCampaign200Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetCampaign200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetCampaign200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GetCampaign200Response) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GetCampaign200Response) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetCorrelatedStatus + +`func (o *GetCampaign200Response) GetCorrelatedStatus() string` + +GetCorrelatedStatus returns the CorrelatedStatus field if non-nil, zero value otherwise. + +### GetCorrelatedStatusOk + +`func (o *GetCampaign200Response) GetCorrelatedStatusOk() (*string, bool)` + +GetCorrelatedStatusOk returns a tuple with the CorrelatedStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCorrelatedStatus + +`func (o *GetCampaign200Response) SetCorrelatedStatus(v string)` + +SetCorrelatedStatus sets CorrelatedStatus field to given value. + +### HasCorrelatedStatus + +`func (o *GetCampaign200Response) HasCorrelatedStatus() bool` + +HasCorrelatedStatus returns a boolean if a field has been set. + +### GetCreated + +`func (o *GetCampaign200Response) GetCreated() SailPointTime` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *GetCampaign200Response) GetCreatedOk() (*SailPointTime, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *GetCampaign200Response) SetCreated(v SailPointTime)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *GetCampaign200Response) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *GetCampaign200Response) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *GetCampaign200Response) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetTotalCertifications + +`func (o *GetCampaign200Response) GetTotalCertifications() int32` + +GetTotalCertifications returns the TotalCertifications field if non-nil, zero value otherwise. + +### GetTotalCertificationsOk + +`func (o *GetCampaign200Response) GetTotalCertificationsOk() (*int32, bool)` + +GetTotalCertificationsOk returns a tuple with the TotalCertifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCertifications + +`func (o *GetCampaign200Response) SetTotalCertifications(v int32)` + +SetTotalCertifications sets TotalCertifications field to given value. + +### HasTotalCertifications + +`func (o *GetCampaign200Response) HasTotalCertifications() bool` + +HasTotalCertifications returns a boolean if a field has been set. + +### SetTotalCertificationsNil + +`func (o *GetCampaign200Response) SetTotalCertificationsNil(b bool)` + + SetTotalCertificationsNil sets the value for TotalCertifications to be an explicit nil + +### UnsetTotalCertifications +`func (o *GetCampaign200Response) UnsetTotalCertifications()` + +UnsetTotalCertifications ensures that no value is present for TotalCertifications, not even an explicit nil +### GetCompletedCertifications + +`func (o *GetCampaign200Response) GetCompletedCertifications() int32` + +GetCompletedCertifications returns the CompletedCertifications field if non-nil, zero value otherwise. + +### GetCompletedCertificationsOk + +`func (o *GetCampaign200Response) GetCompletedCertificationsOk() (*int32, bool)` + +GetCompletedCertificationsOk returns a tuple with the CompletedCertifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedCertifications + +`func (o *GetCampaign200Response) SetCompletedCertifications(v int32)` + +SetCompletedCertifications sets CompletedCertifications field to given value. + +### HasCompletedCertifications + +`func (o *GetCampaign200Response) HasCompletedCertifications() bool` + +HasCompletedCertifications returns a boolean if a field has been set. + +### SetCompletedCertificationsNil + +`func (o *GetCampaign200Response) SetCompletedCertificationsNil(b bool)` + + SetCompletedCertificationsNil sets the value for CompletedCertifications to be an explicit nil + +### UnsetCompletedCertifications +`func (o *GetCampaign200Response) UnsetCompletedCertifications()` + +UnsetCompletedCertifications ensures that no value is present for CompletedCertifications, not even an explicit nil +### GetAlerts + +`func (o *GetCampaign200Response) GetAlerts() []CampaignAlert` + +GetAlerts returns the Alerts field if non-nil, zero value otherwise. + +### GetAlertsOk + +`func (o *GetCampaign200Response) GetAlertsOk() (*[]CampaignAlert, bool)` + +GetAlertsOk returns a tuple with the Alerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlerts + +`func (o *GetCampaign200Response) SetAlerts(v []CampaignAlert)` + +SetAlerts sets Alerts field to given value. + +### HasAlerts + +`func (o *GetCampaign200Response) HasAlerts() bool` + +HasAlerts returns a boolean if a field has been set. + +### SetAlertsNil + +`func (o *GetCampaign200Response) SetAlertsNil(b bool)` + + SetAlertsNil sets the value for Alerts to be an explicit nil + +### UnsetAlerts +`func (o *GetCampaign200Response) UnsetAlerts()` + +UnsetAlerts ensures that no value is present for Alerts, not even an explicit nil +### GetModified + +`func (o *GetCampaign200Response) GetModified() SailPointTime` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *GetCampaign200Response) GetModifiedOk() (*SailPointTime, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *GetCampaign200Response) SetModified(v SailPointTime)` + +SetModified sets Modified field to given value. + +### HasModified + +`func (o *GetCampaign200Response) HasModified() bool` + +HasModified returns a boolean if a field has been set. + +### SetModifiedNil + +`func (o *GetCampaign200Response) SetModifiedNil(b bool)` + + SetModifiedNil sets the value for Modified to be an explicit nil + +### UnsetModified +`func (o *GetCampaign200Response) UnsetModified()` + +UnsetModified ensures that no value is present for Modified, not even an explicit nil +### GetFilter + +`func (o *GetCampaign200Response) GetFilter() CampaignAllOfFilter` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *GetCampaign200Response) GetFilterOk() (*CampaignAllOfFilter, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *GetCampaign200Response) SetFilter(v CampaignAllOfFilter)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *GetCampaign200Response) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### SetFilterNil + +`func (o *GetCampaign200Response) SetFilterNil(b bool)` + + SetFilterNil sets the value for Filter to be an explicit nil + +### UnsetFilter +`func (o *GetCampaign200Response) UnsetFilter()` + +UnsetFilter ensures that no value is present for Filter, not even an explicit nil +### GetSunsetCommentsRequired + +`func (o *GetCampaign200Response) GetSunsetCommentsRequired() bool` + +GetSunsetCommentsRequired returns the SunsetCommentsRequired field if non-nil, zero value otherwise. + +### GetSunsetCommentsRequiredOk + +`func (o *GetCampaign200Response) GetSunsetCommentsRequiredOk() (*bool, bool)` + +GetSunsetCommentsRequiredOk returns a tuple with the SunsetCommentsRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSunsetCommentsRequired + +`func (o *GetCampaign200Response) SetSunsetCommentsRequired(v bool)` + +SetSunsetCommentsRequired sets SunsetCommentsRequired field to given value. + +### HasSunsetCommentsRequired + +`func (o *GetCampaign200Response) HasSunsetCommentsRequired() bool` + +HasSunsetCommentsRequired returns a boolean if a field has been set. + +### GetSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) GetSourceOwnerCampaignInfo() CampaignAllOfSourceOwnerCampaignInfo` + +GetSourceOwnerCampaignInfo returns the SourceOwnerCampaignInfo field if non-nil, zero value otherwise. + +### GetSourceOwnerCampaignInfoOk + +`func (o *GetCampaign200Response) GetSourceOwnerCampaignInfoOk() (*CampaignAllOfSourceOwnerCampaignInfo, bool)` + +GetSourceOwnerCampaignInfoOk returns a tuple with the SourceOwnerCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) SetSourceOwnerCampaignInfo(v CampaignAllOfSourceOwnerCampaignInfo)` + +SetSourceOwnerCampaignInfo sets SourceOwnerCampaignInfo field to given value. + +### HasSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) HasSourceOwnerCampaignInfo() bool` + +HasSourceOwnerCampaignInfo returns a boolean if a field has been set. + +### SetSourceOwnerCampaignInfoNil + +`func (o *GetCampaign200Response) SetSourceOwnerCampaignInfoNil(b bool)` + + SetSourceOwnerCampaignInfoNil sets the value for SourceOwnerCampaignInfo to be an explicit nil + +### UnsetSourceOwnerCampaignInfo +`func (o *GetCampaign200Response) UnsetSourceOwnerCampaignInfo()` + +UnsetSourceOwnerCampaignInfo ensures that no value is present for SourceOwnerCampaignInfo, not even an explicit nil +### GetSearchCampaignInfo + +`func (o *GetCampaign200Response) GetSearchCampaignInfo() CampaignAllOfSearchCampaignInfo` + +GetSearchCampaignInfo returns the SearchCampaignInfo field if non-nil, zero value otherwise. + +### GetSearchCampaignInfoOk + +`func (o *GetCampaign200Response) GetSearchCampaignInfoOk() (*CampaignAllOfSearchCampaignInfo, bool)` + +GetSearchCampaignInfoOk returns a tuple with the SearchCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchCampaignInfo + +`func (o *GetCampaign200Response) SetSearchCampaignInfo(v CampaignAllOfSearchCampaignInfo)` + +SetSearchCampaignInfo sets SearchCampaignInfo field to given value. + +### HasSearchCampaignInfo + +`func (o *GetCampaign200Response) HasSearchCampaignInfo() bool` + +HasSearchCampaignInfo returns a boolean if a field has been set. + +### SetSearchCampaignInfoNil + +`func (o *GetCampaign200Response) SetSearchCampaignInfoNil(b bool)` + + SetSearchCampaignInfoNil sets the value for SearchCampaignInfo to be an explicit nil + +### UnsetSearchCampaignInfo +`func (o *GetCampaign200Response) UnsetSearchCampaignInfo()` + +UnsetSearchCampaignInfo ensures that no value is present for SearchCampaignInfo, not even an explicit nil +### GetRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) GetRoleCompositionCampaignInfo() CampaignAllOfRoleCompositionCampaignInfo` + +GetRoleCompositionCampaignInfo returns the RoleCompositionCampaignInfo field if non-nil, zero value otherwise. + +### GetRoleCompositionCampaignInfoOk + +`func (o *GetCampaign200Response) GetRoleCompositionCampaignInfoOk() (*CampaignAllOfRoleCompositionCampaignInfo, bool)` + +GetRoleCompositionCampaignInfoOk returns a tuple with the RoleCompositionCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) SetRoleCompositionCampaignInfo(v CampaignAllOfRoleCompositionCampaignInfo)` + +SetRoleCompositionCampaignInfo sets RoleCompositionCampaignInfo field to given value. + +### HasRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) HasRoleCompositionCampaignInfo() bool` + +HasRoleCompositionCampaignInfo returns a boolean if a field has been set. + +### SetRoleCompositionCampaignInfoNil + +`func (o *GetCampaign200Response) SetRoleCompositionCampaignInfoNil(b bool)` + + SetRoleCompositionCampaignInfoNil sets the value for RoleCompositionCampaignInfo to be an explicit nil + +### UnsetRoleCompositionCampaignInfo +`func (o *GetCampaign200Response) UnsetRoleCompositionCampaignInfo()` + +UnsetRoleCompositionCampaignInfo ensures that no value is present for RoleCompositionCampaignInfo, not even an explicit nil +### GetMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) GetMachineAccountCampaignInfo() CampaignAllOfMachineAccountCampaignInfo` + +GetMachineAccountCampaignInfo returns the MachineAccountCampaignInfo field if non-nil, zero value otherwise. + +### GetMachineAccountCampaignInfoOk + +`func (o *GetCampaign200Response) GetMachineAccountCampaignInfoOk() (*CampaignAllOfMachineAccountCampaignInfo, bool)` + +GetMachineAccountCampaignInfoOk returns a tuple with the MachineAccountCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) SetMachineAccountCampaignInfo(v CampaignAllOfMachineAccountCampaignInfo)` + +SetMachineAccountCampaignInfo sets MachineAccountCampaignInfo field to given value. + +### HasMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) HasMachineAccountCampaignInfo() bool` + +HasMachineAccountCampaignInfo returns a boolean if a field has been set. + +### SetMachineAccountCampaignInfoNil + +`func (o *GetCampaign200Response) SetMachineAccountCampaignInfoNil(b bool)` + + SetMachineAccountCampaignInfoNil sets the value for MachineAccountCampaignInfo to be an explicit nil + +### UnsetMachineAccountCampaignInfo +`func (o *GetCampaign200Response) UnsetMachineAccountCampaignInfo()` + +UnsetMachineAccountCampaignInfo ensures that no value is present for MachineAccountCampaignInfo, not even an explicit nil +### GetSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) GetSourcesWithOrphanEntitlements() []CampaignAllOfSourcesWithOrphanEntitlements` + +GetSourcesWithOrphanEntitlements returns the SourcesWithOrphanEntitlements field if non-nil, zero value otherwise. + +### GetSourcesWithOrphanEntitlementsOk + +`func (o *GetCampaign200Response) GetSourcesWithOrphanEntitlementsOk() (*[]CampaignAllOfSourcesWithOrphanEntitlements, bool)` + +GetSourcesWithOrphanEntitlementsOk returns a tuple with the SourcesWithOrphanEntitlements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) SetSourcesWithOrphanEntitlements(v []CampaignAllOfSourcesWithOrphanEntitlements)` + +SetSourcesWithOrphanEntitlements sets SourcesWithOrphanEntitlements field to given value. + +### HasSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) HasSourcesWithOrphanEntitlements() bool` + +HasSourcesWithOrphanEntitlements returns a boolean if a field has been set. + +### SetSourcesWithOrphanEntitlementsNil + +`func (o *GetCampaign200Response) SetSourcesWithOrphanEntitlementsNil(b bool)` + + SetSourcesWithOrphanEntitlementsNil sets the value for SourcesWithOrphanEntitlements to be an explicit nil + +### UnsetSourcesWithOrphanEntitlements +`func (o *GetCampaign200Response) UnsetSourcesWithOrphanEntitlements()` + +UnsetSourcesWithOrphanEntitlements ensures that no value is present for SourcesWithOrphanEntitlements, not even an explicit nil +### GetMandatoryCommentRequirement + +`func (o *GetCampaign200Response) GetMandatoryCommentRequirement() string` + +GetMandatoryCommentRequirement returns the MandatoryCommentRequirement field if non-nil, zero value otherwise. + +### GetMandatoryCommentRequirementOk + +`func (o *GetCampaign200Response) GetMandatoryCommentRequirementOk() (*string, bool)` + +GetMandatoryCommentRequirementOk returns a tuple with the MandatoryCommentRequirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandatoryCommentRequirement + +`func (o *GetCampaign200Response) SetMandatoryCommentRequirement(v string)` + +SetMandatoryCommentRequirement sets MandatoryCommentRequirement field to given value. + +### HasMandatoryCommentRequirement + +`func (o *GetCampaign200Response) HasMandatoryCommentRequirement() bool` + +HasMandatoryCommentRequirement returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/IdentityAccountSelections.md b/docs/tools/sdk/go/Reference/V2024/Models/IdentityAccountSelections.md new file mode 100644 index 000000000..b1e0768eb --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/IdentityAccountSelections.md @@ -0,0 +1,168 @@ +--- +id: v2024-identity-account-selections +title: IdentityAccountSelections +pagination_label: IdentityAccountSelections +sidebar_label: IdentityAccountSelections +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'IdentityAccountSelections', 'V2024IdentityAccountSelections'] +slug: /tools/sdk/go/v2024/models/identity-account-selections +tags: ['SDK', 'Software Development Kit', 'IdentityAccountSelections', 'V2024IdentityAccountSelections'] +--- + +# IdentityAccountSelections + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestedItems** | Pointer to [**[]RequestedItemAccountSelections**](requested-item-account-selections) | Available account selections for the identity, per requested item | [optional] +**AccountsSelectionRequired** | Pointer to **bool** | A boolean indicating whether any account selections will be required for the user to raise an access request | [optional] [default to false] +**Type** | Pointer to [**DtoType**](dto-type) | | [optional] +**Id** | Pointer to **string** | The identity id for the user | [optional] +**Name** | Pointer to **string** | The name of the identity | [optional] + +## Methods + +### NewIdentityAccountSelections + +`func NewIdentityAccountSelections() *IdentityAccountSelections` + +NewIdentityAccountSelections instantiates a new IdentityAccountSelections 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 + +### NewIdentityAccountSelectionsWithDefaults + +`func NewIdentityAccountSelectionsWithDefaults() *IdentityAccountSelections` + +NewIdentityAccountSelectionsWithDefaults instantiates a new IdentityAccountSelections 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 + +### GetRequestedItems + +`func (o *IdentityAccountSelections) GetRequestedItems() []RequestedItemAccountSelections` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`func (o *IdentityAccountSelections) GetRequestedItemsOk() (*[]RequestedItemAccountSelections, 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 *IdentityAccountSelections) SetRequestedItems(v []RequestedItemAccountSelections)` + +SetRequestedItems sets RequestedItems field to given value. + +### HasRequestedItems + +`func (o *IdentityAccountSelections) HasRequestedItems() bool` + +HasRequestedItems returns a boolean if a field has been set. + +### GetAccountsSelectionRequired + +`func (o *IdentityAccountSelections) GetAccountsSelectionRequired() bool` + +GetAccountsSelectionRequired returns the AccountsSelectionRequired field if non-nil, zero value otherwise. + +### GetAccountsSelectionRequiredOk + +`func (o *IdentityAccountSelections) GetAccountsSelectionRequiredOk() (*bool, bool)` + +GetAccountsSelectionRequiredOk returns a tuple with the AccountsSelectionRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountsSelectionRequired + +`func (o *IdentityAccountSelections) SetAccountsSelectionRequired(v bool)` + +SetAccountsSelectionRequired sets AccountsSelectionRequired field to given value. + +### HasAccountsSelectionRequired + +`func (o *IdentityAccountSelections) HasAccountsSelectionRequired() bool` + +HasAccountsSelectionRequired returns a boolean if a field has been set. + +### GetType + +`func (o *IdentityAccountSelections) GetType() DtoType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *IdentityAccountSelections) GetTypeOk() (*DtoType, 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 *IdentityAccountSelections) SetType(v DtoType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *IdentityAccountSelections) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *IdentityAccountSelections) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityAccountSelections) 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 *IdentityAccountSelections) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityAccountSelections) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityAccountSelections) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityAccountSelections) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IdentityAccountSelections) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityAccountSelections) HasName() bool` + +HasName returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/IdpDetails.md b/docs/tools/sdk/go/Reference/V2024/Models/IdpDetails.md new file mode 100644 index 000000000..bac4b836a --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/IdpDetails.md @@ -0,0 +1,397 @@ +--- +id: v2024-idp-details +title: IdpDetails +pagination_label: IdpDetails +sidebar_label: IdpDetails +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'IdpDetails', 'V2024IdpDetails'] +slug: /tools/sdk/go/v2024/models/idp-details +tags: ['SDK', 'Software Development Kit', 'IdpDetails', 'V2024IdpDetails'] +--- + +# IdpDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] +**Binding** | Pointer to **string** | Defines the binding used for the SAML flow. Used with IDP configurations. | [optional] +**AuthnContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] +**LogoutUrl** | Pointer to **string** | The IDP logout URL. Used with IDP configurations. | [optional] +**IncludeAuthnContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] +**NameId** | Pointer to **string** | The name id format to use. Used with IDP configurations. | [optional] +**JitConfiguration** | Pointer to [**JITConfiguration**](jit-configuration) | | [optional] +**Cert** | Pointer to **string** | The Base64-encoded certificate used by the IDP. Used with IDP configurations. | [optional] +**LoginUrlPost** | Pointer to **string** | The IDP POST URL, used with IDP HTTP-POST bindings for IDP-initiated logins. Used with IDP configurations. | [optional] +**LoginUrlRedirect** | Pointer to **string** | The IDP Redirect URL. Used with IDP configurations. | [optional] +**MappingAttribute** | **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | +**CertificateExpirationDate** | Pointer to **string** | The expiration date extracted from the certificate. | [optional] +**CertificateName** | Pointer to **string** | The name extracted from the certificate. | [optional] + +## Methods + +### NewIdpDetails + +`func NewIdpDetails(mappingAttribute string, ) *IdpDetails` + +NewIdpDetails instantiates a new IdpDetails 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 + +### NewIdpDetailsWithDefaults + +`func NewIdpDetailsWithDefaults() *IdpDetails` + +NewIdpDetailsWithDefaults instantiates a new IdpDetails 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 + +### GetRole + +`func (o *IdpDetails) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IdpDetails) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IdpDetails) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IdpDetails) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *IdpDetails) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *IdpDetails) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *IdpDetails) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *IdpDetails) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### GetBinding + +`func (o *IdpDetails) GetBinding() string` + +GetBinding returns the Binding field if non-nil, zero value otherwise. + +### GetBindingOk + +`func (o *IdpDetails) GetBindingOk() (*string, bool)` + +GetBindingOk returns a tuple with the Binding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinding + +`func (o *IdpDetails) SetBinding(v string)` + +SetBinding sets Binding field to given value. + +### HasBinding + +`func (o *IdpDetails) HasBinding() bool` + +HasBinding returns a boolean if a field has been set. + +### GetAuthnContext + +`func (o *IdpDetails) GetAuthnContext() string` + +GetAuthnContext returns the AuthnContext field if non-nil, zero value otherwise. + +### GetAuthnContextOk + +`func (o *IdpDetails) GetAuthnContextOk() (*string, bool)` + +GetAuthnContextOk returns a tuple with the AuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthnContext + +`func (o *IdpDetails) SetAuthnContext(v string)` + +SetAuthnContext sets AuthnContext field to given value. + +### HasAuthnContext + +`func (o *IdpDetails) HasAuthnContext() bool` + +HasAuthnContext returns a boolean if a field has been set. + +### GetLogoutUrl + +`func (o *IdpDetails) GetLogoutUrl() string` + +GetLogoutUrl returns the LogoutUrl field if non-nil, zero value otherwise. + +### GetLogoutUrlOk + +`func (o *IdpDetails) GetLogoutUrlOk() (*string, bool)` + +GetLogoutUrlOk returns a tuple with the LogoutUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogoutUrl + +`func (o *IdpDetails) SetLogoutUrl(v string)` + +SetLogoutUrl sets LogoutUrl field to given value. + +### HasLogoutUrl + +`func (o *IdpDetails) HasLogoutUrl() bool` + +HasLogoutUrl returns a boolean if a field has been set. + +### GetIncludeAuthnContext + +`func (o *IdpDetails) GetIncludeAuthnContext() bool` + +GetIncludeAuthnContext returns the IncludeAuthnContext field if non-nil, zero value otherwise. + +### GetIncludeAuthnContextOk + +`func (o *IdpDetails) GetIncludeAuthnContextOk() (*bool, bool)` + +GetIncludeAuthnContextOk returns a tuple with the IncludeAuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeAuthnContext + +`func (o *IdpDetails) SetIncludeAuthnContext(v bool)` + +SetIncludeAuthnContext sets IncludeAuthnContext field to given value. + +### HasIncludeAuthnContext + +`func (o *IdpDetails) HasIncludeAuthnContext() bool` + +HasIncludeAuthnContext returns a boolean if a field has been set. + +### GetNameId + +`func (o *IdpDetails) GetNameId() string` + +GetNameId returns the NameId field if non-nil, zero value otherwise. + +### GetNameIdOk + +`func (o *IdpDetails) GetNameIdOk() (*string, bool)` + +GetNameIdOk returns a tuple with the NameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNameId + +`func (o *IdpDetails) SetNameId(v string)` + +SetNameId sets NameId field to given value. + +### HasNameId + +`func (o *IdpDetails) HasNameId() bool` + +HasNameId returns a boolean if a field has been set. + +### GetJitConfiguration + +`func (o *IdpDetails) GetJitConfiguration() JITConfiguration` + +GetJitConfiguration returns the JitConfiguration field if non-nil, zero value otherwise. + +### GetJitConfigurationOk + +`func (o *IdpDetails) GetJitConfigurationOk() (*JITConfiguration, bool)` + +GetJitConfigurationOk returns a tuple with the JitConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitConfiguration + +`func (o *IdpDetails) SetJitConfiguration(v JITConfiguration)` + +SetJitConfiguration sets JitConfiguration field to given value. + +### HasJitConfiguration + +`func (o *IdpDetails) HasJitConfiguration() bool` + +HasJitConfiguration returns a boolean if a field has been set. + +### GetCert + +`func (o *IdpDetails) GetCert() string` + +GetCert returns the Cert field if non-nil, zero value otherwise. + +### GetCertOk + +`func (o *IdpDetails) GetCertOk() (*string, bool)` + +GetCertOk returns a tuple with the Cert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCert + +`func (o *IdpDetails) SetCert(v string)` + +SetCert sets Cert field to given value. + +### HasCert + +`func (o *IdpDetails) HasCert() bool` + +HasCert returns a boolean if a field has been set. + +### GetLoginUrlPost + +`func (o *IdpDetails) GetLoginUrlPost() string` + +GetLoginUrlPost returns the LoginUrlPost field if non-nil, zero value otherwise. + +### GetLoginUrlPostOk + +`func (o *IdpDetails) GetLoginUrlPostOk() (*string, bool)` + +GetLoginUrlPostOk returns a tuple with the LoginUrlPost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlPost + +`func (o *IdpDetails) SetLoginUrlPost(v string)` + +SetLoginUrlPost sets LoginUrlPost field to given value. + +### HasLoginUrlPost + +`func (o *IdpDetails) HasLoginUrlPost() bool` + +HasLoginUrlPost returns a boolean if a field has been set. + +### GetLoginUrlRedirect + +`func (o *IdpDetails) GetLoginUrlRedirect() string` + +GetLoginUrlRedirect returns the LoginUrlRedirect field if non-nil, zero value otherwise. + +### GetLoginUrlRedirectOk + +`func (o *IdpDetails) GetLoginUrlRedirectOk() (*string, bool)` + +GetLoginUrlRedirectOk returns a tuple with the LoginUrlRedirect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlRedirect + +`func (o *IdpDetails) SetLoginUrlRedirect(v string)` + +SetLoginUrlRedirect sets LoginUrlRedirect field to given value. + +### HasLoginUrlRedirect + +`func (o *IdpDetails) HasLoginUrlRedirect() bool` + +HasLoginUrlRedirect returns a boolean if a field has been set. + +### GetMappingAttribute + +`func (o *IdpDetails) GetMappingAttribute() string` + +GetMappingAttribute returns the MappingAttribute field if non-nil, zero value otherwise. + +### GetMappingAttributeOk + +`func (o *IdpDetails) GetMappingAttributeOk() (*string, bool)` + +GetMappingAttributeOk returns a tuple with the MappingAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMappingAttribute + +`func (o *IdpDetails) SetMappingAttribute(v string)` + +SetMappingAttribute sets MappingAttribute field to given value. + + +### GetCertificateExpirationDate + +`func (o *IdpDetails) GetCertificateExpirationDate() string` + +GetCertificateExpirationDate returns the CertificateExpirationDate field if non-nil, zero value otherwise. + +### GetCertificateExpirationDateOk + +`func (o *IdpDetails) GetCertificateExpirationDateOk() (*string, bool)` + +GetCertificateExpirationDateOk returns a tuple with the CertificateExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateExpirationDate + +`func (o *IdpDetails) SetCertificateExpirationDate(v string)` + +SetCertificateExpirationDate sets CertificateExpirationDate field to given value. + +### HasCertificateExpirationDate + +`func (o *IdpDetails) HasCertificateExpirationDate() bool` + +HasCertificateExpirationDate returns a boolean if a field has been set. + +### GetCertificateName + +`func (o *IdpDetails) GetCertificateName() string` + +GetCertificateName returns the CertificateName field if non-nil, zero value otherwise. + +### GetCertificateNameOk + +`func (o *IdpDetails) GetCertificateNameOk() (*string, bool)` + +GetCertificateNameOk returns a tuple with the CertificateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateName + +`func (o *IdpDetails) SetCertificateName(v string)` + +SetCertificateName sets CertificateName field to given value. + +### HasCertificateName + +`func (o *IdpDetails) HasCertificateName() bool` + +HasCertificateName returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/JITConfiguration.md b/docs/tools/sdk/go/Reference/V2024/Models/JITConfiguration.md new file mode 100644 index 000000000..76baf76aa --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/JITConfiguration.md @@ -0,0 +1,116 @@ +--- +id: v2024-jit-configuration +title: JITConfiguration +pagination_label: JITConfiguration +sidebar_label: JITConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'JITConfiguration', 'V2024JITConfiguration'] +slug: /tools/sdk/go/v2024/models/jit-configuration +tags: ['SDK', 'Software Development Kit', 'JITConfiguration', 'V2024JITConfiguration'] +--- + +# JITConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | The indicator for just-in-time provisioning enabled | [optional] [default to false] +**SourceId** | Pointer to **string** | the sourceId that mapped to just-in-time provisioning configuration | [optional] +**SourceAttributeMappings** | Pointer to **map[string]string** | A mapping of identity profile attribute names to SAML assertion attribute names | [optional] + +## Methods + +### NewJITConfiguration + +`func NewJITConfiguration() *JITConfiguration` + +NewJITConfiguration instantiates a new JITConfiguration 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 + +### NewJITConfigurationWithDefaults + +`func NewJITConfigurationWithDefaults() *JITConfiguration` + +NewJITConfigurationWithDefaults instantiates a new JITConfiguration 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 + +### GetEnabled + +`func (o *JITConfiguration) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *JITConfiguration) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *JITConfiguration) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *JITConfiguration) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetSourceId + +`func (o *JITConfiguration) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *JITConfiguration) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *JITConfiguration) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *JITConfiguration) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### GetSourceAttributeMappings + +`func (o *JITConfiguration) GetSourceAttributeMappings() map[string]string` + +GetSourceAttributeMappings returns the SourceAttributeMappings field if non-nil, zero value otherwise. + +### GetSourceAttributeMappingsOk + +`func (o *JITConfiguration) GetSourceAttributeMappingsOk() (*map[string]string, bool)` + +GetSourceAttributeMappingsOk returns a tuple with the SourceAttributeMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceAttributeMappings + +`func (o *JITConfiguration) SetSourceAttributeMappings(v map[string]string)` + +SetSourceAttributeMappings sets SourceAttributeMappings field to given value. + +### HasSourceAttributeMappings + +`func (o *JITConfiguration) HasSourceAttributeMappings() bool` + +HasSourceAttributeMappings returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/LockoutConfiguration.md b/docs/tools/sdk/go/Reference/V2024/Models/LockoutConfiguration.md new file mode 100644 index 000000000..b4235f88f --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/LockoutConfiguration.md @@ -0,0 +1,116 @@ +--- +id: v2024-lockout-configuration +title: LockoutConfiguration +pagination_label: LockoutConfiguration +sidebar_label: LockoutConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'LockoutConfiguration', 'V2024LockoutConfiguration'] +slug: /tools/sdk/go/v2024/models/lockout-configuration +tags: ['SDK', 'Software Development Kit', 'LockoutConfiguration', 'V2024LockoutConfiguration'] +--- + +# LockoutConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaximumAttempts** | Pointer to **int32** | The maximum attempts allowed before lockout occurs. | [optional] +**LockoutDuration** | Pointer to **int32** | The total time in minutes a user will be locked out. | [optional] +**LockoutWindow** | Pointer to **int32** | A rolling window where authentication attempts in a series count towards the maximum before lockout occurs. | [optional] + +## Methods + +### NewLockoutConfiguration + +`func NewLockoutConfiguration() *LockoutConfiguration` + +NewLockoutConfiguration instantiates a new LockoutConfiguration 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 + +### NewLockoutConfigurationWithDefaults + +`func NewLockoutConfigurationWithDefaults() *LockoutConfiguration` + +NewLockoutConfigurationWithDefaults instantiates a new LockoutConfiguration 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 + +### GetMaximumAttempts + +`func (o *LockoutConfiguration) GetMaximumAttempts() int32` + +GetMaximumAttempts returns the MaximumAttempts field if non-nil, zero value otherwise. + +### GetMaximumAttemptsOk + +`func (o *LockoutConfiguration) GetMaximumAttemptsOk() (*int32, bool)` + +GetMaximumAttemptsOk returns a tuple with the MaximumAttempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumAttempts + +`func (o *LockoutConfiguration) SetMaximumAttempts(v int32)` + +SetMaximumAttempts sets MaximumAttempts field to given value. + +### HasMaximumAttempts + +`func (o *LockoutConfiguration) HasMaximumAttempts() bool` + +HasMaximumAttempts returns a boolean if a field has been set. + +### GetLockoutDuration + +`func (o *LockoutConfiguration) GetLockoutDuration() int32` + +GetLockoutDuration returns the LockoutDuration field if non-nil, zero value otherwise. + +### GetLockoutDurationOk + +`func (o *LockoutConfiguration) GetLockoutDurationOk() (*int32, bool)` + +GetLockoutDurationOk returns a tuple with the LockoutDuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockoutDuration + +`func (o *LockoutConfiguration) SetLockoutDuration(v int32)` + +SetLockoutDuration sets LockoutDuration field to given value. + +### HasLockoutDuration + +`func (o *LockoutConfiguration) HasLockoutDuration() bool` + +HasLockoutDuration returns a boolean if a field has been set. + +### GetLockoutWindow + +`func (o *LockoutConfiguration) GetLockoutWindow() int32` + +GetLockoutWindow returns the LockoutWindow field if non-nil, zero value otherwise. + +### GetLockoutWindowOk + +`func (o *LockoutConfiguration) GetLockoutWindowOk() (*int32, bool)` + +GetLockoutWindowOk returns a tuple with the LockoutWindow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockoutWindow + +`func (o *LockoutConfiguration) SetLockoutWindow(v int32)` + +SetLockoutWindow sets LockoutWindow field to given value. + +### HasLockoutWindow + +`func (o *LockoutConfiguration) HasLockoutWindow() bool` + +HasLockoutWindow returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/MachineClassificationConfig.md b/docs/tools/sdk/go/Reference/V2024/Models/MachineClassificationConfig.md new file mode 100644 index 000000000..61e376e5d --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/MachineClassificationConfig.md @@ -0,0 +1,188 @@ +--- +id: v2024-machine-classification-config +title: MachineClassificationConfig +pagination_label: MachineClassificationConfig +sidebar_label: MachineClassificationConfig +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'MachineClassificationConfig', 'V2024MachineClassificationConfig'] +slug: /tools/sdk/go/v2024/models/machine-classification-config +tags: ['SDK', 'Software Development Kit', 'MachineClassificationConfig', 'V2024MachineClassificationConfig'] +--- + +# MachineClassificationConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | Indicates if the Classification is enabled for a Source | [optional] [default to false] +**ClassificationMethod** | Pointer to **string** | Classification Method | [optional] +**Criteria** | Pointer to **NullableString** | A classification criteria object | [optional] +**Created** | Pointer to **SailPointTime** | Time when the config was created | [optional] +**Modified** | Pointer to **NullableTime** | Time when the config was last updated | [optional] + +## Methods + +### NewMachineClassificationConfig + +`func NewMachineClassificationConfig() *MachineClassificationConfig` + +NewMachineClassificationConfig instantiates a new MachineClassificationConfig 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 + +### NewMachineClassificationConfigWithDefaults + +`func NewMachineClassificationConfigWithDefaults() *MachineClassificationConfig` + +NewMachineClassificationConfigWithDefaults instantiates a new MachineClassificationConfig 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 + +### GetEnabled + +`func (o *MachineClassificationConfig) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *MachineClassificationConfig) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *MachineClassificationConfig) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *MachineClassificationConfig) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetClassificationMethod + +`func (o *MachineClassificationConfig) GetClassificationMethod() string` + +GetClassificationMethod returns the ClassificationMethod field if non-nil, zero value otherwise. + +### GetClassificationMethodOk + +`func (o *MachineClassificationConfig) GetClassificationMethodOk() (*string, bool)` + +GetClassificationMethodOk returns a tuple with the ClassificationMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassificationMethod + +`func (o *MachineClassificationConfig) SetClassificationMethod(v string)` + +SetClassificationMethod sets ClassificationMethod field to given value. + +### HasClassificationMethod + +`func (o *MachineClassificationConfig) HasClassificationMethod() bool` + +HasClassificationMethod returns a boolean if a field has been set. + +### GetCriteria + +`func (o *MachineClassificationConfig) GetCriteria() string` + +GetCriteria returns the Criteria field if non-nil, zero value otherwise. + +### GetCriteriaOk + +`func (o *MachineClassificationConfig) GetCriteriaOk() (*string, bool)` + +GetCriteriaOk returns a tuple with the Criteria field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCriteria + +`func (o *MachineClassificationConfig) SetCriteria(v string)` + +SetCriteria sets Criteria field to given value. + +### HasCriteria + +`func (o *MachineClassificationConfig) HasCriteria() bool` + +HasCriteria returns a boolean if a field has been set. + +### SetCriteriaNil + +`func (o *MachineClassificationConfig) SetCriteriaNil(b bool)` + + SetCriteriaNil sets the value for Criteria to be an explicit nil + +### UnsetCriteria +`func (o *MachineClassificationConfig) UnsetCriteria()` + +UnsetCriteria ensures that no value is present for Criteria, not even an explicit nil +### GetCreated + +`func (o *MachineClassificationConfig) GetCreated() SailPointTime` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *MachineClassificationConfig) GetCreatedOk() (*SailPointTime, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *MachineClassificationConfig) SetCreated(v SailPointTime)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *MachineClassificationConfig) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### GetModified + +`func (o *MachineClassificationConfig) GetModified() SailPointTime` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *MachineClassificationConfig) GetModifiedOk() (*SailPointTime, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *MachineClassificationConfig) SetModified(v SailPointTime)` + +SetModified sets Modified field to given value. + +### HasModified + +`func (o *MachineClassificationConfig) HasModified() bool` + +HasModified returns a boolean if a field has been set. + +### SetModifiedNil + +`func (o *MachineClassificationConfig) SetModifiedNil(b bool)` + + SetModifiedNil sets the value for Modified to be an explicit nil + +### UnsetModified +`func (o *MachineClassificationConfig) UnsetModified()` + +UnsetModified ensures that no value is present for Modified, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/PatchServiceDeskIntegrationRequest.md b/docs/tools/sdk/go/Reference/V2024/Models/PatchServiceDeskIntegrationRequest.md deleted file mode 100644 index 03fba8d4f..000000000 --- a/docs/tools/sdk/go/Reference/V2024/Models/PatchServiceDeskIntegrationRequest.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -id: v2024-patch-service-desk-integration-request -title: PatchServiceDeskIntegrationRequest -pagination_label: PatchServiceDeskIntegrationRequest -sidebar_label: PatchServiceDeskIntegrationRequest -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'PatchServiceDeskIntegrationRequest', 'V2024PatchServiceDeskIntegrationRequest'] -slug: /tools/sdk/go/v2024/models/patch-service-desk-integration-request -tags: ['SDK', 'Software Development Kit', 'PatchServiceDeskIntegrationRequest', 'V2024PatchServiceDeskIntegrationRequest'] ---- - -# PatchServiceDeskIntegrationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Operations** | Pointer to [**[]JsonPatchOperation**](json-patch-operation) | Operations to be applied | [optional] - -## Methods - -### NewPatchServiceDeskIntegrationRequest - -`func NewPatchServiceDeskIntegrationRequest() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequest instantiates a new PatchServiceDeskIntegrationRequest 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 - -### NewPatchServiceDeskIntegrationRequestWithDefaults - -`func NewPatchServiceDeskIntegrationRequestWithDefaults() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequestWithDefaults instantiates a new PatchServiceDeskIntegrationRequest 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 - -### GetOperations - -`func (o *PatchServiceDeskIntegrationRequest) GetOperations() []JsonPatchOperation` - -GetOperations returns the Operations field if non-nil, zero value otherwise. - -### GetOperationsOk - -`func (o *PatchServiceDeskIntegrationRequest) GetOperationsOk() (*[]JsonPatchOperation, bool)` - -GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOperations - -`func (o *PatchServiceDeskIntegrationRequest) SetOperations(v []JsonPatchOperation)` - -SetOperations sets Operations field to given value. - -### HasOperations - -`func (o *PatchServiceDeskIntegrationRequest) HasOperations() bool` - -HasOperations returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicy.md b/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicy.md index 39a9ddb7c..9f7376b6f 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicy.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicy.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningPolicy', 'V2024Provisioni Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | the provisioning policy name | +**Name** | **NullableString** | the provisioning policy name | **Description** | Pointer to **string** | the description of the provisioning policy | [optional] **UsageType** | Pointer to [**UsageType**](usage-type) | | [optional] **Fields** | Pointer to [**[]FieldDetailsDto**](field-details-dto) | | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewProvisioningPolicy -`func NewProvisioningPolicy(name string, ) *ProvisioningPolicy` +`func NewProvisioningPolicy(name NullableString, ) *ProvisioningPolicy` NewProvisioningPolicy instantiates a new ProvisioningPolicy object This constructor will assign default values to properties that have it defined, @@ -59,6 +59,16 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### SetNameNil + +`func (o *ProvisioningPolicy) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ProvisioningPolicy) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDescription `func (o *ProvisioningPolicy) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicyDto.md b/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicyDto.md index 39a5b6084..bce520db9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicyDto.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/ProvisioningPolicyDto.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningPolicyDto', 'V2024Provisi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | the provisioning policy name | +**Name** | **NullableString** | the provisioning policy name | **Description** | Pointer to **string** | the description of the provisioning policy | [optional] **UsageType** | Pointer to [**UsageType**](usage-type) | | [optional] **Fields** | Pointer to [**[]FieldDetailsDto**](field-details-dto) | | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewProvisioningPolicyDto -`func NewProvisioningPolicyDto(name string, ) *ProvisioningPolicyDto` +`func NewProvisioningPolicyDto(name NullableString, ) *ProvisioningPolicyDto` NewProvisioningPolicyDto instantiates a new ProvisioningPolicyDto object This constructor will assign default values to properties that have it defined, @@ -59,6 +59,16 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### SetNameNil + +`func (o *ProvisioningPolicyDto) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ProvisioningPolicyDto) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDescription `func (o *ProvisioningPolicyDto) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/V2024/Models/RequestedForDtoRef.md b/docs/tools/sdk/go/Reference/V2024/Models/RequestedForDtoRef.md new file mode 100644 index 000000000..ea9b275fc --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/RequestedForDtoRef.md @@ -0,0 +1,80 @@ +--- +id: v2024-requested-for-dto-ref +title: RequestedForDtoRef +pagination_label: RequestedForDtoRef +sidebar_label: RequestedForDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedForDtoRef', 'V2024RequestedForDtoRef'] +slug: /tools/sdk/go/v2024/models/requested-for-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedForDtoRef', 'V2024RequestedForDtoRef'] +--- + +# RequestedForDtoRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IdentityId** | **string** | The identity id for which the access is requested | +**RequestedItems** | [**[]RequestedItemDtoRef**](requested-item-dto-ref) | the details for the access items that are requested for the identity | + +## Methods + +### NewRequestedForDtoRef + +`func NewRequestedForDtoRef(identityId string, requestedItems []RequestedItemDtoRef, ) *RequestedForDtoRef` + +NewRequestedForDtoRef instantiates a new RequestedForDtoRef 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 + +### NewRequestedForDtoRefWithDefaults + +`func NewRequestedForDtoRefWithDefaults() *RequestedForDtoRef` + +NewRequestedForDtoRefWithDefaults instantiates a new RequestedForDtoRef 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 + +### GetIdentityId + +`func (o *RequestedForDtoRef) GetIdentityId() string` + +GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. + +### GetIdentityIdOk + +`func (o *RequestedForDtoRef) GetIdentityIdOk() (*string, bool)` + +GetIdentityIdOk returns a tuple with the IdentityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityId + +`func (o *RequestedForDtoRef) SetIdentityId(v string)` + +SetIdentityId sets IdentityId field to given value. + + +### GetRequestedItems + +`func (o *RequestedForDtoRef) GetRequestedItems() []RequestedItemDtoRef` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`func (o *RequestedForDtoRef) GetRequestedItemsOk() (*[]RequestedItemDtoRef, 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 *RequestedForDtoRef) SetRequestedItems(v []RequestedItemDtoRef)` + +SetRequestedItems sets RequestedItems field to given value. + + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemAccountSelections.md b/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemAccountSelections.md new file mode 100644 index 000000000..e9aec56b2 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemAccountSelections.md @@ -0,0 +1,230 @@ +--- +id: v2024-requested-item-account-selections +title: RequestedItemAccountSelections +pagination_label: RequestedItemAccountSelections +sidebar_label: RequestedItemAccountSelections +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedItemAccountSelections', 'V2024RequestedItemAccountSelections'] +slug: /tools/sdk/go/v2024/models/requested-item-account-selections +tags: ['SDK', 'Software Development Kit', 'RequestedItemAccountSelections', 'V2024RequestedItemAccountSelections'] +--- + +# RequestedItemAccountSelections + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | The description for this requested item | [optional] +**AccountsSelectionBlocked** | Pointer to **bool** | This field indicates if account selections are not allowed for this requested item. * If true, this field indicates that account selections will not be available for this item and user combination. In this case, no account selections should be provided in the access request for this item and user combination, irrespective of whether the user has single or multiple accounts on a source. * An example is where a user is requesting an access profile that is already assigned to one of their accounts. | [optional] [default to false] +**AccountsSelectionBlockedReason** | Pointer to **NullableString** | If account selections are not allowed for an item, this field will denote the reason. | [optional] +**Type** | Pointer to **string** | The type of the item being requested. | [optional] +**Id** | Pointer to **string** | The id of the requested item | [optional] +**Name** | Pointer to **string** | The name of the requested item | [optional] +**Sources** | Pointer to [**[]SourceAccountSelections**](source-account-selections) | The details for the sources and accounts for the requested item and identity combination | [optional] + +## Methods + +### NewRequestedItemAccountSelections + +`func NewRequestedItemAccountSelections() *RequestedItemAccountSelections` + +NewRequestedItemAccountSelections instantiates a new RequestedItemAccountSelections 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 + +### NewRequestedItemAccountSelectionsWithDefaults + +`func NewRequestedItemAccountSelectionsWithDefaults() *RequestedItemAccountSelections` + +NewRequestedItemAccountSelectionsWithDefaults instantiates a new RequestedItemAccountSelections 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 + +### GetDescription + +`func (o *RequestedItemAccountSelections) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RequestedItemAccountSelections) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RequestedItemAccountSelections) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RequestedItemAccountSelections) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetAccountsSelectionBlocked + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlocked() bool` + +GetAccountsSelectionBlocked returns the AccountsSelectionBlocked field if non-nil, zero value otherwise. + +### GetAccountsSelectionBlockedOk + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlockedOk() (*bool, bool)` + +GetAccountsSelectionBlockedOk returns a tuple with the AccountsSelectionBlocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountsSelectionBlocked + +`func (o *RequestedItemAccountSelections) SetAccountsSelectionBlocked(v bool)` + +SetAccountsSelectionBlocked sets AccountsSelectionBlocked field to given value. + +### HasAccountsSelectionBlocked + +`func (o *RequestedItemAccountSelections) HasAccountsSelectionBlocked() bool` + +HasAccountsSelectionBlocked returns a boolean if a field has been set. + +### GetAccountsSelectionBlockedReason + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlockedReason() string` + +GetAccountsSelectionBlockedReason returns the AccountsSelectionBlockedReason field if non-nil, zero value otherwise. + +### GetAccountsSelectionBlockedReasonOk + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlockedReasonOk() (*string, bool)` + +GetAccountsSelectionBlockedReasonOk returns a tuple with the AccountsSelectionBlockedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountsSelectionBlockedReason + +`func (o *RequestedItemAccountSelections) SetAccountsSelectionBlockedReason(v string)` + +SetAccountsSelectionBlockedReason sets AccountsSelectionBlockedReason field to given value. + +### HasAccountsSelectionBlockedReason + +`func (o *RequestedItemAccountSelections) HasAccountsSelectionBlockedReason() bool` + +HasAccountsSelectionBlockedReason returns a boolean if a field has been set. + +### SetAccountsSelectionBlockedReasonNil + +`func (o *RequestedItemAccountSelections) SetAccountsSelectionBlockedReasonNil(b bool)` + + SetAccountsSelectionBlockedReasonNil sets the value for AccountsSelectionBlockedReason to be an explicit nil + +### UnsetAccountsSelectionBlockedReason +`func (o *RequestedItemAccountSelections) UnsetAccountsSelectionBlockedReason()` + +UnsetAccountsSelectionBlockedReason ensures that no value is present for AccountsSelectionBlockedReason, not even an explicit nil +### GetType + +`func (o *RequestedItemAccountSelections) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RequestedItemAccountSelections) 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 *RequestedItemAccountSelections) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RequestedItemAccountSelections) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *RequestedItemAccountSelections) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RequestedItemAccountSelections) 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 *RequestedItemAccountSelections) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RequestedItemAccountSelections) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *RequestedItemAccountSelections) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RequestedItemAccountSelections) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RequestedItemAccountSelections) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RequestedItemAccountSelections) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSources + +`func (o *RequestedItemAccountSelections) GetSources() []SourceAccountSelections` + +GetSources returns the Sources field if non-nil, zero value otherwise. + +### GetSourcesOk + +`func (o *RequestedItemAccountSelections) GetSourcesOk() (*[]SourceAccountSelections, bool)` + +GetSourcesOk returns a tuple with the Sources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSources + +`func (o *RequestedItemAccountSelections) SetSources(v []SourceAccountSelections)` + +SetSources sets Sources field to given value. + +### HasSources + +`func (o *RequestedItemAccountSelections) HasSources() bool` + +HasSources 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 new file mode 100644 index 000000000..d3013c808 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemDtoRef.md @@ -0,0 +1,266 @@ +--- +id: v2024-requested-item-dto-ref +title: RequestedItemDtoRef +pagination_label: RequestedItemDtoRef +sidebar_label: RequestedItemDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedItemDtoRef', 'V2024RequestedItemDtoRef'] +slug: /tools/sdk/go/v2024/models/requested-item-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedItemDtoRef', 'V2024RequestedItemDtoRef'] +--- + +# RequestedItemDtoRef + +## 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] +**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 + +### NewRequestedItemDtoRef + +`func NewRequestedItemDtoRef(type_ string, id string, ) *RequestedItemDtoRef` + +NewRequestedItemDtoRef instantiates a new RequestedItemDtoRef 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 + +### NewRequestedItemDtoRefWithDefaults + +`func NewRequestedItemDtoRefWithDefaults() *RequestedItemDtoRef` + +NewRequestedItemDtoRefWithDefaults instantiates a new RequestedItemDtoRef 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 *RequestedItemDtoRef) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *RequestedItemDtoRef) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetId(v string)` + +SetId sets Id field to given value. + + +### GetComment + +`func (o *RequestedItemDtoRef) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *RequestedItemDtoRef) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetClientMetadata + +`func (o *RequestedItemDtoRef) GetClientMetadata() map[string]string` + +GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. + +### GetClientMetadataOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetClientMetadata(v map[string]string)` + +SetClientMetadata sets ClientMetadata field to given value. + +### HasClientMetadata + +`func (o *RequestedItemDtoRef) HasClientMetadata() bool` + +HasClientMetadata returns a boolean if a field has been set. + +### GetRemoveDate + +`func (o *RequestedItemDtoRef) GetRemoveDate() SailPointTime` + +GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. + +### GetRemoveDateOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetRemoveDate(v SailPointTime)` + +SetRemoveDate sets RemoveDate field to given value. + +### HasRemoveDate + +`func (o *RequestedItemDtoRef) HasRemoveDate() bool` + +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` + +GetAccountSelection returns the AccountSelection field if non-nil, zero value otherwise. + +### GetAccountSelectionOk + +`func (o *RequestedItemDtoRef) GetAccountSelectionOk() (*[]SourceItemRef, bool)` + +GetAccountSelectionOk returns a tuple with the AccountSelection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountSelection + +`func (o *RequestedItemDtoRef) SetAccountSelection(v []SourceItemRef)` + +SetAccountSelection sets AccountSelection field to given value. + +### HasAccountSelection + +`func (o *RequestedItemDtoRef) HasAccountSelection() bool` + +HasAccountSelection returns a boolean if a field has been set. + +### SetAccountSelectionNil + +`func (o *RequestedItemDtoRef) SetAccountSelectionNil(b bool)` + + SetAccountSelectionNil sets the value for AccountSelection to be an explicit nil + +### UnsetAccountSelection +`func (o *RequestedItemDtoRef) UnsetAccountSelection()` + +UnsetAccountSelection ensures that no value is present for AccountSelection, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/ScheduledAttributes.md b/docs/tools/sdk/go/Reference/V2024/Models/ScheduledAttributes.md deleted file mode 100644 index ad6fa2411..000000000 --- a/docs/tools/sdk/go/Reference/V2024/Models/ScheduledAttributes.md +++ /dev/null @@ -1,249 +0,0 @@ ---- -id: v2024-scheduled-attributes -title: ScheduledAttributes -pagination_label: ScheduledAttributes -sidebar_label: ScheduledAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ScheduledAttributes', 'V2024ScheduledAttributes'] -slug: /tools/sdk/go/v2024/models/scheduled-attributes -tags: ['SDK', 'Software Development Kit', 'ScheduledAttributes', 'V2024ScheduledAttributes'] ---- - -# ScheduledAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewScheduledAttributes - -`func NewScheduledAttributes(frequency NullableString, ) *ScheduledAttributes` - -NewScheduledAttributes instantiates a new ScheduledAttributes 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 - -### NewScheduledAttributesWithDefaults - -`func NewScheduledAttributesWithDefaults() *ScheduledAttributes` - -NewScheduledAttributesWithDefaults instantiates a new ScheduledAttributes 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 - -### GetFrequency - -`func (o *ScheduledAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *ScheduledAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *ScheduledAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *ScheduledAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *ScheduledAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *ScheduledAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *ScheduledAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *ScheduledAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *ScheduledAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *ScheduledAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *ScheduledAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *ScheduledAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *ScheduledAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *ScheduledAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *ScheduledAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *ScheduledAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *ScheduledAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *ScheduledAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *ScheduledAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *ScheduledAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *ScheduledAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *ScheduledAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *ScheduledAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *ScheduledAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *ScheduledAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *ScheduledAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *ScheduledAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *ScheduledAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *ScheduledAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *ScheduledAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *ScheduledAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *ScheduledAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *ScheduledAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *ScheduledAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *ScheduledAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2024/Models/SendClassifyMachineAccount200Response.md b/docs/tools/sdk/go/Reference/V2024/Models/SendClassifyMachineAccount200Response.md new file mode 100644 index 000000000..ae471669f --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/SendClassifyMachineAccount200Response.md @@ -0,0 +1,64 @@ +--- +id: v2024-send-classify-machine-account200-response +title: SendClassifyMachineAccount200Response +pagination_label: SendClassifyMachineAccount200Response +sidebar_label: SendClassifyMachineAccount200Response +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SendClassifyMachineAccount200Response', 'V2024SendClassifyMachineAccount200Response'] +slug: /tools/sdk/go/v2024/models/send-classify-machine-account200-response +tags: ['SDK', 'Software Development Kit', 'SendClassifyMachineAccount200Response', 'V2024SendClassifyMachineAccount200Response'] +--- + +# SendClassifyMachineAccount200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsMachine** | Pointer to **bool** | Indicates if account is classified as machine | [optional] [default to false] + +## Methods + +### NewSendClassifyMachineAccount200Response + +`func NewSendClassifyMachineAccount200Response() *SendClassifyMachineAccount200Response` + +NewSendClassifyMachineAccount200Response instantiates a new SendClassifyMachineAccount200Response 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 + +### NewSendClassifyMachineAccount200ResponseWithDefaults + +`func NewSendClassifyMachineAccount200ResponseWithDefaults() *SendClassifyMachineAccount200Response` + +NewSendClassifyMachineAccount200ResponseWithDefaults instantiates a new SendClassifyMachineAccount200Response 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 + +### GetIsMachine + +`func (o *SendClassifyMachineAccount200Response) GetIsMachine() bool` + +GetIsMachine returns the IsMachine field if non-nil, zero value otherwise. + +### GetIsMachineOk + +`func (o *SendClassifyMachineAccount200Response) GetIsMachineOk() (*bool, bool)` + +GetIsMachineOk returns a tuple with the IsMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMachine + +`func (o *SendClassifyMachineAccount200Response) SetIsMachine(v bool)` + +SetIsMachine sets IsMachine field to given value. + +### HasIsMachine + +`func (o *SendClassifyMachineAccount200Response) HasIsMachine() bool` + +HasIsMachine returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/ServiceProviderConfiguration.md b/docs/tools/sdk/go/Reference/V2024/Models/ServiceProviderConfiguration.md new file mode 100644 index 000000000..4ff66b868 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/ServiceProviderConfiguration.md @@ -0,0 +1,142 @@ +--- +id: v2024-service-provider-configuration +title: ServiceProviderConfiguration +pagination_label: ServiceProviderConfiguration +sidebar_label: ServiceProviderConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'ServiceProviderConfiguration', 'V2024ServiceProviderConfiguration'] +slug: /tools/sdk/go/v2024/models/service-provider-configuration +tags: ['SDK', 'Software Development Kit', 'ServiceProviderConfiguration', 'V2024ServiceProviderConfiguration'] +--- + +# ServiceProviderConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | This determines whether or not the SAML authentication flow is enabled for an org | [optional] [default to false] +**BypassIdp** | Pointer to **bool** | This allows basic login with the parameter prompt=true. This is often toggled on when debugging SAML authentication setup. When false, only org admins with MFA-enabled can bypass the IDP. | [optional] [default to false] +**SamlConfigurationValid** | Pointer to **bool** | This indicates whether or not the SAML configuration is valid. | [optional] [default to false] +**FederationProtocolDetails** | Pointer to [**[]ServiceProviderConfigurationFederationProtocolDetailsInner**](service-provider-configuration-federation-protocol-details-inner) | A list of the abstract implementations of the Federation Protocol details. Typically, this will include on SpDetails object and one IdpDetails object used in tandem to define a SAML integration between a customer's identity provider and a customer's SailPoint instance (i.e., the service provider). | [optional] + +## Methods + +### NewServiceProviderConfiguration + +`func NewServiceProviderConfiguration() *ServiceProviderConfiguration` + +NewServiceProviderConfiguration instantiates a new ServiceProviderConfiguration 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 + +### NewServiceProviderConfigurationWithDefaults + +`func NewServiceProviderConfigurationWithDefaults() *ServiceProviderConfiguration` + +NewServiceProviderConfigurationWithDefaults instantiates a new ServiceProviderConfiguration 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 + +### GetEnabled + +`func (o *ServiceProviderConfiguration) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ServiceProviderConfiguration) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *ServiceProviderConfiguration) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ServiceProviderConfiguration) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetBypassIdp + +`func (o *ServiceProviderConfiguration) GetBypassIdp() bool` + +GetBypassIdp returns the BypassIdp field if non-nil, zero value otherwise. + +### GetBypassIdpOk + +`func (o *ServiceProviderConfiguration) GetBypassIdpOk() (*bool, bool)` + +GetBypassIdpOk returns a tuple with the BypassIdp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBypassIdp + +`func (o *ServiceProviderConfiguration) SetBypassIdp(v bool)` + +SetBypassIdp sets BypassIdp field to given value. + +### HasBypassIdp + +`func (o *ServiceProviderConfiguration) HasBypassIdp() bool` + +HasBypassIdp returns a boolean if a field has been set. + +### GetSamlConfigurationValid + +`func (o *ServiceProviderConfiguration) GetSamlConfigurationValid() bool` + +GetSamlConfigurationValid returns the SamlConfigurationValid field if non-nil, zero value otherwise. + +### GetSamlConfigurationValidOk + +`func (o *ServiceProviderConfiguration) GetSamlConfigurationValidOk() (*bool, bool)` + +GetSamlConfigurationValidOk returns a tuple with the SamlConfigurationValid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlConfigurationValid + +`func (o *ServiceProviderConfiguration) SetSamlConfigurationValid(v bool)` + +SetSamlConfigurationValid sets SamlConfigurationValid field to given value. + +### HasSamlConfigurationValid + +`func (o *ServiceProviderConfiguration) HasSamlConfigurationValid() bool` + +HasSamlConfigurationValid returns a boolean if a field has been set. + +### GetFederationProtocolDetails + +`func (o *ServiceProviderConfiguration) GetFederationProtocolDetails() []ServiceProviderConfigurationFederationProtocolDetailsInner` + +GetFederationProtocolDetails returns the FederationProtocolDetails field if non-nil, zero value otherwise. + +### GetFederationProtocolDetailsOk + +`func (o *ServiceProviderConfiguration) GetFederationProtocolDetailsOk() (*[]ServiceProviderConfigurationFederationProtocolDetailsInner, bool)` + +GetFederationProtocolDetailsOk returns a tuple with the FederationProtocolDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederationProtocolDetails + +`func (o *ServiceProviderConfiguration) SetFederationProtocolDetails(v []ServiceProviderConfigurationFederationProtocolDetailsInner)` + +SetFederationProtocolDetails sets FederationProtocolDetails field to given value. + +### HasFederationProtocolDetails + +`func (o *ServiceProviderConfiguration) HasFederationProtocolDetails() bool` + +HasFederationProtocolDetails returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md b/docs/tools/sdk/go/Reference/V2024/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md new file mode 100644 index 000000000..337a03f77 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md @@ -0,0 +1,470 @@ +--- +id: v2024-service-provider-configuration-federation-protocol-details-inner +title: ServiceProviderConfigurationFederationProtocolDetailsInner +pagination_label: ServiceProviderConfigurationFederationProtocolDetailsInner +sidebar_label: ServiceProviderConfigurationFederationProtocolDetailsInner +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'ServiceProviderConfigurationFederationProtocolDetailsInner', 'V2024ServiceProviderConfigurationFederationProtocolDetailsInner'] +slug: /tools/sdk/go/v2024/models/service-provider-configuration-federation-protocol-details-inner +tags: ['SDK', 'Software Development Kit', 'ServiceProviderConfigurationFederationProtocolDetailsInner', 'V2024ServiceProviderConfigurationFederationProtocolDetailsInner'] +--- + +# ServiceProviderConfigurationFederationProtocolDetailsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] +**Binding** | Pointer to **string** | Defines the binding used for the SAML flow. Used with IDP configurations. | [optional] +**AuthnContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] +**LogoutUrl** | Pointer to **string** | The IDP logout URL. Used with IDP configurations. | [optional] +**IncludeAuthnContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] +**NameId** | Pointer to **string** | The name id format to use. Used with IDP configurations. | [optional] +**JitConfiguration** | Pointer to [**JITConfiguration**](jit-configuration) | | [optional] +**Cert** | Pointer to **string** | The Base64-encoded certificate used by the IDP. Used with IDP configurations. | [optional] +**LoginUrlPost** | Pointer to **string** | The IDP POST URL, used with IDP HTTP-POST bindings for IDP-initiated logins. Used with IDP configurations. | [optional] +**LoginUrlRedirect** | Pointer to **string** | The IDP Redirect URL. Used with IDP configurations. | [optional] +**MappingAttribute** | **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | +**CertificateExpirationDate** | Pointer to **string** | The expiration date extracted from the certificate. | [optional] +**CertificateName** | Pointer to **string** | The name extracted from the certificate. | [optional] +**Alias** | Pointer to **string** | Unique alias used to identify the selected local service provider based on used URL. Used with SP configurations. | [optional] +**CallbackUrl** | **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | +**LegacyAcsUrl** | Pointer to **string** | The legacy ACS URL used for SAML authentication. Used with SP configurations. | [optional] + +## Methods + +### NewServiceProviderConfigurationFederationProtocolDetailsInner + +`func NewServiceProviderConfigurationFederationProtocolDetailsInner(mappingAttribute string, callbackUrl string, ) *ServiceProviderConfigurationFederationProtocolDetailsInner` + +NewServiceProviderConfigurationFederationProtocolDetailsInner instantiates a new ServiceProviderConfigurationFederationProtocolDetailsInner 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 + +### NewServiceProviderConfigurationFederationProtocolDetailsInnerWithDefaults + +`func NewServiceProviderConfigurationFederationProtocolDetailsInnerWithDefaults() *ServiceProviderConfigurationFederationProtocolDetailsInner` + +NewServiceProviderConfigurationFederationProtocolDetailsInnerWithDefaults instantiates a new ServiceProviderConfigurationFederationProtocolDetailsInner 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 + +### GetRole + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### GetBinding + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetBinding() string` + +GetBinding returns the Binding field if non-nil, zero value otherwise. + +### GetBindingOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetBindingOk() (*string, bool)` + +GetBindingOk returns a tuple with the Binding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinding + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetBinding(v string)` + +SetBinding sets Binding field to given value. + +### HasBinding + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasBinding() bool` + +HasBinding returns a boolean if a field has been set. + +### GetAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthnContext() string` + +GetAuthnContext returns the AuthnContext field if non-nil, zero value otherwise. + +### GetAuthnContextOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthnContextOk() (*string, bool)` + +GetAuthnContextOk returns a tuple with the AuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetAuthnContext(v string)` + +SetAuthnContext sets AuthnContext field to given value. + +### HasAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasAuthnContext() bool` + +HasAuthnContext returns a boolean if a field has been set. + +### GetLogoutUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLogoutUrl() string` + +GetLogoutUrl returns the LogoutUrl field if non-nil, zero value otherwise. + +### GetLogoutUrlOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLogoutUrlOk() (*string, bool)` + +GetLogoutUrlOk returns a tuple with the LogoutUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogoutUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLogoutUrl(v string)` + +SetLogoutUrl sets LogoutUrl field to given value. + +### HasLogoutUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLogoutUrl() bool` + +HasLogoutUrl returns a boolean if a field has been set. + +### GetIncludeAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthnContext() bool` + +GetIncludeAuthnContext returns the IncludeAuthnContext field if non-nil, zero value otherwise. + +### GetIncludeAuthnContextOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthnContextOk() (*bool, bool)` + +GetIncludeAuthnContextOk returns a tuple with the IncludeAuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetIncludeAuthnContext(v bool)` + +SetIncludeAuthnContext sets IncludeAuthnContext field to given value. + +### HasIncludeAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasIncludeAuthnContext() bool` + +HasIncludeAuthnContext returns a boolean if a field has been set. + +### GetNameId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetNameId() string` + +GetNameId returns the NameId field if non-nil, zero value otherwise. + +### GetNameIdOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetNameIdOk() (*string, bool)` + +GetNameIdOk returns a tuple with the NameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNameId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetNameId(v string)` + +SetNameId sets NameId field to given value. + +### HasNameId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasNameId() bool` + +HasNameId returns a boolean if a field has been set. + +### GetJitConfiguration + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetJitConfiguration() JITConfiguration` + +GetJitConfiguration returns the JitConfiguration field if non-nil, zero value otherwise. + +### GetJitConfigurationOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetJitConfigurationOk() (*JITConfiguration, bool)` + +GetJitConfigurationOk returns a tuple with the JitConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitConfiguration + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetJitConfiguration(v JITConfiguration)` + +SetJitConfiguration sets JitConfiguration field to given value. + +### HasJitConfiguration + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasJitConfiguration() bool` + +HasJitConfiguration returns a boolean if a field has been set. + +### GetCert + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCert() string` + +GetCert returns the Cert field if non-nil, zero value otherwise. + +### GetCertOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertOk() (*string, bool)` + +GetCertOk returns a tuple with the Cert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCert + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCert(v string)` + +SetCert sets Cert field to given value. + +### HasCert + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasCert() bool` + +HasCert returns a boolean if a field has been set. + +### GetLoginUrlPost + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlPost() string` + +GetLoginUrlPost returns the LoginUrlPost field if non-nil, zero value otherwise. + +### GetLoginUrlPostOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlPostOk() (*string, bool)` + +GetLoginUrlPostOk returns a tuple with the LoginUrlPost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlPost + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLoginUrlPost(v string)` + +SetLoginUrlPost sets LoginUrlPost field to given value. + +### HasLoginUrlPost + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLoginUrlPost() bool` + +HasLoginUrlPost returns a boolean if a field has been set. + +### GetLoginUrlRedirect + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlRedirect() string` + +GetLoginUrlRedirect returns the LoginUrlRedirect field if non-nil, zero value otherwise. + +### GetLoginUrlRedirectOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlRedirectOk() (*string, bool)` + +GetLoginUrlRedirectOk returns a tuple with the LoginUrlRedirect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlRedirect + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLoginUrlRedirect(v string)` + +SetLoginUrlRedirect sets LoginUrlRedirect field to given value. + +### HasLoginUrlRedirect + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLoginUrlRedirect() bool` + +HasLoginUrlRedirect returns a boolean if a field has been set. + +### GetMappingAttribute + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetMappingAttribute() string` + +GetMappingAttribute returns the MappingAttribute field if non-nil, zero value otherwise. + +### GetMappingAttributeOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetMappingAttributeOk() (*string, bool)` + +GetMappingAttributeOk returns a tuple with the MappingAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMappingAttribute + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetMappingAttribute(v string)` + +SetMappingAttribute sets MappingAttribute field to given value. + + +### GetCertificateExpirationDate + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateExpirationDate() string` + +GetCertificateExpirationDate returns the CertificateExpirationDate field if non-nil, zero value otherwise. + +### GetCertificateExpirationDateOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateExpirationDateOk() (*string, bool)` + +GetCertificateExpirationDateOk returns a tuple with the CertificateExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateExpirationDate + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCertificateExpirationDate(v string)` + +SetCertificateExpirationDate sets CertificateExpirationDate field to given value. + +### HasCertificateExpirationDate + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasCertificateExpirationDate() bool` + +HasCertificateExpirationDate returns a boolean if a field has been set. + +### GetCertificateName + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateName() string` + +GetCertificateName returns the CertificateName field if non-nil, zero value otherwise. + +### GetCertificateNameOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateNameOk() (*string, bool)` + +GetCertificateNameOk returns a tuple with the CertificateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateName + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCertificateName(v string)` + +SetCertificateName sets CertificateName field to given value. + +### HasCertificateName + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasCertificateName() bool` + +HasCertificateName returns a boolean if a field has been set. + +### GetAlias + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetCallbackUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCallbackUrl() string` + +GetCallbackUrl returns the CallbackUrl field if non-nil, zero value otherwise. + +### GetCallbackUrlOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCallbackUrlOk() (*string, bool)` + +GetCallbackUrlOk returns a tuple with the CallbackUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallbackUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCallbackUrl(v string)` + +SetCallbackUrl sets CallbackUrl field to given value. + + +### GetLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLegacyAcsUrl() string` + +GetLegacyAcsUrl returns the LegacyAcsUrl field if non-nil, zero value otherwise. + +### GetLegacyAcsUrlOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLegacyAcsUrlOk() (*string, bool)` + +GetLegacyAcsUrlOk returns a tuple with the LegacyAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLegacyAcsUrl(v string)` + +SetLegacyAcsUrl sets LegacyAcsUrl field to given value. + +### HasLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLegacyAcsUrl() bool` + +HasLegacyAcsUrl returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/SessionConfiguration.md b/docs/tools/sdk/go/Reference/V2024/Models/SessionConfiguration.md new file mode 100644 index 000000000..de7c991bd --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/SessionConfiguration.md @@ -0,0 +1,116 @@ +--- +id: v2024-session-configuration +title: SessionConfiguration +pagination_label: SessionConfiguration +sidebar_label: SessionConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SessionConfiguration', 'V2024SessionConfiguration'] +slug: /tools/sdk/go/v2024/models/session-configuration +tags: ['SDK', 'Software Development Kit', 'SessionConfiguration', 'V2024SessionConfiguration'] +--- + +# SessionConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxIdleTime** | Pointer to **int32** | The maximum time in minutes a session can be idle. | [optional] +**RememberMe** | Pointer to **bool** | Denotes if 'remember me' is enabled. | [optional] [default to false] +**MaxSessionTime** | Pointer to **int32** | The maximum allowable session time in minutes. | [optional] + +## Methods + +### NewSessionConfiguration + +`func NewSessionConfiguration() *SessionConfiguration` + +NewSessionConfiguration instantiates a new SessionConfiguration 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 + +### NewSessionConfigurationWithDefaults + +`func NewSessionConfigurationWithDefaults() *SessionConfiguration` + +NewSessionConfigurationWithDefaults instantiates a new SessionConfiguration 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 + +### GetMaxIdleTime + +`func (o *SessionConfiguration) GetMaxIdleTime() int32` + +GetMaxIdleTime returns the MaxIdleTime field if non-nil, zero value otherwise. + +### GetMaxIdleTimeOk + +`func (o *SessionConfiguration) GetMaxIdleTimeOk() (*int32, bool)` + +GetMaxIdleTimeOk returns a tuple with the MaxIdleTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxIdleTime + +`func (o *SessionConfiguration) SetMaxIdleTime(v int32)` + +SetMaxIdleTime sets MaxIdleTime field to given value. + +### HasMaxIdleTime + +`func (o *SessionConfiguration) HasMaxIdleTime() bool` + +HasMaxIdleTime returns a boolean if a field has been set. + +### GetRememberMe + +`func (o *SessionConfiguration) GetRememberMe() bool` + +GetRememberMe returns the RememberMe field if non-nil, zero value otherwise. + +### GetRememberMeOk + +`func (o *SessionConfiguration) GetRememberMeOk() (*bool, bool)` + +GetRememberMeOk returns a tuple with the RememberMe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRememberMe + +`func (o *SessionConfiguration) SetRememberMe(v bool)` + +SetRememberMe sets RememberMe field to given value. + +### HasRememberMe + +`func (o *SessionConfiguration) HasRememberMe() bool` + +HasRememberMe returns a boolean if a field has been set. + +### GetMaxSessionTime + +`func (o *SessionConfiguration) GetMaxSessionTime() int32` + +GetMaxSessionTime returns the MaxSessionTime field if non-nil, zero value otherwise. + +### GetMaxSessionTimeOk + +`func (o *SessionConfiguration) GetMaxSessionTimeOk() (*int32, bool)` + +GetMaxSessionTimeOk returns a tuple with the MaxSessionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxSessionTime + +`func (o *SessionConfiguration) SetMaxSessionTime(v int32)` + +SetMaxSessionTime sets MaxSessionTime field to given value. + +### HasMaxSessionTime + +`func (o *SessionConfiguration) HasMaxSessionTime() bool` + +HasMaxSessionTime returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/SourceAccountSelections.md b/docs/tools/sdk/go/Reference/V2024/Models/SourceAccountSelections.md new file mode 100644 index 000000000..307f17e90 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/SourceAccountSelections.md @@ -0,0 +1,142 @@ +--- +id: v2024-source-account-selections +title: SourceAccountSelections +pagination_label: SourceAccountSelections +sidebar_label: SourceAccountSelections +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SourceAccountSelections', 'V2024SourceAccountSelections'] +slug: /tools/sdk/go/v2024/models/source-account-selections +tags: ['SDK', 'Software Development Kit', 'SourceAccountSelections', 'V2024SourceAccountSelections'] +--- + +# SourceAccountSelections + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**DtoType**](dto-type) | | [optional] +**Id** | Pointer to **string** | The source id | [optional] +**Name** | Pointer to **string** | The source name | [optional] +**Accounts** | Pointer to [**[]AccountInfoRef**](account-info-ref) | The accounts information for a particular source in the requested item | [optional] + +## Methods + +### NewSourceAccountSelections + +`func NewSourceAccountSelections() *SourceAccountSelections` + +NewSourceAccountSelections instantiates a new SourceAccountSelections 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 + +### NewSourceAccountSelectionsWithDefaults + +`func NewSourceAccountSelectionsWithDefaults() *SourceAccountSelections` + +NewSourceAccountSelectionsWithDefaults instantiates a new SourceAccountSelections 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 *SourceAccountSelections) GetType() DtoType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SourceAccountSelections) GetTypeOk() (*DtoType, 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 *SourceAccountSelections) SetType(v DtoType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SourceAccountSelections) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *SourceAccountSelections) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SourceAccountSelections) 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 *SourceAccountSelections) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SourceAccountSelections) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SourceAccountSelections) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SourceAccountSelections) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SourceAccountSelections) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SourceAccountSelections) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccounts + +`func (o *SourceAccountSelections) GetAccounts() []AccountInfoRef` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *SourceAccountSelections) GetAccountsOk() (*[]AccountInfoRef, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *SourceAccountSelections) SetAccounts(v []AccountInfoRef)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *SourceAccountSelections) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/SourceItemRef.md b/docs/tools/sdk/go/Reference/V2024/Models/SourceItemRef.md new file mode 100644 index 000000000..64ed4c244 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/SourceItemRef.md @@ -0,0 +1,110 @@ +--- +id: v2024-source-item-ref +title: SourceItemRef +pagination_label: SourceItemRef +sidebar_label: SourceItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SourceItemRef', 'V2024SourceItemRef'] +slug: /tools/sdk/go/v2024/models/source-item-ref +tags: ['SDK', 'Software Development Kit', 'SourceItemRef', 'V2024SourceItemRef'] +--- + +# SourceItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SourceId** | Pointer to **NullableString** | The id for the source on which account selections are made | [optional] +**Accounts** | Pointer to [**[]AccountItemRef**](account-item-ref) | A list of account selections on the source. Currently, only one selection per source is supported. | [optional] + +## Methods + +### NewSourceItemRef + +`func NewSourceItemRef() *SourceItemRef` + +NewSourceItemRef instantiates a new SourceItemRef 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 + +### NewSourceItemRefWithDefaults + +`func NewSourceItemRefWithDefaults() *SourceItemRef` + +NewSourceItemRefWithDefaults instantiates a new SourceItemRef 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 + +### GetSourceId + +`func (o *SourceItemRef) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *SourceItemRef) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *SourceItemRef) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *SourceItemRef) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### SetSourceIdNil + +`func (o *SourceItemRef) SetSourceIdNil(b bool)` + + SetSourceIdNil sets the value for SourceId to be an explicit nil + +### UnsetSourceId +`func (o *SourceItemRef) UnsetSourceId()` + +UnsetSourceId ensures that no value is present for SourceId, not even an explicit nil +### GetAccounts + +`func (o *SourceItemRef) GetAccounts() []AccountItemRef` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *SourceItemRef) GetAccountsOk() (*[]AccountItemRef, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *SourceItemRef) SetAccounts(v []AccountItemRef)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *SourceItemRef) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + +### SetAccountsNil + +`func (o *SourceItemRef) SetAccountsNil(b bool)` + + SetAccountsNil sets the value for Accounts to be an explicit nil + +### UnsetAccounts +`func (o *SourceItemRef) UnsetAccounts()` + +UnsetAccounts ensures that no value is present for Accounts, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/SpDetails.md b/docs/tools/sdk/go/Reference/V2024/Models/SpDetails.md new file mode 100644 index 000000000..782a62d46 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/SpDetails.md @@ -0,0 +1,163 @@ +--- +id: v2024-sp-details +title: SpDetails +pagination_label: SpDetails +sidebar_label: SpDetails +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SpDetails', 'V2024SpDetails'] +slug: /tools/sdk/go/v2024/models/sp-details +tags: ['SDK', 'Software Development Kit', 'SpDetails', 'V2024SpDetails'] +--- + +# SpDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] +**Alias** | Pointer to **string** | Unique alias used to identify the selected local service provider based on used URL. Used with SP configurations. | [optional] +**CallbackUrl** | **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | +**LegacyAcsUrl** | Pointer to **string** | The legacy ACS URL used for SAML authentication. Used with SP configurations. | [optional] + +## Methods + +### NewSpDetails + +`func NewSpDetails(callbackUrl string, ) *SpDetails` + +NewSpDetails instantiates a new SpDetails 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 + +### NewSpDetailsWithDefaults + +`func NewSpDetailsWithDefaults() *SpDetails` + +NewSpDetailsWithDefaults instantiates a new SpDetails 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 + +### GetRole + +`func (o *SpDetails) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *SpDetails) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *SpDetails) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *SpDetails) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *SpDetails) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *SpDetails) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *SpDetails) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *SpDetails) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### GetAlias + +`func (o *SpDetails) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *SpDetails) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *SpDetails) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *SpDetails) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetCallbackUrl + +`func (o *SpDetails) GetCallbackUrl() string` + +GetCallbackUrl returns the CallbackUrl field if non-nil, zero value otherwise. + +### GetCallbackUrlOk + +`func (o *SpDetails) GetCallbackUrlOk() (*string, bool)` + +GetCallbackUrlOk returns a tuple with the CallbackUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallbackUrl + +`func (o *SpDetails) SetCallbackUrl(v string)` + +SetCallbackUrl sets CallbackUrl field to given value. + + +### GetLegacyAcsUrl + +`func (o *SpDetails) GetLegacyAcsUrl() string` + +GetLegacyAcsUrl returns the LegacyAcsUrl field if non-nil, zero value otherwise. + +### GetLegacyAcsUrlOk + +`func (o *SpDetails) GetLegacyAcsUrlOk() (*string, bool)` + +GetLegacyAcsUrlOk returns a tuple with the LegacyAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyAcsUrl + +`func (o *SpDetails) SetLegacyAcsUrl(v string)` + +SetLegacyAcsUrl sets LegacyAcsUrl field to given value. + +### HasLegacyAcsUrl + +`func (o *SpDetails) HasLegacyAcsUrl() bool` + +HasLegacyAcsUrl returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/WorkflowTrigger.md b/docs/tools/sdk/go/Reference/V2024/Models/WorkflowTrigger.md index 40fac9eca..df6e82af9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/WorkflowTrigger.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/WorkflowTrigger.md @@ -17,13 +17,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | The trigger type | **DisplayName** | Pointer to **NullableString** | | [optional] -**Attributes** | [**NullableWorkflowTriggerAttributes**](workflow-trigger-attributes) | | +**Attributes** | **map[string]interface{}** | Workflow Trigger Attributes. | ## Methods ### NewWorkflowTrigger -`func NewWorkflowTrigger(type_ string, attributes NullableWorkflowTriggerAttributes, ) *WorkflowTrigger` +`func NewWorkflowTrigger(type_ string, attributes map[string]interface{}, ) *WorkflowTrigger` NewWorkflowTrigger instantiates a new WorkflowTrigger object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ HasDisplayName returns a boolean if a field has been set. UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil ### GetAttributes -`func (o *WorkflowTrigger) GetAttributes() WorkflowTriggerAttributes` +`func (o *WorkflowTrigger) GetAttributes() map[string]interface{}` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *WorkflowTrigger) GetAttributesOk() (*WorkflowTriggerAttributes, bool)` +`func (o *WorkflowTrigger) GetAttributesOk() (*map[string]interface{}, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *WorkflowTrigger) SetAttributes(v WorkflowTriggerAttributes)` +`func (o *WorkflowTrigger) SetAttributes(v map[string]interface{})` SetAttributes sets Attributes field to given value. diff --git a/docs/tools/sdk/go/Reference/V2024/Models/WorkflowTriggerAttributes.md b/docs/tools/sdk/go/Reference/V2024/Models/WorkflowTriggerAttributes.md deleted file mode 100644 index 30808862c..000000000 --- a/docs/tools/sdk/go/Reference/V2024/Models/WorkflowTriggerAttributes.md +++ /dev/null @@ -1,532 +0,0 @@ ---- -id: v2024-workflow-trigger-attributes -title: WorkflowTriggerAttributes -pagination_label: WorkflowTriggerAttributes -sidebar_label: WorkflowTriggerAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'WorkflowTriggerAttributes', 'V2024WorkflowTriggerAttributes'] -slug: /tools/sdk/go/v2024/models/workflow-trigger-attributes -tags: ['SDK', 'Software Development Kit', 'WorkflowTriggerAttributes', 'V2024WorkflowTriggerAttributes'] ---- - -# WorkflowTriggerAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewWorkflowTriggerAttributes - -`func NewWorkflowTriggerAttributes(id NullableString, frequency NullableString, ) *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributes instantiates a new WorkflowTriggerAttributes 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 - -### NewWorkflowTriggerAttributesWithDefaults - -`func NewWorkflowTriggerAttributesWithDefaults() *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributesWithDefaults instantiates a new WorkflowTriggerAttributes 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 - -### GetId - -`func (o *WorkflowTriggerAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WorkflowTriggerAttributes) 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 *WorkflowTriggerAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *WorkflowTriggerAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *WorkflowTriggerAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *WorkflowTriggerAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *WorkflowTriggerAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *WorkflowTriggerAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *WorkflowTriggerAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *WorkflowTriggerAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *WorkflowTriggerAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *WorkflowTriggerAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *WorkflowTriggerAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *WorkflowTriggerAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *WorkflowTriggerAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *WorkflowTriggerAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *WorkflowTriggerAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *WorkflowTriggerAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *WorkflowTriggerAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *WorkflowTriggerAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *WorkflowTriggerAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil -### GetName - -`func (o *WorkflowTriggerAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *WorkflowTriggerAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *WorkflowTriggerAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *WorkflowTriggerAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *WorkflowTriggerAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *WorkflowTriggerAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetClientId - -`func (o *WorkflowTriggerAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *WorkflowTriggerAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *WorkflowTriggerAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *WorkflowTriggerAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *WorkflowTriggerAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *WorkflowTriggerAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *WorkflowTriggerAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *WorkflowTriggerAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *WorkflowTriggerAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *WorkflowTriggerAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *WorkflowTriggerAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *WorkflowTriggerAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil -### GetFrequency - -`func (o *WorkflowTriggerAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *WorkflowTriggerAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *WorkflowTriggerAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *WorkflowTriggerAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *WorkflowTriggerAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *WorkflowTriggerAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *WorkflowTriggerAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *WorkflowTriggerAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *WorkflowTriggerAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *WorkflowTriggerAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *WorkflowTriggerAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *WorkflowTriggerAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *WorkflowTriggerAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *WorkflowTriggerAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *WorkflowTriggerAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *WorkflowTriggerAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *WorkflowTriggerAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *WorkflowTriggerAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *WorkflowTriggerAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *WorkflowTriggerAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *WorkflowTriggerAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *WorkflowTriggerAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *WorkflowTriggerAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *WorkflowTriggerAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *WorkflowTriggerAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *WorkflowTriggerAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *WorkflowTriggerAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *WorkflowTriggerAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *WorkflowTriggerAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md index 30032c2d1..9a1168dcb 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md @@ -84,17 +84,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -161,18 +165,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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") + 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -233,17 +241,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + + + 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) @@ -308,17 +320,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md index 45669ffdc..a47380cd7 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md @@ -64,6 +64,7 @@ Create Access Profile Create an access profile. A user with `ROLE_SUBADMIN` or `SOURCE_SUBADMIN` authority must be associated with the access profile's source. The maximum supported length for the description field is 2000 characters. Longer descriptions will be preserved for existing access profiles. However, any new access profiles as well as any updates to existing descriptions are limited to 2000 characters. +>**Note:** To use this endpoint, you need all the listed scopes. [API Spec](https://developer.sailpoint.com/docs/api/v2025/create-access-profile) @@ -98,12 +99,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -188,11 +190,20 @@ func main() { "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + + var accessProfile v2025.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -249,16 +260,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to delete # string | ID of the Access Profile to delete + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + + + 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) @@ -309,19 +324,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + + var accessProfileBulkDeleteRequest v2025.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -374,16 +399,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180837ca6693d017ca8d097500149 # string | ID of the Access Profile # string | ID of the Access Profile + id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + + + 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) @@ -443,21 +472,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. - 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) - 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 := 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) + id := `2c91808a7813090a017814121919ecca` // string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -514,23 +547,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 8c190e6787aa4ed9a90bd9d5344523fb # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) - 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) - 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 "SailPoint Support" # string | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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* **created**: *gt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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, 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) - 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) + forSubadmin := `8c190e6787aa4ed9a90bd9d5344523fb` // string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) + 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) + 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 "SailPoint Support"` // string | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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* **created**: *gt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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, 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -613,17 +650,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to patch # string | ID of the Access Profile to patch - jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch + jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -690,17 +737,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) # []AccessProfileBulkUpdateRequestInner | + 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 := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() + + var accessProfileBulkUpdateRequestInner v2025.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(data, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md index 970ee6c18..d6adfa6fe 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md @@ -83,13 +83,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -97,11 +98,14 @@ func main() { "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. (optional) + }`) // CommentDto | Reviewer's comment. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + + 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) @@ -155,20 +159,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + + var forwardApprovalDto v2025.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -218,17 +232,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + + + 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) @@ -285,19 +303,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestId := 2c91808568c529c60168cca6f90c1313 # string | Access Request ID. # string | Access Request ID. - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) + accessRequestId := `2c91808568c529c60168cca6f90c1313` // string | Access Request ID. # string | Access Request ID. + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -351,21 +373,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 2c91808568c529c60168cca6f90c1313 # string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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) + ownerId := `2c91808568c529c60168cca6f90c1313` // string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -398,7 +424,7 @@ Name | Type | Description | Notes **limit** | **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. | [default to 250] **offset** | **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. | [default to 0] **count** | **bool** | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to false] - **filters** | **string** | Filter results using the standard syntax described in [V3 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* | + **filters** | **string** | Filter results using the standard syntax described in [V3 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* | **sorters** | **string** | Sort results using the standard syntax described 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** | ### Return type @@ -419,21 +445,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 2c91808568c529c60168cca6f90c1313 # string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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* (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* (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) + ownerId := `2c91808568c529c60168cca6f90c1313` // string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -487,13 +517,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -501,11 +532,20 @@ func main() { "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + var commentDto v2025.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md index d1f221e75..8fefc20cf 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md @@ -67,18 +67,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 7025c863-c270-4ba6-beea-edf3cb091573 # string | Manager's identity ID. # string | Manager's identity ID. - 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. + identityId := `7025c863-c270-4ba6-beea-edf3cb091573` // string | Manager's identity ID. # string | Manager's identity ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md index f39d7af34..af9d9b325 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md @@ -36,8 +36,10 @@ Method | HTTP request | Description [**close-access-request**](#close-access-request) | **Post** `/access-requests/close` | Close Access Request [**create-access-request**](#create-access-request) | **Post** `/access-requests` | Submit Access Request [**get-access-request-config**](#get-access-request-config) | **Get** `/access-request-config` | Get Access Request Configuration +[**get-entitlement-details-for-identity**](#get-entitlement-details-for-identity) | **Get** `/access-requests/revocable-objects` | Identity Entitlement Details [**list-access-request-status**](#list-access-request-status) | **Get** `/access-request-status` | Access Request Status [**list-administrators-access-request-status**](#list-administrators-access-request-status) | **Get** `/access-request-administration` | Access Request Status for Administrators +[**load-account-selections**](#load-account-selections) | **Post** `/access-requests/accounts-selection` | Get accounts selections for identity [**set-access-request-config**](#set-access-request-config) | **Put** `/access-request-config` | Update Access Request Configuration @@ -78,19 +80,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkApproveAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "I approve these request items", "approvalIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ] - }`) # BulkApproveAccessRequest | + }`) // BulkApproveAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() + + var bulkApproveAccessRequest v2025.BulkApproveAccessRequest + if err := json.Unmarshal(data, &bulkApproveAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,19 +152,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + + var cancelAccessRequest v2025.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -202,19 +224,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkCancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ], "comment" : "I requested this role by mistake." - }`) # BulkCancelAccessRequest | + }`) // BulkCancelAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() + + var bulkCancelAccessRequest v2025.BulkCancelAccessRequest + if err := json.Unmarshal(data, &bulkCancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -286,22 +318,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - closeAccessRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." - }`) # CloseAccessRequest | + }`) // CloseAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() + + var closeAccessRequest v2025.CloseAccessRequest + if err := json.Unmarshal(data, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -335,6 +377,7 @@ __GRANT_ACCESS__ * Allows any authenticated token (except API) to call this endpoint to request to grant access to themselves. Depending on the configuration, a user can request access for others. * Roles, access profiles and entitlements can be requested. * While requesting entitlements, maximum of 25 entitlements and 10 recipients are allowed in a request. +* Now supports an alternate field 'requestedForWithRequestedItems' for users to specify account selections while requesting items where they have more than one account on the source. __REVOKE_ACCESS__ * Can only be requested for a single identity at a time. @@ -345,6 +388,7 @@ __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. [API Spec](https://developer.sailpoint.com/docs/api/v2025/create-access-request) @@ -380,13 +424,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ - "requestedFor" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210584" ], + data := []byte(`{ + "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", "requestedAppName" : "test-app" @@ -437,12 +482,148 @@ func main() { "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" + } ], + "requestedForWithRequestedItems" : [ { + "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] + }, { + "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + + var accessRequest v2025.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -487,15 +668,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + + + 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) @@ -507,6 +692,88 @@ func main() { [[Back to top]](#) +## get-entitlement-details-for-identity +:::warning experimental +This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to `true` to use this endpoint. +::: +:::tip setting x-sailpoint-experimental header + on the configuration object you can set the `x-sailpoint-experimental` header to `true' to enable all experimantl endpoints within the SDK. + Example: + ```go + configuration = Configuration() + configuration.experimental = True + ``` +::: +Identity Entitlement Details +Use this API to return the details for a entitlement on an identity including specific data relating to remove date and the ability to revoke the identity. + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/get-entitlement-details-for-identity) + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**identityId** | **string** | The identity ID. | +**entitlementId** | **string** | The entitlement ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEntitlementDetailsForIdentityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xSailPointExperimental** | **string** | Use this header to enable this experimental API. | [default to "true"] + + + +### Return type + +[**IdentityEntitlementDetails**](../models/identity-entitlement-details) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +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") + 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) + 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) +} +``` + +[[Back to top]](#) + ## list-access-request-status Access Request Status Use this API to return a list of access request statuses based on the specified query parameters. @@ -555,25 +822,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assignedTo := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) - filters := accountActivityItemId eq "2c918086771c86df0177401efcdf54c0" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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) + requestedFor := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assignedTo := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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) + filters := `accountActivityItemId eq "2c918086771c86df0177401efcdf54c0"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -632,25 +903,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assignedTo := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) - filters := accountActivityItemId eq "2c918086771c86df0177401efcdf54c0" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **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) + requestedFor := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assignedTo := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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) + filters := `accountActivityItemId eq "2c918086771c86df0177401efcdf54c0"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -662,6 +937,140 @@ func main() { [[Back to top]](#) +## load-account-selections +Get accounts selections for identity +Use this API to fetch account information for an identity against the items in an access request. + +Used to fetch accountSelection for the AccessRequest prior to submitting for async processing. + + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/load-account-selections) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiLoadAccountSelectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountsSelectionRequest** | [**AccountsSelectionRequest**](../models/accounts-selection-request) | | + +### Return type + +[**AccountsSelectionResponse**](../models/accounts-selection-response) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + data := []byte(`{ + "requestedFor" : "2c918084660f45d6016617daa9210584", + "clientMetadata" : { + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", + "requestedAppName" : "test-app" + }, + "requestType" : "GRANT_ACCESS", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] + }`) // AccountsSelectionRequest | + + + var accountsSelectionRequest v2025.AccountsSelectionRequest + if err := json.Unmarshal(data, &accountsSelectionRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + ## set-access-request-config Update Access Request Configuration This endpoint replaces the current access-request configuration. @@ -699,12 +1108,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -722,18 +1132,34 @@ func main() { }, "autoApprovalEnabled" : true, "entitlementRequestConfig" : { - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + + var accessRequestConfig v2025.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md index 0d48a821c..ec206aaae 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md @@ -93,16 +93,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account activity id # string | The account activity id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + + + 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) @@ -158,23 +162,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c91808568c529c60168cca6f90c1313 # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c91808568c529c60168cca6f90c1313 # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c91808568c529c60168cca6f90c1313 # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - 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) - 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 "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) + requestedFor := `2c91808568c529c60168cca6f90c1313` // string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c91808568c529c60168cca6f90c1313` // string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c91808568c529c60168cca6f90c1313` // string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md index 5e008ef95..10526cff3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md @@ -88,17 +88,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md index 5c5eb27c9..505b73c3b 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md @@ -66,20 +66,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountId := ef38f94347e94562b5bb8424a56397d8 # string | ID of IDN account # string | ID of IDN account - 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) - 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) + accountId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of IDN account # string | ID of IDN account + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md index 292baabc0..2c9ac48aa 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md @@ -108,12 +108,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -122,11 +123,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + + var accountAttributesCreate v2025.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -182,16 +192,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + + + 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) @@ -262,17 +276,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -326,20 +344,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest v2025.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -404,17 +432,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -475,19 +507,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + + var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -541,20 +583,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest v2025.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -619,17 +671,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -690,19 +746,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + + var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -755,16 +821,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.GetAccount(context.Background(), id).Execute() + + + 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) @@ -820,19 +890,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - 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) - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -886,21 +960,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - detailLevel := FULL # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) - 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) + 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) + 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) + detailLevel := `FULL` // string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -959,13 +1037,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -973,11 +1052,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + + var accountAttributes v2025.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1030,16 +1118,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + + + 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) @@ -1094,21 +1186,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + + var accountUnlockRequest v2025.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1172,17 +1274,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - requestBody := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + requestBody := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md index 82793f41d..0f05c52ad 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md @@ -64,20 +64,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - detail := FULL # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) - 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) + 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) + detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + + + 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) @@ -125,15 +129,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + + + 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) @@ -183,16 +191,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md index 2daae67e4..1404587f5 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md @@ -75,17 +75,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -149,19 +153,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - mine := true # bool | Returns the list of approvals for the current caller (optional) # bool | Returns the list of approvals for the current caller (optional) - 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) + 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") + mine := true // bool | Returns the list of approvals for the current caller (optional) # bool | Returns the list of approvals for the current caller (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md index 5f3fc627e..d529a3034 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md @@ -82,13 +82,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppCreateDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -97,11 +98,20 @@ func main() { "type" : "SOURCE" }, "matchAllAccounts" : true - }`) # SourceAppCreateDto | + }`) // SourceAppCreateDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() + + var sourceAppCreateDto v2025.SourceAppCreateDto + if err := json.Unmarshal(data, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -168,19 +178,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - requestBody := fmt.Sprintf(`[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) + 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") + requestBody := fmt.Sprintf(`[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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -245,17 +265,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -320,17 +344,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -398,20 +426,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -476,21 +508,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -555,20 +591,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* - 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") - 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) - 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() + + + 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) @@ -633,21 +673,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -714,19 +758,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the user app # string | ID of the user 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") - 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the user app # string | ID of the user 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() + + + 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) @@ -791,21 +839,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -869,20 +921,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() + + + 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) @@ -950,18 +1006,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the source app to patch # string | ID of the source app to patch - 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 := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the source app to patch # string | ID of the source app to patch + 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 := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -1028,18 +1088,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the user app to patch # string | ID of the user app to patch - 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 := fmt.Sprintf(``) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the user app to patch # string | ID of the user app to patch + 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 := fmt.Sprintf(``) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -1102,13 +1166,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppBulkUpdateRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -1119,11 +1184,14 @@ func main() { "path" : "/matchAllAccounts", "value" : false } ] - }`) # SourceAppBulkUpdateRequest | (optional) + }`) // SourceAppBulkUpdateRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md index d65d8b914..3d42d4ca3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md @@ -79,17 +79,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -149,16 +153,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -225,18 +233,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. - 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 := fmt.Sprintf(``) # []JsonPatchOperation | + id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. + 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 := fmt.Sprintf(``) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md index fc4f884a4..e57922e33 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md @@ -65,16 +65,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + + + 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) @@ -132,17 +136,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID - jsonPatchOperation := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md index 8117e7731..755af430d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md @@ -71,23 +71,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := name_example # string | name of branding item # string | name of branding item - productName := productName_example # string | product name # string | product name - actionButtonColor := actionButtonColor_example # string | hex value of color for action button (optional) # string | hex value of color for action button (optional) - activeLinkColor := activeLinkColor_example # string | hex value of color for link (optional) # string | hex value of color for link (optional) - navigationColor := navigationColor_example # string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) - emailFromAddress := emailFromAddress_example # string | email from address (optional) # string | email from address (optional) - 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) + name := `name_example` // string | name of branding item # string | name of branding item + productName := `productName_example` // string | product name # string | product name + actionButtonColor := `actionButtonColor_example` // string | hex value of color for action button (optional) # string | hex value of color for action button (optional) + activeLinkColor := `activeLinkColor_example` // string | hex value of color for link (optional) # string | hex value of color for link (optional) + navigationColor := `navigationColor_example` // string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) + emailFromAddress := `emailFromAddress_example` // string | email from address (optional) # string | email from address (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -140,16 +144,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be deleted # string | The name of the branding item to be deleted + name := `default` // string | The name of the branding item to be deleted # string | The name of the branding item to be deleted - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + + + 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) @@ -200,16 +208,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved + name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.BrandingAPI.GetBranding(context.Background(), name).Execute() + + + 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) @@ -254,15 +266,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.BrandingAPI.GetBrandingList(context.Background()).Execute() + + + 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) @@ -323,24 +339,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - name2 := name_example # string | name of branding item # string | name of branding item - productName := productName_example # string | product name # string | product name - actionButtonColor := actionButtonColor_example # string | hex value of color for action button (optional) # string | hex value of color for action button (optional) - activeLinkColor := activeLinkColor_example # string | hex value of color for link (optional) # string | hex value of color for link (optional) - navigationColor := navigationColor_example # string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) - emailFromAddress := emailFromAddress_example # string | email from address (optional) # string | email from address (optional) - 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) + name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved + name2 := `name_example` // string | name of branding item # string | name of branding item + productName := `productName_example` // string | product name # string | product name + actionButtonColor := `actionButtonColor_example` // string | hex value of color for action button (optional) # string | hex value of color for action button (optional) + activeLinkColor := `activeLinkColor_example` // string | hex value of color for link (optional) # string | hex value of color for link (optional) + navigationColor := `navigationColor_example` // string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) + emailFromAddress := `emailFromAddress_example` // string | email from address (optional) # string | email from address (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md index 975dc045e..81def8d9a 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md @@ -86,12 +86,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -108,11 +109,20 @@ func main() { "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | + }`) // CampaignFilterDetails | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() + + var campaignFilterDetails v2025.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | A json list of IDs of campaign filters to delete. + requestBody := fmt.Sprintf(``) // []string | A json list of IDs of campaign filters to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -221,16 +241,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e9f9a1397b842fd5a65842087040d3ac # string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. + id := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() + + + 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) @@ -281,18 +305,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() + + + 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) @@ -346,13 +374,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filterId := e9f9a1397b842fd5a65842087040d3ac # string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. - campaignFilterDetails := fmt.Sprintf(`{ + filterId := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -369,11 +398,20 @@ func main() { "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | A campaign filter details with updated field values. + }`) // CampaignFilterDetails | A campaign filter details with updated field values. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() + + var campaignFilterDetails v2025.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md index 5216e8c36..ed0a2c741 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md @@ -156,19 +156,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - campaignCompleteOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() + + + 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) @@ -218,12 +222,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -332,11 +337,20 @@ func main() { "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + + var campaign v2025.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -386,13 +400,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -516,11 +531,20 @@ func main() { "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + + var campaignTemplate v2025.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -574,16 +598,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -635,16 +663,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -692,18 +724,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignsDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # CampaignsDeleteRequest | IDs of the campaigns to delete. + }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() + + var campaignsDeleteRequest v2025.CampaignsDeleteRequest + if err := json.Unmarshal(data, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -758,21 +800,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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) - 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) - 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 "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) + 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) + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -811,7 +857,7 @@ Name | Type | Description | Notes ### Return type -[**GetActiveCampaigns200ResponseInner**](../models/get-active-campaigns200-response-inner) +[**GetCampaign200Response**](../models/get-campaign200-response) ### HTTP request headers @@ -827,22 +873,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() + + + 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`: GetActiveCampaigns200ResponseInner + // response from `GetCampaign`: GetCampaign200Response fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) } ``` @@ -891,16 +941,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + + + 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) @@ -946,15 +1000,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + + + 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) @@ -1008,16 +1066,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Requested campaign template's ID. # string | Requested campaign template's ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1071,16 +1133,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -1136,20 +1202,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 # string | Sort results using the standard syntax described 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) + 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) + 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` // string | Sort results using the standard syntax described 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1204,24 +1274,34 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + + var adminReviewReassign v2025.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1276,17 +1356,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being modified. # string | ID of the campaign template being modified. - jsonPatchOperation := fmt.Sprintf(`[{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) + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. + jsonPatchOperation := fmt.Sprintf(`[{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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1336,18 +1426,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + + var campaignReportsConfig v2025.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1402,13 +1502,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 04bedce387bd47b2ae1f86eb0bb36dee # string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -1427,11 +1528,14 @@ func main() { }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + + + 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) @@ -1484,19 +1588,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "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) + }`) // 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + + + 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) @@ -1550,16 +1658,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + + + 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) @@ -1615,17 +1727,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + + + 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) @@ -1689,16 +1805,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1753,17 +1873,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign template being modified. # string | ID of the campaign template being modified. - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md index 8c83ccd1a..2489edda0 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md @@ -83,22 +83,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - type_ := ACCESS_PROFILE # string | The type of access review item to retrieve summaries for # string | The type of access review item to retrieve summaries for - 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) - 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 := 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + type_ := `ACCESS_PROFILE` // string | The type of access review item to retrieve summaries for # string | The type of access review item to retrieve summaries for + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -152,17 +156,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() + + + 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) @@ -220,21 +228,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - 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) - 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 := 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -289,17 +301,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md index 6dfe7abfa..30b9110a2 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md @@ -92,16 +92,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 63b32151-26c0-42f4-9299-8898dc1c9daa # string | The task ID # string | The task ID + id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + + + 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) @@ -154,16 +158,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification id # string | The certification id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + + + 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) @@ -222,21 +230,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - certificationId := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - itemId := 2c91808671bcbab40171bd945d961227 # string | The certification item ID # string | The certification item ID - filters := target eq "SYS.OBJAUTH2" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) - 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) - 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) + certificationId := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + itemId := `2c91808671bcbab40171bd945d961227` // string | The certification item ID # string | The certification item ID + filters := `target eq "SYS.OBJAUTH2"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -289,20 +301,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reviewerIdentity := Ada.1de82e55078344 # string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) - 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) - 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) + reviewerIdentity := `Ada.1de82e55078344` // string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -360,21 +376,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - 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) - 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 "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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -435,24 +455,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - 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) - 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 := 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **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: **id**: *eq, in* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) - sorters := access.name,-accessProfile.sourceName # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) - entitlements := identityEntitlement # string | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** 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 entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + 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) + 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 := `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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **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: **id**: *eq, in* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) + sorters := `access.name,-accessProfile.sourceName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) + entitlements := `identityEntitlement` // string | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** 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 entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -506,21 +530,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reviewerIdentity := me # string | Reviewer's identity. *me* indicates the current user. (optional) # string | Reviewer's identity. *me* indicates the current user. (optional) - 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) - 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 := 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) + reviewerIdentity := `me` // string | Reviewer's identity. *me* indicates the current user. (optional) # string | Reviewer's identity. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -574,17 +602,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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. + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() + + var reviewDecision v2025.ReviewDecision + if err := json.Unmarshal(data, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -638,13 +676,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -654,11 +693,20 @@ func main() { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() + + var reviewReassign v2025.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -711,16 +759,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + + + 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) @@ -779,13 +831,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -795,11 +848,20 @@ func main() { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + + var reviewReassign v2025.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md index a99196c29..566b37755 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md @@ -85,18 +85,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deployRequest := fmt.Sprintf(`{ + data := []byte(`{ "draftId" : "3d0fe04b-57df-4a46-a83b-8f04b0f9d10b" - }`) # DeployRequest | The deploy request body. + }`) // DeployRequest | The deploy request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() + + var deployRequest v2025.DeployRequest + if err := json.Unmarshal(data, &deployRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -153,23 +163,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" - }`) # ObjectMappingRequest | The object mapping request body. + }`) // ObjectMappingRequest | The object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() + + var objectMappingRequest v2025.ObjectMappingRequest + if err := json.Unmarshal(data, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -226,13 +246,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingBulkCreateRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -246,11 +267,20 @@ func main() { "enabled" : false, "objectType" : "IDENTITY" } ] - }`) # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() + + var objectMappingBulkCreateRequest v2025.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(data, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -299,13 +329,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionPayload := fmt.Sprintf(`{ - "cronString" : "0 0 12 * * ?", + data := []byte(`{ + "cronString" : "0 0 * * * *", "timeZoneId" : "America/Chicago", "startTime" : "2024-08-16T14:16:58.389Z", "jobType" : "BACKUP", @@ -326,11 +357,20 @@ func main() { }, "sourceBackupId" : "5678b87d-48ca-439a-868f-2160001da8c2" } - }`) # ScheduledActionPayload | The scheduled action creation request body. + }`) // ScheduledActionPayload | The scheduled action creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() + + var scheduledActionPayload v2025.ScheduledActionPayload + if err := json.Unmarshal(data, &scheduledActionPayload); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -384,17 +424,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() + + + 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) @@ -451,16 +495,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 07659d7d-2cce-47c0-9e49-185787ee565a # string | The id of the backup to delete. # string | The id of the backup to delete. + id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the backup to delete. # string | The id of the backup to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() + + + 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) @@ -515,16 +563,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 07659d7d-2cce-47c0-9e49-185787ee565a # string | The id of the draft to delete. # string | The id of the draft to delete. + id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the draft to delete. # string | The id of the draft to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() + + + 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) @@ -580,17 +632,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + + + 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) @@ -641,16 +697,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionId := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | The ID of the scheduled action. # string | The ID of the scheduled action. + scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() + + + 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) @@ -705,16 +765,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the uploaded configuration. # string | The id of the uploaded configuration. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() + + + 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) @@ -765,16 +829,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the deploy. # string | The id of the deploy. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the deploy. # string | The id of the deploy. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() + + + 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) @@ -830,16 +898,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + + + 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) @@ -892,16 +964,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the uploaded configuration. # string | The id of the uploaded configuration. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() + + + 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) @@ -950,16 +1026,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() + + + 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) @@ -1004,15 +1084,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() + + + 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) @@ -1061,16 +1145,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() + + + 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) @@ -1115,15 +1203,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() + + + 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) @@ -1172,16 +1264,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() + + + 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) @@ -1238,13 +1334,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingBulkPatchRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -1257,11 +1354,20 @@ func main() { "value" : "New Target Value" } ] } - }`) # ObjectMappingBulkPatchRequest | The object mapping request body. + }`) // ObjectMappingBulkPatchRequest | The object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() + + var objectMappingBulkPatchRequest v2025.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(data, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1315,13 +1421,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionId := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | The ID of the scheduled action. # string | The ID of the scheduled action. - jsonPatch := fmt.Sprintf(`{ + scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -1331,11 +1438,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. + }`) // JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md index 85207072d..86a63f006 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md @@ -63,18 +63,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorCustomizerCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerCreateRequest | Connector customizer to create. + }`) // ConnectorCustomizerCreateRequest | Connector customizer to create. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() + + var connectorCustomizerCreateRequest v2025.ConnectorCustomizerCreateRequest + if err := json.Unmarshal(data, &connectorCustomizerCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -127,16 +137,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | The id of the connector customizer. # string | The id of the connector customizer. + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | The id of the connector customizer. # string | The id of the connector customizer. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() + + + 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) @@ -189,16 +203,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | ID of the connector customizer to delete. # string | ID of the connector customizer to delete. + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to delete. # string | ID of the connector customizer to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() + + + 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) @@ -249,16 +267,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | ID of the connector customizer to get. # string | ID of the connector customizer to get. + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to get. # string | ID of the connector customizer to get. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() + + + 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) @@ -308,17 +330,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() + + + 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) @@ -372,19 +398,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := b07dc46a-1498-4de8-bfbb-259a68e70c8a # string | ID of the connector customizer to update. # string | ID of the connector customizer to update. - connectorCustomizerUpdateRequest := fmt.Sprintf(`{ + id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to update. # string | ID of the connector customizer to update. + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md index 937a06e6f..98c1fa16c 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md @@ -67,12 +67,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorRuleCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -97,11 +98,20 @@ func main() { "description" : "This rule does that", "attributes" : { }, "type" : "BuildMap" - }`) # ConnectorRuleCreateRequest | Connector rule to create. + }`) // ConnectorRuleCreateRequest | Connector rule to create. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() + + var connectorRuleCreateRequest v2025.ConnectorRuleCreateRequest + if err := json.Unmarshal(data, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -154,16 +164,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to delete. # string | ID of the connector rule to delete. + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to delete. # string | ID of the connector rule to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + + + 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) @@ -214,16 +228,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to get. # string | ID of the connector rule to get. + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to get. # string | ID of the connector rule to get. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + + + 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) @@ -274,18 +292,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -339,13 +361,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | ID of the connector rule to update. # string | ID of the connector rule to update. - connectorRuleUpdateRequest := fmt.Sprintf(`{ + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to update. # string | ID of the connector rule to update. + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -371,11 +394,14 @@ func main() { "attributes" : { }, "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" - }`) # ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() + + + 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) @@ -424,19 +450,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceCode := fmt.Sprintf(`{ + data := []byte(`{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" - }`) # SourceCode | Code to validate. + }`) // SourceCode | Code to validate. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() + + var sourceCode v2025.SourceCode + if err := json.Unmarshal(data, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md index 9a001c5bf..4f01162db 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md @@ -81,22 +81,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - v3CreateConnectorDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" - }`) # V3CreateConnectorDto | + }`) // V3CreateConnectorDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() + + var v3CreateConnectorDto v2025.V3CreateConnectorDto + if err := json.Unmarshal(data, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -149,16 +159,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + + + 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) @@ -210,17 +224,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() + + + 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) @@ -273,16 +291,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() + + + 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) @@ -335,20 +357,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := directConnect 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) - 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) - 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) + filters := `directConnect 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + + + 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) @@ -401,16 +427,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + + + 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) @@ -463,16 +493,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + + + 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) @@ -527,17 +561,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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\" + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + + + 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) @@ -591,17 +629,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -655,17 +697,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -719,17 +765,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -784,17 +834,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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\" + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() + + + 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) @@ -860,17 +914,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []JsonPatchOperation | A list of connector detail update operations + 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 := fmt.Sprintf(``) // []JsonPatchOperation | A list of connector detail update operations - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md index f7250f9eb..084ebe9d3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md @@ -80,12 +80,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -195,11 +196,14 @@ func main() { }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() + + + 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) @@ -248,12 +252,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -261,11 +266,14 @@ func main() { "id" : "00000000-0000-0000-0000-000000000000", "type" : "action", "versionNumber" : 1 - }`) # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() + + + 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) @@ -319,17 +327,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() + + + 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) @@ -378,12 +390,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "formInput" : { "input1" : "Sales" }, @@ -403,11 +416,14 @@ func main() { "formDefinitionId" : "00000000-0000-0000-0000-000000000000", "state" : "ASSIGNED", "ttl" : 1571827560 - }`) # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() + + + 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) @@ -460,16 +476,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + + + 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) @@ -521,19 +541,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := 0 # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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") + offset := 0 // int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -588,17 +612,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + + + 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) @@ -651,16 +679,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + + + 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) @@ -713,16 +745,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + + + 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) @@ -777,17 +813,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + + + 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) @@ -836,16 +876,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`[{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) + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() + + + 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) @@ -899,17 +943,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID - body := fmt.Sprintf(`[{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) + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() + + + 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) @@ -963,17 +1011,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID - body := fmt.Sprintf(`[{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) + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + body := fmt.Sprintf(`[{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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() + + + 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) @@ -1025,19 +1077,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := 250 # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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") + offset := 250 // int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int64 | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -1096,20 +1152,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formInstanceID := 00000000-0000-0000-0000-000000000000 # string | Form instance ID # string | Form instance ID - formElementID := 1 # string | Form element ID # string | Form element ID - limit := 250 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - 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) + formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + formElementID := `1` // string | Form element ID # string | Form element ID + limit := 250 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() + + + 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) @@ -1154,15 +1214,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + + + 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) @@ -1207,15 +1271,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + + + 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) @@ -1272,16 +1340,17 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - formDefinitionID := 00000000-0000-0000-0000-000000000000 # string | Form definition ID # string | Form definition ID - limit := 10 # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) - 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 := ac # 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) - formElementPreviewRequest := fmt.Sprintf(`{ + formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + limit := 10 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) + 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 := `ac` // 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) + data := []byte(`{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -1291,11 +1360,14 @@ func main() { }, "dataSourceType" : "STATIC" } - }`) # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md index 2114e8789..1473c7db6 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md @@ -80,21 +80,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - customPasswordInstruction := fmt.Sprintf(`{ + 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") + data := []byte(`{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" - }`) # CustomPasswordInstruction | + }`) // CustomPasswordInstruction | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() + + var customPasswordInstruction v2025.CustomPasswordInstruction + if err := json.Unmarshal(data, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -160,18 +170,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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) + pageId := `mfa:select` // string | The page ID of custom password instructions to delete. # string | The page ID of custom password instructions 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + + + 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) @@ -235,18 +249,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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) + pageId := `mfa:select` // string | The page ID of custom password instructions to query. # string | The page ID of custom password instructions to query. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md index adf3905bd..85b236a7c 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md @@ -65,16 +65,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - dataSegment := fmt.Sprintf(``) # DataSegment | + data := []byte(``) // DataSegment | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() + + var dataSegment v2025.DataSegment + if err := json.Unmarshal(data, &dataSegment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,18 +150,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The segment ID to delete. # string | The segment ID 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") - 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) + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The segment ID to delete. # string | The segment ID 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() + + + 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) @@ -214,17 +228,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -289,17 +307,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -364,17 +386,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -441,23 +467,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - enabled := true # bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) # bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) - unique := false # bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) # bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) - published := true # bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) # bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) - 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) - 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) + 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") + enabled := true // bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) # bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to true) + unique := false // bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) # bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to false) + published := true // bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) # bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to true) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -523,18 +553,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The segment ID to modify. # string | The segment ID to modify. - 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 := fmt.Sprintf(`[{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 + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. + 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 := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -596,18 +636,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []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) + 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 := fmt.Sprintf(``) // []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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md index 1464af880..956da660e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md @@ -71,13 +71,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleId := 6603fba3004f43c687610a29195252ce # string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. - dimension := fmt.Sprintf(`{ + roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -163,11 +164,20 @@ func main() { "type" : "STANDARD" }, "parentId" : "2c918086749d78830174a1a40e121518" - }`) # Dimension | + }`) // Dimension | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() + + var dimension v2025.Dimension + if err := json.Unmarshal(data, &dimension); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -224,19 +234,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleId := 6603fba3004f43c687610a29195252ce # string | Parent Role Id of the dimensions. # string | Parent Role Id of the dimensions. - dimensionBulkDeleteRequest := fmt.Sprintf(`{ + roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimensions. # string | Parent Role Id of the dimensions. + data := []byte(`{ "dimensionIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # DimensionBulkDeleteRequest | + }`) // DimensionBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() + + var dimensionBulkDeleteRequest v2025.DimensionBulkDeleteRequest + if err := json.Unmarshal(data, &dimensionBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -292,17 +312,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() + + + 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) @@ -357,17 +381,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() + + + 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) @@ -429,22 +457,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) - 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 := 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) + 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 + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -506,22 +538,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) - 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 := 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) + 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 + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -582,22 +618,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleId := 6603fba3004f43c687610a29195252ce # string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - 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) + roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -657,18 +697,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) # []JsonPatchOperation | + 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 + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md index 57a652336..7d84e36cf 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md @@ -135,19 +135,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The entitlement id. # string | The entitlement id. - 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. - 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 := `2c91808c74ff913f0175097daa9d59cd` // string | The entitlement id. # string | The entitlement id. + 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -216,19 +220,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The entitlement id. # string | The entitlement id. - 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. - 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 := `2c91808c74ff913f0175097daa9d59cd` // string | The entitlement id. # string | The entitlement id. + 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -291,17 +299,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -366,17 +378,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -449,18 +465,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Source Id # string | 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") - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id # string | 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() + + + 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) @@ -530,22 +550,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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: **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) + 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") + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -615,22 +639,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # 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") - 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) - 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: **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) + id := `2c91808c74ff913f0175097daa9d59cd` // 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") + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -703,25 +731,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - accountId := ef38f94347e94562b5bb8424a56397d8 # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) - segmentedForIdentity := me # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) - forSegmentIds := 041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649 # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) - includeUnsegmented := true # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) - 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) - 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: **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) + 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") + accountId := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) # string | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) + segmentedForIdentity := `me` // string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # string | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) + forSegmentIds := `041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649` // string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # string | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) + includeUnsegmented := true // bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Entitlements. If **for-segment-ids** and **segmented-for-identity** are both absent or empty, specifying **include-unsegmented=false** results in an error. (optional) (default to true) + 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) + 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -791,18 +823,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the entitlement to patch # string | ID of the entitlement to patch - 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 := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) # []JsonPatchOperation | (optional) + id := `2c91808a7813090a017814121e121518` // string | ID of the entitlement to patch # string | ID of the entitlement to patch + 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 := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -868,23 +904,40 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # 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") - entitlementRequestConfig := fmt.Sprintf(`{ - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" - }`) # EntitlementRequestConfig | + id := `2c91808a7813090a017814121e121518` // 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") + data := []byte(`{ + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } + }`) // EntitlementRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() + + var entitlementRequestConfig v2025.EntitlementRequestConfig + if err := json.Unmarshal(data, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -950,17 +1003,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1027,13 +1084,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - entitlementBulkUpdateRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -1044,11 +1102,20 @@ func main() { "path" : "/requestable", "value" : false } ] - }`) # EntitlementBulkUpdateRequest | + }`) // EntitlementBulkUpdateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() + + var entitlementBulkUpdateRequest v2025.EntitlementBulkUpdateRequest + if err := json.Unmarshal(data, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md index a13320efc..d31e5dabe 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md @@ -19,8 +19,14 @@ All URIs are relative to *https://sailpoint.api.identitynow.com/v2025* Method | HTTP request | Description ------------- | ------------- | ------------- [**create-auth-org-network-config**](#create-auth-org-network-config) | **Post** `/auth-org/network-config` | Create security network configuration. +[**get-auth-org-lockout-config**](#get-auth-org-lockout-config) | **Get** `/auth-org/lockout-config` | Get Auth Org Lockout Configuration. [**get-auth-org-network-config**](#get-auth-org-network-config) | **Get** `/auth-org/network-config` | Get security network configuration. +[**get-auth-org-service-provider-config**](#get-auth-org-service-provider-config) | **Get** `/auth-org/service-provider-config` | Get Service Provider Configuration. +[**get-auth-org-session-config**](#get-auth-org-session-config) | **Get** `/auth-org/session-config` | Get Auth Org Session Configuration. +[**patch-auth-org-lockout-config**](#patch-auth-org-lockout-config) | **Patch** `/auth-org/lockout-config` | Update Auth Org Lockout Configuration [**patch-auth-org-network-config**](#patch-auth-org-network-config) | **Patch** `/auth-org/network-config` | Update security network configuration. +[**patch-auth-org-service-provider-config**](#patch-auth-org-service-provider-config) | **Patch** `/auth-org/service-provider-config` | Update Service Provider Configuration +[**patch-auth-org-session-config**](#patch-auth-org-session-config) | **Patch** `/auth-org/session-config` | Update Auth Org Session Configuration ## create-auth-org-network-config @@ -60,20 +66,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - networkConfiguration := fmt.Sprintf(`{ + data := []byte(`{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() + + var networkConfiguration v2025.NetworkConfiguration + if err := json.Unmarshal(data, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -85,6 +101,63 @@ func main() { [[Back to top]](#) +## get-auth-org-lockout-config +Get Auth Org Lockout Configuration. +This API returns the details of an org's lockout auth configuration. + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/get-auth-org-lockout-config) + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthOrgLockoutConfigRequest struct via the builder pattern + + +### Return type + +[**LockoutConfiguration**](../models/lockout-configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + + + + 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) +} +``` + +[[Back to top]](#) + ## get-auth-org-network-config Get security network configuration. This API returns the details of an org's network auth configuration. @@ -118,15 +191,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + + + 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) @@ -138,6 +215,189 @@ func main() { [[Back to top]](#) +## get-auth-org-service-provider-config +Get Service Provider Configuration. +This API returns the details of an org's service provider auth configuration. + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/get-auth-org-service-provider-config) + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthOrgServiceProviderConfigRequest struct via the builder pattern + + +### Return type + +[**ServiceProviderConfiguration**](../models/service-provider-configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + + + + 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) +} +``` + +[[Back to top]](#) + +## get-auth-org-session-config +Get Auth Org Session Configuration. +This API returns the details of an org's session auth configuration. + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/get-auth-org-session-config) + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthOrgSessionConfigRequest struct via the builder pattern + + +### Return type + +[**SessionConfiguration**](../models/session-configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + + + + 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) +} +``` + +[[Back to top]](#) + +## patch-auth-org-lockout-config +Update Auth Org Lockout Configuration +This API updates an existing lockout configuration for an org using PATCH + + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/patch-auth-org-lockout-config) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthOrgLockoutConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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` | + +### Return type + +[**LockoutConfiguration**](../models/lockout-configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + ## patch-auth-org-network-config Update security network configuration. This API updates an existing network configuration for an org using PATCH @@ -176,16 +436,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := fmt.Sprintf(`[{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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -197,3 +467,139 @@ func main() { [[Back to top]](#) +## patch-auth-org-service-provider-config +Update Service Provider Configuration +This API updates an existing service provider configuration for an org using PATCH. + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/patch-auth-org-service-provider-config) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthOrgServiceProviderConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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) | + +### Return type + +[**ServiceProviderConfiguration**](../models/service-provider-configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + +## patch-auth-org-session-config +Update Auth Org Session Configuration +This API updates an existing session configuration for an org using PATCH. + +[API Spec](https://developer.sailpoint.com/docs/api/v2025/patch-auth-org-session-config) + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthOrgSessionConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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.` | + +### Return type + +[**SessionConfiguration**](../models/session-configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json +- **Accept**: application/json + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" +) + +func main() { + jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) +} +``` + +[[Back to top]](#) + diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md index 1d15f1ac6..e22492f72 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md @@ -81,13 +81,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -102,11 +103,20 @@ func main() { "description" : "Description of the Governance Group", "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" - }`) # WorkgroupDto | + }`) // WorkgroupDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() + + var workgroupDto v2025.WorkgroupDto + if err := json.Unmarshal(data, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -171,17 +181,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -248,18 +262,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - identityPreviewResponseIdentity := fmt.Sprintf(``) # []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + identityPreviewResponseIdentity := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + + var identityPreviewResponseIdentity v2025.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -331,19 +355,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupBulkDeleteRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] - }`) # WorkgroupBulkDeleteRequest | + }`) // WorkgroupBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() + + var workgroupBulkDeleteRequest v2025.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(data, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -408,17 +442,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -487,21 +525,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + + + 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) @@ -570,21 +612,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + + + 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) @@ -649,21 +695,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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 := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 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) + 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") + 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 := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -732,18 +782,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) # []JsonPatchOperation | (optional) + 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") + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + + 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) @@ -813,18 +867,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupId := 2c91808a7813090a017814121919ecca # 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") - identityPreviewResponseIdentity := fmt.Sprintf(``) # []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. + workgroupId := `2c91808a7813090a017814121919ecca` // 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") + identityPreviewResponseIdentity := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + + var identityPreviewResponseIdentity v2025.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md index 453d46ff0..87d62a670 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md @@ -76,23 +76,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -153,23 +163,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -230,23 +250,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -307,17 +337,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an 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") + accessRequestRecommendationActionItemDto := fmt.Sprintf(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -384,23 +424,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityId := 2c91808570313110017040b06f344ec9 # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") - limit := 15 # int32 | Max number of results to return. (optional) (default to 15) # int32 | Max number of results to return. (optional) (default to 15) - 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) - includeTranslationMessages := false # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) - 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) + 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") + identityId := `2c91808570313110017040b06f344ec9` // string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") # string | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to "me") + limit := 15 // int32 | Max number of results to return. (optional) (default to 15) # int32 | Max number of results to return. (optional) (default to 15) + 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) + includeTranslationMessages := false // bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -460,16 +504,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -534,21 +582,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -613,21 +665,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -692,21 +748,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -767,24 +827,34 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - accessRequestRecommendationConfigDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "scoreThreshold" : 0.5, "startDateAttribute" : "startDate", "restrictionAttribute" : "location", "moverAttribute" : "isMover", "joinerAttribute" : "isJoiner", "useRestrictionAttribute" : true - }`) # AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. + }`) // AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() + + var accessRequestRecommendationConfigDto v2025.AccessRequestRecommendationConfigDto + if err := json.Unmarshal(data, &accessRequestRecommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md index 9f554b890..5f673983c 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md @@ -69,13 +69,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - commonAccessItemRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -85,11 +86,20 @@ func main() { "ownerId" : "ownerId" }, "status" : "CONFIRMED" - }`) # CommonAccessItemRequest | + }`) // CommonAccessItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() + + var commonAccessItemRequest v2025.CommonAccessItemRequest + if err := json.Unmarshal(data, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -154,21 +164,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -229,17 +243,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access + 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 := fmt.Sprintf(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() + + var commonAccessIDStatus v2025.CommonAccessIDStatus + if err := json.Unmarshal(data, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md index d580d14cc..35b202355 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md @@ -78,17 +78,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + + + 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) @@ -153,21 +157,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -233,22 +241,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) - 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) - 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) + 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") + 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -309,17 +321,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + + + 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) @@ -387,17 +403,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -470,22 +490,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - outlierId := 2c918085842e69ae018432d22ccb212f # string | The outlier id # string | The outlier 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") - 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) - 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) - 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) + outlierId := `2c918085842e69ae018432d22ccb212f` // string | The outlier id # string | The outlier 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() + + + 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) @@ -546,17 +570,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []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") + requestBody := fmt.Sprintf(``) // []string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -629,23 +663,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - outlierId := 2c918085842e69ae018432d22ccb212f # string | The outlier id # string | The outlier id - contributingFeatureName := entitlement_count # string | The name of contributing feature # string | The name of contributing feature - 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") - 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) - 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) - 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) + outlierId := `2c918085842e69ae018432d22ccb212f` // string | The outlier id # string | The outlier id + contributingFeatureName := `entitlement_count` // string | The name of contributing feature # string | The name of contributing feature + 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") + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() + + + 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) @@ -706,17 +744,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []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") + requestBody := fmt.Sprintf(``) // []string | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md index 8f02236d3..ad6069f3e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md @@ -77,20 +77,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - strategy := entitlement # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. - 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") - 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) - 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) + strategy := `entitlement` // string | The strategy used to create peer groups. Currently, 'entitlement' is supported. # string | The strategy used to create peer groups. Currently, 'entitlement' is supported. + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md index b0cc45f07..25e11d3ed 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md @@ -69,13 +69,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationRequestDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -93,11 +94,20 @@ func main() { } ], "includeTranslationMessages" : false, "includeDebugInformation" : true - }`) # RecommendationRequestDto | + }`) // RecommendationRequestDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() + + var recommendationRequestDto v2025.RecommendationRequestDto + if err := json.Unmarshal(data, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -157,16 +167,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -227,22 +241,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationConfigDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false - }`) # RecommendationConfigDto | + }`) // RecommendationConfigDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() + + var recommendationConfigDto v2025.RecommendationConfigDto + if err := json.Unmarshal(data, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md index cb7126ddb..1dd5e78a9 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md @@ -100,27 +100,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - minEntitlementPopularity := 56 # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) - includeCommonAccess := true # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) - roleMiningPotentialRoleProvisionRequest := fmt.Sprintf(`{ + 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 + 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") + minEntitlementPopularity := 56 // int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) + includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) + data := []byte(`{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false - }`) # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() + + + 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) @@ -181,13 +185,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - roleMiningSessionDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -218,11 +223,20 @@ func main() { "minNumIdentitiesInPotentialRole" : 20, "identityCount" : 0, "type" : "SPECIALIZED" - }`) # RoleMiningSessionDto | Role mining session parameters + }`) // RoleMiningSessionDto | Role mining session parameters - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() + + var roleMiningSessionDto v2025.RoleMiningSessionDto + if err := json.Unmarshal(data, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -291,19 +305,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 - 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") + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -370,18 +388,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -449,22 +471,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 - 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") - roleMiningPotentialRoleExportRequest := fmt.Sprintf(`{ + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 + 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") + data := []byte(`{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true - }`) # RoleMiningPotentialRoleExportRequest | (optional) + }`) // RoleMiningPotentialRoleExportRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() + + + 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) @@ -533,19 +559,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - 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 - 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") + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -610,21 +640,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sorters := createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) - filters := (createdByName co "int") and (createdById sw "2c9180907") and (type eq "COMMON") and ((name co "entt") or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) - 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) - 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) + 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") + sorters := `createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) + filters := `(createdByName co "int") and (createdById sw "2c9180907") and (type eq "COMMON") and ((name co "entt") or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -692,19 +726,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() + + + 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) @@ -777,24 +815,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) (default to true) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) - sorters := popularity # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity, entitlementName, applicationName** The default sort is **popularity** 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) - filters := applicationName sw "AD" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) + 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 + 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) (default to true) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to true) + sorters := `popularity` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity, entitlementName, applicationName** The default sort is **popularity** 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) + filters := `applicationName sw "AD"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -866,23 +908,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - sorters := populariity # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity** (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: **popularity** (optional) - filters := applicationName sw "AD" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) + 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 + 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") + sorters := `populariity` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **popularity** (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: **popularity** (optional) + filters := `applicationName sw "AD"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **applicationName**: *sw* **entitlementRef.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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -954,23 +1000,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - 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 := 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: **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) - 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) - 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) + 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 + 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") + 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 := `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: **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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1037,18 +1087,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") + 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1119,22 +1173,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - potentialRoleId := 62f28d91-7d9f-4d17-be15-666d5b41d77f # 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") - filters := applicationName 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: **applicationName**: *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: **applicationName**: *sw* (optional) - 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) - 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) + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + potentialRoleId := `62f28d91-7d9f-4d17-be15-666d5b41d77f` // 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") + filters := `applicationName 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: **applicationName**: *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: **applicationName**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1205,22 +1263,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sessionId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role mining session id # string | The role mining session id - potentialRoleId := 62f28d91-7d9f-4d17-be15-666d5b41d77f # 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") - filters := entitlementRef.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: **entitlementRef.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: **entitlementRef.name**: *sw* (optional) - 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) - 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) + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id + potentialRoleId := `62f28d91-7d9f-4d17-be15-666d5b41d77f` // 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") + filters := `entitlementRef.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: **entitlementRef.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: **entitlementRef.name**: *sw* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1291,22 +1353,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - potentialRoleId := e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 # string | A potential role id # string | A potential role id - sourceId := 2c9180877620c1460176267f336a106f # string | A source id # string | A 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") - sorters := -usageCount # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) - 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) - 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) + potentialRoleId := `e0cc5d7d-bf7f-4f81-b2af-8885b09d9923` // string | A potential role id # string | A potential role id + sourceId := `2c9180877620c1460176267f336a106f` // string | A source id # string | A 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") + sorters := `-usageCount` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1376,22 +1442,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sorters := createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate** (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: **createdDate** (optional) - filters := (createdByName co "int")and (createdById sw "2c9180907")and (type eq "COMMON")and ((name co "entt")or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) - 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) - 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) + 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") + sorters := `createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdDate** (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: **createdDate** (optional) + filters := `(createdByName co "int")and (createdById sw "2c9180907")and (type eq "COMMON")and ((name co "entt")or (saved 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1456,17 +1526,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1531,17 +1605,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1606,17 +1684,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1681,21 +1763,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := saved eq "true" and name sw "RM Session" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **saved**: *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: **saved**: *eq* **name**: *eq, sw* (optional) - sorters := createdBy,createdDate # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) - 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) - 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) + 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 := `saved eq "true" and name sw "RM Session"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **saved**: *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: **saved**: *eq* **name**: *eq, sw* (optional) + sorters := `createdBy,createdDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1759,20 +1845,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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 is supported for the following fields: **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 is supported for the following fields: **modified** (optional) - 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) - 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) + 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") + 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 is supported for the following fields: **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 is supported for the following fields: **modified** (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -1852,19 +1942,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 | The potential role summary id # string | The potential role summary 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") - patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | + 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 | The potential role summary id # string | The potential role summary 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") + patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + + var patchPotentialRoleRequestInner v2025.PatchPotentialRoleRequestInner + if err := json.Unmarshal(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1944,19 +2044,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 | The potential role summary id # string | The potential role summary 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") - patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | + 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 | The potential role summary id # string | The potential role summary 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") + patchPotentialRoleRequestInner := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + + var patchPotentialRoleRequestInner v2025.PatchPotentialRoleRequestInner + if err := json.Unmarshal(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2022,18 +2132,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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 := fmt.Sprintf(`[{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. + sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id to be patched # string | The role mining session id to be patched + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2101,22 +2221,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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") - roleMiningPotentialRoleEditEntitlements := fmt.Sprintf(`{ + 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 + 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") + data := []byte(`{ "ids" : [ "entId1", "entId2" ], "exclude" : true - }`) # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() + + var roleMiningPotentialRoleEditEntitlements v2025.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(data, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md index 993804578..b72be8ff8 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md @@ -76,18 +76,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - objectType := application # string | Object type. Available options ['application'] # string | Object type. Available options ['application'] - 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") + objectType := `application` // string | Object type. Available options ['application'] # string | Object type. Available options ['application'] + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -153,19 +157,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - objectType := application # string | Object type. Available options ['application'] # string | Object type. Available options ['application'] - 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") - 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'] + objectType := `application` // string | Object type. Available options ['application'] # string | Object type. Available options ['application'] + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md index ce144f359..4cbb62d5a 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md @@ -96,17 +96,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -169,17 +173,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -246,17 +254,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -323,18 +335,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id # string | Identity Id - 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") + identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -401,19 +417,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := ef38f94347e94562b5bb8424a56397d8 # string | Identity Id to get the role assignments for # string | Identity Id to get the role assignments for - 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") - 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) + identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id to get the role assignments for # string | Identity Id to get the role assignments for + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() + + + 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) @@ -479,22 +499,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := id eq "6c9079b270a266a60170a2779fcb0006" or correlated 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: **id**: *eq, in* **name**: *eq, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) - sorters := name,-cloudStatus # string | Sort results using the standard syntax described 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, alias, cloudStatus** (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, alias, cloudStatus** (optional) - defaultFilter := NONE # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") - 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) - 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) + 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 := `id eq "6c9079b270a266a60170a2779fcb0006" or correlated 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: **id**: *eq, in* **name**: *eq, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) + sorters := `name,-cloudStatus` // string | Sort results using the standard syntax described 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, alias, cloudStatus** (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, alias, cloudStatus** (optional) + defaultFilter := `NONE` // string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") # string | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to "CORRELATED_ONLY") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() + + + 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) @@ -559,17 +583,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -634,21 +662,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID - sendAccountVerificationRequest := fmt.Sprintf(`{ + 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 := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + data := []byte(`{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" - }`) # SendAccountVerificationRequest | + }`) // SendAccountVerificationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() + + var sendAccountVerificationRequest v2025.SendAccountVerificationRequest + if err := json.Unmarshal(data, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -712,20 +750,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - inviteIdentitiesRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false - }`) # InviteIdentitiesRequest | + }`) // InviteIdentitiesRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() + + var inviteIdentitiesRequest v2025.InviteIdentitiesRequest + if err := json.Unmarshal(data, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -793,19 +841,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - processIdentitiesRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] - }`) # ProcessIdentitiesRequest | + }`) // ProcessIdentitiesRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() + + var processIdentitiesRequest v2025.ProcessIdentitiesRequest + if err := json.Unmarshal(data, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -870,17 +928,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md index d13de60cd..34d53a8b3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md @@ -72,13 +72,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttribute := fmt.Sprintf(`{ + 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") + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -99,11 +100,20 @@ func main() { "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + + var identityAttribute v2025.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -168,17 +178,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -237,19 +251,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttributeNames := fmt.Sprintf(`{ + 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") + data := []byte(`{ "ids" : [ "name", "displayName" ] - }`) # IdentityAttributeNames | + }`) // IdentityAttributeNames | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() + + var identityAttributeNames v2025.IdentityAttributeNames + if err := json.Unmarshal(data, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -312,17 +336,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -386,20 +414,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - includeSystem := false # bool | Include 'system' attributes in the response. (optional) (default to false) # bool | Include 'system' attributes in the response. (optional) (default to false) - includeSilent := false # bool | Include 'silent' attributes in the response. (optional) (default to false) # bool | Include 'silent' attributes in the response. (optional) (default to false) - 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) + 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") + includeSystem := false // bool | Include 'system' attributes in the response. (optional) (default to false) # bool | Include 'system' attributes in the response. (optional) (default to false) + includeSilent := false // bool | Include 'silent' attributes in the response. (optional) (default to false) # bool | Include 'silent' attributes in the response. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() + + + 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) @@ -465,14 +497,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttribute := fmt.Sprintf(`{ + 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") + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -493,11 +526,20 @@ func main() { "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + + var identityAttribute v2025.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md index 7bb01e54c..0ea63cae6 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md @@ -87,23 +87,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - snapshot1 := 2007-03-01T13:00:00Z # string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) - snapshot2 := 2008-03-01T13:00:00Z # string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) - accessItemTypes := fmt.Sprintf(``) # []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - 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) + 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") + snapshot1 := `2007-03-01T13:00:00Z` // string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) + snapshot2 := `2008-03-01T13:00:00Z` // string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) + accessItemTypes := fmt.Sprintf(``) // []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -176,24 +180,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The identity id # string | The identity id - accessType := role # string | The specific type which needs to be compared # string | The specific type which needs to be compared - 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") - accessAssociated := 2007-03-01T13:00:00Z # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) - snapshot1 := 2008-03-01T13:00:00Z # string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) - snapshot2 := 2009-03-01T13:00:00Z # string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) - 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) - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + accessType := `role` // string | The specific type which needs to be compared # string | The specific type which needs to be compared + 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") + accessAssociated := 2007-03-01T13:00:00Z // bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) + snapshot1 := `2008-03-01T13:00:00Z` // string | The snapshot 1 of identity (optional) # string | The snapshot 1 of identity (optional) + snapshot2 := `2009-03-01T13:00:00Z` // string | The snapshot 2 of identity (optional) # string | The snapshot 2 of identity (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -258,17 +266,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -339,23 +351,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - from := 2024-03-01T13:00:00Z # string | The optional instant until which access events are returned (optional) # string | The optional instant until which access events are returned (optional) - eventTypes := fmt.Sprintf(`[AccessAddedEvent, AccessRemovedEvent]`) # []string | An optional list of event types to return. If null or empty, all events are returned (optional) - accessItemTypes := fmt.Sprintf(`[entitlement, account]`) # []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - 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) + 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") + from := `2024-03-01T13:00:00Z` // string | The optional instant until which access events are returned (optional) # string | The optional instant until which access events are returned (optional) + eventTypes := fmt.Sprintf(`[AccessAddedEvent, AccessRemovedEvent]`) // []string | An optional list of event types to return. If null or empty, all events are returned (optional) + accessItemTypes := fmt.Sprintf(`[entitlement, account]`) // []string | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -422,18 +438,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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 := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -504,23 +524,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - before := 2007-03-01T13:00:00Z # string | The date before which snapshot summary is required (optional) # string | The date before which snapshot summary is required (optional) - interval := interval_example # string | The interval indicating day or month. Defaults to month if not specified (optional) # string | The interval indicating day or month. Defaults to month if not specified (optional) - timeZone := UTC # string | The time zone. Defaults to UTC if not provided (optional) # string | The time zone. Defaults to UTC if not provided (optional) - 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) - 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) + 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") + before := `2007-03-01T13:00:00Z` // string | The date before which snapshot summary is required (optional) # string | The date before which snapshot summary is required (optional) + interval := `interval_example` // string | The interval indicating day or month. Defaults to month if not specified (optional) # string | The interval indicating day or month. Defaults to month if not specified (optional) + timeZone := `UTC` // string | The time zone. Defaults to UTC if not provided (optional) # string | The time zone. Defaults to UTC if not provided (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -585,17 +609,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -660,21 +688,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - startsWithQuery := Ada # string | This param is used for starts-with search for first, last and display name of the identity (optional) # string | This param is used for starts-with search for first, last and display name of the identity (optional) - isDeleted := true # bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) - isActive := true # bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) - 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) + 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") + startsWithQuery := `Ada` // string | This param is used for starts-with search for first, last and display name of the identity (optional) # string | This param is used for starts-with search for first, last and display name of the identity (optional) + isDeleted := true // bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) + isActive := true // bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() + + + 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) @@ -744,21 +776,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - type_ := account # string | The type of access item for the identity. If not provided, it defaults to account (optional) # string | The type of access item for the identity. If not provided, it defaults to account (optional) - 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) - 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) + 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") + type_ := `account` // string | The type of access item for the identity. If not provided, it defaults to account (optional) # string | The type of access item for the identity. If not provided, it defaults to account (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() + + + 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) @@ -826,19 +862,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - 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) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + 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") + type_ := `account` // string | The access item type (optional) # string | The access item type (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + + + 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) @@ -908,22 +948,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - start := 2007-03-01T13:00:00Z # string | The specified start date (optional) # string | The specified start date (optional) - interval := interval_example # string | The interval indicating the range in day or month for the specified interval-name (optional) # string | The interval indicating the range in day or month for the specified interval-name (optional) - 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) - 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) + 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") + start := `2007-03-01T13:00:00Z` // string | The specified start date (optional) # string | The specified start date (optional) + interval := `interval_example` // string | The interval indicating the range in day or month for the specified interval-name (optional) # string | The interval indicating the range in day or month for the specified interval-name (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md index 72485b317..a82bfb915 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md @@ -75,12 +75,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -128,11 +129,20 @@ func main() { "name" : "aName", "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + + var identityProfile v2025.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -186,16 +196,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -248,16 +262,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | Identity Profile bulk delete request body. + requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -310,20 +334,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -384,13 +412,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityPreviewRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -416,11 +445,20 @@ func main() { } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() + + var identityPreviewRequest v2025.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -473,16 +511,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | The Identity Profile ID. # string | The Identity Profile ID. + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | The Identity Profile ID. # string | The Identity Profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + + + 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) @@ -535,16 +577,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -593,16 +639,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileExportedObject := fmt.Sprintf(``) # []IdentityProfileExportedObject | Previously exported Identity Profiles. + identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + + var identityProfileExportedObject v2025.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -655,20 +711,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -725,16 +785,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -796,17 +860,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. - jsonPatchOperation := fmt.Sprintf(`[{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. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md index d2d56031c..a2a4dfcef 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md @@ -103,13 +103,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. - lifecycleState := fmt.Sprintf(`{ + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + data := []byte(`{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -133,11 +134,20 @@ func main() { "technicalName" : "Technical Name", "identityState" : "identityState", "enabled" : true - }`) # LifecycleState | Lifecycle state to be created. + }`) // LifecycleState | Lifecycle state to be created. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() + + var lifecycleState v2025.LifecycleState + if err := json.Unmarshal(data, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -192,17 +202,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + + + 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) @@ -257,17 +271,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + + + 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) @@ -324,20 +342,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. - 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) - 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) + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) @@ -391,17 +413,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c9180857893f1290178944561990364 # string | ID of the identity to update. # string | ID of the identity to update. - setLifecycleStateRequest := fmt.Sprintf(``) # SetLifecycleStateRequest | + identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. + data := []byte(``) // SetLifecycleStateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() + + var setLifecycleStateRequest v2025.SetLifecycleStateRequest + if err := json.Unmarshal(data, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -457,18 +489,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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 + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md index 4b4c1a788..8e843cace 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md @@ -57,15 +57,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + + + 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) @@ -114,16 +118,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + + + 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) @@ -168,15 +176,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + + + 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) @@ -225,12 +237,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -240,11 +253,20 @@ func main() { "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + + var mfaDuoConfig v2025.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -293,16 +315,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) # []KbaAnswerRequestItem | + kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + + var kbaAnswerRequestItem v2025.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -351,22 +383,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + + var mfaOktaConfig v2025.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -419,16 +461,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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'. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md index 181550fd1..7f8472088 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md @@ -73,17 +73,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -148,21 +152,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -229,18 +237,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - requestBody := fmt.Sprintf(`{Add machine identity attribute={value=[{op=add, path=/environment, value=test}]}, Replace machine identity attribute={value=[{op=replace, path=/environment, value=test}]}, Remove machine identity attribute={value=[{op=remove, path=/environment}]}}`) # []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 + 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") + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md index 1309b12a6..7abd9ee8e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md @@ -72,13 +72,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - machineIdentity := fmt.Sprintf(`{ + 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") + data := []byte(`{ "created" : "2015-05-28T14:07:17Z", "businessApplication" : "ADService", "name" : "aName", @@ -87,11 +88,20 @@ func main() { "attributes" : "{\"Region\":\"EU\"}", "id" : "id12345", "manuallyEdited" : true - }`) # MachineIdentity | + }`) // MachineIdentity | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() + + var machineIdentity v2025.MachineIdentity + if err := json.Unmarshal(data, &machineIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -156,17 +166,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -229,17 +243,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -304,21 +322,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := 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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (optional) - sorters := businessApplication # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **businessApplication, 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: **businessApplication, name** (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) - 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) + 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 := `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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (optional) + sorters := `businessApplication` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **businessApplication, 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: **businessApplication, name** (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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() + + + 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) @@ -385,18 +407,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - requestBody := fmt.Sprintf(`{Add machine identity attribute={value=[{op=add, path=/attributes/securityRisk, value=medium}]}, Replace machine identity attribute={value=[{op=replace, path=/attributes/securityRisk, value=medium}]}, Remove machine identity attribute={value=[{op=remove, path=/attributes/securityRisk}]}}`) # []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + 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") + requestBody := fmt.Sprintf(`[{op=add, path=/attributes/securityRisk, value=medium}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md index 0a718ac44..9c26646d1 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md @@ -63,21 +63,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" - }`) # ManagedClientRequest | + }`) // ManagedClientRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() + + var managedClientRequest v2025.ManagedClientRequest + if err := json.Unmarshal(data, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -130,16 +140,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + + + 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) @@ -190,16 +204,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + + + 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) @@ -253,17 +271,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + + + 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) @@ -315,19 +337,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -381,17 +407,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | JSONPatch payload used to update the object. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md index 3c11c814e..901adc7bf 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md @@ -63,22 +63,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterType := fmt.Sprintf(`{ + data := []byte(`{ "managedProcessIds" : [ "someId", "someId2" ], "pod" : "megapod-useast1", "org" : "denali-cjh", "id" : "aClusterTypeId", "type" : "idn" - }`) # ManagedClusterType | + }`) // ManagedClusterType | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() + + var managedClusterType v2025.ManagedClusterType + if err := json.Unmarshal(data, &managedClusterType); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -131,16 +141,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterTypeId # string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() + + + 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) @@ -191,16 +205,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterTypeId # string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() + + + 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) @@ -253,20 +271,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := IDN # string | Type descriptor (optional) # string | Type descriptor (optional) - pod := megapod-useast1 # string | Pinned pod (or default) (optional) # string | Pinned pod (or default) (optional) - org := denali-xyz # string | Pinned org (or default) (optional) # string | Pinned org (or default) (optional) - 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) + type_ := `IDN` // string | Type descriptor (optional) # string | Type descriptor (optional) + pod := `megapod-useast1` // string | Pinned pod (or default) (optional) # string | Pinned pod (or default) (optional) + org := `denali-xyz` // string | Pinned org (or default) (optional) # string | Pinned org (or default) (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() + + + 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) @@ -320,13 +342,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := aClusterTypeId # string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - jsonPatch := fmt.Sprintf(`{ + id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -336,11 +359,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSONPatch payload used to update the schema. + }`) // JsonPatch | The JSONPatch payload used to update the schema. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md index e075de7d0..287727b87 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md @@ -65,12 +65,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterRequest := fmt.Sprintf(`{ + data := []byte(`{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -78,11 +79,20 @@ func main() { "name" : "Managed Cluster Name", "description" : "A short description of the managed cluster.", "type" : "idn" - }`) # ManagedClusterRequest | + }`) // ManagedClusterRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() + + var managedClusterRequest v2025.ManagedClusterRequest + if err := json.Unmarshal(data, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -136,17 +146,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() + + + 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) @@ -197,16 +211,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + + + 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) @@ -259,16 +277,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180897de347a2017de8859e8c5039 # string | Managed cluster ID. # string | Managed cluster ID. + id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + + + 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) @@ -320,19 +342,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -386,17 +412,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + 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. + data := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() + + var putClientLogConfigurationRequest v2025.PutClientLogConfigurationRequest + if err := json.Unmarshal(data, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -450,16 +486,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClustersAPI.Update(context.Background(), id).Execute() + + + 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) @@ -513,17 +553,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180897de347a2017de8859e8c5039 # string | Managed cluster ID. # string | Managed cluster ID. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | JSONPatch payload used to update the object. + id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md index d771ef979..a8887bb3b 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md @@ -72,12 +72,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostIntegrationsCreate := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "MyName", "id" : "2c91808568c529c60168cca6f90c1313", @@ -102,11 +103,20 @@ func main() { "name" : "My Multi-Host Integration", "description" : "This is the Multi-Host Integration.", "modified" : "2024-01-23T18:08:50.897Z" - }`) # MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() + + var multiHostIntegrationsCreate v2025.MultiHostIntegrationsCreate + if err := json.Unmarshal(data, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -162,17 +172,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - multiHostIntegrationsCreateSources := fmt.Sprintf(``) # []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. + multiHostIntegrationsCreateSources := fmt.Sprintf(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() + + var multiHostIntegrationsCreateSources v2025.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(data, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -225,16 +245,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() + + + 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) @@ -288,18 +312,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - 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) + multihostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() + + + 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) @@ -356,18 +384,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - 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) + multiHostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() + + + 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) @@ -422,16 +454,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1326 # string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. + multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() + + + 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) @@ -487,21 +523,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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: **type**: *in* **forSubAdminId**: *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: **type**: *in* **forSubAdminId**: *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) - 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) + 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) + 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 := `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: **type**: *in* **forSubAdminId**: *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: **type**: *in* **forSubAdminId**: *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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() + + + 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) @@ -556,16 +596,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostId := 004091cb79b04636b88662afa50a4440 # string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration + multiHostId := `004091cb79b04636b88662afa50a4440` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() + + + 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) @@ -612,15 +656,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() + + + 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) @@ -680,21 +728,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := aMultiHostId # string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - 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) - 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 := 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) + multihostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + + + 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) @@ -749,16 +801,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := 2c91808568c529c60168cca6f90c1324 # string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration + multihostId := `2c91808568c529c60168cca6f90c1324` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() + + + 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) @@ -813,17 +869,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() + + + 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) @@ -879,17 +939,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multihostId := anId # string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. - updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) # []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. + multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. + updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() + + var updateMultiHostSourcesRequestInner v2025.UpdateMultiHostSourcesRequestInner + if err := json.Unmarshal(data, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md index d7fdc9b88..7e95e017e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,19 +122,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "Approved by manager" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + + var nonEmployeeApprovalDecision v2025.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -184,13 +194,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -203,11 +214,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -256,13 +276,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -275,11 +296,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -328,12 +358,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -358,11 +389,20 @@ func main() { }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + + var nonEmployeeSourceRequestBody v2025.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -417,24 +457,34 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + + var nonEmployeeSchemaAttributeBody v2025.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -488,16 +538,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -544,16 +598,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordsInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() + + var deleteNonEmployeeRecordsInBulkRequest v2025.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -605,16 +669,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -669,17 +737,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -730,16 +802,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := e136567de87e4d029e60b3c3c55db56d # string | Source Id # string | Source Id + sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -790,16 +866,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -850,16 +930,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source Id (UUID) # string | Source Id (UUID) + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + + + 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) @@ -910,16 +994,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Source Id (UUID) # string | Source Id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + + + 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) @@ -974,17 +1062,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + + + 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) @@ -1041,16 +1133,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1105,16 +1201,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source ID (UUID) # string | Source ID (UUID) + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + + + 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) @@ -1168,16 +1268,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -1234,16 +1338,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ac110005-7156-1150-8171-5b292e3e0084 # string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) + id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -1300,16 +1408,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1364,17 +1476,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -1431,16 +1547,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b7c28b350017c2a2ec5790aa1 # string | Source Id # string | Source Id + sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -1494,16 +1614,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -1557,17 +1681,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source Id (UUID) # string | Source Id (UUID) - data := BINARY_DATA_HERE # *os.File | # *os.File | + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) + data := BINARY_DATA_HERE // *os.File | # *os.File | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + + + 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) @@ -1625,21 +1753,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c91808280430dfb0180431a59440460 # string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) - 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) - 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 := 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) + requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -1694,20 +1826,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1765,21 +1901,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := e136567de87e4d029e60b3c3c55db56d # string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. - 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) - 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,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) + requestedFor := `e136567de87e4d029e60b3c3c55db56d` // string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. + 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) + 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,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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1835,21 +1975,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - requestedFor := me # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) - 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) + 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) + 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) + requestedFor := `me` // string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + + + 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) @@ -1907,17 +2051,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - jsonPatchOperation := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1975,18 +2129,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - jsonPatchOperation := fmt.Sprintf(`[{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'. + attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + jsonPatchOperation := fmt.Sprintf(`[{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'. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2040,17 +2204,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := e136567de87e4d029e60b3c3c55db56d # string | Source Id # string | Source Id - jsonPatchOperation := fmt.Sprintf(`[{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. + sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2104,19 +2278,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "approved" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + + var nonEmployeeRejectApprovalDecision v2025.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2174,14 +2358,15 @@ import ( "context" "fmt" "os" + "encoding/json" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -2194,11 +2379,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md index 2a507b21e..d8168fe0f 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md @@ -81,19 +81,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - domainAddress := fmt.Sprintf(`{ + 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") + data := []byte(`{ "domain" : "sailpoint.com" - }`) # DomainAddress | + }`) // DomainAddress | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() + + var domainAddress v2025.DomainAddress + if err := json.Unmarshal(data, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -156,13 +166,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - templateDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -179,11 +190,20 @@ func main() { "from" : "$__global.emailFromAddress", "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" - }`) # TemplateDto | + }`) // TemplateDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() + + var templateDto v2025.TemplateDto + if err := json.Unmarshal(data, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -244,22 +264,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - emailStatusDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" - }`) # EmailStatusDto | + }`) // EmailStatusDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() + + var emailStatusDto v2025.EmailStatusDto + if err := json.Unmarshal(data, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -320,17 +350,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []TemplateBulkDeleteDto | + 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 := fmt.Sprintf(``) // []TemplateBulkDeleteDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() + + var templateBulkDeleteDto v2025.TemplateBulkDeleteDto + if err := json.Unmarshal(data, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -393,17 +433,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -461,16 +505,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -531,17 +579,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -606,17 +658,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -677,16 +733,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -751,21 +811,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -825,16 +889,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -897,19 +965,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -972,19 +1044,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -1045,20 +1121,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - mailFromAttributesDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" - }`) # MailFromAttributesDto | + }`) // MailFromAttributesDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() + + var mailFromAttributesDto v2025.MailFromAttributesDto + if err := json.Unmarshal(data, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1119,21 +1205,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sendTestNotificationRequestDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" - }`) # SendTestNotificationRequestDto | + }`) // SendTestNotificationRequestDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() + + var sendTestNotificationRequestDto v2025.SendTestNotificationRequestDto + if err := json.Unmarshal(data, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md index 1d8e115f5..bbf9adb2f 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md @@ -62,12 +62,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -83,11 +84,20 @@ func main() { "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + + var createOAuthClientRequest v2025.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,16 +150,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + + + 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) @@ -200,16 +214,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + + + 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) @@ -258,16 +276,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + + + 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) @@ -321,17 +343,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md index e34de9678..3f8e9222a 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md @@ -70,16 +70,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -142,19 +146,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) + 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") + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -215,17 +223,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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. + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md index 892b57725..0ab6b11b6 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md @@ -65,21 +65,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig v2025.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -124,15 +134,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + + + 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) @@ -183,21 +197,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig v2025.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md index 36d063323..d809d7b1b 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md @@ -127,15 +127,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + + + 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) @@ -212,16 +216,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md index 7792b798c..09c0d9517 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md @@ -94,21 +94,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - passwordDigitTokenReset := fmt.Sprintf(`{ + 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") + data := []byte(`{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" - }`) # PasswordDigitTokenReset | + }`) // PasswordDigitTokenReset | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() + + var passwordDigitTokenReset v2025.PasswordDigitTokenReset + if err := json.Unmarshal(data, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 089899f13a8f4da7824996191587bab9 # string | Password change request ID # string | Password change request ID + id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + + + 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) @@ -220,19 +234,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + + var passwordInfoQueryDTO v2025.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -300,22 +324,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + + var passwordChangeRequest v2025.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md index 43d51017c..e949218dd 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md @@ -67,12 +67,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -104,11 +105,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0002 # string | The ID of password policy to delete. # string | The ID of password policy to delete. + id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + + + 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) @@ -221,16 +235,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0005 # string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. + id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + + + 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) @@ -282,18 +300,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -347,13 +369,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0007 # string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -385,11 +408,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md index afdf1c7be..cabc15c98 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md @@ -91,23 +91,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup v2025.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -160,16 +170,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -220,16 +234,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -280,18 +298,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -345,24 +367,34 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 6881f631-3bd5-4213-9c75-8e05cc3e35dd # string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup v2025.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md index 194b81e0d..f577c70fa 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md @@ -69,20 +69,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + + var createPersonalAccessTokenRequest v2025.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -135,16 +145,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The personal access token id # string | The personal access token id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + + + 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) @@ -192,17 +206,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + + + 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) @@ -257,17 +275,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The Personal Access Token id # string | The Personal Access Token id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md index 03c4cfcbf..d10743ddc 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md @@ -63,21 +63,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := firstname eq "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: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) - 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) + 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) + 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 := `firstname eq "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: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md index eff6f0904..3099b6381 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md @@ -62,15 +62,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + + + 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) @@ -119,12 +123,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -138,11 +143,20 @@ func main() { "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + + var publicIdentityConfig v2025.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md index 89b3ef1c9..7b354f268 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md @@ -65,16 +65,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := a1ed223247144cc29d23c632624b4767 # string | ID of the running Report to cancel # string | ID of the running Report to cancel + id := `a1ed223247144cc29d23c632624b4767` // string | ID of the running Report to cancel # string | ID of the running Report to cancel - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + + + 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) @@ -128,19 +132,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taskResultId := ef38f94347e94562b5bb8424a56397d8 # string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report - fileFormat := csv # string | Output format of the requested report file # string | Output format of the requested report file - 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) + taskResultId := `ef38f94347e94562b5bb8424a56397d8` // string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report + fileFormat := `csv` // string | Output format of the requested report file # string | Output format of the requested report file + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() + + + 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) @@ -194,17 +202,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() + + + 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) @@ -253,22 +265,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportDetails := fmt.Sprintf(`{ + data := []byte(`{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } - }`) # ReportDetails | + }`) // ReportDetails | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() + + var reportDetails v2025.ReportDetails + if err := json.Unmarshal(data, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md index e6697d74c..3e16c1aee 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md @@ -67,24 +67,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := e7eab60924f64aa284175b9fa3309599 # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) # []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) - term := Finance Role # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) - statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) # []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) - 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) - 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 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) + identityId := `e7eab60924f64aa284175b9fa3309599` // string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) // []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) + term := `Finance Role` // string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) + statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) // []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md index ad6a650e0..784f1cec5 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md @@ -77,16 +77,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -153,19 +157,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -238,24 +246,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - insightId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | The role insight id # string | The role insight id - entitlementId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # 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") - hasEntitlement := true # bool | Identity has this entitlement or not (optional) (default to false) # bool | Identity has this entitlement or not (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) - 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) - 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) + insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id + entitlementId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // 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") + hasEntitlement := true // bool | Identity has this entitlement or not (optional) (default to false) # bool | Identity has this entitlement or not (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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -320,17 +332,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -395,21 +411,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -475,18 +495,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + + + 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) @@ -553,19 +577,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -633,17 +661,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -703,16 +735,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md index 366a38b44..371340f39 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md @@ -113,12 +113,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -276,11 +277,20 @@ func main() { }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + + var role v2025.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -332,18 +342,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + + var roleBulkDeleteRequest v2025.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -400,18 +420,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808c74ff913f0175097daa9d59cd # string | The role's id. # string | The role's id. - 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. + id := `2c91808c74ff913f0175097daa9d59cd` // string | The role's id. # string | The role's id. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() + + + 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) @@ -464,16 +488,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.RolesAPI.DeleteRole(context.Background(), id).Execute() + + + 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) @@ -516,15 +544,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() + + + 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) @@ -579,16 +611,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c24359c389374d0fb8585698a2189e3d # string | The Id of the bulk update task. # string | The Id of the bulk update task. + id := `c24359c389374d0fb8585698a2189e3d` // string | The Id of the bulk update task. # string | The Id of the bulk update task. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() + + + 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) @@ -642,16 +678,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.GetRole(context.Background(), id).Execute() + + + 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) @@ -709,21 +749,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed - 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) - 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 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -793,22 +837,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | Containing role's ID. # string | Containing role's 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") - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - 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) + id := `2c91808a7813090a017814121919ecca` // string | Containing role's ID. # string | Containing role's 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") + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -866,23 +914,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - filters := requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *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, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* (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) - 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) + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + filters := `requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *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, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* (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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -956,17 +1008,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role to patch # string | ID of the Role to patch - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1023,29 +1085,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # 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 50) # 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 50) - 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) - 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) - 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) - roleListFilterDTO := fmt.Sprintf(`{ + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // 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 50) # 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 50) + 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) + 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) + 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) + data := []byte(`{ "ammKeyValues" : [ { "attribute" : "iscFederalClassifications", "values" : [ "secret" ] } ], "filters" : "dimensional eq false" - }`) # RoleListFilterDTO | (optional) + }`) // RoleListFilterDTO | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -1102,18 +1168,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c24359c389374d0fb8585698a2189e3d # string | The Id of a role # string | The Id of a role - 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. + id := `c24359c389374d0fb8585698a2189e3d` // string | The Id of a role # string | The Id of a role + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() + + + 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) @@ -1165,12 +1235,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByFilterRequest := fmt.Sprintf(`{ + data := []byte(`{ "values" : [ { "attribute" : "iscFederalClassifications", "values" : [ "topSecret" ] @@ -1178,11 +1249,20 @@ func main() { "filters" : " requestable eq false", "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByFilterRequest | + }`) // RoleMetadataBulkUpdateByFilterRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() + + var roleMetadataBulkUpdateByFilterRequest v2025.RoleMetadataBulkUpdateByFilterRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByFilterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1234,12 +1314,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByIdRequest := fmt.Sprintf(`{ + data := []byte(`{ "roles" : [ "b1db89554cfa431cb8b9921ea38d9367" ], "values" : [ { "attribute" : "iscFederalClassifications", @@ -1247,11 +1328,20 @@ func main() { } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByIdRequest | + }`) // RoleMetadataBulkUpdateByIdRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() + + var roleMetadataBulkUpdateByIdRequest v2025.RoleMetadataBulkUpdateByIdRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByIdRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1303,12 +1393,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByQueryRequest := fmt.Sprintf(`{ + data := []byte(`{ "query" : { "query\"" : { "indices" : [ "roles" ], @@ -1331,11 +1422,20 @@ func main() { } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByQueryRequest | + }`) // RoleMetadataBulkUpdateByQueryRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() + + var roleMetadataBulkUpdateByQueryRequest v2025.RoleMetadataBulkUpdateByQueryRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByQueryRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md index 1fdb4855a..01b2e2375 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md @@ -80,13 +80,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - simIntegrationDetails := fmt.Sprintf(`{ + 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") + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -103,11 +104,20 @@ func main() { "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | DTO containing the details of the SIM integration + }`) // SimIntegrationDetails | DTO containing the details of the SIM integration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + + var simIntegrationDetails v2025.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -172,17 +182,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -245,17 +259,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -315,16 +333,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -390,14 +412,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + id := `12345` // string | SIM integration id # string | SIM integration 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") + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -407,11 +430,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -477,14 +509,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 12345 # string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + id := `12345` // string | SIM integration id # string | SIM integration 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") + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -494,11 +527,20 @@ func main() { "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -564,14 +606,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - simIntegrationDetails := fmt.Sprintf(`{ + 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") + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -588,11 +631,20 @@ func main() { "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | The full DTO of the integration containing the updated model + }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + + var simIntegrationDetails v2025.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md index 43f632041..cc0a9b0ef 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md @@ -98,12 +98,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -158,11 +159,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + + var sodPolicy v2025.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -217,17 +227,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + + + 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) @@ -278,16 +292,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -340,17 +358,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + + + 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) @@ -403,16 +425,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportResultId := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the report reference to download. # string | The ID of the report reference to download. + reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + + + 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) @@ -457,15 +483,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + + + 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) @@ -519,16 +549,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + + + 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) @@ -581,16 +615,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -643,16 +681,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + + + 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) @@ -705,16 +747,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + + + 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) @@ -768,20 +814,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -837,17 +887,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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 + 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 := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -901,13 +961,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. + data := []byte(`{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -992,11 +1053,20 @@ func main() { "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + + var sodPolicySchedule v2025.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1051,13 +1121,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -1112,11 +1183,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + + var sodPolicy v2025.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1169,16 +1249,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The SOD policy ID to run. # string | The SOD policy ID to run. + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + + + 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) @@ -1227,18 +1311,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + + + 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) @@ -1291,16 +1379,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The SOD policy ID to run. # string | The SOD policy ID to run. + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md index 9bd930e35..2348615d7 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md @@ -74,12 +74,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -90,11 +91,20 @@ func main() { "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + + var identityWithNewAccess v2025.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,16 +153,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess1 := fmt.Sprintf(`{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 | + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() + + var identityWithNewAccess1 v2025.IdentityWithNewAccess1 + if err := json.Unmarshal(data, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md index b71450fbd..ff935e1d8 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md @@ -62,18 +62,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - exportPayload := fmt.Sprintf(`{ + data := []byte(`{ "description" : "Export Job 1 Test" - }`) # ExportPayload | Export options control what will be included in the export. + }`) // ExportPayload | Export options control what will be included in the export. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() + + var exportPayload v2025.ExportPayload + if err := json.Unmarshal(data, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -128,16 +138,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + + + 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) @@ -192,16 +206,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + + + 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) @@ -256,16 +274,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + + + 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) @@ -322,16 +344,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + + + 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) @@ -392,18 +418,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - 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 := fmt.Sprintf(``) # ImportOptions | (optional) + data := BINARY_DATA_HERE // *os.File | JSON file containing the objects to be imported. # *os.File | JSON file containing the objects to be imported. + 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) + data := []byte(``) // ImportOptions | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() + + + 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) @@ -448,15 +478,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md index bc9959cac..3b0ce47f2 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md @@ -71,16 +71,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createSavedSearchRequest := fmt.Sprintf(``) # CreateSavedSearchRequest | The saved search to persist. + data := []byte(``) // CreateSavedSearchRequest | The saved search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() + + var createSavedSearchRequest v2025.CreateSavedSearchRequest + if err := json.Unmarshal(data, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -134,16 +144,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + + + 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) @@ -196,13 +210,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - searchArguments := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -212,11 +227,20 @@ func main() { "type" : "IDENTITY" } ], "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() + + var searchArguments v2025.SearchArguments + if err := json.Unmarshal(data, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -268,16 +292,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + + + 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) @@ -330,19 +358,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -399,13 +431,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - savedSearch := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -449,11 +482,20 @@ func main() { "modified" : "2018-06-25T20:22:28.104Z", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] - }`) # SavedSearch | The saved search to persist. + }`) // SavedSearch | The saved search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() + + var savedSearch v2025.SavedSearch + if err := json.Unmarshal(data, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md index 6e3b20e70..179112944 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md @@ -87,16 +87,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createScheduledSearchRequest := fmt.Sprintf(`{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. + data := []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() + + var createScheduledSearchRequest v2025.CreateScheduledSearchRequest + if err := json.Unmarshal(data, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -150,16 +160,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + + + 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) @@ -210,16 +224,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + + + 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) @@ -272,19 +290,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -339,20 +361,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - typedReference := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" - }`) # TypedReference | The recipient to be removed from the scheduled search. + }`) // TypedReference | The recipient to be removed from the scheduled search. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() + + var typedReference v2025.TypedReference + if err := json.Unmarshal(data, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -405,13 +437,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - scheduledSearch := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -501,11 +534,20 @@ func main() { "modified" : "", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false - }`) # ScheduledSearch | The scheduled search to persist. + }`) // ScheduledSearch | The scheduled search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() + + var scheduledSearch v2025.ScheduledSearch + if err := json.Unmarshal(data, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md index b7507776e..dea4913b3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md @@ -84,12 +84,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -205,14 +206,23 @@ func main() { "type" : "access" } } - }`) # Search | - 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) - 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) + }`) // Search | + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + + var search v2025.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -261,12 +271,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -382,11 +393,20 @@ func main() { "type" : "access" } } - }`) # Search | + }`) // Search | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SearchAPI.SearchCount(context.Background()).Search(search).Execute() + + var search v2025.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -439,17 +459,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SearchAPI.SearchGet(context.Background(), index, id).Execute() + + + 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) @@ -501,12 +525,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -622,14 +647,23 @@ func main() { "type" : "access" } } - }`) # Search | - 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 := 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) + }`) // Search | + 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 := 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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + + var search v2025.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md index 2a64bac37..25ea83181 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md @@ -90,24 +90,34 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - searchAttributeConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() + + var searchAttributeConfig v2025.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -172,17 +182,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -242,18 +256,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) + 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() + + + 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) @@ -318,17 +336,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -396,18 +418,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := promotedMailAttribute # string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. - 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 := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) # []JsonPatchOperation | + name := `promotedMailAttribute` // string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. + 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 := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md index 27bde433b..2fbc42dee 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md @@ -77,12 +77,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -105,11 +106,20 @@ func main() { "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + + var segment v2025.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -163,16 +173,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to delete. # string | The segment ID to delete. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + + + 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) @@ -223,16 +237,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to retrieve. # string | The segment ID to retrieve. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SegmentsAPI.GetSegment(context.Background(), id).Execute() + + + 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) @@ -283,18 +301,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -349,17 +371,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to modify. # string | The segment ID to modify. - requestBody := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md index 8f7d5cb54..c1d80047e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md @@ -88,12 +88,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -126,11 +127,20 @@ func main() { }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -183,16 +193,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete + id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -243,16 +257,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get + id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -305,16 +323,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + + + 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) @@ -359,15 +381,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + + + 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) @@ -420,20 +446,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 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) + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + + + 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) @@ -478,15 +508,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + + + 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) @@ -520,7 +554,7 @@ Other parameters are passed through a pointer to a apiPatchServiceDeskIntegratio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchServiceDeskIntegrationRequest** | [**PatchServiceDeskIntegrationRequest**](../models/patch-service-desk-integration-request) | 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. | + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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. | ### Return type @@ -540,17 +574,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - patchServiceDeskIntegrationRequest := fmt.Sprintf(``) # PatchServiceDeskIntegrationRequest | 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. + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + jsonPatchOperation := fmt.Sprintf(``) // []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).PatchServiceDeskIntegrationRequest(patchServiceDeskIntegrationRequest).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -604,13 +648,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -643,11 +688,20 @@ func main() { }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -696,19 +750,29 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + + var queuedCheckConfigDetails v2025.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md index 0f9fd486a..21d3c02ba 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md @@ -63,16 +63,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + + + 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) @@ -129,20 +133,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source - 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) - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md index c76433408..10390b94d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md @@ -168,13 +168,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -213,11 +214,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -267,12 +277,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -354,12 +365,21 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # 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) + }`) // 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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + + var source v2025.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -414,17 +434,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - schedule1 := fmt.Sprintf(``) # Schedule1 | + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(``) // Schedule1 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() + + var schedule1 v2025.Schedule1 + if err := json.Unmarshal(data, &schedule1); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -479,13 +509,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -518,11 +549,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + + var schema v2025.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -593,17 +633,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -668,17 +712,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -731,17 +779,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -793,16 +845,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.DeleteSource(context.Background(), id).Execute() + + + 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) @@ -857,17 +913,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - scheduleType := ACCOUNT_AGGREGATION # string | The Schedule type. # string | The Schedule type. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + + + 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) @@ -920,17 +980,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -982,16 +1046,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + + + 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) @@ -1042,16 +1110,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id + id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() + + + 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) @@ -1107,17 +1179,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() + + + 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) @@ -1180,17 +1256,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1245,17 +1325,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -1308,16 +1392,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSource(context.Background(), id).Execute() + + + 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) @@ -1382,17 +1470,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1446,17 +1538,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() + + + 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) @@ -1509,16 +1605,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() + + + 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) @@ -1582,16 +1682,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -1644,16 +1748,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + + + 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) @@ -1709,17 +1817,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - scheduleType := ACCOUNT_AGGREGATION # string | The Schedule type. # string | The Schedule type. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + + + 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) @@ -1780,16 +1892,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() + + + 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) @@ -1845,17 +1961,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -1910,18 +2030,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + + + 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) @@ -1934,17 +2058,6 @@ func main() { [[Back to top]](#) ## import-accounts -:::warning experimental -This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to `true` to use this endpoint. -::: -:::tip setting x-sailpoint-experimental header - on the configuration object you can set the `x-sailpoint-experimental` header to `true' to enable all experimantl endpoints within the SDK. - Example: - ```go - configuration = Configuration() - configuration.experimental = True - ``` -::: Account Aggregation Starts an account aggregation on the specified source. If the target source is a delimited file source, then the CSV file needs to be included in the request body. @@ -1968,7 +2081,6 @@ Other parameters are passed through a pointer to a apiImportAccountsRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xSailPointExperimental** | **string** | Use this header to enable this experimental API. | [default to "true"] **file** | ***os.File** | The CSV file containing the source accounts to aggregate. | **disableOptimization** | **string** | Use this flag to reprocess every account whether or not the data has changed. | @@ -1990,19 +2102,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Source Id # string | 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") - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id # string | Source Id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).DisableOptimization(disableOptimization).Execute() + + + 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) @@ -2062,17 +2177,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() + + + 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) @@ -2126,17 +2245,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() + + + 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) @@ -2197,18 +2320,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + 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) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() + + + 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) @@ -2274,18 +2401,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 75dbec1ebe154d5785da27b95e1dd5d7 # string | Source Id # string | 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") - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + id := `75dbec1ebe154d5785da27b95e1dd5d7` // string | Source Id # string | 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") + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() + + + 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) @@ -2338,16 +2469,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + + + 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) @@ -2402,22 +2537,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 "Employees" # string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - 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) + 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) + 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 "Employees"` // string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + + + 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) @@ -2470,16 +2609,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + + + 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) @@ -2533,13 +2676,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | The source id # string | The source id - correlationConfig := fmt.Sprintf(`{ + id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + data := []byte(`{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -2559,11 +2703,20 @@ func main() { } ], "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" - }`) # CorrelationConfig | + }`) // CorrelationConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() + + var correlationConfig v2025.CorrelationConfig + if err := json.Unmarshal(data, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2629,25 +2782,35 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - nativeChangeDetectionConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], "allNonEntitlementAttributes" : false, "allEntitlements" : false, "enabled" : true - }`) # NativeChangeDetectionConfig | + }`) // NativeChangeDetectionConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() + + var nativeChangeDetectionConfig v2025.NativeChangeDetectionConfig + if err := json.Unmarshal(data, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2705,14 +2868,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - provisioningPolicyDto := fmt.Sprintf(`{ + 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. + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -2751,11 +2915,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2821,13 +2994,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -2909,11 +3083,20 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + + var source v2025.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2980,14 +3163,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - attrSyncSourceConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -3004,11 +3188,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4b232a", "type" : "SOURCE" } - }`) # AttrSyncSourceConfig | + }`) // AttrSyncSourceConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() + + var attrSyncSourceConfig v2025.AttrSyncSourceConfig + if err := json.Unmarshal(data, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3074,14 +3267,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -3114,11 +3308,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + + var schema v2025.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3172,20 +3375,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source - resourceObjectsRequest := fmt.Sprintf(`{ + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + data := []byte(`{ "maxCount" : 100, "objectType" : "group" - }`) # ResourceObjectsRequest | + }`) // ResourceObjectsRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() + + var resourceObjectsRequest v2025.ResourceObjectsRequest + if err := json.Unmarshal(data, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3250,17 +3463,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -3313,16 +3530,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source # string | The ID of the Source + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + + + 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) @@ -3375,16 +3596,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := cef3ee201db947c5912551015ba0c679 # string | The ID of the Source. # string | The ID of the Source. + sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + + + 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) @@ -3440,17 +3665,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - passwordPolicyHoldersDtoInner := fmt.Sprintf(``) # []PasswordPolicyHoldersDtoInner | + sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + passwordPolicyHoldersDtoInner := fmt.Sprintf(``) // []PasswordPolicyHoldersDtoInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() + + var passwordPolicyHoldersDtoInner v2025.PasswordPolicyHoldersDtoInner + if err := json.Unmarshal(data, &passwordPolicyHoldersDtoInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3504,17 +3739,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - provisioningPolicyDto := fmt.Sprintf(``) # []ProvisioningPolicyDto | + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3572,18 +3817,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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. + 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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3652,17 +3907,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - jsonPatchOperation := fmt.Sprintf(`[{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). + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + jsonPatchOperation := fmt.Sprintf(`[{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). - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3727,13 +3992,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceEntitlementRequestConfig := fmt.Sprintf(`{ + 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") + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -3745,11 +4011,20 @@ func main() { } ], "requestCommentRequired" : true } - }`) # SourceEntitlementRequestConfig | + }`) // SourceEntitlementRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() + + var sourceEntitlementRequestConfig v2025.SourceEntitlementRequestConfig + if err := json.Unmarshal(data, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3810,18 +4085,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - scheduleType := ACCOUNT_AGGREGATION # string | The Schedule type. # string | The Schedule type. - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) # []JsonPatchOperation | The JSONPatch payload used to update the schedule. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schedule. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -3906,18 +4191,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. - jsonPatchOperation := fmt.Sprintf(`[{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. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md index d864bf96a..140bfca33 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md @@ -72,16 +72,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - batchId := 8c190e67-87aa-4ed9-a90b-d9d5344523fb # string | Batch Id # string | Batch Id + batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + + + 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) @@ -127,15 +131,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + + + 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) @@ -205,23 +213,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := displayName co "Read and Write" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) - sorters := 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, sourceName, status** (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, sourceName, status** (optional) - countOnly := count-only=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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (optional) (default to false) - 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) + 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) + 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 := `displayName co "Read and Write"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) + sorters := `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, sourceName, status** (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, sourceName, status** (optional) + countOnly := count-only=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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (optional) (default to false) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -275,17 +287,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ebab396f-0af1-4050-89b7-dafc63ec70e7 # string | id is sed id # string | id is sed id - sedPatch := fmt.Sprintf(``) # []SedPatch | Sed Patch Request + id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id + sedPatch := fmt.Sprintf(``) // []SedPatch | Sed Patch Request - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() + + var sedPatch v2025.SedPatch + if err := json.Unmarshal(data, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -335,16 +357,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedApproval := fmt.Sprintf(``) # []SedApproval | Sed Approval + sedApproval := fmt.Sprintf(``) // []SedApproval | Sed Approval - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() + + var sedApproval v2025.SedApproval + if err := json.Unmarshal(data, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -394,22 +426,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedAssignment := fmt.Sprintf(`{ + data := []byte(`{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] - }`) # SedAssignment | Sed Assignment Request + }`) // SedAssignment | Sed Assignment Request - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() + + var sedAssignment v2025.SedAssignment + if err := json.Unmarshal(data, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -459,19 +501,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedBatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] - }`) # SedBatchRequest | Sed Batch Request (optional) + }`) // SedBatchRequest | Sed Batch Request (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md index d080136cf..c3271ecce 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md @@ -121,17 +121,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -178,12 +182,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkRemoveTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -194,11 +199,20 @@ func main() { "type" : "IDENTITY" } ], "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() + + var bulkRemoveTaggedObject v2025.BulkRemoveTaggedObject + if err := json.Unmarshal(data, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -251,17 +265,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -315,19 +333,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -386,20 +408,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. - 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) - 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) + type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -455,25 +481,35 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to update. # string | The type of tagged object to update. - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + + var taggedObject v2025.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -524,23 +560,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + + var taggedObject v2025.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -587,12 +633,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkAddTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -604,11 +651,20 @@ func main() { } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() + + var bulkAddTaggedObject v2025.BulkAddTaggedObject + if err := json.Unmarshal(data, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md index 6311212ec..3315336e3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md @@ -73,19 +73,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -146,19 +150,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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) + 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") + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + + + 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) @@ -223,17 +231,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -299,21 +311,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -379,18 +395,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | The JSONPatch payload used to update the object. + 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") + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md index a49a7e2a8..8c96678d2 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md @@ -51,15 +51,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TenantAPI.GetTenant(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md index 7b30ce2a5..13f2fade7 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md @@ -70,16 +70,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -145,21 +149,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + 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") + data := []byte(`{ "op" : "replace", "path" : "/description", "value" : "New description" - }`) # JsonPatchOperation | + }`) // JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md index 4ad6624d5..01d678e27 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md @@ -64,20 +64,30 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + + var transform v2025.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -130,16 +140,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to delete # string | ID of the transform to delete + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + + + 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) @@ -190,16 +204,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to retrieve # string | ID of the transform to retrieve + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TransformsAPI.GetTransform(context.Background(), id).Execute() + + + 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) @@ -252,20 +270,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + + + 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) @@ -319,21 +341,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md index e7c307ce8..1017bebc8 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md @@ -122,24 +122,34 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | The ID of the invocation to complete. # string | The ID of the invocation to complete. - 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") - completeInvocation := fmt.Sprintf(`{ + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the invocation to complete. # string | The ID of the invocation to complete. + 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") + data := []byte(`{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." - }`) # CompleteInvocation | + }`) // CompleteInvocation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() + + var completeInvocation v2025.CompleteInvocation + if err := json.Unmarshal(data, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -200,13 +210,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - subscriptionPostRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -230,11 +241,20 @@ func main() { "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPostRequest | + }`) // SubscriptionPostRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() + + var subscriptionPostRequest v2025.SubscriptionPostRequest + if err := json.Unmarshal(data, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -299,17 +319,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -372,21 +396,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -453,21 +481,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -532,21 +564,25 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - 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) - 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 := 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) + 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") + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -614,18 +650,28 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde # string | ID of the Subscription to patch # string | ID of the Subscription to patch - 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 := fmt.Sprintf(``) # []SubscriptionPatchRequestInner | + id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | ID of the Subscription to patch # string | ID of the Subscription to patch + 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 := fmt.Sprintf(``) // []SubscriptionPatchRequestInner | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() + + var subscriptionPatchRequestInner v2025.SubscriptionPatchRequestInner + if err := json.Unmarshal(data, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -686,13 +732,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - testInvocation := fmt.Sprintf(`{ + 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") + data := []byte(`{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -701,11 +748,20 @@ func main() { "contentJson" : { "workflowId" : 1234 } - }`) # TestInvocation | + }`) // TestInvocation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() + + var testInvocation v2025.TestInvocation + if err := json.Unmarshal(data, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -767,22 +823,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - validateFilterInputDto := fmt.Sprintf(`{ + 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") + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } - }`) # ValidateFilterInputDto | + }`) // ValidateFilterInputDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() + + var validateFilterInputDto v2025.ValidateFilterInputDto + if err := json.Unmarshal(data, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -857,14 +923,15 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - subscriptionPutRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -887,11 +954,20 @@ func main() { "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPutRequest | + }`) // SubscriptionPutRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() + + var subscriptionPutRequest v2025.SubscriptionPutRequest + if err := json.Unmarshal(data, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md index 23d14c2e8..69437aa56 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md @@ -68,16 +68,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -138,21 +142,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantUiMetadataItemUpdateRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" - }`) # TenantUiMetadataItemUpdateRequest | + }`) // TenantUiMetadataItemUpdateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() + + var tenantUiMetadataItemUpdateRequest v2025.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(data, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md index f28b1a40d..6cea1fd70 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md @@ -62,12 +62,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -89,11 +90,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping v2025.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,12 +153,13 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -170,11 +181,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping v2025.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -220,15 +240,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md index 8b6ffe754..c7eb09996 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md @@ -87,17 +87,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -150,16 +154,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -213,17 +221,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + + + 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) @@ -289,22 +301,32 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item - 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") - workItemForward := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item + 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") + data := []byte(`{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true - }`) # WorkItemForward | + }`) // WorkItemForward | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() + + var workItemForward v2025.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -354,19 +376,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 1211bcaa32112bcef6122adb21cef1ac # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - 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) - 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 | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -427,17 +453,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() + + + 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) @@ -486,16 +516,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ef38f94347e94562b5bb8424a56397d8 # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -548,16 +582,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the work item. # string | ID of the work item. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + + + 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) @@ -606,16 +644,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 1211bcaa32112bcef6122adb21cef1ac # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -667,19 +709,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + + + 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) @@ -734,17 +780,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -797,16 +847,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -860,17 +914,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md index fbc444228..1506f52e2 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md @@ -85,23 +85,33 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - configurationItemRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + + var configurationItemRequest v2025.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -168,18 +178,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # string | unique identity id # string | unique identity id - 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") + identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -245,19 +259,23 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # string | unique identity id # string | unique identity id - configType := accessRequests # ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type - 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 := fmt.Sprintf(`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) + identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id + configType := accessRequests // ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type + 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 := fmt.Sprintf(`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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() + + + 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) @@ -317,16 +335,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -391,17 +413,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -461,16 +487,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -530,16 +560,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + + + 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) @@ -605,24 +639,34 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c91808781a71ddb0181b9090b5c504e # 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") - configurationItemRequest := fmt.Sprintf(`{ + identityId := `2c91808781a71ddb0181b9090b5c504e` // 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") + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + + var configurationItemRequest v2025.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -683,21 +727,31 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantConfigurationRequest := fmt.Sprintf(`{ + 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") + data := []byte(`{ "configDetails" : { "disabled" : true } - }`) # TenantConfigurationRequest | + }`) // TenantConfigurationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() + + var tenantConfigurationRequest v2025.TenantConfigurationRequest + if err := json.Unmarshal(data, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md index 6f2f59659..6b350c1ba 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md @@ -77,16 +77,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | The workflow execution ID # string | The workflow execution ID + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -138,17 +142,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - createExternalExecuteWorkflowRequest := fmt.Sprintf(``) # CreateExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -197,16 +205,26 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + + var createWorkflowRequest v2025.CreateWorkflowRequest + if err := json.Unmarshal(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -259,16 +277,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + + + 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) @@ -321,16 +343,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V2025.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + + + 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) @@ -381,16 +407,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + + + 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) @@ -443,16 +473,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow execution ID. # string | Workflow execution ID. + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -505,16 +539,20 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow execution # string | Id of the workflow execution + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + + + 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) @@ -581,20 +619,24 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow ID. # string | Workflow ID. - 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) - 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) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow ID. # string | Workflow ID. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -644,17 +686,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + + + 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) @@ -705,18 +751,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -761,15 +811,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + + + 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) @@ -820,18 +874,22 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -876,15 +934,19 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + + + 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) @@ -938,17 +1000,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - jsonPatchOperation := fmt.Sprintf(`[{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + jsonPatchOperation := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1002,13 +1074,14 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -1037,21 +1110,24 @@ func main() { }, "trigger" : { "displayName" : "displayName", - "attributes" : { - "description" : "Triggered when an identity's manager attribute changes", - "formDefinitionId" : "Admin_Access_Request_Form", - "attributeToFilter" : "LifecycleState", - "id" : "idn:identity-attributes-changed", - "filter.$" : "$.changes[?(@.attribute == 'manager')]" - }, + "attributes" : "{}", "type" : "EVENT" }, "enabled" : false - }`) # WorkflowBody | + }`) // WorkflowBody | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + + var workflowBody v2025.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1105,17 +1181,21 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -1129,10 +1209,19 @@ func main() { ## test-workflow Test Workflow By Id +:::info + +Workflow must be disabled in order to use this endpoint. + +::: + Test a workflow with the provided input data. The input data should resemble the input that the trigger will send the workflow. See the [event trigger documentation](https://developer.sailpoint.com/idn/docs/event-triggers/available) for an example input for the trigger that initiates this workflow. + This endpoint will return an execution ID, which can be used to lookup more information about the execution using the `Get a Workflow Execution` endpoint. + **This will cause a live run of the workflow, which could result in unintended modifications to your IDN tenant.** + [API Spec](https://developer.sailpoint.com/docs/api/v2025/test-workflow) ### Path Parameters @@ -1171,17 +1260,27 @@ import ( "context" "fmt" "os" - v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V2025.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + + var testWorkflowRequest v2025.TestWorkflowRequest + if err := json.Unmarshal(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md index 5a6f857c1..e96520864 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md @@ -19,6 +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] ## Methods @@ -139,4 +140,39 @@ SetClientMetadata sets ClientMetadata field to given value. HasClientMetadata returns a boolean if a field has been set. +### GetRequestedForWithRequestedItems + +`func (o *AccessRequest) GetRequestedForWithRequestedItems() []RequestedForDtoRef` + +GetRequestedForWithRequestedItems returns the RequestedForWithRequestedItems field if non-nil, zero value otherwise. + +### GetRequestedForWithRequestedItemsOk + +`func (o *AccessRequest) GetRequestedForWithRequestedItemsOk() (*[]RequestedForDtoRef, bool)` + +GetRequestedForWithRequestedItemsOk returns a tuple with the RequestedForWithRequestedItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedForWithRequestedItems + +`func (o *AccessRequest) SetRequestedForWithRequestedItems(v []RequestedForDtoRef)` + +SetRequestedForWithRequestedItems sets RequestedForWithRequestedItems field to given value. + +### HasRequestedForWithRequestedItems + +`func (o *AccessRequest) HasRequestedForWithRequestedItems() bool` + +HasRequestedForWithRequestedItems returns a boolean if a field has been set. + +### SetRequestedForWithRequestedItemsNil + +`func (o *AccessRequest) SetRequestedForWithRequestedItemsNil(b bool)` + + SetRequestedForWithRequestedItemsNil sets the value for RequestedForWithRequestedItems to be an explicit nil + +### UnsetRequestedForWithRequestedItems +`func (o *AccessRequest) UnsetRequestedForWithRequestedItems()` + +UnsetRequestedForWithRequestedItems ensures that no value is present for RequestedForWithRequestedItems, 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 new file mode 100644 index 000000000..f8e122406 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem1.md @@ -0,0 +1,230 @@ +--- +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/AccountInfoRef.md b/docs/tools/sdk/go/Reference/V2025/Models/AccountInfoRef.md new file mode 100644 index 000000000..8e403ac64 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccountInfoRef.md @@ -0,0 +1,168 @@ +--- +id: v2025-account-info-ref +title: AccountInfoRef +pagination_label: AccountInfoRef +sidebar_label: AccountInfoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountInfoRef', 'V2025AccountInfoRef'] +slug: /tools/sdk/go/v2025/models/account-info-ref +tags: ['SDK', 'Software Development Kit', 'AccountInfoRef', 'V2025AccountInfoRef'] +--- + +# AccountInfoRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The uuid for the account, available under the 'objectguid' attribute | [optional] +**NativeIdentity** | Pointer to **string** | The 'distinguishedName' attribute for the account | [optional] +**Type** | Pointer to [**DtoType**](dto-type) | | [optional] +**Id** | Pointer to **string** | The account id | [optional] +**Name** | Pointer to **string** | The account display name | [optional] + +## Methods + +### NewAccountInfoRef + +`func NewAccountInfoRef() *AccountInfoRef` + +NewAccountInfoRef instantiates a new AccountInfoRef 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 + +### NewAccountInfoRefWithDefaults + +`func NewAccountInfoRefWithDefaults() *AccountInfoRef` + +NewAccountInfoRefWithDefaults instantiates a new AccountInfoRef 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 + +### GetUuid + +`func (o *AccountInfoRef) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *AccountInfoRef) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *AccountInfoRef) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *AccountInfoRef) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetNativeIdentity + +`func (o *AccountInfoRef) GetNativeIdentity() string` + +GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. + +### GetNativeIdentityOk + +`func (o *AccountInfoRef) 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 *AccountInfoRef) SetNativeIdentity(v string)` + +SetNativeIdentity sets NativeIdentity field to given value. + +### HasNativeIdentity + +`func (o *AccountInfoRef) HasNativeIdentity() bool` + +HasNativeIdentity returns a boolean if a field has been set. + +### GetType + +`func (o *AccountInfoRef) GetType() DtoType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AccountInfoRef) GetTypeOk() (*DtoType, 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 *AccountInfoRef) SetType(v DtoType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AccountInfoRef) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *AccountInfoRef) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccountInfoRef) 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 *AccountInfoRef) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AccountInfoRef) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *AccountInfoRef) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountInfoRef) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AccountInfoRef) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AccountInfoRef) HasName() bool` + +HasName returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccountItemRef.md b/docs/tools/sdk/go/Reference/V2025/Models/AccountItemRef.md new file mode 100644 index 000000000..9cef371d2 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccountItemRef.md @@ -0,0 +1,100 @@ +--- +id: v2025-account-item-ref +title: AccountItemRef +pagination_label: AccountItemRef +sidebar_label: AccountItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountItemRef', 'V2025AccountItemRef'] +slug: /tools/sdk/go/v2025/models/account-item-ref +tags: ['SDK', 'Software Development Kit', 'AccountItemRef', 'V2025AccountItemRef'] +--- + +# AccountItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUuid** | Pointer to **NullableString** | The uuid for the account, available under the 'objectguid' attribute | [optional] +**NativeIdentity** | Pointer to **string** | The 'distinguishedName' attribute for the account | [optional] + +## Methods + +### NewAccountItemRef + +`func NewAccountItemRef() *AccountItemRef` + +NewAccountItemRef instantiates a new AccountItemRef 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 + +### NewAccountItemRefWithDefaults + +`func NewAccountItemRefWithDefaults() *AccountItemRef` + +NewAccountItemRefWithDefaults instantiates a new AccountItemRef 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 + +### GetAccountUuid + +`func (o *AccountItemRef) GetAccountUuid() string` + +GetAccountUuid returns the AccountUuid field if non-nil, zero value otherwise. + +### GetAccountUuidOk + +`func (o *AccountItemRef) GetAccountUuidOk() (*string, bool)` + +GetAccountUuidOk returns a tuple with the AccountUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUuid + +`func (o *AccountItemRef) SetAccountUuid(v string)` + +SetAccountUuid sets AccountUuid field to given value. + +### HasAccountUuid + +`func (o *AccountItemRef) HasAccountUuid() bool` + +HasAccountUuid returns a boolean if a field has been set. + +### SetAccountUuidNil + +`func (o *AccountItemRef) SetAccountUuidNil(b bool)` + + SetAccountUuidNil sets the value for AccountUuid to be an explicit nil + +### UnsetAccountUuid +`func (o *AccountItemRef) UnsetAccountUuid()` + +UnsetAccountUuid ensures that no value is present for AccountUuid, not even an explicit nil +### GetNativeIdentity + +`func (o *AccountItemRef) GetNativeIdentity() string` + +GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. + +### GetNativeIdentityOk + +`func (o *AccountItemRef) 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 *AccountItemRef) SetNativeIdentity(v string)` + +SetNativeIdentity sets NativeIdentity field to given value. + +### HasNativeIdentity + +`func (o *AccountItemRef) HasNativeIdentity() bool` + +HasNativeIdentity returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionRequest.md b/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionRequest.md new file mode 100644 index 000000000..cdf3980c5 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionRequest.md @@ -0,0 +1,142 @@ +--- +id: v2025-accounts-selection-request +title: AccountsSelectionRequest +pagination_label: AccountsSelectionRequest +sidebar_label: AccountsSelectionRequest +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountsSelectionRequest', 'V2025AccountsSelectionRequest'] +slug: /tools/sdk/go/v2025/models/accounts-selection-request +tags: ['SDK', 'Software Development Kit', 'AccountsSelectionRequest', 'V2025AccountsSelectionRequest'] +--- + +# AccountsSelectionRequest + +## Properties + +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) | | +**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` + +NewAccountsSelectionRequest instantiates a new AccountsSelectionRequest 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 + +### NewAccountsSelectionRequestWithDefaults + +`func NewAccountsSelectionRequestWithDefaults() *AccountsSelectionRequest` + +NewAccountsSelectionRequestWithDefaults instantiates a new AccountsSelectionRequest 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 + +### GetRequestedFor + +`func (o *AccountsSelectionRequest) GetRequestedFor() []string` + +GetRequestedFor returns the RequestedFor field if non-nil, zero value otherwise. + +### GetRequestedForOk + +`func (o *AccountsSelectionRequest) GetRequestedForOk() (*[]string, bool)` + +GetRequestedForOk returns a tuple with the RequestedFor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedFor + +`func (o *AccountsSelectionRequest) SetRequestedFor(v []string)` + +SetRequestedFor sets RequestedFor field to given value. + + +### GetRequestType + +`func (o *AccountsSelectionRequest) GetRequestType() AccessRequestType` + +GetRequestType returns the RequestType field if non-nil, zero value otherwise. + +### GetRequestTypeOk + +`func (o *AccountsSelectionRequest) GetRequestTypeOk() (*AccessRequestType, bool)` + +GetRequestTypeOk returns a tuple with the RequestType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestType + +`func (o *AccountsSelectionRequest) SetRequestType(v AccessRequestType)` + +SetRequestType sets RequestType field to given value. + +### HasRequestType + +`func (o *AccountsSelectionRequest) HasRequestType() bool` + +HasRequestType returns a boolean if a field has been set. + +### SetRequestTypeNil + +`func (o *AccountsSelectionRequest) SetRequestTypeNil(b bool)` + + SetRequestTypeNil sets the value for RequestType to be an explicit nil + +### UnsetRequestType +`func (o *AccountsSelectionRequest) UnsetRequestType()` + +UnsetRequestType ensures that no value is present for RequestType, not even an explicit nil +### GetRequestedItems + +`func (o *AccountsSelectionRequest) GetRequestedItems() []AccessRequestItem1` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`func (o *AccountsSelectionRequest) GetRequestedItemsOk() (*[]AccessRequestItem1, 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)` + +SetRequestedItems sets RequestedItems field to given value. + + +### GetClientMetadata + +`func (o *AccountsSelectionRequest) GetClientMetadata() map[string]string` + +GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. + +### GetClientMetadataOk + +`func (o *AccountsSelectionRequest) 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 *AccountsSelectionRequest) SetClientMetadata(v map[string]string)` + +SetClientMetadata sets ClientMetadata field to given value. + +### HasClientMetadata + +`func (o *AccountsSelectionRequest) HasClientMetadata() bool` + +HasClientMetadata returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionResponse.md b/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionResponse.md new file mode 100644 index 000000000..afc72f8cf --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionResponse.md @@ -0,0 +1,64 @@ +--- +id: v2025-accounts-selection-response +title: AccountsSelectionResponse +pagination_label: AccountsSelectionResponse +sidebar_label: AccountsSelectionResponse +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountsSelectionResponse', 'V2025AccountsSelectionResponse'] +slug: /tools/sdk/go/v2025/models/accounts-selection-response +tags: ['SDK', 'Software Development Kit', 'AccountsSelectionResponse', 'V2025AccountsSelectionResponse'] +--- + +# AccountsSelectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identities** | Pointer to [**[]IdentityAccountSelections**](identity-account-selections) | A list of available account selections per identity in the request, for all the requested items | [optional] + +## Methods + +### NewAccountsSelectionResponse + +`func NewAccountsSelectionResponse() *AccountsSelectionResponse` + +NewAccountsSelectionResponse instantiates a new AccountsSelectionResponse 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 + +### NewAccountsSelectionResponseWithDefaults + +`func NewAccountsSelectionResponseWithDefaults() *AccountsSelectionResponse` + +NewAccountsSelectionResponseWithDefaults instantiates a new AccountsSelectionResponse 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 + +### GetIdentities + +`func (o *AccountsSelectionResponse) GetIdentities() []IdentityAccountSelections` + +GetIdentities returns the Identities field if non-nil, zero value otherwise. + +### GetIdentitiesOk + +`func (o *AccountsSelectionResponse) GetIdentitiesOk() (*[]IdentityAccountSelections, bool)` + +GetIdentitiesOk returns a tuple with the Identities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentities + +`func (o *AccountsSelectionResponse) SetIdentities(v []IdentityAccountSelections)` + +SetIdentities sets Identities field to given value. + +### HasIdentities + +`func (o *AccountsSelectionResponse) HasIdentities() bool` + +HasIdentities returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AttributeDefinitionType.md b/docs/tools/sdk/go/Reference/V2025/Models/AttributeDefinitionType.md index da06e43c1..342a8d0ec 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/AttributeDefinitionType.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/AttributeDefinitionType.md @@ -22,4 +22,6 @@ tags: ['SDK', 'Software Development Kit', 'AttributeDefinitionType', 'V2025Attri * `BOOLEAN` (value: `"BOOLEAN"`) +* `DATE` (value: `"DATE"`) + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/Entitlement.md b/docs/tools/sdk/go/Reference/V2025/Models/Entitlement.md index a70f8a4aa..fc6fa7507 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/Entitlement.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/Entitlement.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **Value** | Pointer to **string** | The value of the entitlement | [optional] **SourceSchemaObjectType** | Pointer to **string** | The object type of the entitlement from the source schema | [optional] **Description** | Pointer to **NullableString** | The description of the entitlement | [optional] -**Privileged** | Pointer to **bool** | True if the entitlement is privileged | [optional] -**CloudGoverned** | Pointer to **bool** | True if the entitlement is cloud governed | [optional] +**Privileged** | Pointer to **bool** | True if the entitlement is privileged | [optional] [default to false] +**CloudGoverned** | Pointer to **bool** | True if the entitlement is cloud governed | [optional] [default to false] **Requestable** | Pointer to **bool** | True if the entitlement is able to be directly requested | [optional] [default to false] **Owner** | Pointer to [**NullableEntitlementOwner**](entitlement-owner) | | [optional] **ManuallyUpdatedFields** | Pointer to **map[string]interface{}** | A map of entitlement fields that have been manually updated. The key is the field name in UPPER_SNAKE_CASE format, and the value is true or false to indicate if the field has been updated. | [optional] diff --git a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md index 505f0e4c2..6f35aeae3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md @@ -15,10 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'EntitlementRequestConfig', 'V2025Enti Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowEntitlementRequest** | Pointer to **bool** | If this is true, entitlement requests are allowed. | [optional] [default to false] -**RequestCommentsRequired** | Pointer to **bool** | If this is true, comments are required to submit entitlement requests. | [optional] [default to false] -**DeniedCommentsRequired** | Pointer to **bool** | If this is true, comments are required to reject entitlement requests. | [optional] [default to false] -**GrantRequestApprovalSchemes** | Pointer to **NullableString** | Approval schemes for granting entitlement request. This can be empty if no approval is needed. Multiple schemes must be comma-separated. The valid schemes are \"entitlementOwner\", \"sourceOwner\", \"manager\" and \"`workgroup:{id}`\". You can use multiple governance groups (workgroups). | [optional] [default to "sourceOwner"] +**AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] ## Methods @@ -39,114 +36,29 @@ NewEntitlementRequestConfigWithDefaults instantiates a new EntitlementRequestCon 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 -### GetAllowEntitlementRequest +### GetAccessRequestConfig -`func (o *EntitlementRequestConfig) GetAllowEntitlementRequest() bool` +`func (o *EntitlementRequestConfig) GetAccessRequestConfig() EntitlementAccessRequestConfig` -GetAllowEntitlementRequest returns the AllowEntitlementRequest field if non-nil, zero value otherwise. +GetAccessRequestConfig returns the AccessRequestConfig field if non-nil, zero value otherwise. -### GetAllowEntitlementRequestOk +### GetAccessRequestConfigOk -`func (o *EntitlementRequestConfig) GetAllowEntitlementRequestOk() (*bool, bool)` +`func (o *EntitlementRequestConfig) GetAccessRequestConfigOk() (*EntitlementAccessRequestConfig, bool)` -GetAllowEntitlementRequestOk returns a tuple with the AllowEntitlementRequest field if it's non-nil, zero value otherwise +GetAccessRequestConfigOk returns a tuple with the AccessRequestConfig field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAllowEntitlementRequest +### SetAccessRequestConfig -`func (o *EntitlementRequestConfig) SetAllowEntitlementRequest(v bool)` +`func (o *EntitlementRequestConfig) SetAccessRequestConfig(v EntitlementAccessRequestConfig)` -SetAllowEntitlementRequest sets AllowEntitlementRequest field to given value. +SetAccessRequestConfig sets AccessRequestConfig field to given value. -### HasAllowEntitlementRequest +### HasAccessRequestConfig -`func (o *EntitlementRequestConfig) HasAllowEntitlementRequest() bool` +`func (o *EntitlementRequestConfig) HasAccessRequestConfig() bool` -HasAllowEntitlementRequest returns a boolean if a field has been set. +HasAccessRequestConfig returns a boolean if a field has been set. -### GetRequestCommentsRequired - -`func (o *EntitlementRequestConfig) GetRequestCommentsRequired() bool` - -GetRequestCommentsRequired returns the RequestCommentsRequired field if non-nil, zero value otherwise. - -### GetRequestCommentsRequiredOk - -`func (o *EntitlementRequestConfig) GetRequestCommentsRequiredOk() (*bool, bool)` - -GetRequestCommentsRequiredOk returns a tuple with the RequestCommentsRequired field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestCommentsRequired - -`func (o *EntitlementRequestConfig) SetRequestCommentsRequired(v bool)` - -SetRequestCommentsRequired sets RequestCommentsRequired field to given value. - -### HasRequestCommentsRequired - -`func (o *EntitlementRequestConfig) HasRequestCommentsRequired() bool` - -HasRequestCommentsRequired returns a boolean if a field has been set. - -### GetDeniedCommentsRequired - -`func (o *EntitlementRequestConfig) GetDeniedCommentsRequired() bool` - -GetDeniedCommentsRequired returns the DeniedCommentsRequired field if non-nil, zero value otherwise. - -### GetDeniedCommentsRequiredOk - -`func (o *EntitlementRequestConfig) GetDeniedCommentsRequiredOk() (*bool, bool)` - -GetDeniedCommentsRequiredOk returns a tuple with the DeniedCommentsRequired field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeniedCommentsRequired - -`func (o *EntitlementRequestConfig) SetDeniedCommentsRequired(v bool)` - -SetDeniedCommentsRequired sets DeniedCommentsRequired field to given value. - -### HasDeniedCommentsRequired - -`func (o *EntitlementRequestConfig) HasDeniedCommentsRequired() bool` - -HasDeniedCommentsRequired returns a boolean if a field has been set. - -### GetGrantRequestApprovalSchemes - -`func (o *EntitlementRequestConfig) GetGrantRequestApprovalSchemes() string` - -GetGrantRequestApprovalSchemes returns the GrantRequestApprovalSchemes field if non-nil, zero value otherwise. - -### GetGrantRequestApprovalSchemesOk - -`func (o *EntitlementRequestConfig) GetGrantRequestApprovalSchemesOk() (*string, bool)` - -GetGrantRequestApprovalSchemesOk returns a tuple with the GrantRequestApprovalSchemes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGrantRequestApprovalSchemes - -`func (o *EntitlementRequestConfig) SetGrantRequestApprovalSchemes(v string)` - -SetGrantRequestApprovalSchemes sets GrantRequestApprovalSchemes field to given value. - -### HasGrantRequestApprovalSchemes - -`func (o *EntitlementRequestConfig) HasGrantRequestApprovalSchemes() bool` - -HasGrantRequestApprovalSchemes returns a boolean if a field has been set. - -### SetGrantRequestApprovalSchemesNil - -`func (o *EntitlementRequestConfig) SetGrantRequestApprovalSchemesNil(b bool)` - - SetGrantRequestApprovalSchemesNil sets the value for GrantRequestApprovalSchemes to be an explicit nil - -### UnsetGrantRequestApprovalSchemes -`func (o *EntitlementRequestConfig) UnsetGrantRequestApprovalSchemes()` - -UnsetGrantRequestApprovalSchemes ensures that no value is present for GrantRequestApprovalSchemes, not even an explicit nil diff --git a/docs/tools/sdk/go/Reference/V2025/Models/EventAttributes.md b/docs/tools/sdk/go/Reference/V2025/Models/EventAttributes.md deleted file mode 100644 index 1339050d7..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/EventAttributes.md +++ /dev/null @@ -1,213 +0,0 @@ ---- -id: v2025-event-attributes -title: EventAttributes -pagination_label: EventAttributes -sidebar_label: EventAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'EventAttributes', 'V2025EventAttributes'] -slug: /tools/sdk/go/v2025/models/event-attributes -tags: ['SDK', 'Software Development Kit', 'EventAttributes', 'V2025EventAttributes'] ---- - -# EventAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Description of the event trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] - -## Methods - -### NewEventAttributes - -`func NewEventAttributes(id NullableString, ) *EventAttributes` - -NewEventAttributes instantiates a new EventAttributes 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 - -### NewEventAttributesWithDefaults - -`func NewEventAttributesWithDefaults() *EventAttributes` - -NewEventAttributesWithDefaults instantiates a new EventAttributes 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 - -### GetId - -`func (o *EventAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *EventAttributes) 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 *EventAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *EventAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *EventAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *EventAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *EventAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *EventAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *EventAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *EventAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *EventAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *EventAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *EventAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *EventAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *EventAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *EventAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *EventAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *EventAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *EventAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *EventAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *EventAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *EventAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *EventAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *EventAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *EventAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *EventAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *EventAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *EventAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *EventAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2025/Models/ExternalAttributes.md b/docs/tools/sdk/go/Reference/V2025/Models/ExternalAttributes.md deleted file mode 100644 index 8f54b1884..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/ExternalAttributes.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -id: v2025-external-attributes -title: ExternalAttributes -pagination_label: ExternalAttributes -sidebar_label: ExternalAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ExternalAttributes', 'V2025ExternalAttributes'] -slug: /tools/sdk/go/v2025/models/external-attributes -tags: ['SDK', 'Software Development Kit', 'ExternalAttributes', 'V2025ExternalAttributes'] ---- - -# ExternalAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] - -## Methods - -### NewExternalAttributes - -`func NewExternalAttributes() *ExternalAttributes` - -NewExternalAttributes instantiates a new ExternalAttributes 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 - -### NewExternalAttributesWithDefaults - -`func NewExternalAttributesWithDefaults() *ExternalAttributes` - -NewExternalAttributesWithDefaults instantiates a new ExternalAttributes 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 - -### GetName - -`func (o *ExternalAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ExternalAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *ExternalAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ExternalAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *ExternalAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *ExternalAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetDescription - -`func (o *ExternalAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ExternalAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *ExternalAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ExternalAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *ExternalAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *ExternalAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetClientId - -`func (o *ExternalAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ExternalAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ExternalAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ExternalAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *ExternalAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *ExternalAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *ExternalAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *ExternalAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *ExternalAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *ExternalAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *ExternalAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *ExternalAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2025/Models/FederationProtocolDetails.md b/docs/tools/sdk/go/Reference/V2025/Models/FederationProtocolDetails.md new file mode 100644 index 000000000..d096c223f --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/FederationProtocolDetails.md @@ -0,0 +1,90 @@ +--- +id: v2025-federation-protocol-details +title: FederationProtocolDetails +pagination_label: FederationProtocolDetails +sidebar_label: FederationProtocolDetails +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'FederationProtocolDetails', 'V2025FederationProtocolDetails'] +slug: /tools/sdk/go/v2025/models/federation-protocol-details +tags: ['SDK', 'Software Development Kit', 'FederationProtocolDetails', 'V2025FederationProtocolDetails'] +--- + +# FederationProtocolDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] + +## Methods + +### NewFederationProtocolDetails + +`func NewFederationProtocolDetails() *FederationProtocolDetails` + +NewFederationProtocolDetails instantiates a new FederationProtocolDetails 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 + +### NewFederationProtocolDetailsWithDefaults + +`func NewFederationProtocolDetailsWithDefaults() *FederationProtocolDetails` + +NewFederationProtocolDetailsWithDefaults instantiates a new FederationProtocolDetails 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 + +### GetRole + +`func (o *FederationProtocolDetails) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *FederationProtocolDetails) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *FederationProtocolDetails) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *FederationProtocolDetails) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *FederationProtocolDetails) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *FederationProtocolDetails) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *FederationProtocolDetails) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *FederationProtocolDetails) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/GetCampaign200Response.md b/docs/tools/sdk/go/Reference/V2025/Models/GetCampaign200Response.md new file mode 100644 index 000000000..78868406f --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/GetCampaign200Response.md @@ -0,0 +1,771 @@ +--- +id: v2025-get-campaign200-response +title: GetCampaign200Response +pagination_label: GetCampaign200Response +sidebar_label: GetCampaign200Response +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'GetCampaign200Response', 'V2025GetCampaign200Response'] +slug: /tools/sdk/go/v2025/models/get-campaign200-response +tags: ['SDK', 'Software Development Kit', 'GetCampaign200Response', 'V2025GetCampaign200Response'] +--- + +# GetCampaign200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableString** | Id of the campaign | [optional] [readonly] +**Name** | **string** | The campaign name. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | +**Description** | **NullableString** | The campaign description. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | +**Deadline** | Pointer to **NullableTime** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] +**Type** | **string** | The type of campaign. Could be extended in the future. | +**EmailNotificationEnabled** | Pointer to **bool** | Enables email notification for this campaign | [optional] [default to false] +**AutoRevokeAllowed** | Pointer to **bool** | Allows auto revoke for this campaign | [optional] [default to false] +**RecommendationsEnabled** | Pointer to **bool** | Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future. | [optional] [default to false] +**Status** | Pointer to **NullableString** | The campaign's current status. | [optional] [readonly] +**CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] +**Created** | Pointer to **NullableTime** | Created time of the campaign | [optional] [readonly] +**TotalCertifications** | Pointer to **NullableInt32** | The total number of certifications in this campaign. | [optional] [readonly] +**CompletedCertifications** | Pointer to **NullableInt32** | The number of completed certifications in this campaign. | [optional] [readonly] +**Alerts** | Pointer to [**[]CampaignAlert**](campaign-alert) | A list of errors and warnings that have accumulated. | [optional] [readonly] +**Modified** | Pointer to **NullableTime** | Modified time of the campaign | [optional] [readonly] +**Filter** | Pointer to [**NullableCampaignAllOfFilter**](campaign-all-of-filter) | | [optional] +**SunsetCommentsRequired** | Pointer to **bool** | Determines if comments on sunset date changes are required. | [optional] [default to true] +**SourceOwnerCampaignInfo** | Pointer to [**NullableCampaignAllOfSourceOwnerCampaignInfo**](campaign-all-of-source-owner-campaign-info) | | [optional] +**SearchCampaignInfo** | Pointer to [**NullableCampaignAllOfSearchCampaignInfo**](campaign-all-of-search-campaign-info) | | [optional] +**RoleCompositionCampaignInfo** | Pointer to [**NullableCampaignAllOfRoleCompositionCampaignInfo**](campaign-all-of-role-composition-campaign-info) | | [optional] +**MachineAccountCampaignInfo** | Pointer to [**NullableCampaignAllOfMachineAccountCampaignInfo**](campaign-all-of-machine-account-campaign-info) | | [optional] +**SourcesWithOrphanEntitlements** | Pointer to [**[]CampaignAllOfSourcesWithOrphanEntitlements**](campaign-all-of-sources-with-orphan-entitlements) | A list of sources in the campaign that contain \\\"orphan entitlements\\\" (entitlements without a corresponding Managed Attribute). An empty list indicates the campaign has no orphan entitlements. Null indicates there may be unknown orphan entitlements in the campaign (the campaign was created before this feature was implemented). | [optional] [readonly] +**MandatoryCommentRequirement** | Pointer to **string** | Determines whether comments are required for decisions during certification reviews. You can require comments for all decisions, revoke-only decisions, or no decisions. By default, comments are not required for decisions. | [optional] + +## Methods + +### NewGetCampaign200Response + +`func NewGetCampaign200Response(name string, description NullableString, type_ string, ) *GetCampaign200Response` + +NewGetCampaign200Response instantiates a new GetCampaign200Response 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 + +### NewGetCampaign200ResponseWithDefaults + +`func NewGetCampaign200ResponseWithDefaults() *GetCampaign200Response` + +NewGetCampaign200ResponseWithDefaults instantiates a new GetCampaign200Response 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 + +### GetId + +`func (o *GetCampaign200Response) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GetCampaign200Response) 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 *GetCampaign200Response) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *GetCampaign200Response) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GetCampaign200Response) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GetCampaign200Response) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetName + +`func (o *GetCampaign200Response) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetCampaign200Response) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetCampaign200Response) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *GetCampaign200Response) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *GetCampaign200Response) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *GetCampaign200Response) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *GetCampaign200Response) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *GetCampaign200Response) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDeadline + +`func (o *GetCampaign200Response) GetDeadline() SailPointTime` + +GetDeadline returns the Deadline field if non-nil, zero value otherwise. + +### GetDeadlineOk + +`func (o *GetCampaign200Response) GetDeadlineOk() (*SailPointTime, bool)` + +GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeadline + +`func (o *GetCampaign200Response) SetDeadline(v SailPointTime)` + +SetDeadline sets Deadline field to given value. + +### HasDeadline + +`func (o *GetCampaign200Response) HasDeadline() bool` + +HasDeadline returns a boolean if a field has been set. + +### SetDeadlineNil + +`func (o *GetCampaign200Response) SetDeadlineNil(b bool)` + + SetDeadlineNil sets the value for Deadline to be an explicit nil + +### UnsetDeadline +`func (o *GetCampaign200Response) UnsetDeadline()` + +UnsetDeadline ensures that no value is present for Deadline, not even an explicit nil +### GetType + +`func (o *GetCampaign200Response) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GetCampaign200Response) 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 *GetCampaign200Response) SetType(v string)` + +SetType sets Type field to given value. + + +### GetEmailNotificationEnabled + +`func (o *GetCampaign200Response) GetEmailNotificationEnabled() bool` + +GetEmailNotificationEnabled returns the EmailNotificationEnabled field if non-nil, zero value otherwise. + +### GetEmailNotificationEnabledOk + +`func (o *GetCampaign200Response) GetEmailNotificationEnabledOk() (*bool, bool)` + +GetEmailNotificationEnabledOk returns a tuple with the EmailNotificationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailNotificationEnabled + +`func (o *GetCampaign200Response) SetEmailNotificationEnabled(v bool)` + +SetEmailNotificationEnabled sets EmailNotificationEnabled field to given value. + +### HasEmailNotificationEnabled + +`func (o *GetCampaign200Response) HasEmailNotificationEnabled() bool` + +HasEmailNotificationEnabled returns a boolean if a field has been set. + +### GetAutoRevokeAllowed + +`func (o *GetCampaign200Response) GetAutoRevokeAllowed() bool` + +GetAutoRevokeAllowed returns the AutoRevokeAllowed field if non-nil, zero value otherwise. + +### GetAutoRevokeAllowedOk + +`func (o *GetCampaign200Response) GetAutoRevokeAllowedOk() (*bool, bool)` + +GetAutoRevokeAllowedOk returns a tuple with the AutoRevokeAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoRevokeAllowed + +`func (o *GetCampaign200Response) SetAutoRevokeAllowed(v bool)` + +SetAutoRevokeAllowed sets AutoRevokeAllowed field to given value. + +### HasAutoRevokeAllowed + +`func (o *GetCampaign200Response) HasAutoRevokeAllowed() bool` + +HasAutoRevokeAllowed returns a boolean if a field has been set. + +### GetRecommendationsEnabled + +`func (o *GetCampaign200Response) GetRecommendationsEnabled() bool` + +GetRecommendationsEnabled returns the RecommendationsEnabled field if non-nil, zero value otherwise. + +### GetRecommendationsEnabledOk + +`func (o *GetCampaign200Response) GetRecommendationsEnabledOk() (*bool, bool)` + +GetRecommendationsEnabledOk returns a tuple with the RecommendationsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommendationsEnabled + +`func (o *GetCampaign200Response) SetRecommendationsEnabled(v bool)` + +SetRecommendationsEnabled sets RecommendationsEnabled field to given value. + +### HasRecommendationsEnabled + +`func (o *GetCampaign200Response) HasRecommendationsEnabled() bool` + +HasRecommendationsEnabled returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetCampaign200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetCampaign200Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetCampaign200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetCampaign200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GetCampaign200Response) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GetCampaign200Response) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetCorrelatedStatus + +`func (o *GetCampaign200Response) GetCorrelatedStatus() string` + +GetCorrelatedStatus returns the CorrelatedStatus field if non-nil, zero value otherwise. + +### GetCorrelatedStatusOk + +`func (o *GetCampaign200Response) GetCorrelatedStatusOk() (*string, bool)` + +GetCorrelatedStatusOk returns a tuple with the CorrelatedStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCorrelatedStatus + +`func (o *GetCampaign200Response) SetCorrelatedStatus(v string)` + +SetCorrelatedStatus sets CorrelatedStatus field to given value. + +### HasCorrelatedStatus + +`func (o *GetCampaign200Response) HasCorrelatedStatus() bool` + +HasCorrelatedStatus returns a boolean if a field has been set. + +### GetCreated + +`func (o *GetCampaign200Response) GetCreated() SailPointTime` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *GetCampaign200Response) GetCreatedOk() (*SailPointTime, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *GetCampaign200Response) SetCreated(v SailPointTime)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *GetCampaign200Response) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *GetCampaign200Response) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *GetCampaign200Response) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetTotalCertifications + +`func (o *GetCampaign200Response) GetTotalCertifications() int32` + +GetTotalCertifications returns the TotalCertifications field if non-nil, zero value otherwise. + +### GetTotalCertificationsOk + +`func (o *GetCampaign200Response) GetTotalCertificationsOk() (*int32, bool)` + +GetTotalCertificationsOk returns a tuple with the TotalCertifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCertifications + +`func (o *GetCampaign200Response) SetTotalCertifications(v int32)` + +SetTotalCertifications sets TotalCertifications field to given value. + +### HasTotalCertifications + +`func (o *GetCampaign200Response) HasTotalCertifications() bool` + +HasTotalCertifications returns a boolean if a field has been set. + +### SetTotalCertificationsNil + +`func (o *GetCampaign200Response) SetTotalCertificationsNil(b bool)` + + SetTotalCertificationsNil sets the value for TotalCertifications to be an explicit nil + +### UnsetTotalCertifications +`func (o *GetCampaign200Response) UnsetTotalCertifications()` + +UnsetTotalCertifications ensures that no value is present for TotalCertifications, not even an explicit nil +### GetCompletedCertifications + +`func (o *GetCampaign200Response) GetCompletedCertifications() int32` + +GetCompletedCertifications returns the CompletedCertifications field if non-nil, zero value otherwise. + +### GetCompletedCertificationsOk + +`func (o *GetCampaign200Response) GetCompletedCertificationsOk() (*int32, bool)` + +GetCompletedCertificationsOk returns a tuple with the CompletedCertifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedCertifications + +`func (o *GetCampaign200Response) SetCompletedCertifications(v int32)` + +SetCompletedCertifications sets CompletedCertifications field to given value. + +### HasCompletedCertifications + +`func (o *GetCampaign200Response) HasCompletedCertifications() bool` + +HasCompletedCertifications returns a boolean if a field has been set. + +### SetCompletedCertificationsNil + +`func (o *GetCampaign200Response) SetCompletedCertificationsNil(b bool)` + + SetCompletedCertificationsNil sets the value for CompletedCertifications to be an explicit nil + +### UnsetCompletedCertifications +`func (o *GetCampaign200Response) UnsetCompletedCertifications()` + +UnsetCompletedCertifications ensures that no value is present for CompletedCertifications, not even an explicit nil +### GetAlerts + +`func (o *GetCampaign200Response) GetAlerts() []CampaignAlert` + +GetAlerts returns the Alerts field if non-nil, zero value otherwise. + +### GetAlertsOk + +`func (o *GetCampaign200Response) GetAlertsOk() (*[]CampaignAlert, bool)` + +GetAlertsOk returns a tuple with the Alerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlerts + +`func (o *GetCampaign200Response) SetAlerts(v []CampaignAlert)` + +SetAlerts sets Alerts field to given value. + +### HasAlerts + +`func (o *GetCampaign200Response) HasAlerts() bool` + +HasAlerts returns a boolean if a field has been set. + +### SetAlertsNil + +`func (o *GetCampaign200Response) SetAlertsNil(b bool)` + + SetAlertsNil sets the value for Alerts to be an explicit nil + +### UnsetAlerts +`func (o *GetCampaign200Response) UnsetAlerts()` + +UnsetAlerts ensures that no value is present for Alerts, not even an explicit nil +### GetModified + +`func (o *GetCampaign200Response) GetModified() SailPointTime` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *GetCampaign200Response) GetModifiedOk() (*SailPointTime, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *GetCampaign200Response) SetModified(v SailPointTime)` + +SetModified sets Modified field to given value. + +### HasModified + +`func (o *GetCampaign200Response) HasModified() bool` + +HasModified returns a boolean if a field has been set. + +### SetModifiedNil + +`func (o *GetCampaign200Response) SetModifiedNil(b bool)` + + SetModifiedNil sets the value for Modified to be an explicit nil + +### UnsetModified +`func (o *GetCampaign200Response) UnsetModified()` + +UnsetModified ensures that no value is present for Modified, not even an explicit nil +### GetFilter + +`func (o *GetCampaign200Response) GetFilter() CampaignAllOfFilter` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *GetCampaign200Response) GetFilterOk() (*CampaignAllOfFilter, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *GetCampaign200Response) SetFilter(v CampaignAllOfFilter)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *GetCampaign200Response) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### SetFilterNil + +`func (o *GetCampaign200Response) SetFilterNil(b bool)` + + SetFilterNil sets the value for Filter to be an explicit nil + +### UnsetFilter +`func (o *GetCampaign200Response) UnsetFilter()` + +UnsetFilter ensures that no value is present for Filter, not even an explicit nil +### GetSunsetCommentsRequired + +`func (o *GetCampaign200Response) GetSunsetCommentsRequired() bool` + +GetSunsetCommentsRequired returns the SunsetCommentsRequired field if non-nil, zero value otherwise. + +### GetSunsetCommentsRequiredOk + +`func (o *GetCampaign200Response) GetSunsetCommentsRequiredOk() (*bool, bool)` + +GetSunsetCommentsRequiredOk returns a tuple with the SunsetCommentsRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSunsetCommentsRequired + +`func (o *GetCampaign200Response) SetSunsetCommentsRequired(v bool)` + +SetSunsetCommentsRequired sets SunsetCommentsRequired field to given value. + +### HasSunsetCommentsRequired + +`func (o *GetCampaign200Response) HasSunsetCommentsRequired() bool` + +HasSunsetCommentsRequired returns a boolean if a field has been set. + +### GetSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) GetSourceOwnerCampaignInfo() CampaignAllOfSourceOwnerCampaignInfo` + +GetSourceOwnerCampaignInfo returns the SourceOwnerCampaignInfo field if non-nil, zero value otherwise. + +### GetSourceOwnerCampaignInfoOk + +`func (o *GetCampaign200Response) GetSourceOwnerCampaignInfoOk() (*CampaignAllOfSourceOwnerCampaignInfo, bool)` + +GetSourceOwnerCampaignInfoOk returns a tuple with the SourceOwnerCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) SetSourceOwnerCampaignInfo(v CampaignAllOfSourceOwnerCampaignInfo)` + +SetSourceOwnerCampaignInfo sets SourceOwnerCampaignInfo field to given value. + +### HasSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) HasSourceOwnerCampaignInfo() bool` + +HasSourceOwnerCampaignInfo returns a boolean if a field has been set. + +### SetSourceOwnerCampaignInfoNil + +`func (o *GetCampaign200Response) SetSourceOwnerCampaignInfoNil(b bool)` + + SetSourceOwnerCampaignInfoNil sets the value for SourceOwnerCampaignInfo to be an explicit nil + +### UnsetSourceOwnerCampaignInfo +`func (o *GetCampaign200Response) UnsetSourceOwnerCampaignInfo()` + +UnsetSourceOwnerCampaignInfo ensures that no value is present for SourceOwnerCampaignInfo, not even an explicit nil +### GetSearchCampaignInfo + +`func (o *GetCampaign200Response) GetSearchCampaignInfo() CampaignAllOfSearchCampaignInfo` + +GetSearchCampaignInfo returns the SearchCampaignInfo field if non-nil, zero value otherwise. + +### GetSearchCampaignInfoOk + +`func (o *GetCampaign200Response) GetSearchCampaignInfoOk() (*CampaignAllOfSearchCampaignInfo, bool)` + +GetSearchCampaignInfoOk returns a tuple with the SearchCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchCampaignInfo + +`func (o *GetCampaign200Response) SetSearchCampaignInfo(v CampaignAllOfSearchCampaignInfo)` + +SetSearchCampaignInfo sets SearchCampaignInfo field to given value. + +### HasSearchCampaignInfo + +`func (o *GetCampaign200Response) HasSearchCampaignInfo() bool` + +HasSearchCampaignInfo returns a boolean if a field has been set. + +### SetSearchCampaignInfoNil + +`func (o *GetCampaign200Response) SetSearchCampaignInfoNil(b bool)` + + SetSearchCampaignInfoNil sets the value for SearchCampaignInfo to be an explicit nil + +### UnsetSearchCampaignInfo +`func (o *GetCampaign200Response) UnsetSearchCampaignInfo()` + +UnsetSearchCampaignInfo ensures that no value is present for SearchCampaignInfo, not even an explicit nil +### GetRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) GetRoleCompositionCampaignInfo() CampaignAllOfRoleCompositionCampaignInfo` + +GetRoleCompositionCampaignInfo returns the RoleCompositionCampaignInfo field if non-nil, zero value otherwise. + +### GetRoleCompositionCampaignInfoOk + +`func (o *GetCampaign200Response) GetRoleCompositionCampaignInfoOk() (*CampaignAllOfRoleCompositionCampaignInfo, bool)` + +GetRoleCompositionCampaignInfoOk returns a tuple with the RoleCompositionCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) SetRoleCompositionCampaignInfo(v CampaignAllOfRoleCompositionCampaignInfo)` + +SetRoleCompositionCampaignInfo sets RoleCompositionCampaignInfo field to given value. + +### HasRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) HasRoleCompositionCampaignInfo() bool` + +HasRoleCompositionCampaignInfo returns a boolean if a field has been set. + +### SetRoleCompositionCampaignInfoNil + +`func (o *GetCampaign200Response) SetRoleCompositionCampaignInfoNil(b bool)` + + SetRoleCompositionCampaignInfoNil sets the value for RoleCompositionCampaignInfo to be an explicit nil + +### UnsetRoleCompositionCampaignInfo +`func (o *GetCampaign200Response) UnsetRoleCompositionCampaignInfo()` + +UnsetRoleCompositionCampaignInfo ensures that no value is present for RoleCompositionCampaignInfo, not even an explicit nil +### GetMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) GetMachineAccountCampaignInfo() CampaignAllOfMachineAccountCampaignInfo` + +GetMachineAccountCampaignInfo returns the MachineAccountCampaignInfo field if non-nil, zero value otherwise. + +### GetMachineAccountCampaignInfoOk + +`func (o *GetCampaign200Response) GetMachineAccountCampaignInfoOk() (*CampaignAllOfMachineAccountCampaignInfo, bool)` + +GetMachineAccountCampaignInfoOk returns a tuple with the MachineAccountCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) SetMachineAccountCampaignInfo(v CampaignAllOfMachineAccountCampaignInfo)` + +SetMachineAccountCampaignInfo sets MachineAccountCampaignInfo field to given value. + +### HasMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) HasMachineAccountCampaignInfo() bool` + +HasMachineAccountCampaignInfo returns a boolean if a field has been set. + +### SetMachineAccountCampaignInfoNil + +`func (o *GetCampaign200Response) SetMachineAccountCampaignInfoNil(b bool)` + + SetMachineAccountCampaignInfoNil sets the value for MachineAccountCampaignInfo to be an explicit nil + +### UnsetMachineAccountCampaignInfo +`func (o *GetCampaign200Response) UnsetMachineAccountCampaignInfo()` + +UnsetMachineAccountCampaignInfo ensures that no value is present for MachineAccountCampaignInfo, not even an explicit nil +### GetSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) GetSourcesWithOrphanEntitlements() []CampaignAllOfSourcesWithOrphanEntitlements` + +GetSourcesWithOrphanEntitlements returns the SourcesWithOrphanEntitlements field if non-nil, zero value otherwise. + +### GetSourcesWithOrphanEntitlementsOk + +`func (o *GetCampaign200Response) GetSourcesWithOrphanEntitlementsOk() (*[]CampaignAllOfSourcesWithOrphanEntitlements, bool)` + +GetSourcesWithOrphanEntitlementsOk returns a tuple with the SourcesWithOrphanEntitlements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) SetSourcesWithOrphanEntitlements(v []CampaignAllOfSourcesWithOrphanEntitlements)` + +SetSourcesWithOrphanEntitlements sets SourcesWithOrphanEntitlements field to given value. + +### HasSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) HasSourcesWithOrphanEntitlements() bool` + +HasSourcesWithOrphanEntitlements returns a boolean if a field has been set. + +### SetSourcesWithOrphanEntitlementsNil + +`func (o *GetCampaign200Response) SetSourcesWithOrphanEntitlementsNil(b bool)` + + SetSourcesWithOrphanEntitlementsNil sets the value for SourcesWithOrphanEntitlements to be an explicit nil + +### UnsetSourcesWithOrphanEntitlements +`func (o *GetCampaign200Response) UnsetSourcesWithOrphanEntitlements()` + +UnsetSourcesWithOrphanEntitlements ensures that no value is present for SourcesWithOrphanEntitlements, not even an explicit nil +### GetMandatoryCommentRequirement + +`func (o *GetCampaign200Response) GetMandatoryCommentRequirement() string` + +GetMandatoryCommentRequirement returns the MandatoryCommentRequirement field if non-nil, zero value otherwise. + +### GetMandatoryCommentRequirementOk + +`func (o *GetCampaign200Response) GetMandatoryCommentRequirementOk() (*string, bool)` + +GetMandatoryCommentRequirementOk returns a tuple with the MandatoryCommentRequirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandatoryCommentRequirement + +`func (o *GetCampaign200Response) SetMandatoryCommentRequirement(v string)` + +SetMandatoryCommentRequirement sets MandatoryCommentRequirement field to given value. + +### HasMandatoryCommentRequirement + +`func (o *GetCampaign200Response) HasMandatoryCommentRequirement() bool` + +HasMandatoryCommentRequirement returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/IdentityAccountSelections.md b/docs/tools/sdk/go/Reference/V2025/Models/IdentityAccountSelections.md new file mode 100644 index 000000000..b94f833a1 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/IdentityAccountSelections.md @@ -0,0 +1,168 @@ +--- +id: v2025-identity-account-selections +title: IdentityAccountSelections +pagination_label: IdentityAccountSelections +sidebar_label: IdentityAccountSelections +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'IdentityAccountSelections', 'V2025IdentityAccountSelections'] +slug: /tools/sdk/go/v2025/models/identity-account-selections +tags: ['SDK', 'Software Development Kit', 'IdentityAccountSelections', 'V2025IdentityAccountSelections'] +--- + +# IdentityAccountSelections + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestedItems** | Pointer to [**[]RequestedItemAccountSelections**](requested-item-account-selections) | Available account selections for the identity, per requested item | [optional] +**AccountsSelectionRequired** | Pointer to **bool** | A boolean indicating whether any account selections will be required for the user to raise an access request | [optional] [default to false] +**Type** | Pointer to [**DtoType**](dto-type) | | [optional] +**Id** | Pointer to **string** | The identity id for the user | [optional] +**Name** | Pointer to **string** | The name of the identity | [optional] + +## Methods + +### NewIdentityAccountSelections + +`func NewIdentityAccountSelections() *IdentityAccountSelections` + +NewIdentityAccountSelections instantiates a new IdentityAccountSelections 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 + +### NewIdentityAccountSelectionsWithDefaults + +`func NewIdentityAccountSelectionsWithDefaults() *IdentityAccountSelections` + +NewIdentityAccountSelectionsWithDefaults instantiates a new IdentityAccountSelections 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 + +### GetRequestedItems + +`func (o *IdentityAccountSelections) GetRequestedItems() []RequestedItemAccountSelections` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`func (o *IdentityAccountSelections) GetRequestedItemsOk() (*[]RequestedItemAccountSelections, 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 *IdentityAccountSelections) SetRequestedItems(v []RequestedItemAccountSelections)` + +SetRequestedItems sets RequestedItems field to given value. + +### HasRequestedItems + +`func (o *IdentityAccountSelections) HasRequestedItems() bool` + +HasRequestedItems returns a boolean if a field has been set. + +### GetAccountsSelectionRequired + +`func (o *IdentityAccountSelections) GetAccountsSelectionRequired() bool` + +GetAccountsSelectionRequired returns the AccountsSelectionRequired field if non-nil, zero value otherwise. + +### GetAccountsSelectionRequiredOk + +`func (o *IdentityAccountSelections) GetAccountsSelectionRequiredOk() (*bool, bool)` + +GetAccountsSelectionRequiredOk returns a tuple with the AccountsSelectionRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountsSelectionRequired + +`func (o *IdentityAccountSelections) SetAccountsSelectionRequired(v bool)` + +SetAccountsSelectionRequired sets AccountsSelectionRequired field to given value. + +### HasAccountsSelectionRequired + +`func (o *IdentityAccountSelections) HasAccountsSelectionRequired() bool` + +HasAccountsSelectionRequired returns a boolean if a field has been set. + +### GetType + +`func (o *IdentityAccountSelections) GetType() DtoType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *IdentityAccountSelections) GetTypeOk() (*DtoType, 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 *IdentityAccountSelections) SetType(v DtoType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *IdentityAccountSelections) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *IdentityAccountSelections) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityAccountSelections) 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 *IdentityAccountSelections) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityAccountSelections) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityAccountSelections) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityAccountSelections) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IdentityAccountSelections) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityAccountSelections) HasName() bool` + +HasName returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetails.md b/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetails.md new file mode 100644 index 000000000..85b5bfa3f --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetails.md @@ -0,0 +1,142 @@ +--- +id: v2025-identity-entitlement-details +title: IdentityEntitlementDetails +pagination_label: IdentityEntitlementDetails +sidebar_label: IdentityEntitlementDetails +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'IdentityEntitlementDetails', 'V2025IdentityEntitlementDetails'] +slug: /tools/sdk/go/v2025/models/identity-entitlement-details +tags: ['SDK', 'Software Development Kit', 'IdentityEntitlementDetails', 'V2025IdentityEntitlementDetails'] +--- + +# IdentityEntitlementDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IdentityId** | Pointer to **string** | Id of Identity | [optional] +**Entitlement** | Pointer to [**IdentityEntitlementDetailsEntitlementDto**](identity-entitlement-details-entitlement-dto) | | [optional] +**SourceId** | Pointer to **string** | Id of Source | [optional] +**AccountTargets** | Pointer to [**[]IdentityEntitlementDetailsAccountTarget**](identity-entitlement-details-account-target) | A list of account targets on the identity provisioned with the requested entitlement. | [optional] + +## Methods + +### NewIdentityEntitlementDetails + +`func NewIdentityEntitlementDetails() *IdentityEntitlementDetails` + +NewIdentityEntitlementDetails instantiates a new IdentityEntitlementDetails 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 + +### NewIdentityEntitlementDetailsWithDefaults + +`func NewIdentityEntitlementDetailsWithDefaults() *IdentityEntitlementDetails` + +NewIdentityEntitlementDetailsWithDefaults instantiates a new IdentityEntitlementDetails 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 + +### GetIdentityId + +`func (o *IdentityEntitlementDetails) GetIdentityId() string` + +GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. + +### GetIdentityIdOk + +`func (o *IdentityEntitlementDetails) GetIdentityIdOk() (*string, bool)` + +GetIdentityIdOk returns a tuple with the IdentityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityId + +`func (o *IdentityEntitlementDetails) SetIdentityId(v string)` + +SetIdentityId sets IdentityId field to given value. + +### HasIdentityId + +`func (o *IdentityEntitlementDetails) HasIdentityId() bool` + +HasIdentityId returns a boolean if a field has been set. + +### GetEntitlement + +`func (o *IdentityEntitlementDetails) GetEntitlement() IdentityEntitlementDetailsEntitlementDto` + +GetEntitlement returns the Entitlement field if non-nil, zero value otherwise. + +### GetEntitlementOk + +`func (o *IdentityEntitlementDetails) GetEntitlementOk() (*IdentityEntitlementDetailsEntitlementDto, bool)` + +GetEntitlementOk returns a tuple with the Entitlement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntitlement + +`func (o *IdentityEntitlementDetails) SetEntitlement(v IdentityEntitlementDetailsEntitlementDto)` + +SetEntitlement sets Entitlement field to given value. + +### HasEntitlement + +`func (o *IdentityEntitlementDetails) HasEntitlement() bool` + +HasEntitlement returns a boolean if a field has been set. + +### GetSourceId + +`func (o *IdentityEntitlementDetails) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *IdentityEntitlementDetails) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *IdentityEntitlementDetails) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *IdentityEntitlementDetails) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### GetAccountTargets + +`func (o *IdentityEntitlementDetails) GetAccountTargets() []IdentityEntitlementDetailsAccountTarget` + +GetAccountTargets returns the AccountTargets field if non-nil, zero value otherwise. + +### GetAccountTargetsOk + +`func (o *IdentityEntitlementDetails) GetAccountTargetsOk() (*[]IdentityEntitlementDetailsAccountTarget, bool)` + +GetAccountTargetsOk returns a tuple with the AccountTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountTargets + +`func (o *IdentityEntitlementDetails) SetAccountTargets(v []IdentityEntitlementDetailsAccountTarget)` + +SetAccountTargets sets AccountTargets field to given value. + +### HasAccountTargets + +`func (o *IdentityEntitlementDetails) HasAccountTargets() bool` + +HasAccountTargets returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetailsAccountTarget.md b/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetailsAccountTarget.md new file mode 100644 index 000000000..6a364b9d1 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetailsAccountTarget.md @@ -0,0 +1,276 @@ +--- +id: v2025-identity-entitlement-details-account-target +title: IdentityEntitlementDetailsAccountTarget +pagination_label: IdentityEntitlementDetailsAccountTarget +sidebar_label: IdentityEntitlementDetailsAccountTarget +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'IdentityEntitlementDetailsAccountTarget', 'V2025IdentityEntitlementDetailsAccountTarget'] +slug: /tools/sdk/go/v2025/models/identity-entitlement-details-account-target +tags: ['SDK', 'Software Development Kit', 'IdentityEntitlementDetailsAccountTarget', 'V2025IdentityEntitlementDetailsAccountTarget'] +--- + +# IdentityEntitlementDetailsAccountTarget + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | Pointer to **string** | The id of account | [optional] +**AccountName** | Pointer to **string** | The name of account | [optional] +**AccountUUID** | Pointer to **NullableString** | The UUID representation of the account if available | [optional] +**SourceId** | Pointer to **string** | The id of Source | [optional] +**SourceName** | Pointer to **string** | The name of Source | [optional] +**RemoveDate** | Pointer to **NullableString** | The removal date scheduled for the entitlement on the Identity | [optional] +**AssignmentId** | Pointer to **NullableString** | The assignmentId of the entitlement on the Identity | [optional] +**Revocable** | Pointer to **bool** | If the entitlement can be revoked | [optional] [default to false] + +## Methods + +### NewIdentityEntitlementDetailsAccountTarget + +`func NewIdentityEntitlementDetailsAccountTarget() *IdentityEntitlementDetailsAccountTarget` + +NewIdentityEntitlementDetailsAccountTarget instantiates a new IdentityEntitlementDetailsAccountTarget 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 + +### NewIdentityEntitlementDetailsAccountTargetWithDefaults + +`func NewIdentityEntitlementDetailsAccountTargetWithDefaults() *IdentityEntitlementDetailsAccountTarget` + +NewIdentityEntitlementDetailsAccountTargetWithDefaults instantiates a new IdentityEntitlementDetailsAccountTarget 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 + +### GetAccountId + +`func (o *IdentityEntitlementDetailsAccountTarget) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *IdentityEntitlementDetailsAccountTarget) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *IdentityEntitlementDetailsAccountTarget) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *IdentityEntitlementDetailsAccountTarget) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetAccountName + +`func (o *IdentityEntitlementDetailsAccountTarget) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *IdentityEntitlementDetailsAccountTarget) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *IdentityEntitlementDetailsAccountTarget) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *IdentityEntitlementDetailsAccountTarget) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetAccountUUID + +`func (o *IdentityEntitlementDetailsAccountTarget) GetAccountUUID() string` + +GetAccountUUID returns the AccountUUID field if non-nil, zero value otherwise. + +### GetAccountUUIDOk + +`func (o *IdentityEntitlementDetailsAccountTarget) GetAccountUUIDOk() (*string, bool)` + +GetAccountUUIDOk returns a tuple with the AccountUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUUID + +`func (o *IdentityEntitlementDetailsAccountTarget) SetAccountUUID(v string)` + +SetAccountUUID sets AccountUUID field to given value. + +### HasAccountUUID + +`func (o *IdentityEntitlementDetailsAccountTarget) HasAccountUUID() bool` + +HasAccountUUID returns a boolean if a field has been set. + +### SetAccountUUIDNil + +`func (o *IdentityEntitlementDetailsAccountTarget) SetAccountUUIDNil(b bool)` + + SetAccountUUIDNil sets the value for AccountUUID to be an explicit nil + +### UnsetAccountUUID +`func (o *IdentityEntitlementDetailsAccountTarget) UnsetAccountUUID()` + +UnsetAccountUUID ensures that no value is present for AccountUUID, not even an explicit nil +### GetSourceId + +`func (o *IdentityEntitlementDetailsAccountTarget) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *IdentityEntitlementDetailsAccountTarget) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *IdentityEntitlementDetailsAccountTarget) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *IdentityEntitlementDetailsAccountTarget) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### GetSourceName + +`func (o *IdentityEntitlementDetailsAccountTarget) GetSourceName() string` + +GetSourceName returns the SourceName field if non-nil, zero value otherwise. + +### GetSourceNameOk + +`func (o *IdentityEntitlementDetailsAccountTarget) GetSourceNameOk() (*string, bool)` + +GetSourceNameOk returns a tuple with the SourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceName + +`func (o *IdentityEntitlementDetailsAccountTarget) SetSourceName(v string)` + +SetSourceName sets SourceName field to given value. + +### HasSourceName + +`func (o *IdentityEntitlementDetailsAccountTarget) HasSourceName() bool` + +HasSourceName returns a boolean if a field has been set. + +### GetRemoveDate + +`func (o *IdentityEntitlementDetailsAccountTarget) GetRemoveDate() string` + +GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. + +### GetRemoveDateOk + +`func (o *IdentityEntitlementDetailsAccountTarget) GetRemoveDateOk() (*string, 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 *IdentityEntitlementDetailsAccountTarget) SetRemoveDate(v string)` + +SetRemoveDate sets RemoveDate field to given value. + +### HasRemoveDate + +`func (o *IdentityEntitlementDetailsAccountTarget) HasRemoveDate() bool` + +HasRemoveDate returns a boolean if a field has been set. + +### SetRemoveDateNil + +`func (o *IdentityEntitlementDetailsAccountTarget) SetRemoveDateNil(b bool)` + + SetRemoveDateNil sets the value for RemoveDate to be an explicit nil + +### UnsetRemoveDate +`func (o *IdentityEntitlementDetailsAccountTarget) UnsetRemoveDate()` + +UnsetRemoveDate ensures that no value is present for RemoveDate, not even an explicit nil +### GetAssignmentId + +`func (o *IdentityEntitlementDetailsAccountTarget) GetAssignmentId() string` + +GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. + +### GetAssignmentIdOk + +`func (o *IdentityEntitlementDetailsAccountTarget) 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 *IdentityEntitlementDetailsAccountTarget) SetAssignmentId(v string)` + +SetAssignmentId sets AssignmentId field to given value. + +### HasAssignmentId + +`func (o *IdentityEntitlementDetailsAccountTarget) HasAssignmentId() bool` + +HasAssignmentId returns a boolean if a field has been set. + +### SetAssignmentIdNil + +`func (o *IdentityEntitlementDetailsAccountTarget) SetAssignmentIdNil(b bool)` + + SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil + +### UnsetAssignmentId +`func (o *IdentityEntitlementDetailsAccountTarget) UnsetAssignmentId()` + +UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil +### GetRevocable + +`func (o *IdentityEntitlementDetailsAccountTarget) GetRevocable() bool` + +GetRevocable returns the Revocable field if non-nil, zero value otherwise. + +### GetRevocableOk + +`func (o *IdentityEntitlementDetailsAccountTarget) GetRevocableOk() (*bool, bool)` + +GetRevocableOk returns a tuple with the Revocable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocable + +`func (o *IdentityEntitlementDetailsAccountTarget) SetRevocable(v bool)` + +SetRevocable sets Revocable field to given value. + +### HasRevocable + +`func (o *IdentityEntitlementDetailsAccountTarget) HasRevocable() bool` + +HasRevocable returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetailsEntitlementDto.md b/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetailsEntitlementDto.md new file mode 100644 index 000000000..40ca154b7 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/IdentityEntitlementDetailsEntitlementDto.md @@ -0,0 +1,334 @@ +--- +id: v2025-identity-entitlement-details-entitlement-dto +title: IdentityEntitlementDetailsEntitlementDto +pagination_label: IdentityEntitlementDetailsEntitlementDto +sidebar_label: IdentityEntitlementDetailsEntitlementDto +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'IdentityEntitlementDetailsEntitlementDto', 'V2025IdentityEntitlementDetailsEntitlementDto'] +slug: /tools/sdk/go/v2025/models/identity-entitlement-details-entitlement-dto +tags: ['SDK', 'Software Development Kit', 'IdentityEntitlementDetailsEntitlementDto', 'V2025IdentityEntitlementDetailsEntitlementDto'] +--- + +# IdentityEntitlementDetailsEntitlementDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The entitlement id | [optional] +**Name** | Pointer to **string** | The entitlement name | [optional] +**Created** | Pointer to **SailPointTime** | Time when the entitlement was last modified | [optional] +**Modified** | Pointer to **SailPointTime** | Time when the entitlement was last modified | [optional] +**Description** | Pointer to **NullableString** | The description of the entitlement | [optional] +**Type** | Pointer to **string** | The type of the object, will always be \"ENTITLEMENT\" | [optional] +**SourceId** | Pointer to **string** | The source ID | [optional] +**SourceName** | Pointer to **string** | The source name | [optional] +**Owner** | Pointer to [**OwnerDto**](owner-dto) | | [optional] +**Value** | Pointer to **string** | The value of the entitlement | [optional] +**Flags** | Pointer to **[]string** | a list of properties informing the viewer about the entitlement | [optional] + +## Methods + +### NewIdentityEntitlementDetailsEntitlementDto + +`func NewIdentityEntitlementDetailsEntitlementDto() *IdentityEntitlementDetailsEntitlementDto` + +NewIdentityEntitlementDetailsEntitlementDto instantiates a new IdentityEntitlementDetailsEntitlementDto 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 + +### NewIdentityEntitlementDetailsEntitlementDtoWithDefaults + +`func NewIdentityEntitlementDetailsEntitlementDtoWithDefaults() *IdentityEntitlementDetailsEntitlementDto` + +NewIdentityEntitlementDetailsEntitlementDtoWithDefaults instantiates a new IdentityEntitlementDetailsEntitlementDto 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 + +### GetId + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) 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 *IdentityEntitlementDetailsEntitlementDto) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCreated + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetCreated() SailPointTime` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetCreatedOk() (*SailPointTime, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetCreated(v SailPointTime)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### GetModified + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetModified() SailPointTime` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetModifiedOk() (*SailPointTime, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetModified(v SailPointTime)` + +SetModified sets Modified field to given value. + +### HasModified + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasModified() bool` + +HasModified returns a boolean if a field has been set. + +### GetDescription + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *IdentityEntitlementDetailsEntitlementDto) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetType + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) 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 *IdentityEntitlementDetailsEntitlementDto) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetSourceId + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### GetSourceName + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetSourceName() string` + +GetSourceName returns the SourceName field if non-nil, zero value otherwise. + +### GetSourceNameOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetSourceNameOk() (*string, bool)` + +GetSourceNameOk returns a tuple with the SourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceName + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetSourceName(v string)` + +SetSourceName sets SourceName field to given value. + +### HasSourceName + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasSourceName() bool` + +HasSourceName returns a boolean if a field has been set. + +### GetOwner + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetOwner() OwnerDto` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetOwnerOk() (*OwnerDto, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetOwner(v OwnerDto)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetValue + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetFlags + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetFlags() []string` + +GetFlags returns the Flags field if non-nil, zero value otherwise. + +### GetFlagsOk + +`func (o *IdentityEntitlementDetailsEntitlementDto) GetFlagsOk() (*[]string, bool)` + +GetFlagsOk returns a tuple with the Flags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlags + +`func (o *IdentityEntitlementDetailsEntitlementDto) SetFlags(v []string)` + +SetFlags sets Flags field to given value. + +### HasFlags + +`func (o *IdentityEntitlementDetailsEntitlementDto) HasFlags() bool` + +HasFlags returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/IdpDetails.md b/docs/tools/sdk/go/Reference/V2025/Models/IdpDetails.md new file mode 100644 index 000000000..7a60c0fc6 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/IdpDetails.md @@ -0,0 +1,397 @@ +--- +id: v2025-idp-details +title: IdpDetails +pagination_label: IdpDetails +sidebar_label: IdpDetails +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'IdpDetails', 'V2025IdpDetails'] +slug: /tools/sdk/go/v2025/models/idp-details +tags: ['SDK', 'Software Development Kit', 'IdpDetails', 'V2025IdpDetails'] +--- + +# IdpDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] +**Binding** | Pointer to **string** | Defines the binding used for the SAML flow. Used with IDP configurations. | [optional] +**AuthnContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] +**LogoutUrl** | Pointer to **string** | The IDP logout URL. Used with IDP configurations. | [optional] +**IncludeAuthnContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] +**NameId** | Pointer to **string** | The name id format to use. Used with IDP configurations. | [optional] +**JitConfiguration** | Pointer to [**JITConfiguration**](jit-configuration) | | [optional] +**Cert** | Pointer to **string** | The Base64-encoded certificate used by the IDP. Used with IDP configurations. | [optional] +**LoginUrlPost** | Pointer to **string** | The IDP POST URL, used with IDP HTTP-POST bindings for IDP-initiated logins. Used with IDP configurations. | [optional] +**LoginUrlRedirect** | Pointer to **string** | The IDP Redirect URL. Used with IDP configurations. | [optional] +**MappingAttribute** | **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | +**CertificateExpirationDate** | Pointer to **string** | The expiration date extracted from the certificate. | [optional] +**CertificateName** | Pointer to **string** | The name extracted from the certificate. | [optional] + +## Methods + +### NewIdpDetails + +`func NewIdpDetails(mappingAttribute string, ) *IdpDetails` + +NewIdpDetails instantiates a new IdpDetails 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 + +### NewIdpDetailsWithDefaults + +`func NewIdpDetailsWithDefaults() *IdpDetails` + +NewIdpDetailsWithDefaults instantiates a new IdpDetails 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 + +### GetRole + +`func (o *IdpDetails) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IdpDetails) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IdpDetails) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IdpDetails) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *IdpDetails) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *IdpDetails) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *IdpDetails) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *IdpDetails) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### GetBinding + +`func (o *IdpDetails) GetBinding() string` + +GetBinding returns the Binding field if non-nil, zero value otherwise. + +### GetBindingOk + +`func (o *IdpDetails) GetBindingOk() (*string, bool)` + +GetBindingOk returns a tuple with the Binding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinding + +`func (o *IdpDetails) SetBinding(v string)` + +SetBinding sets Binding field to given value. + +### HasBinding + +`func (o *IdpDetails) HasBinding() bool` + +HasBinding returns a boolean if a field has been set. + +### GetAuthnContext + +`func (o *IdpDetails) GetAuthnContext() string` + +GetAuthnContext returns the AuthnContext field if non-nil, zero value otherwise. + +### GetAuthnContextOk + +`func (o *IdpDetails) GetAuthnContextOk() (*string, bool)` + +GetAuthnContextOk returns a tuple with the AuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthnContext + +`func (o *IdpDetails) SetAuthnContext(v string)` + +SetAuthnContext sets AuthnContext field to given value. + +### HasAuthnContext + +`func (o *IdpDetails) HasAuthnContext() bool` + +HasAuthnContext returns a boolean if a field has been set. + +### GetLogoutUrl + +`func (o *IdpDetails) GetLogoutUrl() string` + +GetLogoutUrl returns the LogoutUrl field if non-nil, zero value otherwise. + +### GetLogoutUrlOk + +`func (o *IdpDetails) GetLogoutUrlOk() (*string, bool)` + +GetLogoutUrlOk returns a tuple with the LogoutUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogoutUrl + +`func (o *IdpDetails) SetLogoutUrl(v string)` + +SetLogoutUrl sets LogoutUrl field to given value. + +### HasLogoutUrl + +`func (o *IdpDetails) HasLogoutUrl() bool` + +HasLogoutUrl returns a boolean if a field has been set. + +### GetIncludeAuthnContext + +`func (o *IdpDetails) GetIncludeAuthnContext() bool` + +GetIncludeAuthnContext returns the IncludeAuthnContext field if non-nil, zero value otherwise. + +### GetIncludeAuthnContextOk + +`func (o *IdpDetails) GetIncludeAuthnContextOk() (*bool, bool)` + +GetIncludeAuthnContextOk returns a tuple with the IncludeAuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeAuthnContext + +`func (o *IdpDetails) SetIncludeAuthnContext(v bool)` + +SetIncludeAuthnContext sets IncludeAuthnContext field to given value. + +### HasIncludeAuthnContext + +`func (o *IdpDetails) HasIncludeAuthnContext() bool` + +HasIncludeAuthnContext returns a boolean if a field has been set. + +### GetNameId + +`func (o *IdpDetails) GetNameId() string` + +GetNameId returns the NameId field if non-nil, zero value otherwise. + +### GetNameIdOk + +`func (o *IdpDetails) GetNameIdOk() (*string, bool)` + +GetNameIdOk returns a tuple with the NameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNameId + +`func (o *IdpDetails) SetNameId(v string)` + +SetNameId sets NameId field to given value. + +### HasNameId + +`func (o *IdpDetails) HasNameId() bool` + +HasNameId returns a boolean if a field has been set. + +### GetJitConfiguration + +`func (o *IdpDetails) GetJitConfiguration() JITConfiguration` + +GetJitConfiguration returns the JitConfiguration field if non-nil, zero value otherwise. + +### GetJitConfigurationOk + +`func (o *IdpDetails) GetJitConfigurationOk() (*JITConfiguration, bool)` + +GetJitConfigurationOk returns a tuple with the JitConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitConfiguration + +`func (o *IdpDetails) SetJitConfiguration(v JITConfiguration)` + +SetJitConfiguration sets JitConfiguration field to given value. + +### HasJitConfiguration + +`func (o *IdpDetails) HasJitConfiguration() bool` + +HasJitConfiguration returns a boolean if a field has been set. + +### GetCert + +`func (o *IdpDetails) GetCert() string` + +GetCert returns the Cert field if non-nil, zero value otherwise. + +### GetCertOk + +`func (o *IdpDetails) GetCertOk() (*string, bool)` + +GetCertOk returns a tuple with the Cert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCert + +`func (o *IdpDetails) SetCert(v string)` + +SetCert sets Cert field to given value. + +### HasCert + +`func (o *IdpDetails) HasCert() bool` + +HasCert returns a boolean if a field has been set. + +### GetLoginUrlPost + +`func (o *IdpDetails) GetLoginUrlPost() string` + +GetLoginUrlPost returns the LoginUrlPost field if non-nil, zero value otherwise. + +### GetLoginUrlPostOk + +`func (o *IdpDetails) GetLoginUrlPostOk() (*string, bool)` + +GetLoginUrlPostOk returns a tuple with the LoginUrlPost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlPost + +`func (o *IdpDetails) SetLoginUrlPost(v string)` + +SetLoginUrlPost sets LoginUrlPost field to given value. + +### HasLoginUrlPost + +`func (o *IdpDetails) HasLoginUrlPost() bool` + +HasLoginUrlPost returns a boolean if a field has been set. + +### GetLoginUrlRedirect + +`func (o *IdpDetails) GetLoginUrlRedirect() string` + +GetLoginUrlRedirect returns the LoginUrlRedirect field if non-nil, zero value otherwise. + +### GetLoginUrlRedirectOk + +`func (o *IdpDetails) GetLoginUrlRedirectOk() (*string, bool)` + +GetLoginUrlRedirectOk returns a tuple with the LoginUrlRedirect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlRedirect + +`func (o *IdpDetails) SetLoginUrlRedirect(v string)` + +SetLoginUrlRedirect sets LoginUrlRedirect field to given value. + +### HasLoginUrlRedirect + +`func (o *IdpDetails) HasLoginUrlRedirect() bool` + +HasLoginUrlRedirect returns a boolean if a field has been set. + +### GetMappingAttribute + +`func (o *IdpDetails) GetMappingAttribute() string` + +GetMappingAttribute returns the MappingAttribute field if non-nil, zero value otherwise. + +### GetMappingAttributeOk + +`func (o *IdpDetails) GetMappingAttributeOk() (*string, bool)` + +GetMappingAttributeOk returns a tuple with the MappingAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMappingAttribute + +`func (o *IdpDetails) SetMappingAttribute(v string)` + +SetMappingAttribute sets MappingAttribute field to given value. + + +### GetCertificateExpirationDate + +`func (o *IdpDetails) GetCertificateExpirationDate() string` + +GetCertificateExpirationDate returns the CertificateExpirationDate field if non-nil, zero value otherwise. + +### GetCertificateExpirationDateOk + +`func (o *IdpDetails) GetCertificateExpirationDateOk() (*string, bool)` + +GetCertificateExpirationDateOk returns a tuple with the CertificateExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateExpirationDate + +`func (o *IdpDetails) SetCertificateExpirationDate(v string)` + +SetCertificateExpirationDate sets CertificateExpirationDate field to given value. + +### HasCertificateExpirationDate + +`func (o *IdpDetails) HasCertificateExpirationDate() bool` + +HasCertificateExpirationDate returns a boolean if a field has been set. + +### GetCertificateName + +`func (o *IdpDetails) GetCertificateName() string` + +GetCertificateName returns the CertificateName field if non-nil, zero value otherwise. + +### GetCertificateNameOk + +`func (o *IdpDetails) GetCertificateNameOk() (*string, bool)` + +GetCertificateNameOk returns a tuple with the CertificateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateName + +`func (o *IdpDetails) SetCertificateName(v string)` + +SetCertificateName sets CertificateName field to given value. + +### HasCertificateName + +`func (o *IdpDetails) HasCertificateName() bool` + +HasCertificateName returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/JITConfiguration.md b/docs/tools/sdk/go/Reference/V2025/Models/JITConfiguration.md new file mode 100644 index 000000000..4a7db7ad6 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/JITConfiguration.md @@ -0,0 +1,116 @@ +--- +id: v2025-jit-configuration +title: JITConfiguration +pagination_label: JITConfiguration +sidebar_label: JITConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'JITConfiguration', 'V2025JITConfiguration'] +slug: /tools/sdk/go/v2025/models/jit-configuration +tags: ['SDK', 'Software Development Kit', 'JITConfiguration', 'V2025JITConfiguration'] +--- + +# JITConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | The indicator for just-in-time provisioning enabled | [optional] [default to false] +**SourceId** | Pointer to **string** | the sourceId that mapped to just-in-time provisioning configuration | [optional] +**SourceAttributeMappings** | Pointer to **map[string]string** | A mapping of identity profile attribute names to SAML assertion attribute names | [optional] + +## Methods + +### NewJITConfiguration + +`func NewJITConfiguration() *JITConfiguration` + +NewJITConfiguration instantiates a new JITConfiguration 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 + +### NewJITConfigurationWithDefaults + +`func NewJITConfigurationWithDefaults() *JITConfiguration` + +NewJITConfigurationWithDefaults instantiates a new JITConfiguration 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 + +### GetEnabled + +`func (o *JITConfiguration) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *JITConfiguration) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *JITConfiguration) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *JITConfiguration) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetSourceId + +`func (o *JITConfiguration) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *JITConfiguration) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *JITConfiguration) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *JITConfiguration) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### GetSourceAttributeMappings + +`func (o *JITConfiguration) GetSourceAttributeMappings() map[string]string` + +GetSourceAttributeMappings returns the SourceAttributeMappings field if non-nil, zero value otherwise. + +### GetSourceAttributeMappingsOk + +`func (o *JITConfiguration) GetSourceAttributeMappingsOk() (*map[string]string, bool)` + +GetSourceAttributeMappingsOk returns a tuple with the SourceAttributeMappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceAttributeMappings + +`func (o *JITConfiguration) SetSourceAttributeMappings(v map[string]string)` + +SetSourceAttributeMappings sets SourceAttributeMappings field to given value. + +### HasSourceAttributeMappings + +`func (o *JITConfiguration) HasSourceAttributeMappings() bool` + +HasSourceAttributeMappings returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/LockoutConfiguration.md b/docs/tools/sdk/go/Reference/V2025/Models/LockoutConfiguration.md new file mode 100644 index 000000000..fef6fa8fe --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/LockoutConfiguration.md @@ -0,0 +1,116 @@ +--- +id: v2025-lockout-configuration +title: LockoutConfiguration +pagination_label: LockoutConfiguration +sidebar_label: LockoutConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'LockoutConfiguration', 'V2025LockoutConfiguration'] +slug: /tools/sdk/go/v2025/models/lockout-configuration +tags: ['SDK', 'Software Development Kit', 'LockoutConfiguration', 'V2025LockoutConfiguration'] +--- + +# LockoutConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaximumAttempts** | Pointer to **int32** | The maximum attempts allowed before lockout occurs. | [optional] +**LockoutDuration** | Pointer to **int32** | The total time in minutes a user will be locked out. | [optional] +**LockoutWindow** | Pointer to **int32** | A rolling window where authentication attempts in a series count towards the maximum before lockout occurs. | [optional] + +## Methods + +### NewLockoutConfiguration + +`func NewLockoutConfiguration() *LockoutConfiguration` + +NewLockoutConfiguration instantiates a new LockoutConfiguration 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 + +### NewLockoutConfigurationWithDefaults + +`func NewLockoutConfigurationWithDefaults() *LockoutConfiguration` + +NewLockoutConfigurationWithDefaults instantiates a new LockoutConfiguration 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 + +### GetMaximumAttempts + +`func (o *LockoutConfiguration) GetMaximumAttempts() int32` + +GetMaximumAttempts returns the MaximumAttempts field if non-nil, zero value otherwise. + +### GetMaximumAttemptsOk + +`func (o *LockoutConfiguration) GetMaximumAttemptsOk() (*int32, bool)` + +GetMaximumAttemptsOk returns a tuple with the MaximumAttempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumAttempts + +`func (o *LockoutConfiguration) SetMaximumAttempts(v int32)` + +SetMaximumAttempts sets MaximumAttempts field to given value. + +### HasMaximumAttempts + +`func (o *LockoutConfiguration) HasMaximumAttempts() bool` + +HasMaximumAttempts returns a boolean if a field has been set. + +### GetLockoutDuration + +`func (o *LockoutConfiguration) GetLockoutDuration() int32` + +GetLockoutDuration returns the LockoutDuration field if non-nil, zero value otherwise. + +### GetLockoutDurationOk + +`func (o *LockoutConfiguration) GetLockoutDurationOk() (*int32, bool)` + +GetLockoutDurationOk returns a tuple with the LockoutDuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockoutDuration + +`func (o *LockoutConfiguration) SetLockoutDuration(v int32)` + +SetLockoutDuration sets LockoutDuration field to given value. + +### HasLockoutDuration + +`func (o *LockoutConfiguration) HasLockoutDuration() bool` + +HasLockoutDuration returns a boolean if a field has been set. + +### GetLockoutWindow + +`func (o *LockoutConfiguration) GetLockoutWindow() int32` + +GetLockoutWindow returns the LockoutWindow field if non-nil, zero value otherwise. + +### GetLockoutWindowOk + +`func (o *LockoutConfiguration) GetLockoutWindowOk() (*int32, bool)` + +GetLockoutWindowOk returns a tuple with the LockoutWindow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLockoutWindow + +`func (o *LockoutConfiguration) SetLockoutWindow(v int32)` + +SetLockoutWindow sets LockoutWindow field to given value. + +### HasLockoutWindow + +`func (o *LockoutConfiguration) HasLockoutWindow() bool` + +HasLockoutWindow returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/PatchServiceDeskIntegrationRequest.md b/docs/tools/sdk/go/Reference/V2025/Models/PatchServiceDeskIntegrationRequest.md deleted file mode 100644 index 8ca6f8eb6..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/PatchServiceDeskIntegrationRequest.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -id: v2025-patch-service-desk-integration-request -title: PatchServiceDeskIntegrationRequest -pagination_label: PatchServiceDeskIntegrationRequest -sidebar_label: PatchServiceDeskIntegrationRequest -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'PatchServiceDeskIntegrationRequest', 'V2025PatchServiceDeskIntegrationRequest'] -slug: /tools/sdk/go/v2025/models/patch-service-desk-integration-request -tags: ['SDK', 'Software Development Kit', 'PatchServiceDeskIntegrationRequest', 'V2025PatchServiceDeskIntegrationRequest'] ---- - -# PatchServiceDeskIntegrationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Operations** | Pointer to [**[]JsonPatchOperation**](json-patch-operation) | Operations to be applied | [optional] - -## Methods - -### NewPatchServiceDeskIntegrationRequest - -`func NewPatchServiceDeskIntegrationRequest() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequest instantiates a new PatchServiceDeskIntegrationRequest 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 - -### NewPatchServiceDeskIntegrationRequestWithDefaults - -`func NewPatchServiceDeskIntegrationRequestWithDefaults() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequestWithDefaults instantiates a new PatchServiceDeskIntegrationRequest 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 - -### GetOperations - -`func (o *PatchServiceDeskIntegrationRequest) GetOperations() []JsonPatchOperation` - -GetOperations returns the Operations field if non-nil, zero value otherwise. - -### GetOperationsOk - -`func (o *PatchServiceDeskIntegrationRequest) GetOperationsOk() (*[]JsonPatchOperation, bool)` - -GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOperations - -`func (o *PatchServiceDeskIntegrationRequest) SetOperations(v []JsonPatchOperation)` - -SetOperations sets Operations field to given value. - -### HasOperations - -`func (o *PatchServiceDeskIntegrationRequest) HasOperations() bool` - -HasOperations returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicy.md b/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicy.md index 0eba5296c..456f186e7 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicy.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicy.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningPolicy', 'V2025Provisioni Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | the provisioning policy name | +**Name** | **NullableString** | the provisioning policy name | **Description** | Pointer to **string** | the description of the provisioning policy | [optional] **UsageType** | Pointer to [**UsageType**](usage-type) | | [optional] **Fields** | Pointer to [**[]FieldDetailsDto**](field-details-dto) | | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewProvisioningPolicy -`func NewProvisioningPolicy(name string, ) *ProvisioningPolicy` +`func NewProvisioningPolicy(name NullableString, ) *ProvisioningPolicy` NewProvisioningPolicy instantiates a new ProvisioningPolicy object This constructor will assign default values to properties that have it defined, @@ -59,6 +59,16 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### SetNameNil + +`func (o *ProvisioningPolicy) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ProvisioningPolicy) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDescription `func (o *ProvisioningPolicy) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicyDto.md b/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicyDto.md index 25c5de769..445884b25 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicyDto.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/ProvisioningPolicyDto.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningPolicyDto', 'V2025Provisi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | the provisioning policy name | +**Name** | **NullableString** | the provisioning policy name | **Description** | Pointer to **string** | the description of the provisioning policy | [optional] **UsageType** | Pointer to [**UsageType**](usage-type) | | [optional] **Fields** | Pointer to [**[]FieldDetailsDto**](field-details-dto) | | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewProvisioningPolicyDto -`func NewProvisioningPolicyDto(name string, ) *ProvisioningPolicyDto` +`func NewProvisioningPolicyDto(name NullableString, ) *ProvisioningPolicyDto` NewProvisioningPolicyDto instantiates a new ProvisioningPolicyDto object This constructor will assign default values to properties that have it defined, @@ -59,6 +59,16 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### SetNameNil + +`func (o *ProvisioningPolicyDto) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ProvisioningPolicyDto) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDescription `func (o *ProvisioningPolicyDto) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/V2025/Models/RequestedForDtoRef.md b/docs/tools/sdk/go/Reference/V2025/Models/RequestedForDtoRef.md new file mode 100644 index 000000000..1a781824c --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/RequestedForDtoRef.md @@ -0,0 +1,80 @@ +--- +id: v2025-requested-for-dto-ref +title: RequestedForDtoRef +pagination_label: RequestedForDtoRef +sidebar_label: RequestedForDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedForDtoRef', 'V2025RequestedForDtoRef'] +slug: /tools/sdk/go/v2025/models/requested-for-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedForDtoRef', 'V2025RequestedForDtoRef'] +--- + +# RequestedForDtoRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IdentityId** | **string** | The identity id for which the access is requested | +**RequestedItems** | [**[]RequestedItemDtoRef**](requested-item-dto-ref) | the details for the access items that are requested for the identity | + +## Methods + +### NewRequestedForDtoRef + +`func NewRequestedForDtoRef(identityId string, requestedItems []RequestedItemDtoRef, ) *RequestedForDtoRef` + +NewRequestedForDtoRef instantiates a new RequestedForDtoRef 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 + +### NewRequestedForDtoRefWithDefaults + +`func NewRequestedForDtoRefWithDefaults() *RequestedForDtoRef` + +NewRequestedForDtoRefWithDefaults instantiates a new RequestedForDtoRef 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 + +### GetIdentityId + +`func (o *RequestedForDtoRef) GetIdentityId() string` + +GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. + +### GetIdentityIdOk + +`func (o *RequestedForDtoRef) GetIdentityIdOk() (*string, bool)` + +GetIdentityIdOk returns a tuple with the IdentityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityId + +`func (o *RequestedForDtoRef) SetIdentityId(v string)` + +SetIdentityId sets IdentityId field to given value. + + +### GetRequestedItems + +`func (o *RequestedForDtoRef) GetRequestedItems() []RequestedItemDtoRef` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`func (o *RequestedForDtoRef) GetRequestedItemsOk() (*[]RequestedItemDtoRef, 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 *RequestedForDtoRef) SetRequestedItems(v []RequestedItemDtoRef)` + +SetRequestedItems sets RequestedItems field to given value. + + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemAccountSelections.md b/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemAccountSelections.md new file mode 100644 index 000000000..baac37bac --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemAccountSelections.md @@ -0,0 +1,230 @@ +--- +id: v2025-requested-item-account-selections +title: RequestedItemAccountSelections +pagination_label: RequestedItemAccountSelections +sidebar_label: RequestedItemAccountSelections +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedItemAccountSelections', 'V2025RequestedItemAccountSelections'] +slug: /tools/sdk/go/v2025/models/requested-item-account-selections +tags: ['SDK', 'Software Development Kit', 'RequestedItemAccountSelections', 'V2025RequestedItemAccountSelections'] +--- + +# RequestedItemAccountSelections + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | The description for this requested item | [optional] +**AccountsSelectionBlocked** | Pointer to **bool** | This field indicates if account selections are not allowed for this requested item. * If true, this field indicates that account selections will not be available for this item and user combination. In this case, no account selections should be provided in the access request for this item and user combination, irrespective of whether the user has single or multiple accounts on a source. * An example is where a user is requesting an access profile that is already assigned to one of their accounts. | [optional] [default to false] +**AccountsSelectionBlockedReason** | Pointer to **NullableString** | If account selections are not allowed for an item, this field will denote the reason. | [optional] +**Type** | Pointer to **string** | The type of the item being requested. | [optional] +**Id** | Pointer to **string** | The id of the requested item | [optional] +**Name** | Pointer to **string** | The name of the requested item | [optional] +**Sources** | Pointer to [**[]SourceAccountSelections**](source-account-selections) | The details for the sources and accounts for the requested item and identity combination | [optional] + +## Methods + +### NewRequestedItemAccountSelections + +`func NewRequestedItemAccountSelections() *RequestedItemAccountSelections` + +NewRequestedItemAccountSelections instantiates a new RequestedItemAccountSelections 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 + +### NewRequestedItemAccountSelectionsWithDefaults + +`func NewRequestedItemAccountSelectionsWithDefaults() *RequestedItemAccountSelections` + +NewRequestedItemAccountSelectionsWithDefaults instantiates a new RequestedItemAccountSelections 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 + +### GetDescription + +`func (o *RequestedItemAccountSelections) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RequestedItemAccountSelections) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RequestedItemAccountSelections) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RequestedItemAccountSelections) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetAccountsSelectionBlocked + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlocked() bool` + +GetAccountsSelectionBlocked returns the AccountsSelectionBlocked field if non-nil, zero value otherwise. + +### GetAccountsSelectionBlockedOk + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlockedOk() (*bool, bool)` + +GetAccountsSelectionBlockedOk returns a tuple with the AccountsSelectionBlocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountsSelectionBlocked + +`func (o *RequestedItemAccountSelections) SetAccountsSelectionBlocked(v bool)` + +SetAccountsSelectionBlocked sets AccountsSelectionBlocked field to given value. + +### HasAccountsSelectionBlocked + +`func (o *RequestedItemAccountSelections) HasAccountsSelectionBlocked() bool` + +HasAccountsSelectionBlocked returns a boolean if a field has been set. + +### GetAccountsSelectionBlockedReason + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlockedReason() string` + +GetAccountsSelectionBlockedReason returns the AccountsSelectionBlockedReason field if non-nil, zero value otherwise. + +### GetAccountsSelectionBlockedReasonOk + +`func (o *RequestedItemAccountSelections) GetAccountsSelectionBlockedReasonOk() (*string, bool)` + +GetAccountsSelectionBlockedReasonOk returns a tuple with the AccountsSelectionBlockedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountsSelectionBlockedReason + +`func (o *RequestedItemAccountSelections) SetAccountsSelectionBlockedReason(v string)` + +SetAccountsSelectionBlockedReason sets AccountsSelectionBlockedReason field to given value. + +### HasAccountsSelectionBlockedReason + +`func (o *RequestedItemAccountSelections) HasAccountsSelectionBlockedReason() bool` + +HasAccountsSelectionBlockedReason returns a boolean if a field has been set. + +### SetAccountsSelectionBlockedReasonNil + +`func (o *RequestedItemAccountSelections) SetAccountsSelectionBlockedReasonNil(b bool)` + + SetAccountsSelectionBlockedReasonNil sets the value for AccountsSelectionBlockedReason to be an explicit nil + +### UnsetAccountsSelectionBlockedReason +`func (o *RequestedItemAccountSelections) UnsetAccountsSelectionBlockedReason()` + +UnsetAccountsSelectionBlockedReason ensures that no value is present for AccountsSelectionBlockedReason, not even an explicit nil +### GetType + +`func (o *RequestedItemAccountSelections) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RequestedItemAccountSelections) 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 *RequestedItemAccountSelections) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RequestedItemAccountSelections) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *RequestedItemAccountSelections) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RequestedItemAccountSelections) 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 *RequestedItemAccountSelections) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RequestedItemAccountSelections) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *RequestedItemAccountSelections) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RequestedItemAccountSelections) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RequestedItemAccountSelections) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RequestedItemAccountSelections) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSources + +`func (o *RequestedItemAccountSelections) GetSources() []SourceAccountSelections` + +GetSources returns the Sources field if non-nil, zero value otherwise. + +### GetSourcesOk + +`func (o *RequestedItemAccountSelections) GetSourcesOk() (*[]SourceAccountSelections, bool)` + +GetSourcesOk returns a tuple with the Sources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSources + +`func (o *RequestedItemAccountSelections) SetSources(v []SourceAccountSelections)` + +SetSources sets Sources field to given value. + +### HasSources + +`func (o *RequestedItemAccountSelections) HasSources() bool` + +HasSources 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 new file mode 100644 index 000000000..1d1907fdc --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemDtoRef.md @@ -0,0 +1,266 @@ +--- +id: v2025-requested-item-dto-ref +title: RequestedItemDtoRef +pagination_label: RequestedItemDtoRef +sidebar_label: RequestedItemDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedItemDtoRef', 'V2025RequestedItemDtoRef'] +slug: /tools/sdk/go/v2025/models/requested-item-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedItemDtoRef', 'V2025RequestedItemDtoRef'] +--- + +# RequestedItemDtoRef + +## 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] +**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 + +### NewRequestedItemDtoRef + +`func NewRequestedItemDtoRef(type_ string, id string, ) *RequestedItemDtoRef` + +NewRequestedItemDtoRef instantiates a new RequestedItemDtoRef 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 + +### NewRequestedItemDtoRefWithDefaults + +`func NewRequestedItemDtoRefWithDefaults() *RequestedItemDtoRef` + +NewRequestedItemDtoRefWithDefaults instantiates a new RequestedItemDtoRef 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 *RequestedItemDtoRef) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *RequestedItemDtoRef) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetId(v string)` + +SetId sets Id field to given value. + + +### GetComment + +`func (o *RequestedItemDtoRef) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *RequestedItemDtoRef) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetClientMetadata + +`func (o *RequestedItemDtoRef) GetClientMetadata() map[string]string` + +GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. + +### GetClientMetadataOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetClientMetadata(v map[string]string)` + +SetClientMetadata sets ClientMetadata field to given value. + +### HasClientMetadata + +`func (o *RequestedItemDtoRef) HasClientMetadata() bool` + +HasClientMetadata returns a boolean if a field has been set. + +### GetRemoveDate + +`func (o *RequestedItemDtoRef) GetRemoveDate() SailPointTime` + +GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. + +### GetRemoveDateOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetRemoveDate(v SailPointTime)` + +SetRemoveDate sets RemoveDate field to given value. + +### HasRemoveDate + +`func (o *RequestedItemDtoRef) HasRemoveDate() bool` + +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` + +GetAccountSelection returns the AccountSelection field if non-nil, zero value otherwise. + +### GetAccountSelectionOk + +`func (o *RequestedItemDtoRef) GetAccountSelectionOk() (*[]SourceItemRef, bool)` + +GetAccountSelectionOk returns a tuple with the AccountSelection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountSelection + +`func (o *RequestedItemDtoRef) SetAccountSelection(v []SourceItemRef)` + +SetAccountSelection sets AccountSelection field to given value. + +### HasAccountSelection + +`func (o *RequestedItemDtoRef) HasAccountSelection() bool` + +HasAccountSelection returns a boolean if a field has been set. + +### SetAccountSelectionNil + +`func (o *RequestedItemDtoRef) SetAccountSelectionNil(b bool)` + + SetAccountSelectionNil sets the value for AccountSelection to be an explicit nil + +### UnsetAccountSelection +`func (o *RequestedItemDtoRef) UnsetAccountSelection()` + +UnsetAccountSelection ensures that no value is present for AccountSelection, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/ScheduledAttributes.md b/docs/tools/sdk/go/Reference/V2025/Models/ScheduledAttributes.md deleted file mode 100644 index 0a08e4e79..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/ScheduledAttributes.md +++ /dev/null @@ -1,249 +0,0 @@ ---- -id: v2025-scheduled-attributes -title: ScheduledAttributes -pagination_label: ScheduledAttributes -sidebar_label: ScheduledAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ScheduledAttributes', 'V2025ScheduledAttributes'] -slug: /tools/sdk/go/v2025/models/scheduled-attributes -tags: ['SDK', 'Software Development Kit', 'ScheduledAttributes', 'V2025ScheduledAttributes'] ---- - -# ScheduledAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewScheduledAttributes - -`func NewScheduledAttributes(frequency NullableString, ) *ScheduledAttributes` - -NewScheduledAttributes instantiates a new ScheduledAttributes 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 - -### NewScheduledAttributesWithDefaults - -`func NewScheduledAttributesWithDefaults() *ScheduledAttributes` - -NewScheduledAttributesWithDefaults instantiates a new ScheduledAttributes 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 - -### GetFrequency - -`func (o *ScheduledAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *ScheduledAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *ScheduledAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *ScheduledAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *ScheduledAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *ScheduledAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *ScheduledAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *ScheduledAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *ScheduledAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *ScheduledAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *ScheduledAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *ScheduledAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *ScheduledAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *ScheduledAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *ScheduledAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *ScheduledAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *ScheduledAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *ScheduledAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *ScheduledAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *ScheduledAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *ScheduledAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *ScheduledAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *ScheduledAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *ScheduledAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *ScheduledAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *ScheduledAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *ScheduledAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *ScheduledAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *ScheduledAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *ScheduledAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *ScheduledAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *ScheduledAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *ScheduledAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *ScheduledAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *ScheduledAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2025/Models/ServiceProviderConfiguration.md b/docs/tools/sdk/go/Reference/V2025/Models/ServiceProviderConfiguration.md new file mode 100644 index 000000000..c199bbd43 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/ServiceProviderConfiguration.md @@ -0,0 +1,142 @@ +--- +id: v2025-service-provider-configuration +title: ServiceProviderConfiguration +pagination_label: ServiceProviderConfiguration +sidebar_label: ServiceProviderConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'ServiceProviderConfiguration', 'V2025ServiceProviderConfiguration'] +slug: /tools/sdk/go/v2025/models/service-provider-configuration +tags: ['SDK', 'Software Development Kit', 'ServiceProviderConfiguration', 'V2025ServiceProviderConfiguration'] +--- + +# ServiceProviderConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | This determines whether or not the SAML authentication flow is enabled for an org | [optional] [default to false] +**BypassIdp** | Pointer to **bool** | This allows basic login with the parameter prompt=true. This is often toggled on when debugging SAML authentication setup. When false, only org admins with MFA-enabled can bypass the IDP. | [optional] [default to false] +**SamlConfigurationValid** | Pointer to **bool** | This indicates whether or not the SAML configuration is valid. | [optional] [default to false] +**FederationProtocolDetails** | Pointer to [**[]ServiceProviderConfigurationFederationProtocolDetailsInner**](service-provider-configuration-federation-protocol-details-inner) | A list of the abstract implementations of the Federation Protocol details. Typically, this will include on SpDetails object and one IdpDetails object used in tandem to define a SAML integration between a customer's identity provider and a customer's SailPoint instance (i.e., the service provider). | [optional] + +## Methods + +### NewServiceProviderConfiguration + +`func NewServiceProviderConfiguration() *ServiceProviderConfiguration` + +NewServiceProviderConfiguration instantiates a new ServiceProviderConfiguration 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 + +### NewServiceProviderConfigurationWithDefaults + +`func NewServiceProviderConfigurationWithDefaults() *ServiceProviderConfiguration` + +NewServiceProviderConfigurationWithDefaults instantiates a new ServiceProviderConfiguration 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 + +### GetEnabled + +`func (o *ServiceProviderConfiguration) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ServiceProviderConfiguration) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *ServiceProviderConfiguration) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ServiceProviderConfiguration) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetBypassIdp + +`func (o *ServiceProviderConfiguration) GetBypassIdp() bool` + +GetBypassIdp returns the BypassIdp field if non-nil, zero value otherwise. + +### GetBypassIdpOk + +`func (o *ServiceProviderConfiguration) GetBypassIdpOk() (*bool, bool)` + +GetBypassIdpOk returns a tuple with the BypassIdp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBypassIdp + +`func (o *ServiceProviderConfiguration) SetBypassIdp(v bool)` + +SetBypassIdp sets BypassIdp field to given value. + +### HasBypassIdp + +`func (o *ServiceProviderConfiguration) HasBypassIdp() bool` + +HasBypassIdp returns a boolean if a field has been set. + +### GetSamlConfigurationValid + +`func (o *ServiceProviderConfiguration) GetSamlConfigurationValid() bool` + +GetSamlConfigurationValid returns the SamlConfigurationValid field if non-nil, zero value otherwise. + +### GetSamlConfigurationValidOk + +`func (o *ServiceProviderConfiguration) GetSamlConfigurationValidOk() (*bool, bool)` + +GetSamlConfigurationValidOk returns a tuple with the SamlConfigurationValid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlConfigurationValid + +`func (o *ServiceProviderConfiguration) SetSamlConfigurationValid(v bool)` + +SetSamlConfigurationValid sets SamlConfigurationValid field to given value. + +### HasSamlConfigurationValid + +`func (o *ServiceProviderConfiguration) HasSamlConfigurationValid() bool` + +HasSamlConfigurationValid returns a boolean if a field has been set. + +### GetFederationProtocolDetails + +`func (o *ServiceProviderConfiguration) GetFederationProtocolDetails() []ServiceProviderConfigurationFederationProtocolDetailsInner` + +GetFederationProtocolDetails returns the FederationProtocolDetails field if non-nil, zero value otherwise. + +### GetFederationProtocolDetailsOk + +`func (o *ServiceProviderConfiguration) GetFederationProtocolDetailsOk() (*[]ServiceProviderConfigurationFederationProtocolDetailsInner, bool)` + +GetFederationProtocolDetailsOk returns a tuple with the FederationProtocolDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederationProtocolDetails + +`func (o *ServiceProviderConfiguration) SetFederationProtocolDetails(v []ServiceProviderConfigurationFederationProtocolDetailsInner)` + +SetFederationProtocolDetails sets FederationProtocolDetails field to given value. + +### HasFederationProtocolDetails + +`func (o *ServiceProviderConfiguration) HasFederationProtocolDetails() bool` + +HasFederationProtocolDetails returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md b/docs/tools/sdk/go/Reference/V2025/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md new file mode 100644 index 000000000..14a4b2643 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md @@ -0,0 +1,470 @@ +--- +id: v2025-service-provider-configuration-federation-protocol-details-inner +title: ServiceProviderConfigurationFederationProtocolDetailsInner +pagination_label: ServiceProviderConfigurationFederationProtocolDetailsInner +sidebar_label: ServiceProviderConfigurationFederationProtocolDetailsInner +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'ServiceProviderConfigurationFederationProtocolDetailsInner', 'V2025ServiceProviderConfigurationFederationProtocolDetailsInner'] +slug: /tools/sdk/go/v2025/models/service-provider-configuration-federation-protocol-details-inner +tags: ['SDK', 'Software Development Kit', 'ServiceProviderConfigurationFederationProtocolDetailsInner', 'V2025ServiceProviderConfigurationFederationProtocolDetailsInner'] +--- + +# ServiceProviderConfigurationFederationProtocolDetailsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] +**Binding** | Pointer to **string** | Defines the binding used for the SAML flow. Used with IDP configurations. | [optional] +**AuthnContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] +**LogoutUrl** | Pointer to **string** | The IDP logout URL. Used with IDP configurations. | [optional] +**IncludeAuthnContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] +**NameId** | Pointer to **string** | The name id format to use. Used with IDP configurations. | [optional] +**JitConfiguration** | Pointer to [**JITConfiguration**](jit-configuration) | | [optional] +**Cert** | Pointer to **string** | The Base64-encoded certificate used by the IDP. Used with IDP configurations. | [optional] +**LoginUrlPost** | Pointer to **string** | The IDP POST URL, used with IDP HTTP-POST bindings for IDP-initiated logins. Used with IDP configurations. | [optional] +**LoginUrlRedirect** | Pointer to **string** | The IDP Redirect URL. Used with IDP configurations. | [optional] +**MappingAttribute** | **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | +**CertificateExpirationDate** | Pointer to **string** | The expiration date extracted from the certificate. | [optional] +**CertificateName** | Pointer to **string** | The name extracted from the certificate. | [optional] +**Alias** | Pointer to **string** | Unique alias used to identify the selected local service provider based on used URL. Used with SP configurations. | [optional] +**CallbackUrl** | **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | +**LegacyAcsUrl** | Pointer to **string** | The legacy ACS URL used for SAML authentication. Used with SP configurations. | [optional] + +## Methods + +### NewServiceProviderConfigurationFederationProtocolDetailsInner + +`func NewServiceProviderConfigurationFederationProtocolDetailsInner(mappingAttribute string, callbackUrl string, ) *ServiceProviderConfigurationFederationProtocolDetailsInner` + +NewServiceProviderConfigurationFederationProtocolDetailsInner instantiates a new ServiceProviderConfigurationFederationProtocolDetailsInner 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 + +### NewServiceProviderConfigurationFederationProtocolDetailsInnerWithDefaults + +`func NewServiceProviderConfigurationFederationProtocolDetailsInnerWithDefaults() *ServiceProviderConfigurationFederationProtocolDetailsInner` + +NewServiceProviderConfigurationFederationProtocolDetailsInnerWithDefaults instantiates a new ServiceProviderConfigurationFederationProtocolDetailsInner 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 + +### GetRole + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### GetBinding + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetBinding() string` + +GetBinding returns the Binding field if non-nil, zero value otherwise. + +### GetBindingOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetBindingOk() (*string, bool)` + +GetBindingOk returns a tuple with the Binding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinding + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetBinding(v string)` + +SetBinding sets Binding field to given value. + +### HasBinding + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasBinding() bool` + +HasBinding returns a boolean if a field has been set. + +### GetAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthnContext() string` + +GetAuthnContext returns the AuthnContext field if non-nil, zero value otherwise. + +### GetAuthnContextOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthnContextOk() (*string, bool)` + +GetAuthnContextOk returns a tuple with the AuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetAuthnContext(v string)` + +SetAuthnContext sets AuthnContext field to given value. + +### HasAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasAuthnContext() bool` + +HasAuthnContext returns a boolean if a field has been set. + +### GetLogoutUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLogoutUrl() string` + +GetLogoutUrl returns the LogoutUrl field if non-nil, zero value otherwise. + +### GetLogoutUrlOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLogoutUrlOk() (*string, bool)` + +GetLogoutUrlOk returns a tuple with the LogoutUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogoutUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLogoutUrl(v string)` + +SetLogoutUrl sets LogoutUrl field to given value. + +### HasLogoutUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLogoutUrl() bool` + +HasLogoutUrl returns a boolean if a field has been set. + +### GetIncludeAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthnContext() bool` + +GetIncludeAuthnContext returns the IncludeAuthnContext field if non-nil, zero value otherwise. + +### GetIncludeAuthnContextOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthnContextOk() (*bool, bool)` + +GetIncludeAuthnContextOk returns a tuple with the IncludeAuthnContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetIncludeAuthnContext(v bool)` + +SetIncludeAuthnContext sets IncludeAuthnContext field to given value. + +### HasIncludeAuthnContext + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasIncludeAuthnContext() bool` + +HasIncludeAuthnContext returns a boolean if a field has been set. + +### GetNameId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetNameId() string` + +GetNameId returns the NameId field if non-nil, zero value otherwise. + +### GetNameIdOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetNameIdOk() (*string, bool)` + +GetNameIdOk returns a tuple with the NameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNameId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetNameId(v string)` + +SetNameId sets NameId field to given value. + +### HasNameId + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasNameId() bool` + +HasNameId returns a boolean if a field has been set. + +### GetJitConfiguration + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetJitConfiguration() JITConfiguration` + +GetJitConfiguration returns the JitConfiguration field if non-nil, zero value otherwise. + +### GetJitConfigurationOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetJitConfigurationOk() (*JITConfiguration, bool)` + +GetJitConfigurationOk returns a tuple with the JitConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitConfiguration + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetJitConfiguration(v JITConfiguration)` + +SetJitConfiguration sets JitConfiguration field to given value. + +### HasJitConfiguration + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasJitConfiguration() bool` + +HasJitConfiguration returns a boolean if a field has been set. + +### GetCert + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCert() string` + +GetCert returns the Cert field if non-nil, zero value otherwise. + +### GetCertOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertOk() (*string, bool)` + +GetCertOk returns a tuple with the Cert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCert + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCert(v string)` + +SetCert sets Cert field to given value. + +### HasCert + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasCert() bool` + +HasCert returns a boolean if a field has been set. + +### GetLoginUrlPost + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlPost() string` + +GetLoginUrlPost returns the LoginUrlPost field if non-nil, zero value otherwise. + +### GetLoginUrlPostOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlPostOk() (*string, bool)` + +GetLoginUrlPostOk returns a tuple with the LoginUrlPost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlPost + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLoginUrlPost(v string)` + +SetLoginUrlPost sets LoginUrlPost field to given value. + +### HasLoginUrlPost + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLoginUrlPost() bool` + +HasLoginUrlPost returns a boolean if a field has been set. + +### GetLoginUrlRedirect + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlRedirect() string` + +GetLoginUrlRedirect returns the LoginUrlRedirect field if non-nil, zero value otherwise. + +### GetLoginUrlRedirectOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLoginUrlRedirectOk() (*string, bool)` + +GetLoginUrlRedirectOk returns a tuple with the LoginUrlRedirect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrlRedirect + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLoginUrlRedirect(v string)` + +SetLoginUrlRedirect sets LoginUrlRedirect field to given value. + +### HasLoginUrlRedirect + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLoginUrlRedirect() bool` + +HasLoginUrlRedirect returns a boolean if a field has been set. + +### GetMappingAttribute + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetMappingAttribute() string` + +GetMappingAttribute returns the MappingAttribute field if non-nil, zero value otherwise. + +### GetMappingAttributeOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetMappingAttributeOk() (*string, bool)` + +GetMappingAttributeOk returns a tuple with the MappingAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMappingAttribute + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetMappingAttribute(v string)` + +SetMappingAttribute sets MappingAttribute field to given value. + + +### GetCertificateExpirationDate + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateExpirationDate() string` + +GetCertificateExpirationDate returns the CertificateExpirationDate field if non-nil, zero value otherwise. + +### GetCertificateExpirationDateOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateExpirationDateOk() (*string, bool)` + +GetCertificateExpirationDateOk returns a tuple with the CertificateExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateExpirationDate + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCertificateExpirationDate(v string)` + +SetCertificateExpirationDate sets CertificateExpirationDate field to given value. + +### HasCertificateExpirationDate + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasCertificateExpirationDate() bool` + +HasCertificateExpirationDate returns a boolean if a field has been set. + +### GetCertificateName + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateName() string` + +GetCertificateName returns the CertificateName field if non-nil, zero value otherwise. + +### GetCertificateNameOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCertificateNameOk() (*string, bool)` + +GetCertificateNameOk returns a tuple with the CertificateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateName + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCertificateName(v string)` + +SetCertificateName sets CertificateName field to given value. + +### HasCertificateName + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasCertificateName() bool` + +HasCertificateName returns a boolean if a field has been set. + +### GetAlias + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetCallbackUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCallbackUrl() string` + +GetCallbackUrl returns the CallbackUrl field if non-nil, zero value otherwise. + +### GetCallbackUrlOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetCallbackUrlOk() (*string, bool)` + +GetCallbackUrlOk returns a tuple with the CallbackUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallbackUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetCallbackUrl(v string)` + +SetCallbackUrl sets CallbackUrl field to given value. + + +### GetLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLegacyAcsUrl() string` + +GetLegacyAcsUrl returns the LegacyAcsUrl field if non-nil, zero value otherwise. + +### GetLegacyAcsUrlOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLegacyAcsUrlOk() (*string, bool)` + +GetLegacyAcsUrlOk returns a tuple with the LegacyAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLegacyAcsUrl(v string)` + +SetLegacyAcsUrl sets LegacyAcsUrl field to given value. + +### HasLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLegacyAcsUrl() bool` + +HasLegacyAcsUrl returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/SessionConfiguration.md b/docs/tools/sdk/go/Reference/V2025/Models/SessionConfiguration.md new file mode 100644 index 000000000..ad1b1618b --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/SessionConfiguration.md @@ -0,0 +1,116 @@ +--- +id: v2025-session-configuration +title: SessionConfiguration +pagination_label: SessionConfiguration +sidebar_label: SessionConfiguration +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SessionConfiguration', 'V2025SessionConfiguration'] +slug: /tools/sdk/go/v2025/models/session-configuration +tags: ['SDK', 'Software Development Kit', 'SessionConfiguration', 'V2025SessionConfiguration'] +--- + +# SessionConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxIdleTime** | Pointer to **int32** | The maximum time in minutes a session can be idle. | [optional] +**RememberMe** | Pointer to **bool** | Denotes if 'remember me' is enabled. | [optional] [default to false] +**MaxSessionTime** | Pointer to **int32** | The maximum allowable session time in minutes. | [optional] + +## Methods + +### NewSessionConfiguration + +`func NewSessionConfiguration() *SessionConfiguration` + +NewSessionConfiguration instantiates a new SessionConfiguration 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 + +### NewSessionConfigurationWithDefaults + +`func NewSessionConfigurationWithDefaults() *SessionConfiguration` + +NewSessionConfigurationWithDefaults instantiates a new SessionConfiguration 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 + +### GetMaxIdleTime + +`func (o *SessionConfiguration) GetMaxIdleTime() int32` + +GetMaxIdleTime returns the MaxIdleTime field if non-nil, zero value otherwise. + +### GetMaxIdleTimeOk + +`func (o *SessionConfiguration) GetMaxIdleTimeOk() (*int32, bool)` + +GetMaxIdleTimeOk returns a tuple with the MaxIdleTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxIdleTime + +`func (o *SessionConfiguration) SetMaxIdleTime(v int32)` + +SetMaxIdleTime sets MaxIdleTime field to given value. + +### HasMaxIdleTime + +`func (o *SessionConfiguration) HasMaxIdleTime() bool` + +HasMaxIdleTime returns a boolean if a field has been set. + +### GetRememberMe + +`func (o *SessionConfiguration) GetRememberMe() bool` + +GetRememberMe returns the RememberMe field if non-nil, zero value otherwise. + +### GetRememberMeOk + +`func (o *SessionConfiguration) GetRememberMeOk() (*bool, bool)` + +GetRememberMeOk returns a tuple with the RememberMe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRememberMe + +`func (o *SessionConfiguration) SetRememberMe(v bool)` + +SetRememberMe sets RememberMe field to given value. + +### HasRememberMe + +`func (o *SessionConfiguration) HasRememberMe() bool` + +HasRememberMe returns a boolean if a field has been set. + +### GetMaxSessionTime + +`func (o *SessionConfiguration) GetMaxSessionTime() int32` + +GetMaxSessionTime returns the MaxSessionTime field if non-nil, zero value otherwise. + +### GetMaxSessionTimeOk + +`func (o *SessionConfiguration) GetMaxSessionTimeOk() (*int32, bool)` + +GetMaxSessionTimeOk returns a tuple with the MaxSessionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxSessionTime + +`func (o *SessionConfiguration) SetMaxSessionTime(v int32)` + +SetMaxSessionTime sets MaxSessionTime field to given value. + +### HasMaxSessionTime + +`func (o *SessionConfiguration) HasMaxSessionTime() bool` + +HasMaxSessionTime returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/SourceAccountSelections.md b/docs/tools/sdk/go/Reference/V2025/Models/SourceAccountSelections.md new file mode 100644 index 000000000..2551b9d5b --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/SourceAccountSelections.md @@ -0,0 +1,142 @@ +--- +id: v2025-source-account-selections +title: SourceAccountSelections +pagination_label: SourceAccountSelections +sidebar_label: SourceAccountSelections +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SourceAccountSelections', 'V2025SourceAccountSelections'] +slug: /tools/sdk/go/v2025/models/source-account-selections +tags: ['SDK', 'Software Development Kit', 'SourceAccountSelections', 'V2025SourceAccountSelections'] +--- + +# SourceAccountSelections + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**DtoType**](dto-type) | | [optional] +**Id** | Pointer to **string** | The source id | [optional] +**Name** | Pointer to **string** | The source name | [optional] +**Accounts** | Pointer to [**[]AccountInfoRef**](account-info-ref) | The accounts information for a particular source in the requested item | [optional] + +## Methods + +### NewSourceAccountSelections + +`func NewSourceAccountSelections() *SourceAccountSelections` + +NewSourceAccountSelections instantiates a new SourceAccountSelections 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 + +### NewSourceAccountSelectionsWithDefaults + +`func NewSourceAccountSelectionsWithDefaults() *SourceAccountSelections` + +NewSourceAccountSelectionsWithDefaults instantiates a new SourceAccountSelections 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 *SourceAccountSelections) GetType() DtoType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SourceAccountSelections) GetTypeOk() (*DtoType, 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 *SourceAccountSelections) SetType(v DtoType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SourceAccountSelections) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *SourceAccountSelections) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SourceAccountSelections) 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 *SourceAccountSelections) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SourceAccountSelections) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SourceAccountSelections) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SourceAccountSelections) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SourceAccountSelections) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SourceAccountSelections) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccounts + +`func (o *SourceAccountSelections) GetAccounts() []AccountInfoRef` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *SourceAccountSelections) GetAccountsOk() (*[]AccountInfoRef, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *SourceAccountSelections) SetAccounts(v []AccountInfoRef)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *SourceAccountSelections) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/SourceItemRef.md b/docs/tools/sdk/go/Reference/V2025/Models/SourceItemRef.md new file mode 100644 index 000000000..7226a5a7b --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/SourceItemRef.md @@ -0,0 +1,110 @@ +--- +id: v2025-source-item-ref +title: SourceItemRef +pagination_label: SourceItemRef +sidebar_label: SourceItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SourceItemRef', 'V2025SourceItemRef'] +slug: /tools/sdk/go/v2025/models/source-item-ref +tags: ['SDK', 'Software Development Kit', 'SourceItemRef', 'V2025SourceItemRef'] +--- + +# SourceItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SourceId** | Pointer to **NullableString** | The id for the source on which account selections are made | [optional] +**Accounts** | Pointer to [**[]AccountItemRef**](account-item-ref) | A list of account selections on the source. Currently, only one selection per source is supported. | [optional] + +## Methods + +### NewSourceItemRef + +`func NewSourceItemRef() *SourceItemRef` + +NewSourceItemRef instantiates a new SourceItemRef 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 + +### NewSourceItemRefWithDefaults + +`func NewSourceItemRefWithDefaults() *SourceItemRef` + +NewSourceItemRefWithDefaults instantiates a new SourceItemRef 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 + +### GetSourceId + +`func (o *SourceItemRef) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *SourceItemRef) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *SourceItemRef) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *SourceItemRef) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### SetSourceIdNil + +`func (o *SourceItemRef) SetSourceIdNil(b bool)` + + SetSourceIdNil sets the value for SourceId to be an explicit nil + +### UnsetSourceId +`func (o *SourceItemRef) UnsetSourceId()` + +UnsetSourceId ensures that no value is present for SourceId, not even an explicit nil +### GetAccounts + +`func (o *SourceItemRef) GetAccounts() []AccountItemRef` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *SourceItemRef) GetAccountsOk() (*[]AccountItemRef, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *SourceItemRef) SetAccounts(v []AccountItemRef)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *SourceItemRef) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + +### SetAccountsNil + +`func (o *SourceItemRef) SetAccountsNil(b bool)` + + SetAccountsNil sets the value for Accounts to be an explicit nil + +### UnsetAccounts +`func (o *SourceItemRef) UnsetAccounts()` + +UnsetAccounts ensures that no value is present for Accounts, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/SpDetails.md b/docs/tools/sdk/go/Reference/V2025/Models/SpDetails.md new file mode 100644 index 000000000..092bc1393 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/SpDetails.md @@ -0,0 +1,163 @@ +--- +id: v2025-sp-details +title: SpDetails +pagination_label: SpDetails +sidebar_label: SpDetails +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SpDetails', 'V2025SpDetails'] +slug: /tools/sdk/go/v2025/models/sp-details +tags: ['SDK', 'Software Development Kit', 'SpDetails', 'V2025SpDetails'] +--- + +# SpDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | Federation protocol role | [optional] +**EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] +**Alias** | Pointer to **string** | Unique alias used to identify the selected local service provider based on used URL. Used with SP configurations. | [optional] +**CallbackUrl** | **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | +**LegacyAcsUrl** | Pointer to **string** | The legacy ACS URL used for SAML authentication. Used with SP configurations. | [optional] + +## Methods + +### NewSpDetails + +`func NewSpDetails(callbackUrl string, ) *SpDetails` + +NewSpDetails instantiates a new SpDetails 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 + +### NewSpDetailsWithDefaults + +`func NewSpDetailsWithDefaults() *SpDetails` + +NewSpDetailsWithDefaults instantiates a new SpDetails 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 + +### GetRole + +`func (o *SpDetails) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *SpDetails) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *SpDetails) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *SpDetails) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetEntityId + +`func (o *SpDetails) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *SpDetails) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *SpDetails) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *SpDetails) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### GetAlias + +`func (o *SpDetails) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *SpDetails) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *SpDetails) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *SpDetails) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetCallbackUrl + +`func (o *SpDetails) GetCallbackUrl() string` + +GetCallbackUrl returns the CallbackUrl field if non-nil, zero value otherwise. + +### GetCallbackUrlOk + +`func (o *SpDetails) GetCallbackUrlOk() (*string, bool)` + +GetCallbackUrlOk returns a tuple with the CallbackUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallbackUrl + +`func (o *SpDetails) SetCallbackUrl(v string)` + +SetCallbackUrl sets CallbackUrl field to given value. + + +### GetLegacyAcsUrl + +`func (o *SpDetails) GetLegacyAcsUrl() string` + +GetLegacyAcsUrl returns the LegacyAcsUrl field if non-nil, zero value otherwise. + +### GetLegacyAcsUrlOk + +`func (o *SpDetails) GetLegacyAcsUrlOk() (*string, bool)` + +GetLegacyAcsUrlOk returns a tuple with the LegacyAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyAcsUrl + +`func (o *SpDetails) SetLegacyAcsUrl(v string)` + +SetLegacyAcsUrl sets LegacyAcsUrl field to given value. + +### HasLegacyAcsUrl + +`func (o *SpDetails) HasLegacyAcsUrl() bool` + +HasLegacyAcsUrl returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/WorkflowTrigger.md b/docs/tools/sdk/go/Reference/V2025/Models/WorkflowTrigger.md index 7fbe2348e..a03b5d42b 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/WorkflowTrigger.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/WorkflowTrigger.md @@ -17,13 +17,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | The trigger type | **DisplayName** | Pointer to **NullableString** | | [optional] -**Attributes** | [**NullableWorkflowTriggerAttributes**](workflow-trigger-attributes) | | +**Attributes** | **map[string]interface{}** | Workflow Trigger Attributes. | ## Methods ### NewWorkflowTrigger -`func NewWorkflowTrigger(type_ string, attributes NullableWorkflowTriggerAttributes, ) *WorkflowTrigger` +`func NewWorkflowTrigger(type_ string, attributes map[string]interface{}, ) *WorkflowTrigger` NewWorkflowTrigger instantiates a new WorkflowTrigger object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ HasDisplayName returns a boolean if a field has been set. UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil ### GetAttributes -`func (o *WorkflowTrigger) GetAttributes() WorkflowTriggerAttributes` +`func (o *WorkflowTrigger) GetAttributes() map[string]interface{}` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *WorkflowTrigger) GetAttributesOk() (*WorkflowTriggerAttributes, bool)` +`func (o *WorkflowTrigger) GetAttributesOk() (*map[string]interface{}, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *WorkflowTrigger) SetAttributes(v WorkflowTriggerAttributes)` +`func (o *WorkflowTrigger) SetAttributes(v map[string]interface{})` SetAttributes sets Attributes field to given value. diff --git a/docs/tools/sdk/go/Reference/V2025/Models/WorkflowTriggerAttributes.md b/docs/tools/sdk/go/Reference/V2025/Models/WorkflowTriggerAttributes.md deleted file mode 100644 index 422ca5261..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/WorkflowTriggerAttributes.md +++ /dev/null @@ -1,532 +0,0 @@ ---- -id: v2025-workflow-trigger-attributes -title: WorkflowTriggerAttributes -pagination_label: WorkflowTriggerAttributes -sidebar_label: WorkflowTriggerAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'WorkflowTriggerAttributes', 'V2025WorkflowTriggerAttributes'] -slug: /tools/sdk/go/v2025/models/workflow-trigger-attributes -tags: ['SDK', 'Software Development Kit', 'WorkflowTriggerAttributes', 'V2025WorkflowTriggerAttributes'] ---- - -# WorkflowTriggerAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewWorkflowTriggerAttributes - -`func NewWorkflowTriggerAttributes(id NullableString, frequency NullableString, ) *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributes instantiates a new WorkflowTriggerAttributes 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 - -### NewWorkflowTriggerAttributesWithDefaults - -`func NewWorkflowTriggerAttributesWithDefaults() *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributesWithDefaults instantiates a new WorkflowTriggerAttributes 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 - -### GetId - -`func (o *WorkflowTriggerAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WorkflowTriggerAttributes) 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 *WorkflowTriggerAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *WorkflowTriggerAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *WorkflowTriggerAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *WorkflowTriggerAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *WorkflowTriggerAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *WorkflowTriggerAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *WorkflowTriggerAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *WorkflowTriggerAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *WorkflowTriggerAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *WorkflowTriggerAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *WorkflowTriggerAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *WorkflowTriggerAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *WorkflowTriggerAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *WorkflowTriggerAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *WorkflowTriggerAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *WorkflowTriggerAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *WorkflowTriggerAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *WorkflowTriggerAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *WorkflowTriggerAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil -### GetName - -`func (o *WorkflowTriggerAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *WorkflowTriggerAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *WorkflowTriggerAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *WorkflowTriggerAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *WorkflowTriggerAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *WorkflowTriggerAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetClientId - -`func (o *WorkflowTriggerAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *WorkflowTriggerAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *WorkflowTriggerAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *WorkflowTriggerAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *WorkflowTriggerAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *WorkflowTriggerAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *WorkflowTriggerAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *WorkflowTriggerAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *WorkflowTriggerAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *WorkflowTriggerAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *WorkflowTriggerAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *WorkflowTriggerAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil -### GetFrequency - -`func (o *WorkflowTriggerAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *WorkflowTriggerAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *WorkflowTriggerAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *WorkflowTriggerAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *WorkflowTriggerAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *WorkflowTriggerAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *WorkflowTriggerAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *WorkflowTriggerAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *WorkflowTriggerAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *WorkflowTriggerAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *WorkflowTriggerAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *WorkflowTriggerAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *WorkflowTriggerAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *WorkflowTriggerAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *WorkflowTriggerAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *WorkflowTriggerAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *WorkflowTriggerAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *WorkflowTriggerAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *WorkflowTriggerAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *WorkflowTriggerAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *WorkflowTriggerAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *WorkflowTriggerAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *WorkflowTriggerAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *WorkflowTriggerAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *WorkflowTriggerAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *WorkflowTriggerAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *WorkflowTriggerAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *WorkflowTriggerAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *WorkflowTriggerAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md index c05bfcab7..b6d6a6412 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md @@ -61,8 +61,9 @@ Method | HTTP request | Description ## create-access-profile Create Access Profile Create an access profile. -A user with only ROLE_SUBADMIN or SOURCE_SUBADMIN authority must be associated with the access profile's source. +A user with `ROLE_SUBADMIN` or `SOURCE_SUBADMIN` authority must be associated with the access profile's source. The maximum supported length for the description field is 2000 characters. Longer descriptions will be preserved for existing access profiles. However, any new access profiles as well as any updates to existing descriptions are limited to 2000 characters. +>**Note:** To use this endpoint, you need all the listed scopes. [API Spec](https://developer.sailpoint.com/docs/api/v3/create-access-profile) @@ -97,12 +98,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -137,6 +139,7 @@ func main() { "segments" : [ "f7b1b8a3-5fed-4fd4-ad29-82014e137e19", "29cb6c06-1da8-43ea-8be4-b3125f248f2a" ], "accessRequestConfig" : { "commentsRequired" : true, + "reauthorizationRequired" : true, "approvalSchemes" : [ { "approverId" : "46c79819-a69f-49a2-becb-12c971ae66c6", "approverType" : "GOVERNANCE_GROUP" @@ -186,11 +189,20 @@ func main() { "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + + var accessProfile v3.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -247,16 +259,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to delete # string | ID of the Access Profile to delete + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + + + 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) @@ -307,19 +323,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + + var accessProfileBulkDeleteRequest v3.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -372,16 +398,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180837ca6693d017ca8d097500149 # string | ID of the Access Profile # string | ID of the Access Profile + id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + + + 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) @@ -441,21 +471,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. - 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) - 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 := 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) + id := `2c91808a7813090a017814121919ecca` // string | ID of the access profile containing the entitlements. # string | ID of the access profile containing the entitlements. + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -469,7 +503,7 @@ func main() { ## list-access-profiles List Access Profiles -Get a list of access profiles. +Get a list of access profiles. >**Note:** When you filter for access profiles that have the '+' symbol in their names, the response is blank. [API Spec](https://developer.sailpoint.com/docs/api/v3/list-access-profiles) @@ -489,7 +523,7 @@ Name | Type | Description | Notes **limit** | **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. | [default to 250] **offset** | **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. | [default to 0] **count** | **bool** | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to false] - **filters** | **string** | Filter results using the standard syntax described in [V3 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* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. | + **filters** | **string** | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. | **sorters** | **string** | Sort results using the standard syntax described 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** | **forSegmentIds** | **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. | **includeUnsegmented** | **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. | [default to true] @@ -512,23 +546,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 8c190e6787aa4ed9a90bd9d5344523fb # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) - 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) - 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 "SailPoint Support" # string | Filter results using the standard syntax described in [V3 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* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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, 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) - 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) + forSubadmin := `8c190e6787aa4ed9a90bd9d5344523fb` // string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # string | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN 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. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) + 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) + 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 "SailPoint Support"` // string | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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* **created**: *gt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* 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, 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -611,17 +649,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121919ecca # string | ID of the Access Profile to patch # string | ID of the Access Profile to patch - jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch + jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md index f6f8f2782..a72e281aa 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md @@ -82,13 +82,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -96,11 +97,14 @@ func main() { "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. (optional) + }`) // CommentDto | Reviewer's comment. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + + 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) @@ -154,20 +158,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + + var forwardApprovalDto v3.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -217,17 +231,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + + + 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) @@ -281,21 +299,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 2c91808568c529c60168cca6f90c1313 # string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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) + ownerId := `2c91808568c529c60168cca6f90c1313` // string | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -328,7 +350,7 @@ Name | Type | Description | Notes **limit** | **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. | [default to 250] **offset** | **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. | [default to 0] **count** | **bool** | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to false] - **filters** | **string** | Filter results using the standard syntax described in [V3 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* | + **filters** | **string** | Filter results using the standard syntax described in [V3 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* | **sorters** | **string** | Sort results using the standard syntax described 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** | ### Return type @@ -349,21 +371,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 2c91808568c529c60168cca6f90c1313 # string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) - 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) - 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 := 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* (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* (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) + ownerId := `2c91808568c529c60168cca6f90c1313` // string | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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 | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -417,13 +443,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - approvalId := 2c91808b7294bea301729568c68c002e # string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -431,11 +458,20 @@ func main() { "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + + var commentDto v3.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md index a0ca557f2..ca0380545 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md @@ -75,19 +75,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + + var cancelAccessRequest v3.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -121,6 +131,7 @@ __GRANT_ACCESS__ * Allows any authenticated token (except API) to call this endpoint to request to grant access to themselves. Depending on the configuration, a user can request access for others. * Roles, access profiles and entitlements can be requested. * While requesting entitlements, maximum of 25 entitlements and 10 recipients are allowed in a request. +* Now supports an alternate field 'requestedForWithRequestedItems' for users to specify account selections while requesting items where they have more than one account on the source. __REVOKE_ACCESS__ * Can only be requested for a single identity at a time. @@ -131,6 +142,7 @@ __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. [API Spec](https://developer.sailpoint.com/docs/api/v3/create-access-request) @@ -166,13 +178,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ - "requestedFor" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210584" ], + data := []byte(`{ + "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", "requestedAppName" : "test-app" @@ -186,7 +199,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", @@ -195,7 +210,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", @@ -204,7 +221,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", @@ -213,7 +232,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", @@ -222,13 +243,151 @@ 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", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] + }, { + "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "requestedItems" : [ { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + }, { + "clientMetadata" : { + "requestedAppName" : "test-app", + "requestedAppId" : "2c91808f7892918f0178b78da4a305a1" + }, + "removeDate" : "2020-07-11T21:23:15Z", + "accountSelection" : [ { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + }, { + "sourceId" : "cb89bc2f1ee6445fbea12224c526ba3a", + "accounts" : [ { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + }, { + "accountUuid" : "{fab7119e-004f-4822-9c33-b8d570d6c6a6}", + "nativeIdentity" : "CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local" + } ] + } ], + "comment" : "Requesting access profile for John Doe", + "id" : "2c9180835d2e5168015d32f890ca1581", + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + + var accessRequest v3.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -273,15 +432,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + + + 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) @@ -341,25 +504,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assignedTo := 2c9180877b2b6ea4017b2c545f971429 # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) - limit := 100 # int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) - 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) - filters := accountActivityItemId eq "2c918086771c86df0177401efcdf54c0" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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) + requestedFor := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assignedTo := `2c9180877b2b6ea4017b2c545f971429` // string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # string | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (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) + limit := 100 // int32 | Max number of results to return. (optional) (default to 250) # int32 | Max number of results to return. (optional) (default to 250) + 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) + filters := `accountActivityItemId eq "2c918086771c86df0177401efcdf54c0"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, 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: **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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -408,12 +575,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -438,11 +606,20 @@ func main() { }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + + var accessRequestConfig v3.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md index a4fb409bc..8ca3ee7f4 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md @@ -93,16 +93,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account activity id # string | The account activity id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + + + 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) @@ -158,23 +162,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c91808568c529c60168cca6f90c1313 # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requestedBy := 2c91808568c529c60168cca6f90c1313 # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regardingIdentity := 2c91808568c529c60168cca6f90c1313 # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - 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) - 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 "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) + requestedFor := `2c91808568c529c60168cca6f90c1313` // string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requestedBy := `2c91808568c529c60168cca6f90c1313` // string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # string | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regardingIdentity := `2c91808568c529c60168cca6f90c1313` // string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # string | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md index 28b5065bd..b2254bba7 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md @@ -66,20 +66,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountId := ef38f94347e94562b5bb8424a56397d8 # string | ID of IDN account # string | ID of IDN account - 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) - 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) + accountId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of IDN account # string | ID of IDN account + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md index f7a4a0881..a71736472 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md @@ -103,12 +103,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -117,11 +118,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + + var accountAttributesCreate v3.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -177,16 +187,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + + + 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) @@ -240,20 +254,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest v3.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -307,20 +331,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + + var accountToggleRequest v3.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -373,16 +407,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.GetAccount(context.Background(), id).Execute() + + + 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) @@ -438,19 +476,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id - 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) - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -504,21 +546,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - detailLevel := FULL # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) - 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) + 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) + 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) + detailLevel := `FULL` // string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # string | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -577,13 +623,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -591,11 +638,20 @@ func main() { "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + + var accountAttributes v3.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -648,16 +704,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account id # string | The account id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + + + 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) @@ -712,21 +772,31 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + + var accountUnlockRequest v3.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -790,17 +860,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Account ID. # string | Account ID. - requestBody := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + requestBody := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v3.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md index e15de86f0..78a22af8e 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md @@ -64,20 +64,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - detail := FULL # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) - 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) + 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) + detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + + + 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) @@ -125,15 +129,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + + + 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) @@ -183,16 +191,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md index d6717e3a6..ea53a7978 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md @@ -65,16 +65,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + + + 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) @@ -132,17 +136,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Identity ID # string | Identity ID - jsonPatchOperation := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md index 60e621456..ae41d2749 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md @@ -71,23 +71,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := name_example # string | name of branding item # string | name of branding item - productName := productName_example # string | product name # string | product name - actionButtonColor := actionButtonColor_example # string | hex value of color for action button (optional) # string | hex value of color for action button (optional) - activeLinkColor := activeLinkColor_example # string | hex value of color for link (optional) # string | hex value of color for link (optional) - navigationColor := navigationColor_example # string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) - emailFromAddress := emailFromAddress_example # string | email from address (optional) # string | email from address (optional) - 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) + name := `name_example` // string | name of branding item # string | name of branding item + productName := `productName_example` // string | product name # string | product name + actionButtonColor := `actionButtonColor_example` // string | hex value of color for action button (optional) # string | hex value of color for action button (optional) + activeLinkColor := `activeLinkColor_example` // string | hex value of color for link (optional) # string | hex value of color for link (optional) + navigationColor := `navigationColor_example` // string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) + emailFromAddress := `emailFromAddress_example` // string | email from address (optional) # string | email from address (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -140,16 +144,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be deleted # string | The name of the branding item to be deleted + name := `default` // string | The name of the branding item to be deleted # string | The name of the branding item to be deleted - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + + + 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) @@ -200,16 +208,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved + name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.BrandingAPI.GetBranding(context.Background(), name).Execute() + + + 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) @@ -254,15 +266,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.BrandingAPI.GetBrandingList(context.Background()).Execute() + + + 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) @@ -323,24 +339,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := default # string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - name2 := name_example # string | name of branding item # string | name of branding item - productName := productName_example # string | product name # string | product name - actionButtonColor := actionButtonColor_example # string | hex value of color for action button (optional) # string | hex value of color for action button (optional) - activeLinkColor := activeLinkColor_example # string | hex value of color for link (optional) # string | hex value of color for link (optional) - navigationColor := navigationColor_example # string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) - emailFromAddress := emailFromAddress_example # string | email from address (optional) # string | email from address (optional) - 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) + name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved + name2 := `name_example` // string | name of branding item # string | name of branding item + productName := `productName_example` // string | product name # string | product name + actionButtonColor := `actionButtonColor_example` // string | hex value of color for action button (optional) # string | hex value of color for action button (optional) + activeLinkColor := `activeLinkColor_example` // string | hex value of color for link (optional) # string | hex value of color for link (optional) + navigationColor := `navigationColor_example` // string | hex value of color for navigation bar (optional) # string | hex value of color for navigation bar (optional) + emailFromAddress := `emailFromAddress_example` // string | email from address (optional) # string | email from address (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md index 9659868b0..1db8e84d3 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md @@ -86,12 +86,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -108,11 +109,20 @@ func main() { "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | + }`) // CampaignFilterDetails | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() + + var campaignFilterDetails v3.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | A json list of IDs of campaign filters to delete. + requestBody := fmt.Sprintf(``) // []string | A json list of IDs of campaign filters to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() + + var requestBody v3.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -221,16 +241,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e9f9a1397b842fd5a65842087040d3ac # string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. + id := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() + + + 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) @@ -281,18 +305,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() + + + 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) @@ -346,13 +374,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filterId := e9f9a1397b842fd5a65842087040d3ac # string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. - campaignFilterDetails := fmt.Sprintf(`{ + filterId := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -369,11 +398,20 @@ func main() { "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | A campaign filter details with updated field values. + }`) // CampaignFilterDetails | A campaign filter details with updated field values. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() + + var campaignFilterDetails v3.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md index 22afee068..139b58542 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md @@ -156,19 +156,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - campaignCompleteOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() + + + 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) @@ -218,12 +222,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -331,11 +336,20 @@ func main() { "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + + var campaign v3.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -385,13 +399,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -514,11 +529,20 @@ func main() { "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + + var campaignTemplate v3.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -572,16 +596,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -633,16 +661,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -690,18 +722,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignsDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # CampaignsDeleteRequest | IDs of the campaigns to delete. + }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() + + var campaignsDeleteRequest v3.CampaignsDeleteRequest + if err := json.Unmarshal(data, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -756,21 +798,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - 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) - 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) - 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 "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) + 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) + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -809,7 +855,7 @@ Name | Type | Description | Notes ### Return type -[**GetActiveCampaigns200ResponseInner**](../models/get-active-campaigns200-response-inner) +[**GetCampaign200Response**](../models/get-campaign200-response) ### HTTP request headers @@ -825,22 +871,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() + + + 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`: GetActiveCampaigns200ResponseInner + // response from `GetCampaign`: GetCampaign200Response fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) } ``` @@ -889,16 +939,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + + + 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) @@ -944,15 +998,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + + + 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) @@ -1006,16 +1064,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Requested campaign template's ID. # string | Requested campaign template's ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1069,16 +1131,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + + + 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) @@ -1134,20 +1200,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 # string | Sort results using the standard syntax described 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) + 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) + 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` // string | Sort results using the standard syntax described 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1202,24 +1272,34 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + + var adminReviewReassign v3.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1274,17 +1354,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template being modified. # string | ID of the campaign template being modified. - jsonPatchOperation := fmt.Sprintf(`[{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) + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. + jsonPatchOperation := fmt.Sprintf(`[{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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1334,18 +1424,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + + var campaignReportsConfig v3.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1400,13 +1500,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 04bedce387bd47b2ae1f86eb0bb36dee # string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -1425,11 +1526,14 @@ func main() { }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + + + 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) @@ -1482,19 +1586,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. + data := []byte(`{ "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) + }`) // 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + + + 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) @@ -1548,16 +1656,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + + + 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) @@ -1613,17 +1725,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + + + 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) @@ -1687,16 +1803,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + + + 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) @@ -1751,17 +1871,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808571bcfcf80171c23e4b4221fc # string | ID of the campaign template being modified. # string | ID of the campaign template being modified. - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md index 9572e971b..c0fc609eb 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md @@ -83,22 +83,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - type_ := ACCESS_PROFILE # string | The type of access review item to retrieve summaries for # string | The type of access review item to retrieve summaries for - 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) - 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 := 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + type_ := `ACCESS_PROFILE` // string | The type of access review item to retrieve summaries for # string | The type of access review item to retrieve summaries for + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -152,17 +156,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() + + + 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) @@ -220,21 +228,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - 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) - 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 := 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -289,17 +301,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md index 0d1177504..d4d8d7482 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md @@ -92,16 +92,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 63b32151-26c0-42f4-9299-8898dc1c9daa # string | The task ID # string | The task ID + id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + + + 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) @@ -154,16 +158,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification id # string | The certification id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + + + 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) @@ -222,21 +230,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - certificationId := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - itemId := 2c91808671bcbab40171bd945d961227 # string | The certification item ID # string | The certification item ID - filters := target eq "SYS.OBJAUTH2" # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) - 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) - 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) + certificationId := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + itemId := `2c91808671bcbab40171bd945d961227` // string | The certification item ID # string | The certification item ID + filters := `target eq "SYS.OBJAUTH2"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -289,20 +301,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reviewerIdentity := Ada.1de82e55078344 # string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) - 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) - 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) + reviewerIdentity := `Ada.1de82e55078344` // string | The ID of reviewer identity. *me* indicates the current user. (optional) # string | The ID of reviewer identity. *me* indicates the current user. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -360,21 +376,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The certification ID # string | The certification ID - 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) - 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 "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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID + 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) + 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 "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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -435,24 +455,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - 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) - 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 := 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **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: **id**: *eq, in* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) - sorters := access.name,-accessProfile.sourceName # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) - entitlements := identityEntitlement # string | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** 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 entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) - 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) + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + 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) + 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 := `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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **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: **id**: *eq, in* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) + sorters := `access.name,-accessProfile.sourceName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) + entitlements := `identityEntitlement` // string | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** 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 entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -506,21 +530,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reviewerIdentity := me # string | Reviewer's identity. *me* indicates the current user. (optional) # string | Reviewer's identity. *me* indicates the current user. (optional) - 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) - 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 := 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) + reviewerIdentity := `me` // string | Reviewer's identity. *me* indicates the current user. (optional) # string | Reviewer's identity. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -574,17 +602,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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. + 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 := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() + + var reviewDecision v3.ReviewDecision + if err := json.Unmarshal(data, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -638,13 +676,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -654,11 +693,20 @@ func main() { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() + + var reviewReassign v3.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -711,16 +759,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + + + 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) @@ -779,13 +831,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -795,11 +848,20 @@ func main() { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + + var reviewReassign v3.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md index de2407ccb..23a838f03 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md @@ -80,23 +80,33 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" - }`) # ObjectMappingRequest | The object mapping request body. + }`) // ObjectMappingRequest | The object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() + + var objectMappingRequest v3.ObjectMappingRequest + if err := json.Unmarshal(data, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -153,13 +163,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingBulkCreateRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -173,11 +184,20 @@ func main() { "enabled" : false, "objectType" : "IDENTITY" } ] - }`) # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() + + var objectMappingBulkCreateRequest v3.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(data, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -231,17 +251,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() + + + 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) @@ -299,17 +323,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + + + 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) @@ -364,16 +392,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the uploaded configuration. # string | The id of the uploaded configuration. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() + + + 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) @@ -427,16 +459,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + + + 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) @@ -489,16 +525,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 3d0fe04b-57df-4a46-a83b-8f04b0f9d10b # string | The id of the uploaded configuration. # string | The id of the uploaded configuration. + id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() + + + 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) @@ -547,16 +587,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() + + + 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) @@ -613,13 +657,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceOrg := source-org # string | The name of the source org. # string | The name of the source org. - objectMappingBulkPatchRequest := fmt.Sprintf(`{ + sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. + data := []byte(`{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -632,11 +677,20 @@ func main() { "value" : "New Target Value" } ] } - }`) # ObjectMappingBulkPatchRequest | The object mapping request body. + }`) // ObjectMappingBulkPatchRequest | The object mapping request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() + + var objectMappingBulkPatchRequest v3.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(data, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md index beebeee47..940e6dc22 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md @@ -79,22 +79,32 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - v3CreateConnectorDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" - }`) # V3CreateConnectorDto | + }`) // V3CreateConnectorDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() + + var v3CreateConnectorDto v3.V3CreateConnectorDto + if err := json.Unmarshal(data, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -147,16 +157,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + + + 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) @@ -208,17 +222,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() + + + 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) @@ -271,20 +289,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := directConnect 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) - 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) - 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) + filters := `directConnect 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + + + 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) @@ -337,16 +359,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + + + 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) @@ -399,16 +425,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + + + 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) @@ -463,17 +493,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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\" + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + + + 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) @@ -527,17 +561,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -591,17 +629,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() + + + 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) @@ -656,17 +698,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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\" + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() + + + 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) @@ -732,17 +778,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # []JsonPatchOperation | A list of connector detail update operations + 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 := fmt.Sprintf(``) // []JsonPatchOperation | A list of connector detail update operations - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md index 68e722bcb..2c7be83d3 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md @@ -66,20 +66,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - networkConfiguration := fmt.Sprintf(`{ + data := []byte(`{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() + + var networkConfiguration v3.NetworkConfiguration + if err := json.Unmarshal(data, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -124,15 +134,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() + + + 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) @@ -177,15 +191,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + + + 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) @@ -230,15 +248,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() + + + 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) @@ -283,15 +305,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() + + + 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) @@ -341,16 +367,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := fmt.Sprintf(`[{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` + jsonPatchOperation := fmt.Sprintf(`[{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` - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -400,16 +436,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := fmt.Sprintf(`[{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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -458,16 +504,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := fmt.Sprintf(`[{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) + jsonPatchOperation := fmt.Sprintf(`[{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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -516,16 +572,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := fmt.Sprintf(`[{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.` + jsonPatchOperation := fmt.Sprintf(`[{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.` - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md index 7dfaf5a3f..0830c97a7 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md @@ -75,12 +75,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -128,11 +129,20 @@ func main() { "name" : "aName", "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + + var identityProfile v3.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -186,16 +196,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -248,16 +262,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := fmt.Sprintf(``) # []string | Identity Profile bulk delete request body. + requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + + var requestBody v3.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -310,20 +334,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -376,16 +404,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | The Identity Profile ID. # string | The Identity Profile ID. + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | The Identity Profile ID. # string | The Identity Profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + + + 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) @@ -438,16 +470,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -496,16 +532,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileExportedObject := fmt.Sprintf(``) # []IdentityProfileExportedObject | Previously exported Identity Profiles. + identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + + var identityProfileExportedObject v3.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -558,20 +604,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -621,12 +671,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -652,11 +703,20 @@ func main() { } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() + + var identityPreviewRequest v3.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -713,16 +773,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + + + 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) @@ -784,17 +848,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := ef38f94347e94562b5bb8424a56397d8 # string | Identity profile ID. # string | Identity profile ID. - jsonPatchOperation := fmt.Sprintf(`[{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. + identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md index 9dd221b46..1ec31a196 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md @@ -103,13 +103,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. - lifecycleState := fmt.Sprintf(`{ + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + data := []byte(`{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -133,11 +134,20 @@ func main() { "technicalName" : "Technical Name", "identityState" : "identityState", "enabled" : true - }`) # LifecycleState | Lifecycle state to be created. + }`) // LifecycleState | Lifecycle state to be created. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() + + var lifecycleState v3.LifecycleState + if err := json.Unmarshal(data, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -192,17 +202,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + + + 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) @@ -257,17 +271,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + + + 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) @@ -324,20 +342,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := 2b838de9-db9b-abcf-e646-d4f274ad4238 # string | Identity profile ID. # string | Identity profile ID. - 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) - 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) + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) @@ -391,17 +413,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := 2c9180857893f1290178944561990364 # string | ID of the identity to update. # string | ID of the identity to update. - setLifecycleStateRequest := fmt.Sprintf(``) # SetLifecycleStateRequest | + identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. + data := []byte(``) // SetLifecycleStateRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() + + var setLifecycleStateRequest v3.SetLifecycleStateRequest + if err := json.Unmarshal(data, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -457,18 +489,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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 + identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md index fa292690b..aa0d0a58e 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md @@ -66,16 +66,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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'. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() + + + 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) @@ -120,15 +124,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + + + 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) @@ -177,16 +185,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + + + 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) @@ -231,15 +243,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + + + 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) @@ -288,12 +304,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -303,11 +320,20 @@ func main() { "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + + var mfaDuoConfig v3.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -356,16 +382,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) # []KbaAnswerRequestItem | + kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + + var kbaAnswerRequestItem v3.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -414,22 +450,32 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + + var mfaOktaConfig v3.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -482,16 +528,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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'. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md index a05b16e2b..bde751456 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md @@ -60,19 +60,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sendTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK" - }`) # SendTokenRequest | + }`) // SendTokenRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() + + var sendTokenRequest v3.SendTokenRequest + if err := json.Unmarshal(data, &sendTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -126,19 +136,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - method := okta-verify # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' - verificationPollRequest := fmt.Sprintf(`{ + method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' + data := []byte(`{ "requestId" : "089899f13a8f4da7824996191587bab9" - }`) # VerificationPollRequest | + }`) // VerificationPollRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() + + var verificationPollRequest v3.VerificationPollRequest + if err := json.Unmarshal(data, &verificationPollRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -187,19 +207,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - duoVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "signedResponse" : "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2", "userId" : "2c9180947f0ef465017f215cbcfd004b" - }`) # DuoVerificationRequest | + }`) // DuoVerificationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() + + var duoVerificationRequest v3.DuoVerificationRequest + if err := json.Unmarshal(data, &duoVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -248,16 +278,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) # []KbaAnswerRequestItem | + kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + + var kbaAnswerRequestItem v3.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -306,18 +346,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - oktaVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "userId" : "example@mail.com" - }`) # OktaVerificationRequest | + }`) // OktaVerificationRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() + + var oktaVerificationRequest v3.OktaVerificationRequest + if err := json.Unmarshal(data, &oktaVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -366,20 +416,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tokenAuthRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK", "token" : "12345" - }`) # TokenAuthRequest | + }`) // TokenAuthRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() + + var tokenAuthRequest v3.TokenAuthRequest + if err := json.Unmarshal(data, &tokenAuthRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md index ae57e83b2..bbc0b6a9e 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md @@ -63,21 +63,31 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" - }`) # ManagedClientRequest | + }`) // ManagedClientRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() + + var managedClientRequest v3.ManagedClientRequest + if err := json.Unmarshal(data, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -130,16 +140,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + + + 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) @@ -190,16 +204,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + + + 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) @@ -253,17 +271,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + + + 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) @@ -315,19 +337,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -381,17 +407,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7 # string | Managed client ID. # string | Managed client ID. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | JSONPatch payload used to update the object. + id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md index d7f32dc12..86e78cb52 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md @@ -64,12 +64,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterRequest := fmt.Sprintf(`{ + data := []byte(`{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -77,11 +78,20 @@ func main() { "name" : "Managed Cluster Name", "description" : "A short description of the managed cluster.", "type" : "idn" - }`) # ManagedClusterRequest | + }`) // ManagedClusterRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() + + var managedClusterRequest v3.ManagedClusterRequest + if err := json.Unmarshal(data, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -135,17 +145,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() + + + 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) @@ -196,16 +210,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + + + 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) @@ -258,16 +276,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180897de347a2017de8859e8c5039 # string | Managed cluster ID. # string | Managed cluster ID. + id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + + + 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) @@ -319,19 +341,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -385,17 +411,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + 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. + data := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() + + var putClientLogConfigurationRequest v3.PutClientLogConfigurationRequest + if err := json.Unmarshal(data, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -449,17 +485,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180897de347a2017de8859e8c5039 # string | Managed cluster ID. # string | Managed cluster ID. - jsonPatchOperation := fmt.Sprintf(``) # []JsonPatchOperation | JSONPatch payload used to update the object. + id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. + jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md index 537116c9e..96b730760 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,19 +122,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "Approved by manager" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + + var nonEmployeeApprovalDecision v3.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -184,13 +194,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -203,11 +214,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -256,13 +276,14 @@ import ( "context" "fmt" "os" + "encoding/json" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -275,11 +296,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -328,12 +358,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -358,11 +389,20 @@ func main() { }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + + var nonEmployeeSourceRequestBody v3.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -417,24 +457,34 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + + var nonEmployeeSchemaAttributeBody v3.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -488,16 +538,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -544,16 +598,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordsInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() + + var deleteNonEmployeeRecordsInBulkRequest v3.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -605,16 +669,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -669,17 +737,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -730,16 +802,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := e136567de87e4d029e60b3c3c55db56d # string | Source Id # string | Source Id + sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -790,16 +866,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -850,16 +930,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source Id (UUID) # string | Source Id (UUID) + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + + + 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) @@ -910,16 +994,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Source Id (UUID) # string | Source Id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + + + 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) @@ -974,17 +1062,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + + + 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) @@ -1041,16 +1133,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1105,16 +1201,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source ID (UUID) # string | Source ID (UUID) + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + + + 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) @@ -1168,16 +1268,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + + + 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) @@ -1234,16 +1338,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ac110005-7156-1150-8171-5b292e3e0084 # string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) + id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + + + 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) @@ -1300,16 +1408,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + + + 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) @@ -1364,17 +1476,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + + + 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) @@ -1431,16 +1547,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c91808b7c28b350017c2a2ec5790aa1 # string | Source Id # string | Source Id + sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + + + 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) @@ -1494,16 +1614,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := ef38f94347e94562b5bb8424a56397d8 # string | The Source id # string | The Source id + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + + + 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) @@ -1557,17 +1681,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Source Id (UUID) # string | Source Id (UUID) - data := BINARY_DATA_HERE # *os.File | # *os.File | + id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) + data := BINARY_DATA_HERE // *os.File | # *os.File | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + + + 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) @@ -1625,21 +1753,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := 2c91808280430dfb0180431a59440460 # string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) - 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) - 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 := 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) + requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity for whom the request was made. *me* indicates the current user. (optional) # string | The identity for whom the request was made. *me* indicates the current user. (optional) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -1694,20 +1826,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1765,21 +1901,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := e136567de87e4d029e60b3c3c55db56d # string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. - 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) - 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,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) + requestedFor := `e136567de87e4d029e60b3c3c55db56d` // string | The identity for whom the request was made. *me* indicates the current user. # string | The identity for whom the request was made. *me* indicates the current user. + 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) + 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,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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + + + 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) @@ -1835,21 +1975,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - requestedFor := me # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) - 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) + 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) + 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) + requestedFor := `me` // string | Identity the request was made for. Use 'me' to indicate the current user. (optional) # string | Identity the request was made for. Use 'me' to indicate the current user. (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + + + 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) @@ -1907,17 +2051,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - jsonPatchOperation := fmt.Sprintf(`[{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. + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1975,18 +2129,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 - jsonPatchOperation := fmt.Sprintf(`[{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'. + attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) + sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + jsonPatchOperation := fmt.Sprintf(`[{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'. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2040,17 +2204,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := e136567de87e4d029e60b3c3c55db56d # string | Source Id # string | Source Id - jsonPatchOperation := fmt.Sprintf(`[{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. + sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2104,19 +2278,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := e136567de87e4d029e60b3c3c55db56d # string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) + data := []byte(`{ "comment" : "approved" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + + var nonEmployeeRejectApprovalDecision v3.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2174,14 +2358,15 @@ import ( "context" "fmt" "os" + "encoding/json" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -2194,11 +2379,20 @@ func main() { "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md index f07cb02c4..25d9254dc 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md @@ -62,12 +62,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -83,11 +84,20 @@ func main() { "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + + var createOAuthClientRequest v3.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -140,16 +150,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + + + 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) @@ -200,16 +214,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + + + 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) @@ -258,16 +276,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + + + 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) @@ -321,17 +343,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The OAuth client id # string | The OAuth client id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md index 65b9f805e..e2fc2d742 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md @@ -65,21 +65,31 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig v3.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -124,15 +134,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + + + 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) @@ -183,21 +197,31 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + + var passwordOrgConfig v3.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md index 68d5d8b63..c72bb85cd 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md @@ -127,15 +127,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + + + 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) @@ -212,16 +216,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md index 6e1c4f3b2..e13f5a7ee 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md @@ -85,16 +85,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 089899f13a8f4da7824996191587bab9 # string | Password change request ID # string | Password change request ID + id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + + + 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) @@ -144,19 +148,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + + var passwordInfoQueryDTO v3.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -224,22 +238,32 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + + var passwordChangeRequest v3.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md index 34e9d47cf..79e5c3f58 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md @@ -67,12 +67,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -104,11 +105,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto v3.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -161,16 +171,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0002 # string | The ID of password policy to delete. # string | The ID of password policy to delete. + id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + + + 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) @@ -221,16 +235,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0005 # string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. + id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + + + 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) @@ -282,18 +300,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -347,13 +369,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ff808081838d9e9d01838da6a03e0007 # string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -385,11 +408,20 @@ func main() { "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + + var passwordPolicyV3Dto v3.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md index 965728cb9..32662b781 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md @@ -91,23 +91,33 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup v3.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -160,16 +170,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -220,16 +234,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + + + 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) @@ -280,18 +298,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -345,24 +367,34 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 6881f631-3bd5-4213-9c75-8e05cc3e35dd # string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + + var passwordSyncGroup v3.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md index 583946d8e..a265511e8 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md @@ -69,20 +69,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + + var createPersonalAccessTokenRequest v3.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -135,16 +145,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The personal access token id # string | The personal access token id + id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + + + 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) @@ -192,17 +206,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + + + 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) @@ -257,17 +275,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The Personal Access Token id # string | The Personal Access Token id - jsonPatchOperation := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id + jsonPatchOperation := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md index 80c487f9c..8c6e0119c 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md @@ -63,21 +63,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := firstname eq "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: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) - 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) + 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) + 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 := `firstname eq "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: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md index 0dc142406..4f6bd5f79 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md @@ -62,15 +62,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + + + 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) @@ -119,12 +123,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -138,11 +143,20 @@ func main() { "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + + var publicIdentityConfig v3.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md index e81c9f847..c8f86d465 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md @@ -65,16 +65,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := a1ed223247144cc29d23c632624b4767 # string | ID of the running Report to cancel # string | ID of the running Report to cancel + id := `a1ed223247144cc29d23c632624b4767` // string | ID of the running Report to cancel # string | ID of the running Report to cancel - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + + + 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) @@ -128,19 +132,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taskResultId := ef38f94347e94562b5bb8424a56397d8 # string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report - fileFormat := csv # string | Output format of the requested report file # string | Output format of the requested report file - 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) + taskResultId := `ef38f94347e94562b5bb8424a56397d8` // string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report + fileFormat := `csv` // string | Output format of the requested report file # string | Output format of the requested report file + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() + + + 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) @@ -194,17 +202,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() + + + 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) @@ -253,22 +265,32 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportDetails := fmt.Sprintf(`{ + data := []byte(`{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } - }`) # ReportDetails | + }`) // ReportDetails | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() + + var reportDetails v3.ReportDetails + if err := json.Unmarshal(data, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md index 06442e69b..6d2beb0a9 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md @@ -67,24 +67,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := e7eab60924f64aa284175b9fa3309599 # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) # []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) - term := Finance Role # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) - statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) # []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) - 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) - 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 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) + identityId := `e7eab60924f64aa284175b9fa3309599` // string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types := fmt.Sprintf(`ROLE,ACCESS_PROFILE`) // []RequestableObjectType | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) + term := `Finance Role` // string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # string | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) + statuses := fmt.Sprintf(`[ASSIGNED, PENDING]`) // []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md index a2f412296..d63c52d99 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md @@ -54,11 +54,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**create-role**](#create-role) | **Post** `/roles` | Create a Role [**delete-bulk-roles**](#delete-bulk-roles) | **Post** `/roles/bulk-delete` | Delete Role(s) -[**delete-role**](#delete-role) | **Delete** `/roles/{id}` | Delete a Role -[**get-role**](#get-role) | **Get** `/roles/{id}` | Get a Role +[**delete-role**](#delete-role) | **Delete** `/roles/{id}` | Delete Role +[**get-role**](#get-role) | **Get** `/roles/{id}` | Get Role [**get-role-assigned-identities**](#get-role-assigned-identities) | **Get** `/roles/{id}/assigned-identities` | List Identities assigned a Role [**list-roles**](#list-roles) | **Get** `/roles` | List Roles -[**patch-role**](#patch-role) | **Patch** `/roles/{id}` | Patch a specified Role +[**patch-role**](#patch-role) | **Patch** `/roles/{id}` | Patch Role ## create-role @@ -101,12 +101,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -225,6 +226,7 @@ func main() { }, "accessRequestConfig" : { "commentsRequired" : true, + "reauthorizationRequired" : true, "approvalSchemes" : [ { "approverId" : "46c79819-a69f-49a2-becb-12c971ae66c6", "approverType" : "GOVERNANCE_GROUP" @@ -263,11 +265,20 @@ func main() { }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + + var role v3.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -319,18 +330,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + + var roleBulkDeleteRequest v3.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -343,10 +364,10 @@ func main() { [[Back to top]](#) ## delete-role -Delete a Role -This API deletes a Role by its ID. +Delete Role +Delete a role by ID. -A user with ROLE_SUBADMIN authority may only call this API if all Access Profiles included in the Role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member. +A user with ROLE_SUBADMIN authority may only call this API if all access profiles included in the role are associated to sources with management workgroups the ROLE_SUBADMIN is a member of. [API Spec](https://developer.sailpoint.com/docs/api/v3/delete-role) @@ -356,7 +377,7 @@ A user with ROLE_SUBADMIN authority may only call this API if all Access Profile Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | ID of the Role | +**id** | **string** | Role ID. | ### Other Parameters @@ -385,16 +406,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | Role ID. # string | Role ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.RolesAPI.DeleteRole(context.Background(), id).Execute() + + + 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) @@ -405,9 +430,9 @@ func main() { [[Back to top]](#) ## get-role -Get a Role -This API returns a Role by its ID. -A user with ROLE_SUBADMIN authority may only call this API if all Access Profiles included in the Role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member. +Get Role +Get a role by ID. +A user with ROLE_SUBADMIN authority may only call this API if all access profiles included in the role are associated to sources with management workgroups of the ROLE_SUBADMIN is a member of. [API Spec](https://developer.sailpoint.com/docs/api/v3/get-role) @@ -417,7 +442,7 @@ A user with ROLE_SUBADMIN authority may only call this API if all Access Profile Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | ID of the Role | +**id** | **string** | Role ID. | ### Other Parameters @@ -446,16 +471,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role # string | ID of the Role + id := `2c91808a7813090a017814121e121518` // string | Role ID. # string | Role ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.RolesAPI.GetRole(context.Background(), id).Execute() + + + 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) @@ -513,21 +542,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed - 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) - 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 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) + id := `2c91808a7813090a017814121e121518` // string | ID of the Role for which the assigned Identities are to be listed # string | ID of the Role for which the assigned Identities are to be listed + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -560,7 +593,7 @@ Name | Type | Description | Notes **limit** | **int32** | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to 50] **offset** | **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. | [default to 0] **count** | **bool** | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. | [default to false] - **filters** | **string** | Filter results using the standard syntax described in [V3 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* **requestable**: *eq* | + **filters** | **string** | Filter results using the standard syntax described in [V3 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, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* | **sorters** | **string** | Sort results using the standard syntax described 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** | **forSegmentIds** | **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. | **includeUnsegmented** | **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. | [default to true] @@ -583,23 +616,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := 5168015d32f890ca15812c9180835d2e # string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) - limit := 50 # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - filters := requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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) - 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) + forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_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. 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) + limit := 50 // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + filters := `requestable 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: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *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, sw* **created**: *gt, ge, le* **modified**: *lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **dimensional**: *eq* (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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - 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() + + + 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) @@ -612,8 +649,8 @@ func main() { [[Back to top]](#) ## patch-role -Patch a specified Role -This API updates an existing role using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. +Patch Role +Update an existing role, using the [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: * name * description @@ -628,9 +665,9 @@ The following fields are patchable: * segments * accessModelMetadata -A user with ROLE_SUBADMIN authority may only call this API if all access profiles included in the role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member. +A user with ROLE_SUBADMIN authority may only call this API if all access profiles included in the role are associated to sources with management workgroups of the ROLE_SUBADMIN is a member of. -The maximum supported length for the description field is 2000 characters. Longer descriptions will be preserved for existing roles, however, any new roles as well as any updates to existing descriptions will be limited to 2000 characters. +The maximum supported length for the description field is 2000 characters. ISC preserves longer descriptions for existing roles. However, any new roles as well as any updates to existing descriptions are limited to 2000 characters. When you use this API to modify a role's membership identities, you can only modify up to a limit of 500 membership identities at a time. @@ -642,7 +679,7 @@ When you use this API to modify a role's membership identities, you can only mod Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | ID of the Role to patch | +**id** | **string** | Role ID to patch | ### Other Parameters @@ -672,17 +709,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808a7813090a017814121e121518 # string | ID of the Role to patch # string | ID of the Role to patch - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) # []JsonPatchOperation | + id := `2c91808a7813090a017814121e121518` // string | Role ID to patch # string | Role ID to patch + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md index bc85c7a91..6c8cc6d46 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md @@ -98,12 +98,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -158,11 +159,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + + var sodPolicy v3.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -217,17 +227,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + + + 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) @@ -278,16 +292,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -340,17 +358,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + + + 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) @@ -403,16 +425,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportResultId := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the report reference to download. # string | The ID of the report reference to download. + reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + + + 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) @@ -457,15 +483,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + + + 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) @@ -519,16 +549,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + + + 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) @@ -581,16 +615,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + + + 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) @@ -643,16 +681,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + + + 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) @@ -705,16 +747,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + + + 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) @@ -768,20 +814,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 := 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) + 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) + 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 := `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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + + + 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) @@ -837,17 +887,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`[{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 + 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 := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -901,13 +961,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. + data := []byte(`{ "schedule" : { "hours" : { "values" : [ "MON", "WED" ], @@ -944,11 +1005,20 @@ func main() { "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + + var sodPolicySchedule v3.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1003,13 +1073,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -1064,11 +1135,20 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + + var sodPolicy v3.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1121,16 +1201,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The SOD policy ID to run. # string | The SOD policy ID to run. + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + + + 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) @@ -1179,18 +1263,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + + + 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) @@ -1243,16 +1331,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f943-47e9-4562-b5bb-8424a56397d8 # string | The SOD policy ID to run. # string | The SOD policy ID to run. + id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md index fe3a00b90..5b041ae42 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md @@ -74,12 +74,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -90,11 +91,20 @@ func main() { "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + + var identityWithNewAccess v3.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -143,16 +153,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess1 := fmt.Sprintf(`{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 | + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() + + var identityWithNewAccess1 v3.IdentityWithNewAccess1 + if err := json.Unmarshal(data, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md index 44afa3588..883801a1d 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md @@ -71,16 +71,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createSavedSearchRequest := fmt.Sprintf(``) # CreateSavedSearchRequest | The saved search to persist. + data := []byte(``) // CreateSavedSearchRequest | The saved search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() + + var createSavedSearchRequest v3.CreateSavedSearchRequest + if err := json.Unmarshal(data, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -134,16 +144,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + + + 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) @@ -196,13 +210,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - searchArguments := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -212,11 +227,20 @@ func main() { "type" : "IDENTITY" } ], "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. + }`) // 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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() + + var searchArguments v3.SearchArguments + if err := json.Unmarshal(data, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -268,16 +292,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + + + 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) @@ -330,19 +358,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -399,13 +431,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - savedSearch := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -449,11 +482,20 @@ func main() { "modified" : "2018-06-25T20:22:28.104Z", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] - }`) # SavedSearch | The saved search to persist. + }`) // SavedSearch | The saved search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() + + var savedSearch v3.SavedSearch + if err := json.Unmarshal(data, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md index 99ff3fc2d..dfd84b4b0 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md @@ -87,16 +87,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createScheduledSearchRequest := fmt.Sprintf(`{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. + data := []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() + + var createScheduledSearchRequest v3.CreateScheduledSearchRequest + if err := json.Unmarshal(data, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -150,16 +160,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + + + 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) @@ -210,16 +224,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + + + 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) @@ -272,19 +290,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + + + 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) @@ -339,20 +361,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - typedReference := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" - }`) # TypedReference | The recipient to be removed from the scheduled search. + }`) // TypedReference | The recipient to be removed from the scheduled search. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() + + var typedReference v3.TypedReference + if err := json.Unmarshal(data, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -405,13 +437,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c91808568c529c60168cca6f90c1313 # string | ID of the requested document. # string | ID of the requested document. - scheduledSearch := fmt.Sprintf(`{ + id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + data := []byte(`{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -453,11 +486,20 @@ func main() { "modified" : "", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false - }`) # ScheduledSearch | The scheduled search to persist. + }`) // ScheduledSearch | The scheduled search to persist. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() + + var scheduledSearch v3.ScheduledSearch + if err := json.Unmarshal(data, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md index e7daa82b2..671e2aa07 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md @@ -84,12 +84,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -205,14 +206,23 @@ func main() { "type" : "access" } } - }`) # Search | - 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) - 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) + }`) // Search | + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + + var search v3.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -261,12 +271,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -382,11 +393,20 @@ func main() { "type" : "access" } } - }`) # Search | + }`) // Search | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SearchAPI.SearchCount(context.Background()).Search(search).Execute() + + var search v3.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -439,17 +459,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() + + + 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) @@ -501,12 +525,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -622,14 +647,23 @@ func main() { "type" : "access" } } - }`) # Search | - 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 := 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) + }`) // Search | + 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 := 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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + + var search v3.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md index 1e09f3f5d..99b7f32c8 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md @@ -78,23 +78,33 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - searchAttributeConfig := fmt.Sprintf(`{ + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() + + var searchAttributeConfig v3.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -147,16 +157,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := newMailAttribute # string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. + name := `newMailAttribute` // string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + + + 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) @@ -204,17 +218,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() + + + 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) @@ -267,16 +285,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := newMailAttribute # string | Name of the extended search attribute configuration to retrieve. # string | Name of the extended search attribute configuration to retrieve. + name := `newMailAttribute` // string | Name of the extended search attribute configuration to retrieve. # string | Name of the extended search attribute configuration to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + + + 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) @@ -332,17 +354,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := promotedMailAttribute # string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. - jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) # []JsonPatchOperation | + name := `promotedMailAttribute` // string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. + jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md index 2e1eee858..dfd2d2389 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md @@ -77,12 +77,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -105,11 +106,20 @@ func main() { "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + + var segment v3.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -163,16 +173,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to delete. # string | The segment ID to delete. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + + + 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) @@ -223,16 +237,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to retrieve. # string | The segment ID to retrieve. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() + + + 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) @@ -283,18 +301,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -349,17 +371,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The segment ID to modify. # string | The segment ID to modify. - requestBody := fmt.Sprintf(`[{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 + id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. + requestBody := fmt.Sprintf(`[{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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v3.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md index 1a1480d36..7d65e717c 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md @@ -88,12 +88,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -126,11 +127,20 @@ func main() { }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -183,16 +193,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete + id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -243,16 +257,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get + id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + + + 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) @@ -305,16 +323,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + + + 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) @@ -359,15 +381,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + + + 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) @@ -420,20 +446,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 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) + 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) + 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 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + + + 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) @@ -478,15 +508,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + + + 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) @@ -520,7 +554,7 @@ Other parameters are passed through a pointer to a apiPatchServiceDeskIntegratio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchServiceDeskIntegrationRequest** | [**PatchServiceDeskIntegrationRequest**](../models/patch-service-desk-integration-request) | 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. | + **jsonPatchOperation** | [**[]JsonPatchOperation**](../models/json-patch-operation) | 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. | ### Return type @@ -540,17 +574,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - patchServiceDeskIntegrationRequest := fmt.Sprintf(``) # PatchServiceDeskIntegrationRequest | 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. + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + jsonPatchOperation := fmt.Sprintf(``) // []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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).PatchServiceDeskIntegrationRequest(patchServiceDeskIntegrationRequest).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -604,13 +648,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := anId # string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -643,11 +688,20 @@ func main() { }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + + var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -696,19 +750,29 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + + var queuedCheckConfigDetails v3.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md index a499cd577..4dd0e0064 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md @@ -63,16 +63,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + + + 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) @@ -129,20 +133,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | ID of IDN source # string | ID of IDN source - 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) - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md index c0acea05c..734d9a696 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md @@ -144,13 +144,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -189,11 +190,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -243,12 +253,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -330,12 +341,21 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # 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) + }`) // 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) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + + var source v3.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -390,13 +410,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -429,11 +450,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + + var schema v3.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -488,17 +518,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -550,16 +584,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() + + + 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) @@ -614,17 +652,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -676,16 +718,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + + + 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) @@ -739,17 +785,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() + + + 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) @@ -802,17 +852,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + + + 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) @@ -865,16 +919,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.GetSource(context.Background(), id).Execute() + + + 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) @@ -927,16 +985,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() + + + 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) @@ -989,16 +1051,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + + + 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) @@ -1054,17 +1120,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + + + 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) @@ -1119,18 +1189,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - 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) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + + + 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) @@ -1190,17 +1264,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 8c190e6787aa4ed9a90bd9d5344523fb # string | The Source id # string | The Source id - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() + + + 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) @@ -1254,17 +1332,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() + + + 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) @@ -1325,18 +1407,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - file := BINARY_DATA_HERE # *os.File | (optional) # *os.File | (optional) + 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) + file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() + + + 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) @@ -1389,16 +1475,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id # string | The Source id + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + + + 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) @@ -1453,22 +1543,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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 "Employees" # string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - 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) + 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) + 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 "Employees"` // string | Filter results using the standard syntax described in [V3 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* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, 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: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + + + 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) @@ -1526,14 +1620,15 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - provisioningPolicyDto := fmt.Sprintf(`{ + 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. + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -1572,11 +1667,20 @@ func main() { "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1642,13 +1746,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -1730,11 +1835,20 @@ func main() { }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + + var source v3.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1800,14 +1914,15 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. - schema := fmt.Sprintf(`{ + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -1840,11 +1955,20 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + + var schema v3.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1898,17 +2022,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - provisioningPolicyDto := fmt.Sprintf(``) # []ProvisioningPolicyDto | + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1966,18 +2100,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. - jsonPatchOperation := fmt.Sprintf(`[{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. + 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. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2046,17 +2190,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | Source ID. # string | Source ID. - jsonPatchOperation := fmt.Sprintf(`[{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). + id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + jsonPatchOperation := fmt.Sprintf(`[{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). - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -2141,18 +2295,28 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := 2c9180835d191a86015d28455b4a2329 # string | The Source id. # string | The Source id. - schemaId := 2c9180835d191a86015d28455b4a2329 # string | The Schema id. # string | The Schema id. - jsonPatchOperation := fmt.Sprintf(`[{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. + sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. + jsonPatchOperation := fmt.Sprintf(`[{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. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md index f60c7d0fc..9b4f9f2fe 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md @@ -121,17 +121,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -178,12 +182,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkRemoveTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -194,11 +199,20 @@ func main() { "type" : "IDENTITY" } ], "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() + + var bulkRemoveTaggedObject v3.BulkRemoveTaggedObject + if err := json.Unmarshal(data, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -251,17 +265,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + + + 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) @@ -315,19 +333,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -386,20 +408,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. - 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) - 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) + type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -455,25 +481,35 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := ROLE # string | The type of tagged object to update. # string | The type of tagged object to update. - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + + var taggedObject v3.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -524,23 +560,33 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + + var taggedObject v3.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -587,12 +633,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkAddTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -604,11 +651,20 @@ func main() { } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() + + var bulkAddTaggedObject v3.BulkAddTaggedObject + if err := json.Unmarshal(data, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md index dd0ea3c5d..6178518f2 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md @@ -64,20 +64,30 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + + var transform v3.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -130,16 +140,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to delete # string | ID of the transform to delete + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + + + 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) @@ -190,16 +204,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to retrieve # string | ID of the transform to retrieve + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TransformsAPI.GetTransform(context.Background(), id).Execute() + + + 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) @@ -252,20 +270,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) - 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) + 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + + + 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) @@ -319,21 +341,25 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2cd78adghjkja34jh2b1hkjhasuecd # string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md index 41b3d3172..902147bab 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md @@ -58,12 +58,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -85,11 +86,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping v3.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -139,12 +149,13 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -166,11 +177,20 @@ func main() { "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + + var vendorConnectorMapping v3.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -216,15 +236,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md index 8ed37657e..ad90307f3 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md @@ -87,17 +87,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -150,16 +154,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -213,17 +221,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + + + 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) @@ -275,19 +287,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 1211bcaa32112bcef6122adb21cef1ac # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - 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) - 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 | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + + + 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) @@ -336,16 +352,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 1211bcaa32112bcef6122adb21cef1ac # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -394,16 +414,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := ef38f94347e94562b5bb8424a56397d8 # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -456,16 +480,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := 2c9180835d191a86015d28455b4a2329 # string | ID of the work item. # string | ID of the work item. + id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + + + 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) @@ -514,16 +542,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := 1211bcaa32112bcef6122adb21cef1ac # string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + + + 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) @@ -575,19 +607,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + + + 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) @@ -642,17 +678,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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. + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + + + 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) @@ -705,16 +745,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + + + 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) @@ -768,21 +812,31 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := ef38f94347e94562b5bb8424a56397d8 # string | The ID of the work item # string | The ID of the work item - workItemForward := fmt.Sprintf(`{ + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item + data := []byte(`{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true - }`) # WorkItemForward | + }`) // WorkItemForward | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() + + var workItemForward v3.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -834,17 +888,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 + 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 - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + + var requestBody v3.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md index 0caa39869..d869676e8 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md @@ -77,16 +77,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | The workflow execution ID # string | The workflow execution ID + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -138,17 +142,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - createExternalExecuteWorkflowRequest := fmt.Sprintf(``) # CreateExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -197,16 +205,26 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + + var createWorkflowRequest v3.CreateWorkflowRequest + if err := json.Unmarshal(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -259,16 +277,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + + + 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) @@ -321,16 +343,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - r, err := apiClient.V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + + + 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) @@ -362,6 +388,7 @@ Other parameters are passed through a pointer to a apiGetWorkflowRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **workflowMetrics** | **bool** | disable workflow metrics | [default to true] ### Return type @@ -381,16 +408,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + + + 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) @@ -404,7 +436,7 @@ func main() { ## get-workflow-execution Get Workflow Execution -Use this API to get a single workflow execution. Workflow executions are available for up to 90 days before being archived. If you attempt to access a workflow execution that has been archived, you will receive a "404 Not Found" response. +Get a single workflow execution. Workflow executions are available for up to 90 days before being archived. If you attempt to access a workflow execution that has been archived, you will receive a "404 Not Found" response. [API Spec](https://developer.sailpoint.com/docs/api/v3/get-workflow-execution) @@ -443,16 +475,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow execution ID. # string | Workflow execution ID. + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + + + 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) @@ -505,16 +541,20 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow execution # string | Id of the workflow execution + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + + + 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) @@ -581,20 +621,24 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Workflow ID. # string | Workflow ID. - 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) - 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) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow ID. # string | Workflow ID. + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + + + 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) @@ -644,17 +688,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + + + 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) @@ -705,18 +753,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -761,15 +813,19 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + + + 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) @@ -820,18 +876,22 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) - 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) + 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + + + 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) @@ -851,13 +911,20 @@ List all workflows in the tenant. ### Path Parameters -This endpoint does not need any parameter. + ### Other Parameters Other parameters are passed through a pointer to a apiListWorkflowsRequest struct via the builder pattern +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **triggerId** | **string** | Trigger ID | + **connectorInstanceId** | **string** | Connector Instance ID | + **limit** | **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. | [default to 250] + **offset** | **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. | [default to 0] + ### Return type [**[]Workflow**](../models/workflow) @@ -876,15 +943,23 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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) + 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 := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + + + 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) @@ -938,17 +1013,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - jsonPatchOperation := fmt.Sprintf(`[{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + jsonPatchOperation := fmt.Sprintf(`[{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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1002,13 +1087,14 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -1037,21 +1123,24 @@ func main() { }, "trigger" : { "displayName" : "displayName", - "attributes" : { - "description" : "Triggered when an identity's manager attribute changes", - "formDefinitionId" : "Admin_Access_Request_Form", - "attributeToFilter" : "LifecycleState", - "id" : "idn:identity-attributes-changed", - "filter.$" : "$.changes[?(@.attribute == 'manager')]" - }, + "attributes" : "{}", "type" : "EVENT" }, "enabled" : false - }`) # WorkflowBody | + }`) // WorkflowBody | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + + var workflowBody v3.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) @@ -1105,17 +1194,21 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + + + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + + + 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) @@ -1129,10 +1222,19 @@ func main() { ## test-workflow Test Workflow By Id +:::info + +Workflow must be disabled in order to use this endpoint. + +::: + Test a workflow with the provided input data. The input data should resemble the input that the trigger will send the workflow. See the [event trigger documentation](https://developer.sailpoint.com/idn/docs/event-triggers/available) for an example input for the trigger that initiates this workflow. + This endpoint will return an execution ID, which can be used to lookup more information about the execution using the `Get a Workflow Execution` endpoint. + **This will cause a live run of the workflow, which could result in unintended modifications to your IDN tenant.** + [API Spec](https://developer.sailpoint.com/docs/api/v3/test-workflow) ### Path Parameters @@ -1171,17 +1273,27 @@ import ( "context" "fmt" "os" - v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := c17bea3a-574d-453c-9e04-4365fbf5af0b # string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow + data := []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 | - configuration := NewDefaultConfiguration() - apiClient := NewAPIClient(configuration) - resp, r, err := apiClient.V3.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + + var testWorkflowRequest v3.TestWorkflowRequest + if err := json.Unmarshal(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + + 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) diff --git a/docs/tools/sdk/go/Reference/V3/Models/AccessProfile.md b/docs/tools/sdk/go/Reference/V3/Models/AccessProfile.md index 28338eb79..c537b18e6 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AccessProfile.md +++ b/docs/tools/sdk/go/Reference/V3/Models/AccessProfile.md @@ -15,19 +15,19 @@ tags: ['SDK', 'Software Development Kit', 'AccessProfile', 'AccessProfile'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | The ID of the Access Profile | [optional] [readonly] -**Name** | **string** | Name of the Access Profile | -**Description** | Pointer to **NullableString** | Information about the Access Profile | [optional] -**Created** | Pointer to **SailPointTime** | Date the Access Profile was created | [optional] [readonly] -**Modified** | Pointer to **SailPointTime** | Date the Access Profile was last modified. | [optional] [readonly] -**Enabled** | Pointer to **bool** | Whether the Access Profile is enabled. If the Access Profile is enabled then you must include at least one Entitlement. | [optional] [default to false] +**Id** | Pointer to **string** | Access profile ID. | [optional] [readonly] +**Name** | **string** | Access profile name. | +**Description** | Pointer to **NullableString** | Access profile description. | [optional] +**Created** | Pointer to **SailPointTime** | Date and time when the access profile was created. | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Date and time when the access profile was last modified. | [optional] [readonly] +**Enabled** | Pointer to **bool** | Indicates whether the access profile is enabled. If it's enabled, you must include at least one entitlement. | [optional] [default to false] **Owner** | [**OwnerReference**](owner-reference) | | **Source** | [**AccessProfileSourceRef**](access-profile-source-ref) | | -**Entitlements** | Pointer to [**[]EntitlementRef**](entitlement-ref) | A list of entitlements associated with the Access Profile. If enabled is false this is allowed to be empty otherwise it needs to contain at least one Entitlement. | [optional] -**Requestable** | Pointer to **bool** | Whether the Access Profile is requestable via access request. Currently, making an Access Profile non-requestable is only supported for customers enabled with the new Request Center. Otherwise, attempting to create an Access Profile with a value **false** in this field results in a 400 error. | [optional] [default to true] +**Entitlements** | Pointer to [**[]EntitlementRef**](entitlement-ref) | List of entitlements associated with the access profile. If `enabled` is false, this can be empty. Otherwise, it must contain at least one entitlement. | [optional] +**Requestable** | Pointer to **bool** | Indicates whether the access profile is requestable by access request. Currently, making an access profile non-requestable is only supported for customers enabled with the new Request Center. Otherwise, attempting to create an access profile with a value **false** in this field results in a 400 error. | [optional] [default to true] **AccessRequestConfig** | Pointer to [**NullableRequestability**](requestability) | | [optional] **RevocationRequestConfig** | Pointer to [**NullableRevocability**](revocability) | | [optional] -**Segments** | Pointer to **[]string** | List of IDs of segments, if any, to which this Access Profile is assigned. | [optional] +**Segments** | Pointer to **[]string** | List of segment IDs, if any, that the access profile is assigned to. | [optional] **ProvisioningCriteria** | Pointer to [**NullableProvisioningCriteriaLevel1**](provisioning-criteria-level1) | | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/AccessProfileApprovalScheme.md b/docs/tools/sdk/go/Reference/V3/Models/AccessProfileApprovalScheme.md index 771cf13b4..b7d15ff71 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AccessProfileApprovalScheme.md +++ b/docs/tools/sdk/go/Reference/V3/Models/AccessProfileApprovalScheme.md @@ -15,8 +15,8 @@ tags: ['SDK', 'Software Development Kit', 'AccessProfileApprovalScheme', 'Access Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApproverType** | Pointer to **string** | Describes the individual or group that is responsible for an approval step. Values are as follows. **APP_OWNER**: The owner of the Application **OWNER**: Owner of the associated Access Profile or Role **SOURCE_OWNER**: Owner of the Source associated with an Access Profile **MANAGER**: Manager of the Identity making the request **GOVERNANCE_GROUP**: A Governance Group, the ID of which is specified by the **approverId** field | [optional] -**ApproverId** | Pointer to **NullableString** | Id of the specific approver, used only when approverType is GOVERNANCE_GROUP | [optional] +**ApproverType** | Pointer to **string** | Describes the individual or group that is responsible for an approval step. These are the possible values: **APP_OWNER**: The owner of the Application **OWNER**: Owner of the associated Access Profile or Role **SOURCE_OWNER**: Owner of the Source associated with an Access Profile **MANAGER**: Manager of the Identity making the request **GOVERNANCE_GROUP**: A Governance Group, the ID of which is specified by the **approverId** field | [optional] +**ApproverId** | Pointer to **NullableString** | Specific approver ID. Only use this when the `approverType` is `GOVERNANCE_GROUP`. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/AccessProfileSourceRef.md b/docs/tools/sdk/go/Reference/V3/Models/AccessProfileSourceRef.md index eb5ac36c0..083943497 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AccessProfileSourceRef.md +++ b/docs/tools/sdk/go/Reference/V3/Models/AccessProfileSourceRef.md @@ -15,9 +15,9 @@ tags: ['SDK', 'Software Development Kit', 'AccessProfileSourceRef', 'AccessProfi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | The ID of the Source with with which the Access Profile is associated | [optional] -**Type** | Pointer to **string** | The type of the Source, will always be SOURCE | [optional] -**Name** | Pointer to **string** | The display name of the associated Source | [optional] +**Id** | Pointer to **string** | ID of the source the access profile is associated with. | [optional] +**Type** | Pointer to **string** | Source's DTO type. | [optional] +**Name** | Pointer to **string** | Source name. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md index 6b930c3a7..8a68beed3 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md @@ -19,6 +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] ## Methods @@ -139,4 +140,39 @@ SetClientMetadata sets ClientMetadata field to given value. HasClientMetadata returns a boolean if a field has been set. +### GetRequestedForWithRequestedItems + +`func (o *AccessRequest) GetRequestedForWithRequestedItems() []RequestedForDtoRef` + +GetRequestedForWithRequestedItems returns the RequestedForWithRequestedItems field if non-nil, zero value otherwise. + +### GetRequestedForWithRequestedItemsOk + +`func (o *AccessRequest) GetRequestedForWithRequestedItemsOk() (*[]RequestedForDtoRef, bool)` + +GetRequestedForWithRequestedItemsOk returns a tuple with the RequestedForWithRequestedItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedForWithRequestedItems + +`func (o *AccessRequest) SetRequestedForWithRequestedItems(v []RequestedForDtoRef)` + +SetRequestedForWithRequestedItems sets RequestedForWithRequestedItems field to given value. + +### HasRequestedForWithRequestedItems + +`func (o *AccessRequest) HasRequestedForWithRequestedItems() bool` + +HasRequestedForWithRequestedItems returns a boolean if a field has been set. + +### SetRequestedForWithRequestedItemsNil + +`func (o *AccessRequest) SetRequestedForWithRequestedItemsNil(b bool)` + + SetRequestedForWithRequestedItemsNil sets the value for RequestedForWithRequestedItems to be an explicit nil + +### UnsetRequestedForWithRequestedItems +`func (o *AccessRequest) UnsetRequestedForWithRequestedItems()` + +UnsetRequestedForWithRequestedItems ensures that no value is present for RequestedForWithRequestedItems, not even an explicit nil diff --git a/docs/tools/sdk/go/Reference/V3/Models/AccessRequestItem.md b/docs/tools/sdk/go/Reference/V3/Models/AccessRequestItem.md index ec861553c..ce3a836df 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AccessRequestItem.md +++ b/docs/tools/sdk/go/Reference/V3/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 '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 @@ -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/V3/Models/AccountItemRef.md b/docs/tools/sdk/go/Reference/V3/Models/AccountItemRef.md new file mode 100644 index 000000000..3f56968b8 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V3/Models/AccountItemRef.md @@ -0,0 +1,100 @@ +--- +id: account-item-ref +title: AccountItemRef +pagination_label: AccountItemRef +sidebar_label: AccountItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'AccountItemRef', 'AccountItemRef'] +slug: /tools/sdk/go/v3/models/account-item-ref +tags: ['SDK', 'Software Development Kit', 'AccountItemRef', 'AccountItemRef'] +--- + +# AccountItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUuid** | Pointer to **NullableString** | The uuid for the account, available under the 'objectguid' attribute | [optional] +**NativeIdentity** | Pointer to **string** | The 'distinguishedName' attribute for the account | [optional] + +## Methods + +### NewAccountItemRef + +`func NewAccountItemRef() *AccountItemRef` + +NewAccountItemRef instantiates a new AccountItemRef 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 + +### NewAccountItemRefWithDefaults + +`func NewAccountItemRefWithDefaults() *AccountItemRef` + +NewAccountItemRefWithDefaults instantiates a new AccountItemRef 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 + +### GetAccountUuid + +`func (o *AccountItemRef) GetAccountUuid() string` + +GetAccountUuid returns the AccountUuid field if non-nil, zero value otherwise. + +### GetAccountUuidOk + +`func (o *AccountItemRef) GetAccountUuidOk() (*string, bool)` + +GetAccountUuidOk returns a tuple with the AccountUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUuid + +`func (o *AccountItemRef) SetAccountUuid(v string)` + +SetAccountUuid sets AccountUuid field to given value. + +### HasAccountUuid + +`func (o *AccountItemRef) HasAccountUuid() bool` + +HasAccountUuid returns a boolean if a field has been set. + +### SetAccountUuidNil + +`func (o *AccountItemRef) SetAccountUuidNil(b bool)` + + SetAccountUuidNil sets the value for AccountUuid to be an explicit nil + +### UnsetAccountUuid +`func (o *AccountItemRef) UnsetAccountUuid()` + +UnsetAccountUuid ensures that no value is present for AccountUuid, not even an explicit nil +### GetNativeIdentity + +`func (o *AccountItemRef) GetNativeIdentity() string` + +GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. + +### GetNativeIdentityOk + +`func (o *AccountItemRef) 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 *AccountItemRef) SetNativeIdentity(v string)` + +SetNativeIdentity sets NativeIdentity field to given value. + +### HasNativeIdentity + +`func (o *AccountItemRef) HasNativeIdentity() bool` + +HasNativeIdentity returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V3/Models/AttributeDefinitionType.md b/docs/tools/sdk/go/Reference/V3/Models/AttributeDefinitionType.md index fdfcad1ec..e5d013bdc 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AttributeDefinitionType.md +++ b/docs/tools/sdk/go/Reference/V3/Models/AttributeDefinitionType.md @@ -22,4 +22,6 @@ tags: ['SDK', 'Software Development Kit', 'AttributeDefinitionType', 'AttributeD * `BOOLEAN` (value: `"BOOLEAN"`) +* `DATE` (value: `"DATE"`) + diff --git a/docs/tools/sdk/go/Reference/V3/Models/EventAttributes.md b/docs/tools/sdk/go/Reference/V3/Models/EventAttributes.md deleted file mode 100644 index e33473d09..000000000 --- a/docs/tools/sdk/go/Reference/V3/Models/EventAttributes.md +++ /dev/null @@ -1,213 +0,0 @@ ---- -id: event-attributes -title: EventAttributes -pagination_label: EventAttributes -sidebar_label: EventAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'EventAttributes', 'EventAttributes'] -slug: /tools/sdk/go/v3/models/event-attributes -tags: ['SDK', 'Software Development Kit', 'EventAttributes', 'EventAttributes'] ---- - -# EventAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Description of the event trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] - -## Methods - -### NewEventAttributes - -`func NewEventAttributes(id NullableString, ) *EventAttributes` - -NewEventAttributes instantiates a new EventAttributes 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 - -### NewEventAttributesWithDefaults - -`func NewEventAttributesWithDefaults() *EventAttributes` - -NewEventAttributesWithDefaults instantiates a new EventAttributes 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 - -### GetId - -`func (o *EventAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *EventAttributes) 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 *EventAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *EventAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *EventAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *EventAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *EventAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *EventAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *EventAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *EventAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *EventAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *EventAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *EventAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *EventAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *EventAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *EventAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *EventAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *EventAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *EventAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *EventAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *EventAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *EventAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *EventAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *EventAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *EventAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *EventAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *EventAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *EventAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *EventAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V3/Models/ExternalAttributes.md b/docs/tools/sdk/go/Reference/V3/Models/ExternalAttributes.md deleted file mode 100644 index 2198ef9fe..000000000 --- a/docs/tools/sdk/go/Reference/V3/Models/ExternalAttributes.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -id: external-attributes -title: ExternalAttributes -pagination_label: ExternalAttributes -sidebar_label: ExternalAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ExternalAttributes', 'ExternalAttributes'] -slug: /tools/sdk/go/v3/models/external-attributes -tags: ['SDK', 'Software Development Kit', 'ExternalAttributes', 'ExternalAttributes'] ---- - -# ExternalAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] - -## Methods - -### NewExternalAttributes - -`func NewExternalAttributes() *ExternalAttributes` - -NewExternalAttributes instantiates a new ExternalAttributes 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 - -### NewExternalAttributesWithDefaults - -`func NewExternalAttributesWithDefaults() *ExternalAttributes` - -NewExternalAttributesWithDefaults instantiates a new ExternalAttributes 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 - -### GetName - -`func (o *ExternalAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ExternalAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *ExternalAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ExternalAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *ExternalAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *ExternalAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetDescription - -`func (o *ExternalAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ExternalAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *ExternalAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ExternalAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *ExternalAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *ExternalAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetClientId - -`func (o *ExternalAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ExternalAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ExternalAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ExternalAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *ExternalAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *ExternalAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *ExternalAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *ExternalAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *ExternalAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *ExternalAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *ExternalAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *ExternalAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V3/Models/GetCampaign200Response.md b/docs/tools/sdk/go/Reference/V3/Models/GetCampaign200Response.md new file mode 100644 index 000000000..698e28bd7 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V3/Models/GetCampaign200Response.md @@ -0,0 +1,631 @@ +--- +id: get-campaign200-response +title: GetCampaign200Response +pagination_label: GetCampaign200Response +sidebar_label: GetCampaign200Response +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'GetCampaign200Response', 'GetCampaign200Response'] +slug: /tools/sdk/go/v3/models/get-campaign200-response +tags: ['SDK', 'Software Development Kit', 'GetCampaign200Response', 'GetCampaign200Response'] +--- + +# GetCampaign200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Id of the campaign | [optional] [readonly] +**Name** | **string** | The campaign name. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | +**Description** | **NullableString** | The campaign description. If this object is part of a template, special formatting applies; see the `/campaign-templates/{id}/generate` endpoint documentation for details. | +**Deadline** | Pointer to **SailPointTime** | The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response. | [optional] +**Type** | **string** | The type of campaign. Could be extended in the future. | +**EmailNotificationEnabled** | Pointer to **bool** | Enables email notification for this campaign | [optional] [default to false] +**AutoRevokeAllowed** | Pointer to **bool** | Allows auto revoke for this campaign | [optional] [default to false] +**RecommendationsEnabled** | Pointer to **bool** | Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future. | [optional] [default to false] +**Status** | Pointer to **string** | The campaign's current status. | [optional] [readonly] +**CorrelatedStatus** | Pointer to **string** | The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source). | [optional] +**Created** | Pointer to **SailPointTime** | Created time of the campaign | [optional] [readonly] +**TotalCertifications** | Pointer to **int32** | The total number of certifications in this campaign. | [optional] [readonly] +**CompletedCertifications** | Pointer to **int32** | The number of completed certifications in this campaign. | [optional] [readonly] +**Alerts** | Pointer to [**[]CampaignAlert**](campaign-alert) | A list of errors and warnings that have accumulated. | [optional] [readonly] +**Modified** | Pointer to **SailPointTime** | Modified time of the campaign | [optional] [readonly] +**Filter** | Pointer to [**CampaignAllOfFilter**](campaign-all-of-filter) | | [optional] +**SunsetCommentsRequired** | Pointer to **bool** | Determines if comments on sunset date changes are required. | [optional] [default to true] +**SourceOwnerCampaignInfo** | Pointer to [**CampaignAllOfSourceOwnerCampaignInfo**](campaign-all-of-source-owner-campaign-info) | | [optional] +**SearchCampaignInfo** | Pointer to [**CampaignAllOfSearchCampaignInfo**](campaign-all-of-search-campaign-info) | | [optional] +**RoleCompositionCampaignInfo** | Pointer to [**CampaignAllOfRoleCompositionCampaignInfo**](campaign-all-of-role-composition-campaign-info) | | [optional] +**MachineAccountCampaignInfo** | Pointer to [**CampaignAllOfMachineAccountCampaignInfo**](campaign-all-of-machine-account-campaign-info) | | [optional] +**SourcesWithOrphanEntitlements** | Pointer to [**[]CampaignAllOfSourcesWithOrphanEntitlements**](campaign-all-of-sources-with-orphan-entitlements) | A list of sources in the campaign that contain \\\"orphan entitlements\\\" (entitlements without a corresponding Managed Attribute). An empty list indicates the campaign has no orphan entitlements. Null indicates there may be unknown orphan entitlements in the campaign (the campaign was created before this feature was implemented). | [optional] [readonly] +**MandatoryCommentRequirement** | Pointer to **string** | Determines whether comments are required for decisions during certification reviews. You can require comments for all decisions, revoke-only decisions, or no decisions. By default, comments are not required for decisions. | [optional] + +## Methods + +### NewGetCampaign200Response + +`func NewGetCampaign200Response(name string, description NullableString, type_ string, ) *GetCampaign200Response` + +NewGetCampaign200Response instantiates a new GetCampaign200Response 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 + +### NewGetCampaign200ResponseWithDefaults + +`func NewGetCampaign200ResponseWithDefaults() *GetCampaign200Response` + +NewGetCampaign200ResponseWithDefaults instantiates a new GetCampaign200Response 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 + +### GetId + +`func (o *GetCampaign200Response) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GetCampaign200Response) 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 *GetCampaign200Response) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *GetCampaign200Response) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *GetCampaign200Response) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetCampaign200Response) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetCampaign200Response) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *GetCampaign200Response) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *GetCampaign200Response) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *GetCampaign200Response) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *GetCampaign200Response) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *GetCampaign200Response) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDeadline + +`func (o *GetCampaign200Response) GetDeadline() SailPointTime` + +GetDeadline returns the Deadline field if non-nil, zero value otherwise. + +### GetDeadlineOk + +`func (o *GetCampaign200Response) GetDeadlineOk() (*SailPointTime, bool)` + +GetDeadlineOk returns a tuple with the Deadline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeadline + +`func (o *GetCampaign200Response) SetDeadline(v SailPointTime)` + +SetDeadline sets Deadline field to given value. + +### HasDeadline + +`func (o *GetCampaign200Response) HasDeadline() bool` + +HasDeadline returns a boolean if a field has been set. + +### GetType + +`func (o *GetCampaign200Response) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GetCampaign200Response) 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 *GetCampaign200Response) SetType(v string)` + +SetType sets Type field to given value. + + +### GetEmailNotificationEnabled + +`func (o *GetCampaign200Response) GetEmailNotificationEnabled() bool` + +GetEmailNotificationEnabled returns the EmailNotificationEnabled field if non-nil, zero value otherwise. + +### GetEmailNotificationEnabledOk + +`func (o *GetCampaign200Response) GetEmailNotificationEnabledOk() (*bool, bool)` + +GetEmailNotificationEnabledOk returns a tuple with the EmailNotificationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailNotificationEnabled + +`func (o *GetCampaign200Response) SetEmailNotificationEnabled(v bool)` + +SetEmailNotificationEnabled sets EmailNotificationEnabled field to given value. + +### HasEmailNotificationEnabled + +`func (o *GetCampaign200Response) HasEmailNotificationEnabled() bool` + +HasEmailNotificationEnabled returns a boolean if a field has been set. + +### GetAutoRevokeAllowed + +`func (o *GetCampaign200Response) GetAutoRevokeAllowed() bool` + +GetAutoRevokeAllowed returns the AutoRevokeAllowed field if non-nil, zero value otherwise. + +### GetAutoRevokeAllowedOk + +`func (o *GetCampaign200Response) GetAutoRevokeAllowedOk() (*bool, bool)` + +GetAutoRevokeAllowedOk returns a tuple with the AutoRevokeAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoRevokeAllowed + +`func (o *GetCampaign200Response) SetAutoRevokeAllowed(v bool)` + +SetAutoRevokeAllowed sets AutoRevokeAllowed field to given value. + +### HasAutoRevokeAllowed + +`func (o *GetCampaign200Response) HasAutoRevokeAllowed() bool` + +HasAutoRevokeAllowed returns a boolean if a field has been set. + +### GetRecommendationsEnabled + +`func (o *GetCampaign200Response) GetRecommendationsEnabled() bool` + +GetRecommendationsEnabled returns the RecommendationsEnabled field if non-nil, zero value otherwise. + +### GetRecommendationsEnabledOk + +`func (o *GetCampaign200Response) GetRecommendationsEnabledOk() (*bool, bool)` + +GetRecommendationsEnabledOk returns a tuple with the RecommendationsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommendationsEnabled + +`func (o *GetCampaign200Response) SetRecommendationsEnabled(v bool)` + +SetRecommendationsEnabled sets RecommendationsEnabled field to given value. + +### HasRecommendationsEnabled + +`func (o *GetCampaign200Response) HasRecommendationsEnabled() bool` + +HasRecommendationsEnabled returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetCampaign200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetCampaign200Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetCampaign200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetCampaign200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCorrelatedStatus + +`func (o *GetCampaign200Response) GetCorrelatedStatus() string` + +GetCorrelatedStatus returns the CorrelatedStatus field if non-nil, zero value otherwise. + +### GetCorrelatedStatusOk + +`func (o *GetCampaign200Response) GetCorrelatedStatusOk() (*string, bool)` + +GetCorrelatedStatusOk returns a tuple with the CorrelatedStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCorrelatedStatus + +`func (o *GetCampaign200Response) SetCorrelatedStatus(v string)` + +SetCorrelatedStatus sets CorrelatedStatus field to given value. + +### HasCorrelatedStatus + +`func (o *GetCampaign200Response) HasCorrelatedStatus() bool` + +HasCorrelatedStatus returns a boolean if a field has been set. + +### GetCreated + +`func (o *GetCampaign200Response) GetCreated() SailPointTime` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *GetCampaign200Response) GetCreatedOk() (*SailPointTime, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *GetCampaign200Response) SetCreated(v SailPointTime)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *GetCampaign200Response) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### GetTotalCertifications + +`func (o *GetCampaign200Response) GetTotalCertifications() int32` + +GetTotalCertifications returns the TotalCertifications field if non-nil, zero value otherwise. + +### GetTotalCertificationsOk + +`func (o *GetCampaign200Response) GetTotalCertificationsOk() (*int32, bool)` + +GetTotalCertificationsOk returns a tuple with the TotalCertifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCertifications + +`func (o *GetCampaign200Response) SetTotalCertifications(v int32)` + +SetTotalCertifications sets TotalCertifications field to given value. + +### HasTotalCertifications + +`func (o *GetCampaign200Response) HasTotalCertifications() bool` + +HasTotalCertifications returns a boolean if a field has been set. + +### GetCompletedCertifications + +`func (o *GetCampaign200Response) GetCompletedCertifications() int32` + +GetCompletedCertifications returns the CompletedCertifications field if non-nil, zero value otherwise. + +### GetCompletedCertificationsOk + +`func (o *GetCampaign200Response) GetCompletedCertificationsOk() (*int32, bool)` + +GetCompletedCertificationsOk returns a tuple with the CompletedCertifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedCertifications + +`func (o *GetCampaign200Response) SetCompletedCertifications(v int32)` + +SetCompletedCertifications sets CompletedCertifications field to given value. + +### HasCompletedCertifications + +`func (o *GetCampaign200Response) HasCompletedCertifications() bool` + +HasCompletedCertifications returns a boolean if a field has been set. + +### GetAlerts + +`func (o *GetCampaign200Response) GetAlerts() []CampaignAlert` + +GetAlerts returns the Alerts field if non-nil, zero value otherwise. + +### GetAlertsOk + +`func (o *GetCampaign200Response) GetAlertsOk() (*[]CampaignAlert, bool)` + +GetAlertsOk returns a tuple with the Alerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlerts + +`func (o *GetCampaign200Response) SetAlerts(v []CampaignAlert)` + +SetAlerts sets Alerts field to given value. + +### HasAlerts + +`func (o *GetCampaign200Response) HasAlerts() bool` + +HasAlerts returns a boolean if a field has been set. + +### GetModified + +`func (o *GetCampaign200Response) GetModified() SailPointTime` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *GetCampaign200Response) GetModifiedOk() (*SailPointTime, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *GetCampaign200Response) SetModified(v SailPointTime)` + +SetModified sets Modified field to given value. + +### HasModified + +`func (o *GetCampaign200Response) HasModified() bool` + +HasModified returns a boolean if a field has been set. + +### GetFilter + +`func (o *GetCampaign200Response) GetFilter() CampaignAllOfFilter` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *GetCampaign200Response) GetFilterOk() (*CampaignAllOfFilter, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *GetCampaign200Response) SetFilter(v CampaignAllOfFilter)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *GetCampaign200Response) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### GetSunsetCommentsRequired + +`func (o *GetCampaign200Response) GetSunsetCommentsRequired() bool` + +GetSunsetCommentsRequired returns the SunsetCommentsRequired field if non-nil, zero value otherwise. + +### GetSunsetCommentsRequiredOk + +`func (o *GetCampaign200Response) GetSunsetCommentsRequiredOk() (*bool, bool)` + +GetSunsetCommentsRequiredOk returns a tuple with the SunsetCommentsRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSunsetCommentsRequired + +`func (o *GetCampaign200Response) SetSunsetCommentsRequired(v bool)` + +SetSunsetCommentsRequired sets SunsetCommentsRequired field to given value. + +### HasSunsetCommentsRequired + +`func (o *GetCampaign200Response) HasSunsetCommentsRequired() bool` + +HasSunsetCommentsRequired returns a boolean if a field has been set. + +### GetSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) GetSourceOwnerCampaignInfo() CampaignAllOfSourceOwnerCampaignInfo` + +GetSourceOwnerCampaignInfo returns the SourceOwnerCampaignInfo field if non-nil, zero value otherwise. + +### GetSourceOwnerCampaignInfoOk + +`func (o *GetCampaign200Response) GetSourceOwnerCampaignInfoOk() (*CampaignAllOfSourceOwnerCampaignInfo, bool)` + +GetSourceOwnerCampaignInfoOk returns a tuple with the SourceOwnerCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) SetSourceOwnerCampaignInfo(v CampaignAllOfSourceOwnerCampaignInfo)` + +SetSourceOwnerCampaignInfo sets SourceOwnerCampaignInfo field to given value. + +### HasSourceOwnerCampaignInfo + +`func (o *GetCampaign200Response) HasSourceOwnerCampaignInfo() bool` + +HasSourceOwnerCampaignInfo returns a boolean if a field has been set. + +### GetSearchCampaignInfo + +`func (o *GetCampaign200Response) GetSearchCampaignInfo() CampaignAllOfSearchCampaignInfo` + +GetSearchCampaignInfo returns the SearchCampaignInfo field if non-nil, zero value otherwise. + +### GetSearchCampaignInfoOk + +`func (o *GetCampaign200Response) GetSearchCampaignInfoOk() (*CampaignAllOfSearchCampaignInfo, bool)` + +GetSearchCampaignInfoOk returns a tuple with the SearchCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchCampaignInfo + +`func (o *GetCampaign200Response) SetSearchCampaignInfo(v CampaignAllOfSearchCampaignInfo)` + +SetSearchCampaignInfo sets SearchCampaignInfo field to given value. + +### HasSearchCampaignInfo + +`func (o *GetCampaign200Response) HasSearchCampaignInfo() bool` + +HasSearchCampaignInfo returns a boolean if a field has been set. + +### GetRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) GetRoleCompositionCampaignInfo() CampaignAllOfRoleCompositionCampaignInfo` + +GetRoleCompositionCampaignInfo returns the RoleCompositionCampaignInfo field if non-nil, zero value otherwise. + +### GetRoleCompositionCampaignInfoOk + +`func (o *GetCampaign200Response) GetRoleCompositionCampaignInfoOk() (*CampaignAllOfRoleCompositionCampaignInfo, bool)` + +GetRoleCompositionCampaignInfoOk returns a tuple with the RoleCompositionCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) SetRoleCompositionCampaignInfo(v CampaignAllOfRoleCompositionCampaignInfo)` + +SetRoleCompositionCampaignInfo sets RoleCompositionCampaignInfo field to given value. + +### HasRoleCompositionCampaignInfo + +`func (o *GetCampaign200Response) HasRoleCompositionCampaignInfo() bool` + +HasRoleCompositionCampaignInfo returns a boolean if a field has been set. + +### GetMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) GetMachineAccountCampaignInfo() CampaignAllOfMachineAccountCampaignInfo` + +GetMachineAccountCampaignInfo returns the MachineAccountCampaignInfo field if non-nil, zero value otherwise. + +### GetMachineAccountCampaignInfoOk + +`func (o *GetCampaign200Response) GetMachineAccountCampaignInfoOk() (*CampaignAllOfMachineAccountCampaignInfo, bool)` + +GetMachineAccountCampaignInfoOk returns a tuple with the MachineAccountCampaignInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) SetMachineAccountCampaignInfo(v CampaignAllOfMachineAccountCampaignInfo)` + +SetMachineAccountCampaignInfo sets MachineAccountCampaignInfo field to given value. + +### HasMachineAccountCampaignInfo + +`func (o *GetCampaign200Response) HasMachineAccountCampaignInfo() bool` + +HasMachineAccountCampaignInfo returns a boolean if a field has been set. + +### GetSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) GetSourcesWithOrphanEntitlements() []CampaignAllOfSourcesWithOrphanEntitlements` + +GetSourcesWithOrphanEntitlements returns the SourcesWithOrphanEntitlements field if non-nil, zero value otherwise. + +### GetSourcesWithOrphanEntitlementsOk + +`func (o *GetCampaign200Response) GetSourcesWithOrphanEntitlementsOk() (*[]CampaignAllOfSourcesWithOrphanEntitlements, bool)` + +GetSourcesWithOrphanEntitlementsOk returns a tuple with the SourcesWithOrphanEntitlements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) SetSourcesWithOrphanEntitlements(v []CampaignAllOfSourcesWithOrphanEntitlements)` + +SetSourcesWithOrphanEntitlements sets SourcesWithOrphanEntitlements field to given value. + +### HasSourcesWithOrphanEntitlements + +`func (o *GetCampaign200Response) HasSourcesWithOrphanEntitlements() bool` + +HasSourcesWithOrphanEntitlements returns a boolean if a field has been set. + +### GetMandatoryCommentRequirement + +`func (o *GetCampaign200Response) GetMandatoryCommentRequirement() string` + +GetMandatoryCommentRequirement returns the MandatoryCommentRequirement field if non-nil, zero value otherwise. + +### GetMandatoryCommentRequirementOk + +`func (o *GetCampaign200Response) GetMandatoryCommentRequirementOk() (*string, bool)` + +GetMandatoryCommentRequirementOk returns a tuple with the MandatoryCommentRequirement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandatoryCommentRequirement + +`func (o *GetCampaign200Response) SetMandatoryCommentRequirement(v string)` + +SetMandatoryCommentRequirement sets MandatoryCommentRequirement field to given value. + +### HasMandatoryCommentRequirement + +`func (o *GetCampaign200Response) HasMandatoryCommentRequirement() bool` + +HasMandatoryCommentRequirement returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V3/Models/IdpDetails.md b/docs/tools/sdk/go/Reference/V3/Models/IdpDetails.md index fab11d811..dc391bcb0 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/IdpDetails.md +++ b/docs/tools/sdk/go/Reference/V3/Models/IdpDetails.md @@ -18,15 +18,15 @@ Name | Type | Description | Notes **Role** | Pointer to **string** | Federation protocol role | [optional] **EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] **Binding** | Pointer to **string** | Defines the binding used for the SAML flow. Used with IDP configurations. | [optional] -**AuthContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] +**AuthnContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] **LogoutUrl** | Pointer to **string** | The IDP logout URL. Used with IDP configurations. | [optional] -**IncludeAuthContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] +**IncludeAuthnContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] **NameId** | Pointer to **string** | The name id format to use. Used with IDP configurations. | [optional] **JitConfiguration** | Pointer to [**JITConfiguration**](jit-configuration) | | [optional] **Cert** | Pointer to **string** | The Base64-encoded certificate used by the IDP. Used with IDP configurations. | [optional] **LoginUrlPost** | Pointer to **string** | The IDP POST URL, used with IDP HTTP-POST bindings for IDP-initiated logins. Used with IDP configurations. | [optional] **LoginUrlRedirect** | Pointer to **string** | The IDP Redirect URL. Used with IDP configurations. | [optional] -**MappingAttribute** | Pointer to **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | [optional] +**MappingAttribute** | **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | **CertificateExpirationDate** | Pointer to **string** | The expiration date extracted from the certificate. | [optional] **CertificateName** | Pointer to **string** | The name extracted from the certificate. | [optional] @@ -34,7 +34,7 @@ Name | Type | Description | Notes ### NewIdpDetails -`func NewIdpDetails() *IdpDetails` +`func NewIdpDetails(mappingAttribute string, ) *IdpDetails` NewIdpDetails instantiates a new IdpDetails object This constructor will assign default values to properties that have it defined, @@ -124,30 +124,30 @@ SetBinding sets Binding field to given value. HasBinding returns a boolean if a field has been set. -### GetAuthContext +### GetAuthnContext -`func (o *IdpDetails) GetAuthContext() string` +`func (o *IdpDetails) GetAuthnContext() string` -GetAuthContext returns the AuthContext field if non-nil, zero value otherwise. +GetAuthnContext returns the AuthnContext field if non-nil, zero value otherwise. -### GetAuthContextOk +### GetAuthnContextOk -`func (o *IdpDetails) GetAuthContextOk() (*string, bool)` +`func (o *IdpDetails) GetAuthnContextOk() (*string, bool)` -GetAuthContextOk returns a tuple with the AuthContext field if it's non-nil, zero value otherwise +GetAuthnContextOk returns a tuple with the AuthnContext field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAuthContext +### SetAuthnContext -`func (o *IdpDetails) SetAuthContext(v string)` +`func (o *IdpDetails) SetAuthnContext(v string)` -SetAuthContext sets AuthContext field to given value. +SetAuthnContext sets AuthnContext field to given value. -### HasAuthContext +### HasAuthnContext -`func (o *IdpDetails) HasAuthContext() bool` +`func (o *IdpDetails) HasAuthnContext() bool` -HasAuthContext returns a boolean if a field has been set. +HasAuthnContext returns a boolean if a field has been set. ### GetLogoutUrl @@ -174,30 +174,30 @@ SetLogoutUrl sets LogoutUrl field to given value. HasLogoutUrl returns a boolean if a field has been set. -### GetIncludeAuthContext +### GetIncludeAuthnContext -`func (o *IdpDetails) GetIncludeAuthContext() bool` +`func (o *IdpDetails) GetIncludeAuthnContext() bool` -GetIncludeAuthContext returns the IncludeAuthContext field if non-nil, zero value otherwise. +GetIncludeAuthnContext returns the IncludeAuthnContext field if non-nil, zero value otherwise. -### GetIncludeAuthContextOk +### GetIncludeAuthnContextOk -`func (o *IdpDetails) GetIncludeAuthContextOk() (*bool, bool)` +`func (o *IdpDetails) GetIncludeAuthnContextOk() (*bool, bool)` -GetIncludeAuthContextOk returns a tuple with the IncludeAuthContext field if it's non-nil, zero value otherwise +GetIncludeAuthnContextOk returns a tuple with the IncludeAuthnContext field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIncludeAuthContext +### SetIncludeAuthnContext -`func (o *IdpDetails) SetIncludeAuthContext(v bool)` +`func (o *IdpDetails) SetIncludeAuthnContext(v bool)` -SetIncludeAuthContext sets IncludeAuthContext field to given value. +SetIncludeAuthnContext sets IncludeAuthnContext field to given value. -### HasIncludeAuthContext +### HasIncludeAuthnContext -`func (o *IdpDetails) HasIncludeAuthContext() bool` +`func (o *IdpDetails) HasIncludeAuthnContext() bool` -HasIncludeAuthContext returns a boolean if a field has been set. +HasIncludeAuthnContext returns a boolean if a field has been set. ### GetNameId @@ -343,11 +343,6 @@ and a boolean to check if the value has been set. SetMappingAttribute sets MappingAttribute field to given value. -### HasMappingAttribute - -`func (o *IdpDetails) HasMappingAttribute() bool` - -HasMappingAttribute returns a boolean if a field has been set. ### GetCertificateExpirationDate diff --git a/docs/tools/sdk/go/Reference/V3/Models/OwnerReference.md b/docs/tools/sdk/go/Reference/V3/Models/OwnerReference.md index 516f8d5ce..1b2d7c341 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/OwnerReference.md +++ b/docs/tools/sdk/go/Reference/V3/Models/OwnerReference.md @@ -16,8 +16,8 @@ tags: ['SDK', 'Software Development Kit', 'OwnerReference', 'OwnerReference'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | Owner type. This field must be either left null or set to 'IDENTITY' on input, otherwise a 400 Bad Request error will result. | [optional] -**Id** | Pointer to **string** | Identity id | [optional] -**Name** | Pointer to **string** | Human-readable display name of the owner. It may be left null or omitted in a POST or PATCH. If set, it must match the current value of the owner's display name, otherwise a 400 Bad Request error will result. | [optional] +**Id** | Pointer to **string** | Owner's identity ID. | [optional] +**Name** | Pointer to **string** | Owner's name. It may be left null or omitted in a POST or PATCH. If set, it must match the current value of the owner's display name, otherwise a 400 Bad Request error will result. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/PatchServiceDeskIntegrationRequest.md b/docs/tools/sdk/go/Reference/V3/Models/PatchServiceDeskIntegrationRequest.md deleted file mode 100644 index 4400a839f..000000000 --- a/docs/tools/sdk/go/Reference/V3/Models/PatchServiceDeskIntegrationRequest.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -id: patch-service-desk-integration-request -title: PatchServiceDeskIntegrationRequest -pagination_label: PatchServiceDeskIntegrationRequest -sidebar_label: PatchServiceDeskIntegrationRequest -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'PatchServiceDeskIntegrationRequest', 'PatchServiceDeskIntegrationRequest'] -slug: /tools/sdk/go/v3/models/patch-service-desk-integration-request -tags: ['SDK', 'Software Development Kit', 'PatchServiceDeskIntegrationRequest', 'PatchServiceDeskIntegrationRequest'] ---- - -# PatchServiceDeskIntegrationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Operations** | Pointer to [**[]JsonPatchOperation**](json-patch-operation) | Operations to be applied | [optional] - -## Methods - -### NewPatchServiceDeskIntegrationRequest - -`func NewPatchServiceDeskIntegrationRequest() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequest instantiates a new PatchServiceDeskIntegrationRequest 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 - -### NewPatchServiceDeskIntegrationRequestWithDefaults - -`func NewPatchServiceDeskIntegrationRequestWithDefaults() *PatchServiceDeskIntegrationRequest` - -NewPatchServiceDeskIntegrationRequestWithDefaults instantiates a new PatchServiceDeskIntegrationRequest 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 - -### GetOperations - -`func (o *PatchServiceDeskIntegrationRequest) GetOperations() []JsonPatchOperation` - -GetOperations returns the Operations field if non-nil, zero value otherwise. - -### GetOperationsOk - -`func (o *PatchServiceDeskIntegrationRequest) GetOperationsOk() (*[]JsonPatchOperation, bool)` - -GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOperations - -`func (o *PatchServiceDeskIntegrationRequest) SetOperations(v []JsonPatchOperation)` - -SetOperations sets Operations field to given value. - -### HasOperations - -`func (o *PatchServiceDeskIntegrationRequest) HasOperations() bool` - -HasOperations returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel1.md b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel1.md index ad0fe1c59..a0d11176b 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel1.md +++ b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel1.md @@ -16,9 +16,9 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningCriteriaLevel1', 'Provisi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Operation** | Pointer to [**ProvisioningCriteriaOperation**](provisioning-criteria-operation) | | [optional] -**Attribute** | Pointer to **NullableString** | Name of the Account attribute to be tested. If **operation** is one of EQUALS, NOT_EQUALS, CONTAINS, or HAS, this field is required. Otherwise, specifying it is an error. | [optional] -**Value** | Pointer to **NullableString** | String value to test the Account attribute w/r/t the specified operation. If the operation is one of EQUALS, NOT_EQUALS, or CONTAINS, this field is required. Otherwise, specifying it is an error. If the Attribute is not String-typed, it will be converted to the appropriate type. | [optional] -**Children** | Pointer to [**[]ProvisioningCriteriaLevel2**](provisioning-criteria-level2) | Array of child criteria. Required if the operation is AND or OR, otherwise it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] +**Attribute** | Pointer to **NullableString** | Name of the account attribute to be tested. If **operation** is one of `EQUALS`, `NOT_EQUALS`, `CONTAINS`, or `HAS`, this field is required. Otherwise, specifying it results in an error. | [optional] +**Value** | Pointer to **NullableString** | String value to test the account attribute w/r/t the specified operation. If the operation is one of `EQUALS`, `NOT_EQUALS`, or `CONTAINS`, this field is required. Otherwise, specifying it results in an error. If the attribute is not string-typed, the API will convert it to the appropriate type. | [optional] +**Children** | Pointer to [**[]ProvisioningCriteriaLevel2**](provisioning-criteria-level2) | Array of child criteria. This field is required if the operation is `AND` or `OR`. Otherwise, it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel2.md b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel2.md index 8b2f12a20..9c3a628c9 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel2.md +++ b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel2.md @@ -16,9 +16,9 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningCriteriaLevel2', 'Provisi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Operation** | Pointer to [**ProvisioningCriteriaOperation**](provisioning-criteria-operation) | | [optional] -**Attribute** | Pointer to **NullableString** | Name of the Account attribute to be tested. If **operation** is one of EQUALS, NOT_EQUALS, CONTAINS, or HAS, this field is required. Otherwise, specifying it is an error. | [optional] -**Value** | Pointer to **NullableString** | String value to test the Account attribute w/r/t the specified operation. If the operation is one of EQUALS, NOT_EQUALS, or CONTAINS, this field is required. Otherwise, specifying it is an error. If the Attribute is not String-typed, it will be converted to the appropriate type. | [optional] -**Children** | Pointer to [**[]ProvisioningCriteriaLevel3**](provisioning-criteria-level3) | Array of child criteria. Required if the operation is AND or OR, otherwise it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] +**Attribute** | Pointer to **NullableString** | Name of the account attribute to be tested. If **operation** is one of `EQUALS`, `NOT_EQUALS`, `CONTAINS`, or `HAS`, this field is required. Otherwise, specifying it results in an error. | [optional] +**Value** | Pointer to **NullableString** | String value to test the account attribute w/r/t the specified operation. If the operation is one of `EQUALS`, `NOT_EQUALS`, or `CONTAINS`, this field is required. Otherwise, specifying it results in an error. If the attribute is not string-typed, the API will convert it to the appropriate type. | [optional] +**Children** | Pointer to [**[]ProvisioningCriteriaLevel3**](provisioning-criteria-level3) | Array of child criteria. This field is required if the operation is `AND` or `OR`. Otherwise, it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel3.md b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel3.md index 0c7d7621f..9d1586503 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel3.md +++ b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningCriteriaLevel3.md @@ -16,9 +16,9 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningCriteriaLevel3', 'Provisi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Operation** | Pointer to [**ProvisioningCriteriaOperation**](provisioning-criteria-operation) | | [optional] -**Attribute** | Pointer to **NullableString** | Name of the Account attribute to be tested. If **operation** is one of EQUALS, NOT_EQUALS, CONTAINS, or HAS, this field is required. Otherwise, specifying it is an error. | [optional] -**Value** | Pointer to **string** | String value to test the Account attribute w/r/t the specified operation. If the operation is one of EQUALS, NOT_EQUALS, or CONTAINS, this field is required. Otherwise, specifying it is an error. If the Attribute is not String-typed, it will be converted to the appropriate type. | [optional] -**Children** | Pointer to **NullableString** | Array of child criteria. Required if the operation is AND or OR, otherwise it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] +**Attribute** | Pointer to **NullableString** | Name of the account attribute to be tested. If **operation** is one of `EQUALS`, `NOT_EQUALS`, `CONTAINS`, or `HAS`, this field is required. Otherwise, specifying it results in an error. | [optional] +**Value** | Pointer to **NullableString** | String value to test the account attribute w/r/t the specified operation. If the operation is one of `EQUALS`, `NOT_EQUALS`, or `CONTAINS`, this field is required. Otherwise, specifying it results in an error. If the attribute is not string-typed, the API will convert it to the appropriate type. | [optional] +**Children** | Pointer to **NullableString** | Array of child criteria. This field is required if the operation is `AND` or `OR`. Otherwise, it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. | [optional] ## Methods @@ -124,6 +124,16 @@ SetValue sets Value field to given value. HasValue returns a boolean if a field has been set. +### SetValueNil + +`func (o *ProvisioningCriteriaLevel3) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *ProvisioningCriteriaLevel3) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil ### GetChildren `func (o *ProvisioningCriteriaLevel3) GetChildren() string` diff --git a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicy.md b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicy.md index d626767e9..92c640ea4 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicy.md +++ b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicy.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningPolicy', 'ProvisioningPol Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | the provisioning policy name | +**Name** | **NullableString** | the provisioning policy name | **Description** | Pointer to **string** | the description of the provisioning policy | [optional] **UsageType** | Pointer to [**UsageType**](usage-type) | | [optional] **Fields** | Pointer to [**[]FieldDetailsDto**](field-details-dto) | | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewProvisioningPolicy -`func NewProvisioningPolicy(name string, ) *ProvisioningPolicy` +`func NewProvisioningPolicy(name NullableString, ) *ProvisioningPolicy` NewProvisioningPolicy instantiates a new ProvisioningPolicy object This constructor will assign default values to properties that have it defined, @@ -59,6 +59,16 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### SetNameNil + +`func (o *ProvisioningPolicy) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ProvisioningPolicy) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDescription `func (o *ProvisioningPolicy) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicyDto.md b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicyDto.md index 308255f75..a6acfb936 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicyDto.md +++ b/docs/tools/sdk/go/Reference/V3/Models/ProvisioningPolicyDto.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'ProvisioningPolicyDto', 'Provisioning Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | the provisioning policy name | +**Name** | **NullableString** | the provisioning policy name | **Description** | Pointer to **string** | the description of the provisioning policy | [optional] **UsageType** | Pointer to [**UsageType**](usage-type) | | [optional] **Fields** | Pointer to [**[]FieldDetailsDto**](field-details-dto) | | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewProvisioningPolicyDto -`func NewProvisioningPolicyDto(name string, ) *ProvisioningPolicyDto` +`func NewProvisioningPolicyDto(name NullableString, ) *ProvisioningPolicyDto` NewProvisioningPolicyDto instantiates a new ProvisioningPolicyDto object This constructor will assign default values to properties that have it defined, @@ -59,6 +59,16 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### SetNameNil + +`func (o *ProvisioningPolicyDto) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ProvisioningPolicyDto) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDescription `func (o *ProvisioningPolicyDto) GetDescription() string` diff --git a/docs/tools/sdk/go/Reference/V3/Models/Requestability.md b/docs/tools/sdk/go/Reference/V3/Models/Requestability.md index b45f5999f..516e53c45 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/Requestability.md +++ b/docs/tools/sdk/go/Reference/V3/Models/Requestability.md @@ -15,9 +15,10 @@ tags: ['SDK', 'Software Development Kit', 'Requestability', 'Requestability'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommentsRequired** | Pointer to **NullableBool** | Whether the requester of the containing object must provide comments justifying the request | [optional] [default to false] -**DenialCommentsRequired** | Pointer to **NullableBool** | Whether an approver must provide comments when denying the request | [optional] [default to false] -**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps in approving the request | [optional] +**CommentsRequired** | Pointer to **NullableBool** | Indicates whether the requester of the containing object must provide comments justifying the request. | [optional] [default to false] +**DenialCommentsRequired** | Pointer to **NullableBool** | Indicates whether an approver must provide comments when denying the request. | [optional] [default to false] +**ReauthorizationRequired** | Pointer to **NullableBool** | Indicates whether reauthorization is required for the request. | [optional] [default to false] +**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps involved in approving the request. | [optional] ## Methods @@ -108,6 +109,41 @@ HasDenialCommentsRequired returns a boolean if a field has been set. `func (o *Requestability) UnsetDenialCommentsRequired()` UnsetDenialCommentsRequired ensures that no value is present for DenialCommentsRequired, not even an explicit nil +### GetReauthorizationRequired + +`func (o *Requestability) GetReauthorizationRequired() bool` + +GetReauthorizationRequired returns the ReauthorizationRequired field if non-nil, zero value otherwise. + +### GetReauthorizationRequiredOk + +`func (o *Requestability) 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 *Requestability) SetReauthorizationRequired(v bool)` + +SetReauthorizationRequired sets ReauthorizationRequired field to given value. + +### HasReauthorizationRequired + +`func (o *Requestability) HasReauthorizationRequired() bool` + +HasReauthorizationRequired returns a boolean if a field has been set. + +### SetReauthorizationRequiredNil + +`func (o *Requestability) SetReauthorizationRequiredNil(b bool)` + + SetReauthorizationRequiredNil sets the value for ReauthorizationRequired to be an explicit nil + +### UnsetReauthorizationRequired +`func (o *Requestability) UnsetReauthorizationRequired()` + +UnsetReauthorizationRequired ensures that no value is present for ReauthorizationRequired, not even an explicit nil ### GetApprovalSchemes `func (o *Requestability) GetApprovalSchemes() []AccessProfileApprovalScheme` diff --git a/docs/tools/sdk/go/Reference/V3/Models/RequestabilityForRole.md b/docs/tools/sdk/go/Reference/V3/Models/RequestabilityForRole.md index b7920cd7e..171f7f407 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/RequestabilityForRole.md +++ b/docs/tools/sdk/go/Reference/V3/Models/RequestabilityForRole.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CommentsRequired** | Pointer to **NullableBool** | Whether the requester of the containing object must provide comments justifying the request | [optional] [default to false] **DenialCommentsRequired** | Pointer to **NullableBool** | Whether an approver must provide comments when denying the request | [optional] [default to false] +**ReauthorizationRequired** | Pointer to **NullableBool** | Indicates whether reauthorization is required for the request. | [optional] [default to false] **ApprovalSchemes** | Pointer to [**[]ApprovalSchemeForRole**](approval-scheme-for-role) | List describing the steps in approving the request | [optional] ## Methods @@ -108,6 +109,41 @@ HasDenialCommentsRequired returns a boolean if a field has been set. `func (o *RequestabilityForRole) UnsetDenialCommentsRequired()` UnsetDenialCommentsRequired ensures that no value is present for DenialCommentsRequired, not even an explicit nil +### GetReauthorizationRequired + +`func (o *RequestabilityForRole) GetReauthorizationRequired() bool` + +GetReauthorizationRequired returns the ReauthorizationRequired field if non-nil, zero value otherwise. + +### GetReauthorizationRequiredOk + +`func (o *RequestabilityForRole) 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 *RequestabilityForRole) SetReauthorizationRequired(v bool)` + +SetReauthorizationRequired sets ReauthorizationRequired field to given value. + +### HasReauthorizationRequired + +`func (o *RequestabilityForRole) HasReauthorizationRequired() bool` + +HasReauthorizationRequired returns a boolean if a field has been set. + +### SetReauthorizationRequiredNil + +`func (o *RequestabilityForRole) SetReauthorizationRequiredNil(b bool)` + + SetReauthorizationRequiredNil sets the value for ReauthorizationRequired to be an explicit nil + +### UnsetReauthorizationRequired +`func (o *RequestabilityForRole) UnsetReauthorizationRequired()` + +UnsetReauthorizationRequired ensures that no value is present for ReauthorizationRequired, not even an explicit nil ### GetApprovalSchemes `func (o *RequestabilityForRole) GetApprovalSchemes() []ApprovalSchemeForRole` diff --git a/docs/tools/sdk/go/Reference/V3/Models/RequestedForDtoRef.md b/docs/tools/sdk/go/Reference/V3/Models/RequestedForDtoRef.md new file mode 100644 index 000000000..9a18f5178 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V3/Models/RequestedForDtoRef.md @@ -0,0 +1,80 @@ +--- +id: requested-for-dto-ref +title: RequestedForDtoRef +pagination_label: RequestedForDtoRef +sidebar_label: RequestedForDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedForDtoRef', 'RequestedForDtoRef'] +slug: /tools/sdk/go/v3/models/requested-for-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedForDtoRef', 'RequestedForDtoRef'] +--- + +# RequestedForDtoRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IdentityId** | **string** | The identity id for which the access is requested | +**RequestedItems** | [**[]RequestedItemDtoRef**](requested-item-dto-ref) | the details for the access items that are requested for the identity | + +## Methods + +### NewRequestedForDtoRef + +`func NewRequestedForDtoRef(identityId string, requestedItems []RequestedItemDtoRef, ) *RequestedForDtoRef` + +NewRequestedForDtoRef instantiates a new RequestedForDtoRef 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 + +### NewRequestedForDtoRefWithDefaults + +`func NewRequestedForDtoRefWithDefaults() *RequestedForDtoRef` + +NewRequestedForDtoRefWithDefaults instantiates a new RequestedForDtoRef 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 + +### GetIdentityId + +`func (o *RequestedForDtoRef) GetIdentityId() string` + +GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. + +### GetIdentityIdOk + +`func (o *RequestedForDtoRef) GetIdentityIdOk() (*string, bool)` + +GetIdentityIdOk returns a tuple with the IdentityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityId + +`func (o *RequestedForDtoRef) SetIdentityId(v string)` + +SetIdentityId sets IdentityId field to given value. + + +### GetRequestedItems + +`func (o *RequestedForDtoRef) GetRequestedItems() []RequestedItemDtoRef` + +GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. + +### GetRequestedItemsOk + +`func (o *RequestedForDtoRef) GetRequestedItemsOk() (*[]RequestedItemDtoRef, 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 *RequestedForDtoRef) SetRequestedItems(v []RequestedItemDtoRef)` + +SetRequestedItems sets RequestedItems field to given value. + + + diff --git a/docs/tools/sdk/go/Reference/V3/Models/RequestedItemDtoRef.md b/docs/tools/sdk/go/Reference/V3/Models/RequestedItemDtoRef.md new file mode 100644 index 000000000..5a1e8ffe4 --- /dev/null +++ b/docs/tools/sdk/go/Reference/V3/Models/RequestedItemDtoRef.md @@ -0,0 +1,266 @@ +--- +id: requested-item-dto-ref +title: RequestedItemDtoRef +pagination_label: RequestedItemDtoRef +sidebar_label: RequestedItemDtoRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'RequestedItemDtoRef', 'RequestedItemDtoRef'] +slug: /tools/sdk/go/v3/models/requested-item-dto-ref +tags: ['SDK', 'Software Development Kit', 'RequestedItemDtoRef', 'RequestedItemDtoRef'] +--- + +# RequestedItemDtoRef + +## 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] +**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 + +### NewRequestedItemDtoRef + +`func NewRequestedItemDtoRef(type_ string, id string, ) *RequestedItemDtoRef` + +NewRequestedItemDtoRef instantiates a new RequestedItemDtoRef 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 + +### NewRequestedItemDtoRefWithDefaults + +`func NewRequestedItemDtoRefWithDefaults() *RequestedItemDtoRef` + +NewRequestedItemDtoRefWithDefaults instantiates a new RequestedItemDtoRef 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 *RequestedItemDtoRef) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *RequestedItemDtoRef) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetId(v string)` + +SetId sets Id field to given value. + + +### GetComment + +`func (o *RequestedItemDtoRef) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *RequestedItemDtoRef) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetClientMetadata + +`func (o *RequestedItemDtoRef) GetClientMetadata() map[string]string` + +GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. + +### GetClientMetadataOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetClientMetadata(v map[string]string)` + +SetClientMetadata sets ClientMetadata field to given value. + +### HasClientMetadata + +`func (o *RequestedItemDtoRef) HasClientMetadata() bool` + +HasClientMetadata returns a boolean if a field has been set. + +### GetRemoveDate + +`func (o *RequestedItemDtoRef) GetRemoveDate() SailPointTime` + +GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. + +### GetRemoveDateOk + +`func (o *RequestedItemDtoRef) 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 *RequestedItemDtoRef) SetRemoveDate(v SailPointTime)` + +SetRemoveDate sets RemoveDate field to given value. + +### HasRemoveDate + +`func (o *RequestedItemDtoRef) HasRemoveDate() bool` + +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` + +GetAccountSelection returns the AccountSelection field if non-nil, zero value otherwise. + +### GetAccountSelectionOk + +`func (o *RequestedItemDtoRef) GetAccountSelectionOk() (*[]SourceItemRef, bool)` + +GetAccountSelectionOk returns a tuple with the AccountSelection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountSelection + +`func (o *RequestedItemDtoRef) SetAccountSelection(v []SourceItemRef)` + +SetAccountSelection sets AccountSelection field to given value. + +### HasAccountSelection + +`func (o *RequestedItemDtoRef) HasAccountSelection() bool` + +HasAccountSelection returns a boolean if a field has been set. + +### SetAccountSelectionNil + +`func (o *RequestedItemDtoRef) SetAccountSelectionNil(b bool)` + + SetAccountSelectionNil sets the value for AccountSelection to be an explicit nil + +### UnsetAccountSelection +`func (o *RequestedItemDtoRef) UnsetAccountSelection()` + +UnsetAccountSelection ensures that no value is present for AccountSelection, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/V3/Models/Revocability.md b/docs/tools/sdk/go/Reference/V3/Models/Revocability.md index 27c376a9b..f98f7c475 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/Revocability.md +++ b/docs/tools/sdk/go/Reference/V3/Models/Revocability.md @@ -15,7 +15,7 @@ tags: ['SDK', 'Software Development Kit', 'Revocability', 'Revocability'] Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps in approving the revocation request | [optional] +**ApprovalSchemes** | Pointer to [**[]AccessProfileApprovalScheme**](access-profile-approval-scheme) | List describing the steps involved in approving the revocation request. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/ScheduledAttributes.md b/docs/tools/sdk/go/Reference/V3/Models/ScheduledAttributes.md deleted file mode 100644 index c8eaa1dab..000000000 --- a/docs/tools/sdk/go/Reference/V3/Models/ScheduledAttributes.md +++ /dev/null @@ -1,249 +0,0 @@ ---- -id: scheduled-attributes -title: ScheduledAttributes -pagination_label: ScheduledAttributes -sidebar_label: ScheduledAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'ScheduledAttributes', 'ScheduledAttributes'] -slug: /tools/sdk/go/v3/models/scheduled-attributes -tags: ['SDK', 'Software Development Kit', 'ScheduledAttributes', 'ScheduledAttributes'] ---- - -# ScheduledAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewScheduledAttributes - -`func NewScheduledAttributes(frequency NullableString, ) *ScheduledAttributes` - -NewScheduledAttributes instantiates a new ScheduledAttributes 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 - -### NewScheduledAttributesWithDefaults - -`func NewScheduledAttributesWithDefaults() *ScheduledAttributes` - -NewScheduledAttributesWithDefaults instantiates a new ScheduledAttributes 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 - -### GetFrequency - -`func (o *ScheduledAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *ScheduledAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *ScheduledAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *ScheduledAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *ScheduledAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *ScheduledAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *ScheduledAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *ScheduledAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *ScheduledAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *ScheduledAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *ScheduledAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *ScheduledAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *ScheduledAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *ScheduledAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *ScheduledAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *ScheduledAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *ScheduledAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *ScheduledAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *ScheduledAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *ScheduledAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *ScheduledAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *ScheduledAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *ScheduledAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *ScheduledAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *ScheduledAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *ScheduledAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *ScheduledAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *ScheduledAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *ScheduledAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *ScheduledAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *ScheduledAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *ScheduledAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *ScheduledAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *ScheduledAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *ScheduledAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V3/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md b/docs/tools/sdk/go/Reference/V3/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md index be2e60404..3ba7ee602 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md +++ b/docs/tools/sdk/go/Reference/V3/Models/ServiceProviderConfigurationFederationProtocolDetailsInner.md @@ -18,25 +18,26 @@ Name | Type | Description | Notes **Role** | Pointer to **string** | Federation protocol role | [optional] **EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] **Binding** | Pointer to **string** | Defines the binding used for the SAML flow. Used with IDP configurations. | [optional] -**AuthContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] +**AuthnContext** | Pointer to **string** | Specifies the SAML authentication method to use. Used with IDP configurations. | [optional] **LogoutUrl** | Pointer to **string** | The IDP logout URL. Used with IDP configurations. | [optional] -**IncludeAuthContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] +**IncludeAuthnContext** | Pointer to **bool** | Determines if the configured AuthnContext should be used or the default. Used with IDP configurations. | [optional] [default to false] **NameId** | Pointer to **string** | The name id format to use. Used with IDP configurations. | [optional] **JitConfiguration** | Pointer to [**JITConfiguration**](jit-configuration) | | [optional] **Cert** | Pointer to **string** | The Base64-encoded certificate used by the IDP. Used with IDP configurations. | [optional] **LoginUrlPost** | Pointer to **string** | The IDP POST URL, used with IDP HTTP-POST bindings for IDP-initiated logins. Used with IDP configurations. | [optional] **LoginUrlRedirect** | Pointer to **string** | The IDP Redirect URL. Used with IDP configurations. | [optional] -**MappingAttribute** | Pointer to **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | [optional] +**MappingAttribute** | **string** | Return the saml Id for the given user, based on the IDN as SP settings of the org. Used with IDP configurations. | **CertificateExpirationDate** | Pointer to **string** | The expiration date extracted from the certificate. | [optional] **CertificateName** | Pointer to **string** | The name extracted from the certificate. | [optional] **Alias** | Pointer to **string** | Unique alias used to identify the selected local service provider based on used URL. Used with SP configurations. | [optional] -**CallbackUrl** | Pointer to **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | [optional] +**CallbackUrl** | **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | +**LegacyAcsUrl** | Pointer to **string** | The legacy ACS URL used for SAML authentication. Used with SP configurations. | [optional] ## Methods ### NewServiceProviderConfigurationFederationProtocolDetailsInner -`func NewServiceProviderConfigurationFederationProtocolDetailsInner() *ServiceProviderConfigurationFederationProtocolDetailsInner` +`func NewServiceProviderConfigurationFederationProtocolDetailsInner(mappingAttribute string, callbackUrl string, ) *ServiceProviderConfigurationFederationProtocolDetailsInner` NewServiceProviderConfigurationFederationProtocolDetailsInner instantiates a new ServiceProviderConfigurationFederationProtocolDetailsInner object This constructor will assign default values to properties that have it defined, @@ -126,30 +127,30 @@ SetBinding sets Binding field to given value. HasBinding returns a boolean if a field has been set. -### GetAuthContext +### GetAuthnContext -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthContext() string` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthnContext() string` -GetAuthContext returns the AuthContext field if non-nil, zero value otherwise. +GetAuthnContext returns the AuthnContext field if non-nil, zero value otherwise. -### GetAuthContextOk +### GetAuthnContextOk -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthContextOk() (*string, bool)` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetAuthnContextOk() (*string, bool)` -GetAuthContextOk returns a tuple with the AuthContext field if it's non-nil, zero value otherwise +GetAuthnContextOk returns a tuple with the AuthnContext field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAuthContext +### SetAuthnContext -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetAuthContext(v string)` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetAuthnContext(v string)` -SetAuthContext sets AuthContext field to given value. +SetAuthnContext sets AuthnContext field to given value. -### HasAuthContext +### HasAuthnContext -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasAuthContext() bool` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasAuthnContext() bool` -HasAuthContext returns a boolean if a field has been set. +HasAuthnContext returns a boolean if a field has been set. ### GetLogoutUrl @@ -176,30 +177,30 @@ SetLogoutUrl sets LogoutUrl field to given value. HasLogoutUrl returns a boolean if a field has been set. -### GetIncludeAuthContext +### GetIncludeAuthnContext -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthContext() bool` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthnContext() bool` -GetIncludeAuthContext returns the IncludeAuthContext field if non-nil, zero value otherwise. +GetIncludeAuthnContext returns the IncludeAuthnContext field if non-nil, zero value otherwise. -### GetIncludeAuthContextOk +### GetIncludeAuthnContextOk -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthContextOk() (*bool, bool)` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetIncludeAuthnContextOk() (*bool, bool)` -GetIncludeAuthContextOk returns a tuple with the IncludeAuthContext field if it's non-nil, zero value otherwise +GetIncludeAuthnContextOk returns a tuple with the IncludeAuthnContext field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIncludeAuthContext +### SetIncludeAuthnContext -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetIncludeAuthContext(v bool)` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetIncludeAuthnContext(v bool)` -SetIncludeAuthContext sets IncludeAuthContext field to given value. +SetIncludeAuthnContext sets IncludeAuthnContext field to given value. -### HasIncludeAuthContext +### HasIncludeAuthnContext -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasIncludeAuthContext() bool` +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasIncludeAuthnContext() bool` -HasIncludeAuthContext returns a boolean if a field has been set. +HasIncludeAuthnContext returns a boolean if a field has been set. ### GetNameId @@ -345,11 +346,6 @@ and a boolean to check if the value has been set. SetMappingAttribute sets MappingAttribute field to given value. -### HasMappingAttribute - -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasMappingAttribute() bool` - -HasMappingAttribute returns a boolean if a field has been set. ### GetCertificateExpirationDate @@ -445,10 +441,30 @@ and a boolean to check if the value has been set. SetCallbackUrl sets CallbackUrl field to given value. -### HasCallbackUrl -`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasCallbackUrl() bool` +### GetLegacyAcsUrl -HasCallbackUrl returns a boolean if a field has been set. +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLegacyAcsUrl() string` + +GetLegacyAcsUrl returns the LegacyAcsUrl field if non-nil, zero value otherwise. + +### GetLegacyAcsUrlOk + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) GetLegacyAcsUrlOk() (*string, bool)` + +GetLegacyAcsUrlOk returns a tuple with the LegacyAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) SetLegacyAcsUrl(v string)` + +SetLegacyAcsUrl sets LegacyAcsUrl field to given value. + +### HasLegacyAcsUrl + +`func (o *ServiceProviderConfigurationFederationProtocolDetailsInner) HasLegacyAcsUrl() bool` + +HasLegacyAcsUrl returns a boolean if a field has been set. diff --git a/docs/tools/sdk/go/Reference/V3/Models/SourceItemRef.md b/docs/tools/sdk/go/Reference/V3/Models/SourceItemRef.md new file mode 100644 index 000000000..5a766dfaa --- /dev/null +++ b/docs/tools/sdk/go/Reference/V3/Models/SourceItemRef.md @@ -0,0 +1,110 @@ +--- +id: source-item-ref +title: SourceItemRef +pagination_label: SourceItemRef +sidebar_label: SourceItemRef +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'SourceItemRef', 'SourceItemRef'] +slug: /tools/sdk/go/v3/models/source-item-ref +tags: ['SDK', 'Software Development Kit', 'SourceItemRef', 'SourceItemRef'] +--- + +# SourceItemRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SourceId** | Pointer to **NullableString** | The id for the source on which account selections are made | [optional] +**Accounts** | Pointer to [**[]AccountItemRef**](account-item-ref) | A list of account selections on the source. Currently, only one selection per source is supported. | [optional] + +## Methods + +### NewSourceItemRef + +`func NewSourceItemRef() *SourceItemRef` + +NewSourceItemRef instantiates a new SourceItemRef 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 + +### NewSourceItemRefWithDefaults + +`func NewSourceItemRefWithDefaults() *SourceItemRef` + +NewSourceItemRefWithDefaults instantiates a new SourceItemRef 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 + +### GetSourceId + +`func (o *SourceItemRef) GetSourceId() string` + +GetSourceId returns the SourceId field if non-nil, zero value otherwise. + +### GetSourceIdOk + +`func (o *SourceItemRef) GetSourceIdOk() (*string, bool)` + +GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceId + +`func (o *SourceItemRef) SetSourceId(v string)` + +SetSourceId sets SourceId field to given value. + +### HasSourceId + +`func (o *SourceItemRef) HasSourceId() bool` + +HasSourceId returns a boolean if a field has been set. + +### SetSourceIdNil + +`func (o *SourceItemRef) SetSourceIdNil(b bool)` + + SetSourceIdNil sets the value for SourceId to be an explicit nil + +### UnsetSourceId +`func (o *SourceItemRef) UnsetSourceId()` + +UnsetSourceId ensures that no value is present for SourceId, not even an explicit nil +### GetAccounts + +`func (o *SourceItemRef) GetAccounts() []AccountItemRef` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *SourceItemRef) GetAccountsOk() (*[]AccountItemRef, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *SourceItemRef) SetAccounts(v []AccountItemRef)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *SourceItemRef) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + +### SetAccountsNil + +`func (o *SourceItemRef) SetAccountsNil(b bool)` + + SetAccountsNil sets the value for Accounts to be an explicit nil + +### UnsetAccounts +`func (o *SourceItemRef) UnsetAccounts()` + +UnsetAccounts ensures that no value is present for Accounts, not even an explicit nil + diff --git a/docs/tools/sdk/go/Reference/V3/Models/SpDetails.md b/docs/tools/sdk/go/Reference/V3/Models/SpDetails.md index 7e4da5f7f..e104fa177 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/SpDetails.md +++ b/docs/tools/sdk/go/Reference/V3/Models/SpDetails.md @@ -18,13 +18,14 @@ Name | Type | Description | Notes **Role** | Pointer to **string** | Federation protocol role | [optional] **EntityId** | Pointer to **string** | An entity ID is a globally unique name for a SAML entity, either an Identity Provider (IDP) or a Service Provider (SP). | [optional] **Alias** | Pointer to **string** | Unique alias used to identify the selected local service provider based on used URL. Used with SP configurations. | [optional] -**CallbackUrl** | Pointer to **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | [optional] +**CallbackUrl** | **string** | The allowed callback URL where users will be redirected to after authentication. Used with SP configurations. | +**LegacyAcsUrl** | Pointer to **string** | The legacy ACS URL used for SAML authentication. Used with SP configurations. | [optional] ## Methods ### NewSpDetails -`func NewSpDetails() *SpDetails` +`func NewSpDetails(callbackUrl string, ) *SpDetails` NewSpDetails instantiates a new SpDetails object This constructor will assign default values to properties that have it defined, @@ -133,10 +134,30 @@ and a boolean to check if the value has been set. SetCallbackUrl sets CallbackUrl field to given value. -### HasCallbackUrl -`func (o *SpDetails) HasCallbackUrl() bool` +### GetLegacyAcsUrl -HasCallbackUrl returns a boolean if a field has been set. +`func (o *SpDetails) GetLegacyAcsUrl() string` + +GetLegacyAcsUrl returns the LegacyAcsUrl field if non-nil, zero value otherwise. + +### GetLegacyAcsUrlOk + +`func (o *SpDetails) GetLegacyAcsUrlOk() (*string, bool)` + +GetLegacyAcsUrlOk returns a tuple with the LegacyAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyAcsUrl + +`func (o *SpDetails) SetLegacyAcsUrl(v string)` + +SetLegacyAcsUrl sets LegacyAcsUrl field to given value. + +### HasLegacyAcsUrl + +`func (o *SpDetails) HasLegacyAcsUrl() bool` + +HasLegacyAcsUrl returns a boolean if a field has been set. diff --git a/docs/tools/sdk/go/Reference/V3/Models/WorkflowTrigger.md b/docs/tools/sdk/go/Reference/V3/Models/WorkflowTrigger.md index cfeb01084..8eb5c7173 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/WorkflowTrigger.md +++ b/docs/tools/sdk/go/Reference/V3/Models/WorkflowTrigger.md @@ -17,13 +17,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | The trigger type | **DisplayName** | Pointer to **NullableString** | | [optional] -**Attributes** | [**NullableWorkflowTriggerAttributes**](workflow-trigger-attributes) | | +**Attributes** | **map[string]interface{}** | Workflow Trigger Attributes. | ## Methods ### NewWorkflowTrigger -`func NewWorkflowTrigger(type_ string, attributes NullableWorkflowTriggerAttributes, ) *WorkflowTrigger` +`func NewWorkflowTrigger(type_ string, attributes map[string]interface{}, ) *WorkflowTrigger` NewWorkflowTrigger instantiates a new WorkflowTrigger object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ HasDisplayName returns a boolean if a field has been set. UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil ### GetAttributes -`func (o *WorkflowTrigger) GetAttributes() WorkflowTriggerAttributes` +`func (o *WorkflowTrigger) GetAttributes() map[string]interface{}` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *WorkflowTrigger) GetAttributesOk() (*WorkflowTriggerAttributes, bool)` +`func (o *WorkflowTrigger) GetAttributesOk() (*map[string]interface{}, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *WorkflowTrigger) SetAttributes(v WorkflowTriggerAttributes)` +`func (o *WorkflowTrigger) SetAttributes(v map[string]interface{})` SetAttributes sets Attributes field to given value. diff --git a/docs/tools/sdk/go/Reference/V3/Models/WorkflowTriggerAttributes.md b/docs/tools/sdk/go/Reference/V3/Models/WorkflowTriggerAttributes.md deleted file mode 100644 index 04f4e9238..000000000 --- a/docs/tools/sdk/go/Reference/V3/Models/WorkflowTriggerAttributes.md +++ /dev/null @@ -1,532 +0,0 @@ ---- -id: workflow-trigger-attributes -title: WorkflowTriggerAttributes -pagination_label: WorkflowTriggerAttributes -sidebar_label: WorkflowTriggerAttributes -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'WorkflowTriggerAttributes', 'WorkflowTriggerAttributes'] -slug: /tools/sdk/go/v3/models/workflow-trigger-attributes -tags: ['SDK', 'Software Development Kit', 'WorkflowTriggerAttributes', 'WorkflowTriggerAttributes'] ---- - -# WorkflowTriggerAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **NullableString** | The unique ID of the trigger | -**Filter** | Pointer to **NullableString** | JSON path expression that will limit which events the trigger will fire on | [optional] -**Description** | Pointer to **NullableString** | Additional context about the external trigger | [optional] -**AttributeToFilter** | Pointer to **NullableString** | The attribute to filter on | [optional] -**FormDefinitionId** | Pointer to **NullableString** | Form definition's unique identifier. | [optional] -**Name** | Pointer to **NullableString** | A unique name for the external trigger | [optional] -**ClientId** | Pointer to **NullableString** | OAuth Client ID to authenticate with this trigger | [optional] -**Url** | Pointer to **NullableString** | URL to invoke this workflow | [optional] -**Frequency** | **NullableString** | Frequency of execution | -**TimeZone** | Pointer to **NullableString** | Time zone identifier | [optional] -**CronString** | Pointer to **NullableString** | A valid CRON expression | [optional] -**WeeklyDays** | Pointer to **[]string** | Scheduled days of the week for execution | [optional] -**WeeklyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] -**YearlyTimes** | Pointer to **[]string** | Scheduled execution times | [optional] - -## Methods - -### NewWorkflowTriggerAttributes - -`func NewWorkflowTriggerAttributes(id NullableString, frequency NullableString, ) *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributes instantiates a new WorkflowTriggerAttributes 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 - -### NewWorkflowTriggerAttributesWithDefaults - -`func NewWorkflowTriggerAttributesWithDefaults() *WorkflowTriggerAttributes` - -NewWorkflowTriggerAttributesWithDefaults instantiates a new WorkflowTriggerAttributes 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 - -### GetId - -`func (o *WorkflowTriggerAttributes) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WorkflowTriggerAttributes) 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 *WorkflowTriggerAttributes) SetId(v string)` - -SetId sets Id field to given value. - - -### SetIdNil - -`func (o *WorkflowTriggerAttributes) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *WorkflowTriggerAttributes) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil -### GetFilter - -`func (o *WorkflowTriggerAttributes) GetFilter() string` - -GetFilter returns the Filter field if non-nil, zero value otherwise. - -### GetFilterOk - -`func (o *WorkflowTriggerAttributes) GetFilterOk() (*string, bool)` - -GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilter - -`func (o *WorkflowTriggerAttributes) SetFilter(v string)` - -SetFilter sets Filter field to given value. - -### HasFilter - -`func (o *WorkflowTriggerAttributes) HasFilter() bool` - -HasFilter returns a boolean if a field has been set. - -### SetFilterNil - -`func (o *WorkflowTriggerAttributes) SetFilterNil(b bool)` - - SetFilterNil sets the value for Filter to be an explicit nil - -### UnsetFilter -`func (o *WorkflowTriggerAttributes) UnsetFilter()` - -UnsetFilter ensures that no value is present for Filter, not even an explicit nil -### GetDescription - -`func (o *WorkflowTriggerAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *WorkflowTriggerAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *WorkflowTriggerAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *WorkflowTriggerAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *WorkflowTriggerAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *WorkflowTriggerAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilter() string` - -GetAttributeToFilter returns the AttributeToFilter field if non-nil, zero value otherwise. - -### GetAttributeToFilterOk - -`func (o *WorkflowTriggerAttributes) GetAttributeToFilterOk() (*string, bool)` - -GetAttributeToFilterOk returns a tuple with the AttributeToFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributeToFilter - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilter(v string)` - -SetAttributeToFilter sets AttributeToFilter field to given value. - -### HasAttributeToFilter - -`func (o *WorkflowTriggerAttributes) HasAttributeToFilter() bool` - -HasAttributeToFilter returns a boolean if a field has been set. - -### SetAttributeToFilterNil - -`func (o *WorkflowTriggerAttributes) SetAttributeToFilterNil(b bool)` - - SetAttributeToFilterNil sets the value for AttributeToFilter to be an explicit nil - -### UnsetAttributeToFilter -`func (o *WorkflowTriggerAttributes) UnsetAttributeToFilter()` - -UnsetAttributeToFilter ensures that no value is present for AttributeToFilter, not even an explicit nil -### GetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionId() string` - -GetFormDefinitionId returns the FormDefinitionId field if non-nil, zero value otherwise. - -### GetFormDefinitionIdOk - -`func (o *WorkflowTriggerAttributes) GetFormDefinitionIdOk() (*string, bool)` - -GetFormDefinitionIdOk returns a tuple with the FormDefinitionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormDefinitionId - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionId(v string)` - -SetFormDefinitionId sets FormDefinitionId field to given value. - -### HasFormDefinitionId - -`func (o *WorkflowTriggerAttributes) HasFormDefinitionId() bool` - -HasFormDefinitionId returns a boolean if a field has been set. - -### SetFormDefinitionIdNil - -`func (o *WorkflowTriggerAttributes) SetFormDefinitionIdNil(b bool)` - - SetFormDefinitionIdNil sets the value for FormDefinitionId to be an explicit nil - -### UnsetFormDefinitionId -`func (o *WorkflowTriggerAttributes) UnsetFormDefinitionId()` - -UnsetFormDefinitionId ensures that no value is present for FormDefinitionId, not even an explicit nil -### GetName - -`func (o *WorkflowTriggerAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *WorkflowTriggerAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *WorkflowTriggerAttributes) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *WorkflowTriggerAttributes) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *WorkflowTriggerAttributes) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *WorkflowTriggerAttributes) UnsetName()` - -UnsetName ensures that no value is present for Name, not even an explicit nil -### GetClientId - -`func (o *WorkflowTriggerAttributes) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *WorkflowTriggerAttributes) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *WorkflowTriggerAttributes) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *WorkflowTriggerAttributes) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### SetClientIdNil - -`func (o *WorkflowTriggerAttributes) SetClientIdNil(b bool)` - - SetClientIdNil sets the value for ClientId to be an explicit nil - -### UnsetClientId -`func (o *WorkflowTriggerAttributes) UnsetClientId()` - -UnsetClientId ensures that no value is present for ClientId, not even an explicit nil -### GetUrl - -`func (o *WorkflowTriggerAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *WorkflowTriggerAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *WorkflowTriggerAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *WorkflowTriggerAttributes) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - -### SetUrlNil - -`func (o *WorkflowTriggerAttributes) SetUrlNil(b bool)` - - SetUrlNil sets the value for Url to be an explicit nil - -### UnsetUrl -`func (o *WorkflowTriggerAttributes) UnsetUrl()` - -UnsetUrl ensures that no value is present for Url, not even an explicit nil -### GetFrequency - -`func (o *WorkflowTriggerAttributes) GetFrequency() string` - -GetFrequency returns the Frequency field if non-nil, zero value otherwise. - -### GetFrequencyOk - -`func (o *WorkflowTriggerAttributes) GetFrequencyOk() (*string, bool)` - -GetFrequencyOk returns a tuple with the Frequency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrequency - -`func (o *WorkflowTriggerAttributes) SetFrequency(v string)` - -SetFrequency sets Frequency field to given value. - - -### SetFrequencyNil - -`func (o *WorkflowTriggerAttributes) SetFrequencyNil(b bool)` - - SetFrequencyNil sets the value for Frequency to be an explicit nil - -### UnsetFrequency -`func (o *WorkflowTriggerAttributes) UnsetFrequency()` - -UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil -### GetTimeZone - -`func (o *WorkflowTriggerAttributes) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *WorkflowTriggerAttributes) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *WorkflowTriggerAttributes) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *WorkflowTriggerAttributes) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *WorkflowTriggerAttributes) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *WorkflowTriggerAttributes) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -### GetCronString - -`func (o *WorkflowTriggerAttributes) GetCronString() string` - -GetCronString returns the CronString field if non-nil, zero value otherwise. - -### GetCronStringOk - -`func (o *WorkflowTriggerAttributes) GetCronStringOk() (*string, bool)` - -GetCronStringOk returns a tuple with the CronString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCronString - -`func (o *WorkflowTriggerAttributes) SetCronString(v string)` - -SetCronString sets CronString field to given value. - -### HasCronString - -`func (o *WorkflowTriggerAttributes) HasCronString() bool` - -HasCronString returns a boolean if a field has been set. - -### SetCronStringNil - -`func (o *WorkflowTriggerAttributes) SetCronStringNil(b bool)` - - SetCronStringNil sets the value for CronString to be an explicit nil - -### UnsetCronString -`func (o *WorkflowTriggerAttributes) UnsetCronString()` - -UnsetCronString ensures that no value is present for CronString, not even an explicit nil -### GetWeeklyDays - -`func (o *WorkflowTriggerAttributes) GetWeeklyDays() []string` - -GetWeeklyDays returns the WeeklyDays field if non-nil, zero value otherwise. - -### GetWeeklyDaysOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyDaysOk() (*[]string, bool)` - -GetWeeklyDaysOk returns a tuple with the WeeklyDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyDays - -`func (o *WorkflowTriggerAttributes) SetWeeklyDays(v []string)` - -SetWeeklyDays sets WeeklyDays field to given value. - -### HasWeeklyDays - -`func (o *WorkflowTriggerAttributes) HasWeeklyDays() bool` - -HasWeeklyDays returns a boolean if a field has been set. - -### SetWeeklyDaysNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyDaysNil(b bool)` - - SetWeeklyDaysNil sets the value for WeeklyDays to be an explicit nil - -### UnsetWeeklyDays -`func (o *WorkflowTriggerAttributes) UnsetWeeklyDays()` - -UnsetWeeklyDays ensures that no value is present for WeeklyDays, not even an explicit nil -### GetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimes() []string` - -GetWeeklyTimes returns the WeeklyTimes field if non-nil, zero value otherwise. - -### GetWeeklyTimesOk - -`func (o *WorkflowTriggerAttributes) GetWeeklyTimesOk() (*[]string, bool)` - -GetWeeklyTimesOk returns a tuple with the WeeklyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeeklyTimes - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimes(v []string)` - -SetWeeklyTimes sets WeeklyTimes field to given value. - -### HasWeeklyTimes - -`func (o *WorkflowTriggerAttributes) HasWeeklyTimes() bool` - -HasWeeklyTimes returns a boolean if a field has been set. - -### SetWeeklyTimesNil - -`func (o *WorkflowTriggerAttributes) SetWeeklyTimesNil(b bool)` - - SetWeeklyTimesNil sets the value for WeeklyTimes to be an explicit nil - -### UnsetWeeklyTimes -`func (o *WorkflowTriggerAttributes) UnsetWeeklyTimes()` - -UnsetWeeklyTimes ensures that no value is present for WeeklyTimes, not even an explicit nil -### GetYearlyTimes - -`func (o *WorkflowTriggerAttributes) GetYearlyTimes() []string` - -GetYearlyTimes returns the YearlyTimes field if non-nil, zero value otherwise. - -### GetYearlyTimesOk - -`func (o *WorkflowTriggerAttributes) GetYearlyTimesOk() (*[]string, bool)` - -GetYearlyTimesOk returns a tuple with the YearlyTimes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyTimes - -`func (o *WorkflowTriggerAttributes) SetYearlyTimes(v []string)` - -SetYearlyTimes sets YearlyTimes field to given value. - -### HasYearlyTimes - -`func (o *WorkflowTriggerAttributes) HasYearlyTimes() bool` - -HasYearlyTimes returns a boolean if a field has been set. - -### SetYearlyTimesNil - -`func (o *WorkflowTriggerAttributes) SetYearlyTimesNil(b bool)` - - SetYearlyTimesNil sets the value for YearlyTimes to be an explicit nil - -### UnsetYearlyTimes -`func (o *WorkflowTriggerAttributes) UnsetYearlyTimes()` - -UnsetYearlyTimes ensures that no value is present for YearlyTimes, not even an explicit nil - diff --git a/static/code-examples/beta/go_code_examples_overlay.yaml b/static/code-examples/beta/go_code_examples_overlay.yaml index 2798a1c90..4c545eb77 100644 --- a/static/code-examples/beta/go_code_examples_overlay.yaml +++ b/static/code-examples/beta/go_code_examples_overlay.yaml @@ -10,6 +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" ) @@ -17,6 +18,9 @@ func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() @@ -40,6 +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" ) @@ -48,6 +53,9 @@ 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) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() @@ -71,6 +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" ) @@ -78,6 +87,9 @@ 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) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Execute() @@ -101,6 +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" ) @@ -108,6 +121,9 @@ func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() @@ -131,12 +147,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -221,7 +238,16 @@ "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | + + + var accessProfile beta.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -246,6 +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" ) @@ -253,6 +280,9 @@ 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) r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -274,15 +304,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | + + + var accessProfileBulkDeleteRequest beta.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -307,6 +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" ) @@ -314,6 +355,9 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -337,6 +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" ) @@ -349,6 +394,9 @@ 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) resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() @@ -372,6 +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" ) @@ -386,6 +435,9 @@ 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) resp, r, err := apiClient.Beta.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() @@ -409,6 +461,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -417,6 +470,15 @@ id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -440,6 +502,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -447,6 +510,15 @@ func main() { accessProfileBulkUpdateRequestInner := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | + + var accessProfileBulkUpdateRequestInner beta.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(data, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() @@ -470,13 +542,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "author" : { "name" : "Adam Kennedy", "id" : "2c91808568c529c60168cca6f90c1313", @@ -484,7 +557,16 @@ }, "created" : "2017-07-11T18:45:37.098Z", "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. + + + var commentDto beta.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -509,16 +591,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + data := []byte(`{ "newOwnerId" : "newOwnerId", "comment" : "comment" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. + + + var forwardApprovalDto beta.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -543,6 +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" ) @@ -551,6 +644,9 @@ 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) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() @@ -574,6 +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" ) @@ -586,6 +683,9 @@ 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) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() @@ -609,6 +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" ) @@ -621,6 +722,9 @@ 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) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() @@ -644,13 +748,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "author" : { "name" : "Adam Kennedy", "id" : "2c91808568c529c60168cca6f90c1313", @@ -658,7 +763,16 @@ }, "created" : "2017-07-11T18:45:37.098Z", "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. + + + var commentDto beta.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -683,6 +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" ) @@ -692,6 +807,9 @@ 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) resp, r, err := apiClient.Beta.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() @@ -715,15 +833,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | + + + var cancelAccessRequest beta.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -748,17 +876,27 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - closeAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." - }`) # CloseAccessRequest | + }`) // CloseAccessRequest | + + + var closeAccessRequest beta.CloseAccessRequest + if err := json.Unmarshal(data, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -783,12 +921,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -978,7 +1117,16 @@ "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | + + + var accessRequest beta.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1003,12 +1151,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -1032,6 +1184,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1048,6 +1201,9 @@ 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) resp, r, err := apiClient.Beta.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() @@ -1071,12 +1227,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -1101,7 +1258,16 @@ }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | + + + var accessRequestConfig beta.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1126,6 +1292,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1133,6 +1300,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -1156,6 +1326,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1171,6 +1342,9 @@ 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) resp, r, err := apiClient.Beta.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() @@ -1194,6 +1368,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1201,6 +1376,9 @@ func main() { id := `2c91808477a6b0c60177a81146b8110b` // string | The account aggregation id # string | The account aggregation id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() @@ -1224,12 +1402,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -1238,7 +1417,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | + + + var accountAttributesCreate beta.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1263,6 +1451,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1270,6 +1459,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1293,6 +1485,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1300,6 +1493,9 @@ func main() { id := `c350d6aa4f104c61b062cb632421ad10` // string | The account id # string | The account id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() @@ -1323,16 +1519,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest beta.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1357,6 +1563,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1364,6 +1571,9 @@ func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() @@ -1387,14 +1597,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | + + + var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1419,16 +1639,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest beta.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1453,6 +1683,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1460,6 +1691,9 @@ func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() @@ -1483,14 +1717,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | + + + var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1515,6 +1759,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1522,6 +1767,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -1545,6 +1793,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1555,6 +1804,9 @@ 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) resp, r, err := apiClient.Beta.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() @@ -1578,6 +1830,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1590,6 +1843,9 @@ 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) resp, r, err := apiClient.Beta.AccountsAPI.ListAccounts(context.Background()).Execute() @@ -1613,13 +1869,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -1627,7 +1884,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | + + + var accountAttributes beta.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1652,6 +1918,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1659,6 +1926,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -1682,17 +1952,27 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | + + + var accountUnlockRequest beta.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1717,6 +1997,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1725,6 +2006,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestBody := fmt.Sprintf(`{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -1748,6 +2038,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1759,6 +2050,9 @@ 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) resp, r, err := apiClient.Beta.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() @@ -1782,6 +2076,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1789,6 +2084,9 @@ 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) r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplicationByID(context.Background(), id).Execute() @@ -1810,6 +2108,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1821,6 +2120,9 @@ 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) resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() @@ -1844,12 +2146,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -1873,6 +2179,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1881,6 +2188,9 @@ id := `123e4567-e89b-12d3-a456-426655440000` // string | Discovered application's ID. # string | Discovered application's ID. jsonPatchOperations := fmt.Sprintf(`[{op=replace, path=/dismissed, value=true}]`) // []JsonPatchOperations | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID(context.Background(), id).Execute() @@ -1902,6 +2212,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1909,6 +2220,9 @@ 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) r, err := apiClient.Beta.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -1930,6 +2244,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1937,6 +2252,9 @@ 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) resp, r, err := apiClient.Beta.ApprovalsAPI.GetApproval(context.Background(), id).Execute() @@ -1960,6 +2278,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1969,6 +2288,9 @@ 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) resp, r, err := apiClient.Beta.ApprovalsAPI.GetApprovals(context.Background()).Execute() @@ -1992,12 +2314,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceAppCreateDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -2006,7 +2329,16 @@ "type" : "SOURCE" }, "matchAllAccounts" : true - }`) # SourceAppCreateDto | + }`) // SourceAppCreateDto | + + + var sourceAppCreateDto beta.SourceAppCreateDto + if err := json.Unmarshal(data, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2031,6 +2363,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2040,6 +2373,15 @@ requestBody := fmt.Sprintf(``) // []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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).RequestBody(requestBody).Execute() @@ -2063,6 +2405,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2070,6 +2413,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | source app ID. # string | source app ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.DeleteSourceApp(context.Background(), id).Execute() @@ -2093,6 +2439,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2100,6 +2447,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the source app # string | ID of the source app + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.GetSourceApp(context.Background(), id).Execute() @@ -2123,6 +2473,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2133,6 +2484,9 @@ 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) resp, r, err := apiClient.Beta.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).Execute() @@ -2156,6 +2510,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2167,6 +2522,9 @@ 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) resp, r, err := apiClient.Beta.AppsAPI.ListAllSourceApp(context.Background()).Execute() @@ -2190,6 +2548,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2200,6 +2559,9 @@ 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) resp, r, err := apiClient.Beta.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).Execute() @@ -2223,6 +2585,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2234,6 +2597,9 @@ 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) resp, r, err := apiClient.Beta.AppsAPI.ListAssignedSourceApp(context.Background()).Execute() @@ -2257,6 +2623,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2267,6 +2634,9 @@ 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) resp, r, err := apiClient.Beta.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).Execute() @@ -2290,6 +2660,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2301,6 +2672,9 @@ 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) resp, r, err := apiClient.Beta.AppsAPI.ListAvailableSourceApps(context.Background()).Execute() @@ -2324,6 +2698,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2334,6 +2709,9 @@ 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) resp, r, err := apiClient.Beta.AppsAPI.ListOwnedUserApps(context.Background()).Execute() @@ -2357,6 +2735,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2365,6 +2744,9 @@ id := `2c91808a7813090a017814121e121518` // string | ID of the source app to patch # string | ID of the source app to patch jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.PatchSourceApp(context.Background(), id).Execute() @@ -2388,6 +2770,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2396,6 +2779,9 @@ id := `2c91808a7813090a017814121e121518` // string | ID of the user app to patch # string | ID of the user app to patch jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.PatchUserApp(context.Background(), id).Execute() @@ -2419,12 +2805,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceAppBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -2435,7 +2822,10 @@ "path" : "/matchAllAccounts", "value" : false } ] - }`) # SourceAppBulkUpdateRequest | (optional) + }`) // SourceAppBulkUpdateRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2458,6 +2848,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2465,6 +2856,9 @@ 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) resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfig(context.Background(), id).Execute() @@ -2488,12 +2882,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() @@ -2517,6 +2915,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,6 +2924,15 @@ id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.PatchProfileConfig(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2548,15 +2956,19 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - completeCampaignOptions := fmt.Sprintf(`{ + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CompleteCampaignOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CompleteCampaignOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2581,12 +2993,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -2694,7 +3107,16 @@ "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | + + + var campaign beta.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2719,13 +3141,14 @@ "context" "fmt" "os" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -2848,7 +3271,16 @@ "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | + + + var campaignTemplate beta.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2873,6 +3305,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2880,6 +3313,9 @@ 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) r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -2901,6 +3337,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2908,6 +3345,9 @@ 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) r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -2929,14 +3369,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteCampaignsRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # DeleteCampaignsRequest | IDs of the campaigns to delete. + }`) // DeleteCampaignsRequest | IDs of the campaigns to delete. + + + var deleteCampaignsRequest beta.DeleteCampaignsRequest + if err := json.Unmarshal(data, &deleteCampaignsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2961,6 +3411,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2973,6 +3424,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() @@ -2996,6 +3450,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3003,6 +3458,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() @@ -3026,6 +3484,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3033,6 +3492,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -3056,12 +3518,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -3085,6 +3551,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3092,6 +3559,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -3115,6 +3585,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3122,6 +3593,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -3145,6 +3619,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3156,6 +3631,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() @@ -3179,20 +3657,30 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | + + + var adminReviewReassign beta.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3217,6 +3705,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3225,6 +3714,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3248,14 +3746,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. + + + var campaignReportsConfig beta.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3280,13 +3788,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -3305,7 +3814,10 @@ }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3328,15 +3840,19 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + data := []byte(`{ "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) + }`) // 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) @@ -3361,6 +3877,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3368,6 +3885,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -3391,6 +3911,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3399,6 +3920,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -3422,6 +3946,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3429,6 +3954,9 @@ 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) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -3452,6 +3980,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3460,6 +3989,15 @@ id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign being modified. # string | ID of the campaign being modified. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).RequestBody(requestBody).Execute() @@ -3483,6 +4021,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,6 +4034,9 @@ 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) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() @@ -3518,6 +4060,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3525,6 +4068,9 @@ func main() { id := `id_example` // string | The identity campaign certification ID # string | The identity campaign certification ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() @@ -3548,6 +4094,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3556,6 +4103,9 @@ 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) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() @@ -3579,6 +4129,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3591,6 +4142,9 @@ 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) resp, r, err := apiClient.Beta.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() @@ -3614,6 +4168,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3626,6 +4181,9 @@ 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) resp, r, err := apiClient.Beta.CertificationsAPI.ListCertifications(context.Background()).Execute() @@ -3649,13 +4207,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -3665,7 +4224,16 @@ "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | + + + var reviewReassign beta.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3690,12 +4258,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorRuleCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -3720,7 +4289,16 @@ "description" : "This rule does that", "attributes" : { }, "type" : "BuildMap" - }`) # ConnectorRuleCreateRequest | The connector rule to create + }`) // ConnectorRuleCreateRequest | The connector rule to create + + + var connectorRuleCreateRequest beta.ConnectorRuleCreateRequest + if err := json.Unmarshal(data, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3745,6 +4323,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3752,6 +4331,9 @@ 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) r, err := apiClient.Beta.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() @@ -3773,6 +4355,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3780,6 +4363,9 @@ 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) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() @@ -3803,12 +4389,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() @@ -3832,13 +4422,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to update # string | ID of the connector rule to update - connectorRuleUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -3864,7 +4455,10 @@ "attributes" : { }, "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" - }`) # ConnectorRuleUpdateRequest | The connector rule with updated data (optional) + }`) // ConnectorRuleUpdateRequest | The connector rule with updated data (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3889,15 +4483,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceCode := fmt.Sprintf(`{ + data := []byte(`{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" - }`) # SourceCode | The code to validate + }`) // SourceCode | The code to validate + + + var sourceCode beta.SourceCode + if err := json.Unmarshal(data, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3922,6 +4526,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3933,6 +4538,9 @@ 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) resp, r, err := apiClient.Beta.ConnectorsAPI.GetConnectorList(context.Background()).Execute() @@ -3956,12 +4564,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createFormDefinitionRequest := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -4071,7 +4680,10 @@ }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4096,12 +4708,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createFormDefinitionRequest := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -4211,7 +4824,10 @@ }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4236,12 +4852,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -4249,7 +4866,10 @@ "id" : "00000000-0000-0000-0000-000000000000", "type" : "action", "versionNumber" : 1 - }`) # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4274,6 +4894,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4282,6 +4903,9 @@ 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) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() @@ -4305,12 +4929,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "formInput" : { "input1" : "Sales" }, @@ -4330,7 +4955,10 @@ "formDefinitionId" : "00000000-0000-0000-0000-000000000000", "state" : "ASSIGNED", "ttl" : 1571827560 - }`) # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4355,6 +4983,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4362,6 +4991,9 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() @@ -4385,6 +5017,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4395,6 +5028,9 @@ 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) resp, r, err := apiClient.Beta.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() @@ -4418,6 +5054,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4426,6 +5063,9 @@ 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) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() @@ -4449,6 +5089,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4456,6 +5097,9 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() @@ -4479,6 +5123,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4486,6 +5131,9 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() @@ -4509,6 +5157,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4517,6 +5166,9 @@ 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) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() @@ -4540,6 +5192,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4547,6 +5200,9 @@ func main() { body := fmt.Sprintf(`[{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) resp, r, err := apiClient.Beta.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() @@ -4570,6 +5226,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4578,6 +5235,9 @@ formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID body := fmt.Sprintf(`[{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) resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() @@ -4601,6 +5261,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4609,6 +5270,9 @@ formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID body := fmt.Sprintf(`[{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) resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() @@ -4632,6 +5296,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4642,6 +5307,9 @@ 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) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() @@ -4665,6 +5333,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4676,6 +5345,9 @@ 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) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() @@ -4699,12 +5371,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() @@ -4728,12 +5404,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() @@ -4757,6 +5437,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4766,7 +5447,7 @@ limit := 10 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) 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 := `ac` // 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) - formElementPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -4776,7 +5457,10 @@ }, "dataSourceType" : "STATIC" } - }`) # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4801,16 +5485,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - customPasswordInstruction := fmt.Sprintf(`{ + data := []byte(`{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" - }`) # CustomPasswordInstruction | + }`) // CustomPasswordInstruction | + + + var customPasswordInstruction beta.CustomPasswordInstruction + if err := json.Unmarshal(data, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4835,6 +5529,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4843,6 +5538,9 @@ 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) r, err := apiClient.Beta.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Execute() @@ -4864,6 +5562,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4872,6 +5571,9 @@ 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) resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Execute() @@ -4895,6 +5597,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4904,6 +5607,9 @@ 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) resp, r, err := apiClient.Beta.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() @@ -4927,6 +5633,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4936,6 +5643,9 @@ 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) r, err := apiClient.Beta.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() @@ -4957,6 +5667,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4964,6 +5675,9 @@ func main() { id := `2c91808874ff91550175097daaec161c` // string | The entitlement ID # string | The entitlement ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() @@ -4987,6 +5701,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,6 +5709,9 @@ func main() { id := `2c91808874ff91550175097daaec161c` // string | Entitlement Id # string | Entitlement Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() @@ -5017,6 +5735,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5025,6 +5744,9 @@ 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) resp, r, err := apiClient.Beta.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).Execute() @@ -5048,6 +5770,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5060,6 +5783,9 @@ 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) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Execute() @@ -5083,6 +5809,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5095,6 +5822,9 @@ 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) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Execute() @@ -5118,6 +5848,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5133,6 +5864,9 @@ 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) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlements(context.Background()).Execute() @@ -5156,6 +5890,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5164,6 +5899,9 @@ id := `2c91808a7813090a017814121e121518` // string | ID of the entitlement to patch # string | ID of the entitlement to patch jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.PatchEntitlement(context.Background(), id).Execute() @@ -5187,13 +5925,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808a7813090a017814121e121518` // string | Entitlement ID # string | Entitlement ID - entitlementRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -5205,7 +5944,16 @@ } ], "requestCommentRequired" : true } - }`) # EntitlementRequestConfig | + }`) // EntitlementRequestConfig | + + + var entitlementRequestConfig beta.EntitlementRequestConfig + if err := json.Unmarshal(data, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5230,6 +5978,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5237,6 +5986,9 @@ 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) resp, r, err := apiClient.Beta.EntitlementsAPI.ResetSourceEntitlements(context.Background(), sourceId).Execute() @@ -5260,12 +6012,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - entitlementBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -5276,7 +6029,16 @@ "path" : "/requestable", "value" : false } ] - }`) # EntitlementBulkUpdateRequest | + }`) // EntitlementBulkUpdateRequest | + + + var entitlementBulkUpdateRequest beta.EntitlementBulkUpdateRequest + if err := json.Unmarshal(data, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5299,12 +6061,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupDto := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -5319,7 +6082,16 @@ "description" : "Description of the Governance Group", "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" - }`) # WorkgroupDto | + }`) // WorkgroupDto | + + + var workgroupDto beta.WorkgroupDto + if err := json.Unmarshal(data, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5344,6 +6116,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5351,6 +6124,9 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() @@ -5372,6 +6148,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5380,6 +6157,15 @@ workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. bulkWorkgroupMembersRequestInner := fmt.Sprintf(``) // []BulkWorkgroupMembersRequestInner | List of identities to be removed from a Governance Group members list. + + var bulkWorkgroupMembersRequestInner beta.BulkWorkgroupMembersRequestInner + if err := json.Unmarshal(data, &bulkWorkgroupMembersRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() @@ -5403,14 +6189,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - workgroupBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] - }`) # WorkgroupBulkDeleteRequest | + }`) // WorkgroupBulkDeleteRequest | + + + var workgroupBulkDeleteRequest beta.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(data, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5435,6 +6231,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5442,6 +6239,9 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() @@ -5465,6 +6265,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5476,6 +6277,9 @@ 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) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Execute() @@ -5499,6 +6303,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5510,6 +6315,9 @@ 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) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Execute() @@ -5533,6 +6341,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5544,6 +6353,9 @@ 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) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Execute() @@ -5567,6 +6379,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5575,6 +6388,9 @@ id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).Execute() @@ -5598,6 +6414,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5606,6 +6423,15 @@ workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. bulkWorkgroupMembersRequestInner := fmt.Sprintf(``) // []BulkWorkgroupMembersRequestInner | List of identities to be added to a Governance Group members list. + + var bulkWorkgroupMembersRequestInner beta.BulkWorkgroupMembersRequestInner + if err := json.Unmarshal(data, &bulkWorkgroupMembersRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() @@ -5629,18 +6455,28 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestRecommendationActionItemDto := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5665,18 +6501,28 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestRecommendationActionItemDto := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5701,18 +6547,28 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestRecommendationActionItemDto := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5737,6 +6593,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5744,6 +6601,15 @@ func main() { accessRequestRecommendationActionItemDto := fmt.Sprintf(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. + + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -5767,6 +6633,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5780,6 +6647,9 @@ 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) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).Execute() @@ -5803,6 +6673,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5814,6 +6685,9 @@ 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) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Execute() @@ -5837,6 +6711,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5848,6 +6723,9 @@ 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) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Execute() @@ -5871,6 +6749,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5882,6 +6761,9 @@ 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) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Execute() @@ -5905,12 +6787,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - commonAccessItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -5920,7 +6803,16 @@ "ownerId" : "ownerId" }, "status" : "CONFIRMED" - }`) # CommonAccessItemRequest | + }`) // CommonAccessItemRequest | + + + var commonAccessItemRequest beta.CommonAccessItemRequest + if err := json.Unmarshal(data, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5945,6 +6837,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5956,6 +6849,9 @@ 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) resp, r, err := apiClient.Beta.IAICommonAccessAPI.GetCommonAccess(context.Background()).Execute() @@ -5979,6 +6875,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5986,6 +6883,15 @@ func main() { commonAccessIDStatus := fmt.Sprintf(``) // []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(data, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).CommonAccessIDStatus(commonAccessIDStatus).Execute() @@ -6009,6 +6915,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6016,6 +6923,9 @@ 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) resp, r, err := apiClient.Beta.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() @@ -6039,6 +6949,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6046,6 +6957,9 @@ 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) resp, r, err := apiClient.Beta.IAIOutliersAPI.ExportOutliersZip(context.Background()).Execute() @@ -6069,6 +6983,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6080,6 +6995,9 @@ 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) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Execute() @@ -6103,6 +7021,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6115,6 +7034,9 @@ 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) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Execute() @@ -6138,6 +7060,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6145,6 +7068,9 @@ 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) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Execute() @@ -6168,6 +7094,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6175,6 +7102,9 @@ func main() { outlierFeatureId := `04654b66-7561-4090-94f9-abee0722a1af` // string | Contributing feature id # string | Contributing feature id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() @@ -6198,6 +7128,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6210,6 +7141,9 @@ 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) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Execute() @@ -6233,6 +7167,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6240,6 +7175,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() @@ -6261,6 +7205,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6274,6 +7219,9 @@ 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) resp, r, err := apiClient.Beta.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Execute() @@ -6297,6 +7245,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6304,6 +7253,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() @@ -6325,6 +7283,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6335,6 +7294,9 @@ 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) resp, r, err := apiClient.Beta.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Execute() @@ -6358,12 +7320,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - recommendationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -6381,7 +7344,16 @@ } ], "includeTranslationMessages" : false, "includeDebugInformation" : true - }`) # RecommendationRequestDto | + }`) // RecommendationRequestDto | + + + var recommendationRequestDto beta.RecommendationRequestDto + if err := json.Unmarshal(data, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6406,12 +7378,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() @@ -6435,17 +7411,27 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - recommendationConfigDto := fmt.Sprintf(`{ + data := []byte(`{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false - }`) # RecommendationConfigDto | + }`) // RecommendationConfigDto | + + + var recommendationConfigDto beta.RecommendationConfigDto + if err := json.Unmarshal(data, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6470,6 +7456,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6479,13 +7466,16 @@ 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 minEntitlementPopularity := 56 // int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) - roleMiningPotentialRoleProvisionRequest := fmt.Sprintf(`{ + data := []byte(`{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false - }`) # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6510,12 +7500,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMiningSessionDto := fmt.Sprintf(`{ + data := []byte(`{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -6546,7 +7537,16 @@ "minNumIdentitiesInPotentialRole" : 20, "identityCount" : 0, "type" : "SPECIALIZED" - }`) # RoleMiningSessionDto | Role mining session parameters + }`) // RoleMiningSessionDto | Role mining session parameters + + + var roleMiningSessionDto beta.RoleMiningSessionDto + if err := json.Unmarshal(data, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6571,6 +7571,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6580,6 +7581,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() @@ -6603,6 +7607,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6611,6 +7616,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -6634,6 +7642,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6641,10 +7650,13 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id 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 - roleMiningPotentialRoleExportRequest := fmt.Sprintf(`{ + data := []byte(`{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true - }`) # RoleMiningPotentialRoleExportRequest | (optional) + }`) // RoleMiningPotentialRoleExportRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6669,6 +7681,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6678,6 +7691,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() @@ -6701,6 +7717,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6712,6 +7729,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Execute() @@ -6735,6 +7755,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6744,6 +7765,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -6767,6 +7791,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6781,6 +7806,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -6804,6 +7832,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6817,6 +7846,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -6840,6 +7872,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6853,6 +7886,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -6876,6 +7912,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6884,6 +7921,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -6907,6 +7947,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6919,6 +7960,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Execute() @@ -6942,6 +7986,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6954,6 +7999,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).Execute() @@ -6977,6 +8025,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6989,6 +8038,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Execute() @@ -7012,6 +8064,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7024,6 +8077,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Execute() @@ -7047,6 +8103,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7054,6 +8111,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() @@ -7077,6 +8137,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7084,6 +8145,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() @@ -7107,6 +8171,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7114,6 +8179,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() @@ -7137,6 +8205,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7148,6 +8217,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Execute() @@ -7171,6 +8243,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7181,6 +8254,9 @@ 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) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Execute() @@ -7204,6 +8280,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7213,6 +8290,15 @@ potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The potential role summary id # string | The potential role summary id patchPotentialRoleRequestInner := fmt.Sprintf(`[{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(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -7236,6 +8322,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7244,6 +8331,15 @@ potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The potential role summary id # string | The potential role summary id patchPotentialRoleRequestInner := fmt.Sprintf(`[{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(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -7267,6 +8363,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7275,6 +8372,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7298,6 +8404,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7305,10 +8412,19 @@ 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 - roleMiningPotentialRoleEditEntitlements := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "entId1", "entId2" ], "exclude" : true - }`) # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + + + var roleMiningPotentialRoleEditEntitlements beta.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(data, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7333,6 +8449,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7341,6 +8458,9 @@ 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) r, err := apiClient.Beta.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() @@ -7362,6 +8482,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7371,6 +8492,9 @@ 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) resp, r, err := apiClient.Beta.IconsAPI.SetIcon(context.Background(), objectType, objectId).Image(image).Execute() @@ -7394,6 +8518,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7401,6 +8526,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() @@ -7422,6 +8550,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7429,6 +8558,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() @@ -7452,6 +8584,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7459,6 +8592,9 @@ func main() { identityId := `ff8081814d2a8036014d701f3fbf53fa` // string | Identity ID. # string | Identity ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() @@ -7482,6 +8618,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7490,6 +8627,9 @@ identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id assignmentId := `1cbb0705b38c4226b1334eadd8874086` // string | Assignment Id # string | Assignment Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() @@ -7513,6 +8653,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7522,6 +8663,9 @@ 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) resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).Execute() @@ -7545,6 +8689,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7557,6 +8702,9 @@ 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) resp, r, err := apiClient.Beta.IdentitiesAPI.ListIdentities(context.Background()).Execute() @@ -7580,6 +8728,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7587,6 +8736,9 @@ func main() { identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() @@ -7608,16 +8760,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - sendAccountVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" - }`) # SendAccountVerificationRequest | + }`) // SendAccountVerificationRequest | + + + var sendAccountVerificationRequest beta.SendAccountVerificationRequest + if err := json.Unmarshal(data, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7640,15 +8802,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - inviteIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false - }`) # InviteIdentitiesRequest | + }`) // InviteIdentitiesRequest | + + + var inviteIdentitiesRequest beta.InviteIdentitiesRequest + if err := json.Unmarshal(data, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7673,14 +8845,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - processIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] - }`) # ProcessIdentitiesRequest | + }`) // ProcessIdentitiesRequest | + + + var processIdentitiesRequest beta.ProcessIdentitiesRequest + if err := json.Unmarshal(data, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7705,6 +8887,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7712,6 +8895,9 @@ func main() { identityId := `identityId_example` // string | The Identity id # string | The Identity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() @@ -7735,12 +8921,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityAttribute := fmt.Sprintf(`{ + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -7761,7 +8948,16 @@ "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | + + + var identityAttribute beta.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7786,6 +8982,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7793,6 +8990,9 @@ func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() @@ -7814,14 +9014,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityAttributeNames := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "name", "displayName" ] - }`) # IdentityAttributeNames | + }`) // IdentityAttributeNames | + + + var identityAttributeNames beta.IdentityAttributeNames + if err := json.Unmarshal(data, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7844,6 +9054,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7851,6 +9062,9 @@ func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() @@ -7874,6 +9088,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7884,6 +9099,9 @@ 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) resp, r, err := apiClient.Beta.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).Execute() @@ -7907,13 +9125,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. - identityAttribute := fmt.Sprintf(`{ + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -7934,7 +9153,16 @@ "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | + + + var identityAttribute beta.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7959,6 +9187,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7972,6 +9201,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Execute() @@ -7995,6 +9227,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8009,6 +9242,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).Execute() @@ -8032,6 +9268,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8039,6 +9276,9 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() @@ -8062,6 +9302,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8075,6 +9316,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).Execute() @@ -8098,6 +9342,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8106,6 +9351,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() @@ -8129,6 +9377,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8142,6 +9391,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Execute() @@ -8165,6 +9417,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8172,6 +9425,9 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() @@ -8195,6 +9451,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8206,6 +9463,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).Execute() @@ -8229,6 +9489,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8243,6 +9504,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Execute() @@ -8266,6 +9530,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8275,6 +9540,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Execute() @@ -8298,6 +9566,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8310,6 +9579,9 @@ 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) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Execute() @@ -8333,12 +9605,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -8386,7 +9659,16 @@ "name" : "aName", "modified" : "2023-01-03T21:16:22.432Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | + + + var identityProfile beta.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8411,6 +9693,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8418,6 +9701,9 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -8441,6 +9727,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8448,6 +9735,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. + + var requestBody beta.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -8471,6 +9767,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8482,6 +9779,9 @@ 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) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() @@ -8505,6 +9805,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8512,6 +9813,9 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID # string | The Identity Profile ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -8535,6 +9839,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8542,6 +9847,9 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -8565,6 +9873,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8572,6 +9881,15 @@ func main() { identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. + + var identityProfileExportedObject beta.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -8595,6 +9913,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8606,6 +9925,9 @@ 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) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() @@ -8629,12 +9951,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -8660,7 +9983,16 @@ } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. + + + var identityPreviewRequest beta.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8685,6 +10017,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8692,6 +10025,9 @@ 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) resp, r, err := apiClient.Beta.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -8715,6 +10051,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8723,6 +10060,15 @@ identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8746,12 +10092,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - launcherRequest := fmt.Sprintf(`{ + data := []byte(`{ "reference" : { "id" : "2fd6ff94-2081-4d29-acbc-83a0a2f744a5", "type" : "WORKFLOW" @@ -8761,7 +10108,16 @@ "disabled" : false, "type" : "INTERACTIVE_PROCESS", "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" - }`) # LauncherRequest | Payload to create a Launcher + }`) // LauncherRequest | Payload to create a Launcher + + + var launcherRequest beta.LauncherRequest + if err := json.Unmarshal(data, &launcherRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8786,6 +10142,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8793,6 +10150,9 @@ 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) r, err := apiClient.Beta.LaunchersAPI.DeleteLauncher(context.Background(), launcherID).Execute() @@ -8814,6 +10174,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8821,6 +10182,9 @@ 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) resp, r, err := apiClient.Beta.LaunchersAPI.GetLauncher(context.Background(), launcherID).Execute() @@ -8844,6 +10208,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8853,6 +10218,9 @@ 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) resp, r, err := apiClient.Beta.LaunchersAPI.GetLaunchers(context.Background()).Execute() @@ -8876,13 +10244,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be replaced # string | ID of the Launcher to be replaced - launcherRequest := fmt.Sprintf(`{ + data := []byte(`{ "reference" : { "id" : "2fd6ff94-2081-4d29-acbc-83a0a2f744a5", "type" : "WORKFLOW" @@ -8892,7 +10261,16 @@ "disabled" : false, "type" : "INTERACTIVE_PROCESS", "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" - }`) # LauncherRequest | Payload to replace Launcher + }`) // LauncherRequest | Payload to replace Launcher + + + var launcherRequest beta.LauncherRequest + if err := json.Unmarshal(data, &launcherRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8917,6 +10295,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8924,6 +10303,9 @@ 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) resp, r, err := apiClient.Beta.LaunchersAPI.StartLauncher(context.Background(), launcherID).Execute() @@ -8947,6 +10329,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8955,6 +10338,9 @@ 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) resp, r, err := apiClient.Beta.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -8978,6 +10364,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8987,6 +10374,15 @@ lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle State ID. # string | Lifecycle State ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9010,6 +10406,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9018,6 +10415,9 @@ 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) resp, r, err := apiClient.Beta.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -9041,6 +10441,7 @@ "context" "fmt" "os" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -9048,7 +10449,7 @@ func main() { id := `aClientId` // string | ID of the Managed Client Status to update # string | ID of the Managed Client Status to update - managedClientStatus := fmt.Sprintf(`{ + data := []byte(`{ "body" : { "alertKey" : "", "id" : "5678", @@ -9073,7 +10474,16 @@ "type" : "CCG", "status" : "NORMAL", "timestamp" : "2020-01-01T00:00:00Z" - }`) # ManagedClientStatus | + }`) // ManagedClientStatus | + + + var managedClientStatus beta.ManagedClientStatus + if err := json.Unmarshal(data, &managedClientStatus); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9098,6 +10508,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9105,6 +10516,9 @@ 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) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -9128,6 +10542,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9135,6 +10550,9 @@ 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) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -9158,6 +10576,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9168,6 +10587,9 @@ 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) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() @@ -9191,19 +10613,23 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `aClusterId` // string | ID of ManagedCluster to update log configuration for # string | ID of ManagedCluster to update log configuration for - clientLogConfiguration := fmt.Sprintf(`{ + data := []byte(`{ "durationMinutes" : 120, "rootLevel" : "INFO", "clientId" : "aClientId", "expiration" : "2020-12-15T19:13:36.079Z", "logLevels" : "INFO" - }`) # ClientLogConfiguration | ClientLogConfiguration for given ManagedCluster + }`) // ClientLogConfiguration | ClientLogConfiguration for given ManagedCluster + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9228,6 +10654,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9235,6 +10662,9 @@ 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) resp, r, err := apiClient.Beta.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() @@ -9258,12 +10688,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -9287,6 +10721,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9294,6 +10729,9 @@ 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) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() @@ -9317,12 +10755,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -9346,12 +10788,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -9361,7 +10804,16 @@ "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | + + + var mfaDuoConfig beta.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9386,6 +10838,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9393,6 +10846,15 @@ func main() { kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | + + var kbaAnswerRequestItem beta.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -9416,18 +10878,28 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | + + + var mfaOktaConfig beta.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9452,6 +10924,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9459,6 +10932,9 @@ 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) resp, r, err := apiClient.Beta.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -9482,15 +10958,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sendTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK" - }`) # SendTokenRequest | + }`) // SendTokenRequest | + + + var sendTokenRequest beta.SendTokenRequest + if err := json.Unmarshal(data, &sendTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9515,15 +11001,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' - verificationPollRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestId" : "089899f13a8f4da7824996191587bab9" - }`) # VerificationPollRequest | + }`) // VerificationPollRequest | + + + var verificationPollRequest beta.VerificationPollRequest + if err := json.Unmarshal(data, &verificationPollRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9548,15 +11044,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - duoVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "signedResponse" : "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2", "userId" : "2c9180947f0ef465017f215cbcfd004b" - }`) # DuoVerificationRequest | + }`) // DuoVerificationRequest | + + + var duoVerificationRequest beta.DuoVerificationRequest + if err := json.Unmarshal(data, &duoVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9581,6 +11087,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9588,6 +11095,15 @@ func main() { kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | + + var kbaAnswerRequestItem beta.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -9611,14 +11127,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - oktaVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "userId" : "example@mail.com" - }`) # OktaVerificationRequest | + }`) // OktaVerificationRequest | + + + var oktaVerificationRequest beta.OktaVerificationRequest + if err := json.Unmarshal(data, &oktaVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9643,16 +11169,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tokenAuthRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK", "token" : "12345" - }`) # TokenAuthRequest | + }`) // TokenAuthRequest | + + + var tokenAuthRequest beta.TokenAuthRequest + if err := json.Unmarshal(data, &tokenAuthRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9677,12 +11213,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostIntegrationsCreate := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "MyName", "id" : "2c91808568c529c60168cca6f90c1313", @@ -9707,7 +11244,16 @@ "name" : "My Multi-Host Integration", "description" : "This is the Multi-Host Integration.", "modified" : "2024-01-23T18:08:50.897Z" - }`) # MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + + + var multiHostIntegrationsCreate beta.MultiHostIntegrationsCreate + if err := json.Unmarshal(data, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9732,6 +11278,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9740,6 +11287,15 @@ multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. multiHostIntegrationsCreateSources := fmt.Sprintf(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. + + var multiHostIntegrationsCreateSources beta.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(data, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() @@ -9761,6 +11317,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9768,6 +11325,9 @@ 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) r, err := apiClient.Beta.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() @@ -9789,6 +11349,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9796,6 +11357,9 @@ 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) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() @@ -9819,6 +11383,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9826,6 +11391,9 @@ 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) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() @@ -9849,6 +11417,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9856,6 +11425,9 @@ 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) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() @@ -9879,6 +11451,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9891,6 +11464,9 @@ 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) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() @@ -9914,6 +11490,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9921,6 +11498,9 @@ 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) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() @@ -9944,12 +11524,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() @@ -9973,6 +11557,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9985,6 +11570,9 @@ 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) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() @@ -10008,6 +11596,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10015,6 +11604,9 @@ 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) r, err := apiClient.Beta.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() @@ -10036,6 +11628,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10044,6 +11637,9 @@ 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) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() @@ -10067,6 +11663,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10075,6 +11672,15 @@ multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{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(data, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() @@ -10096,15 +11702,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `id_example` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "comment" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | + + + var nonEmployeeApprovalDecision beta.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10129,13 +11745,14 @@ "context" "fmt" "os" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -10148,7 +11765,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. + + + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10173,13 +11799,14 @@ "context" "fmt" "os" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -10192,7 +11819,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body + + + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10217,12 +11853,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -10247,7 +11884,16 @@ }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. + + + var nonEmployeeSourceRequestBody beta.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10272,20 +11918,30 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | + + + var nonEmployeeSchemaAttributeBody beta.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10310,6 +11966,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10317,6 +11974,9 @@ func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -10338,12 +11998,22 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordInBulkRequest | Non-Employee bulk delete request body. + + + var deleteNonEmployeeRecordInBulkRequest beta.DeleteNonEmployeeRecordInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10366,6 +12036,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10373,6 +12044,9 @@ 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) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -10394,6 +12068,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10402,6 +12077,9 @@ 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) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -10423,6 +12101,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10430,6 +12109,9 @@ func main() { sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -10451,6 +12133,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10458,6 +12141,9 @@ func main() { sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -10479,6 +12165,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10486,6 +12173,9 @@ func main() { id := `2c918085842e69ae018432d22ccb212f` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -10507,6 +12197,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10514,6 +12205,9 @@ func main() { id := `2c918085842e69ae018432d22ccb212f` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -10535,6 +12229,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10543,6 +12238,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() @@ -10566,6 +12264,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10573,6 +12272,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -10596,6 +12298,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10603,6 +12306,9 @@ func main() { id := `2c918085842e69ae018432d22ccb212f` // string | Source ID (UUID) # string | Source ID (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -10626,6 +12332,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10633,6 +12340,9 @@ func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -10656,6 +12366,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10663,6 +12374,9 @@ func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -10686,6 +12400,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10693,6 +12408,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -10716,6 +12434,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10724,6 +12443,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -10747,6 +12469,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10754,6 +12477,9 @@ func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -10777,6 +12503,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10784,6 +12511,9 @@ func main() { sourceId := `2c918085842e69ae018432d22ccb212f` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -10807,6 +12537,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10815,6 +12546,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -10838,6 +12572,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10850,6 +12585,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).Execute() @@ -10873,6 +12611,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10884,6 +12623,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() @@ -10907,6 +12649,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10919,6 +12662,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() @@ -10942,6 +12688,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10954,6 +12701,9 @@ 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) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() @@ -10977,6 +12727,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10985,6 +12736,15 @@ id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11008,6 +12768,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11017,6 +12778,15 @@ sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11040,6 +12810,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11048,6 +12819,15 @@ sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | Source Id # string | Source Id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11071,15 +12851,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `id_example` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "comment" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | + + + var nonEmployeeRejectApprovalDecision beta.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11104,6 +12894,7 @@ "context" "fmt" "os" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -11111,7 +12902,7 @@ func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -11124,7 +12915,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11149,14 +12949,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - domainAddress := fmt.Sprintf(`{ + data := []byte(`{ "domain" : "sailpoint.com" - }`) # DomainAddress | + }`) // DomainAddress | + + + var domainAddress beta.DomainAddress + if err := json.Unmarshal(data, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11181,12 +12991,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - templateDto := fmt.Sprintf(`{ + data := []byte(`{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -11203,7 +13014,16 @@ "from" : "$__global.emailFromAddress", "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" - }`) # TemplateDto | + }`) // TemplateDto | + + + var templateDto beta.TemplateDto + if err := json.Unmarshal(data, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11228,17 +13048,27 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - emailStatusDto := fmt.Sprintf(`{ + data := []byte(`{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" - }`) # EmailStatusDto | + }`) // EmailStatusDto | + + + var emailStatusDto beta.EmailStatusDto + if err := json.Unmarshal(data, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11263,6 +13093,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11270,6 +13101,15 @@ func main() { templateBulkDeleteDto := fmt.Sprintf(``) // []TemplateBulkDeleteDto | + + var templateBulkDeleteDto beta.TemplateBulkDeleteDto + if err := json.Unmarshal(data, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() @@ -11291,6 +13131,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11298,6 +13139,9 @@ func main() { id := `id_example` // string | # string | + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() @@ -11319,12 +13163,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() @@ -11348,6 +13196,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11355,6 +13204,9 @@ 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) resp, r, err := apiClient.Beta.NotificationsAPI.GetMailFromAttributes(context.Background(), identityId).Execute() @@ -11378,6 +13230,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11385,6 +13238,9 @@ 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) resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() @@ -11408,12 +13264,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() @@ -11437,6 +13297,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11448,6 +13309,9 @@ 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) resp, r, err := apiClient.Beta.NotificationsAPI.ListFromAddresses(context.Background()).Execute() @@ -11471,6 +13335,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11478,6 +13343,9 @@ func main() { key := `cloud_manual_work_item_summary` // string | The notification key. # string | The notification key. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationPreferences(context.Background(), key).Execute() @@ -11501,6 +13369,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11510,6 +13379,9 @@ 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) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Execute() @@ -11533,6 +13405,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11542,6 +13415,9 @@ 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) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplates(context.Background()).Execute() @@ -11565,15 +13441,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mailFromAttributesDto := fmt.Sprintf(`{ + data := []byte(`{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" - }`) # MailFromAttributesDto | + }`) // MailFromAttributesDto | + + + var mailFromAttributesDto beta.MailFromAttributesDto + if err := json.Unmarshal(data, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11598,16 +13484,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sendTestNotificationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" - }`) # SendTestNotificationRequestDto | + }`) // SendTestNotificationRequestDto | + + + var sendTestNotificationRequestDto beta.SendTestNotificationRequestDto + if err := json.Unmarshal(data, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11630,12 +13526,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -11651,7 +13548,16 @@ "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | + + + var createOAuthClientRequest beta.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11676,6 +13582,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11683,6 +13590,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -11704,6 +13614,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11711,6 +13622,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -11734,6 +13648,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11741,6 +13656,9 @@ 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) resp, r, err := apiClient.Beta.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() @@ -11764,6 +13682,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11772,6 +13691,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11795,12 +13723,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() @@ -11824,12 +13756,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() @@ -11853,6 +13789,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11860,6 +13797,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.PatchOrgConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11883,17 +13829,27 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig beta.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11918,12 +13874,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -11947,17 +13907,27 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig beta.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11982,12 +13952,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -12011,6 +13985,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12018,6 +13993,9 @@ func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() @@ -12039,16 +14017,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordDigitTokenReset := fmt.Sprintf(`{ + data := []byte(`{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" - }`) # PasswordDigitTokenReset | + }`) // PasswordDigitTokenReset | + + + var passwordDigitTokenReset beta.PasswordDigitTokenReset + if err := json.Unmarshal(data, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12073,6 +14061,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,6 +14069,9 @@ func main() { id := `id_example` // string | # string | + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() @@ -12103,15 +14095,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | + + + var passwordInfoQueryDTO beta.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12136,18 +14138,28 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | + + + var passwordChangeRequest beta.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12172,12 +14184,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -12209,7 +14222,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto beta.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12234,6 +14256,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,6 +14264,9 @@ 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) r, err := apiClient.Beta.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -12262,6 +14288,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12269,6 +14296,9 @@ 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) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -12292,6 +14322,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12301,6 +14332,9 @@ 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) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() @@ -12324,13 +14358,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -12362,7 +14397,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto beta.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12387,19 +14431,29 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup beta.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12424,6 +14478,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12431,6 +14486,9 @@ 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) r, err := apiClient.Beta.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -12452,6 +14510,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12459,6 +14518,9 @@ 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) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -12482,6 +14544,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12491,6 +14554,9 @@ 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) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() @@ -12514,20 +14580,30 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup beta.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12552,16 +14628,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. + + + var createPersonalAccessTokenRequest beta.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12586,6 +14672,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12593,6 +14680,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -12614,6 +14704,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12622,6 +14713,9 @@ 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) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() @@ -12645,6 +14739,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12653,6 +14748,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12676,12 +14780,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -12705,12 +14813,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -12724,7 +14833,16 @@ "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | + + + var publicIdentityConfig beta.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12749,6 +14867,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12764,6 +14883,9 @@ 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) resp, r, err := apiClient.Beta.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() @@ -12787,12 +14909,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() @@ -12816,6 +14942,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12825,6 +14952,9 @@ 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) resp, r, err := apiClient.Beta.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() @@ -12848,6 +14978,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12862,6 +14993,9 @@ 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) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).Execute() @@ -12885,6 +15019,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12892,6 +15027,9 @@ 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) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() @@ -12915,6 +15053,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12926,6 +15065,9 @@ 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) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsights(context.Background()).Execute() @@ -12949,6 +15091,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12957,6 +15100,9 @@ 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) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Execute() @@ -12980,6 +15126,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12989,6 +15136,9 @@ 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) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() @@ -13012,6 +15162,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13019,6 +15170,9 @@ 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) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() @@ -13042,12 +15196,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() @@ -13071,12 +15229,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -13234,7 +15393,16 @@ }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | + + + var role beta.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13259,14 +15427,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | + + + var roleBulkDeleteRequest beta.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13291,6 +15469,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13298,6 +15477,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -13319,6 +15501,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13326,6 +15509,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.GetRole(context.Background(), id).Execute() @@ -13349,6 +15535,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13361,6 +15548,9 @@ 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) resp, r, err := apiClient.Beta.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() @@ -13384,6 +15574,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13396,6 +15587,9 @@ 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) resp, r, err := apiClient.Beta.RolesAPI.GetRoleEntitlements(context.Background(), id).Execute() @@ -13419,6 +15613,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13433,6 +15628,9 @@ 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) resp, r, err := apiClient.Beta.RolesAPI.ListRoles(context.Background()).Execute() @@ -13456,6 +15654,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13464,6 +15663,15 @@ id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13487,19 +15695,29 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - searchAttributeConfig := fmt.Sprintf(`{ + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | + + + var searchAttributeConfig beta.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13524,6 +15742,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13531,6 +15750,9 @@ 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) r, err := apiClient.Beta.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() @@ -13552,6 +15774,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13560,6 +15783,9 @@ 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) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() @@ -13583,6 +15809,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13590,6 +15817,9 @@ 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) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() @@ -13613,6 +15843,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13621,6 +15852,15 @@ name := `promotedMailAttribute` // string | Name of the extended search attribute configuration to patch. # string | Name of the extended search attribute configuration to patch. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13644,12 +15884,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -13672,7 +15913,16 @@ "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | + + + var segment beta.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13697,6 +15947,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13704,6 +15955,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -13725,6 +15979,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13732,6 +15987,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -13755,6 +16013,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13764,6 +16023,9 @@ 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) resp, r, err := apiClient.Beta.SegmentsAPI.ListSegments(context.Background()).Execute() @@ -13787,6 +16049,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13795,6 +16058,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -13818,12 +16090,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "managedSources" : [ "2c9180835d191a86015d28455b4a2329", "2c5680835d191a85765d28455b4a9823" ], @@ -13853,7 +16126,16 @@ "clusterRef" : "", "type" : "ServiceNowSDIM", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create + + + var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13878,6 +16160,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13885,6 +16168,9 @@ 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) r, err := apiClient.Beta.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -13906,6 +16192,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13913,6 +16200,9 @@ 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) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -13936,6 +16226,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13947,6 +16238,9 @@ 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) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Execute() @@ -13970,6 +16264,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13977,6 +16272,9 @@ 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) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -14000,12 +16298,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -14029,12 +16331,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -14058,6 +16364,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14066,6 +16373,15 @@ id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonPatchOperation := fmt.Sprintf(``) // []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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14089,13 +16405,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "managedSources" : [ "2c9180835d191a86015d28455b4a2329", "2c5680835d191a85765d28455b4a9823" ], @@ -14125,7 +16442,16 @@ "clusterRef" : "", "type" : "ServiceNowSDIM", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update + + + var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14150,15 +16476,25 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration + + + var queuedCheckConfigDetails beta.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14183,12 +16519,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - simIntegrationDetails := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -14205,7 +16542,16 @@ "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | DTO containing the details of the SIM integration + }`) // SimIntegrationDetails | DTO containing the details of the SIM integration + + + var simIntegrationDetails beta.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14230,6 +16576,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14237,6 +16584,9 @@ 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) r, err := apiClient.Beta.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() @@ -14258,6 +16608,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14265,6 +16616,9 @@ func main() { id := `12345` // string | The id of the integration. # string | The id of the integration. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() @@ -14288,12 +16642,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() @@ -14317,13 +16675,23 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `12345` // string | SIM integration id # string | SIM integration id - jsonPatch := fmt.Sprintf(`"[\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. + data := []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(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14348,13 +16716,23 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `12345` // string | SIM integration id # string | SIM integration id - jsonPatch := fmt.Sprintf(`"[\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 + data := []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(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14379,13 +16757,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `12345` // string | The id of the integration. # string | The id of the integration. - simIntegrationDetails := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -14402,7 +16781,16 @@ "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | The full DTO of the integration containing the updated model + }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model + + + var simIntegrationDetails beta.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14427,12 +16815,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -14487,7 +16876,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy beta.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14512,6 +16910,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14520,6 +16919,9 @@ 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) r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() @@ -14541,6 +16943,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14548,6 +16951,9 @@ 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) r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -14569,6 +16975,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14577,6 +16984,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -14600,6 +17010,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14607,6 +17018,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -14630,12 +17044,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -14659,6 +17077,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14666,6 +17085,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -14689,6 +17111,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14696,6 +17119,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -14719,6 +17145,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14726,6 +17153,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -14749,6 +17179,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14756,6 +17187,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -14779,6 +17213,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,6 +17225,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() @@ -14813,6 +17251,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14821,6 +17260,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | The ID of the SOD policy being modified. # string | The ID of the SOD policy being modified. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute() @@ -14844,13 +17292,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + data := []byte(`{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -14935,7 +17384,16 @@ "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | + + + var sodPolicySchedule beta.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14960,13 +17418,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -15021,7 +17480,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy beta.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15046,14 +17514,18 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "filteredPolicyList", "filteredPolicyList" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15078,6 +17550,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15085,6 +17558,9 @@ 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) resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -15108,12 +17584,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -15124,7 +17601,16 @@ "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | + + + var identityWithNewAccess beta.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15149,13 +17635,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -15194,7 +17681,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15219,12 +17715,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -15306,9 +17803,18 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // 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(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() @@ -15332,13 +17838,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -15371,7 +17878,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema beta.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15396,6 +17912,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15403,6 +17920,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.Delete(context.Background(), id).Execute() @@ -15426,6 +17946,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15433,6 +17954,9 @@ func main() { sourceId := `ebbf35756e1140699ce52b233121384a` // string | The source id # string | The source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.DeleteAccountsAsync(context.Background(), sourceId).Execute() @@ -15456,6 +17980,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15463,6 +17988,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), sourceId).Execute() @@ -15484,6 +18012,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15492,6 +18021,9 @@ 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) r, err := apiClient.Beta.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -15513,6 +18045,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15521,6 +18054,9 @@ 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) r, err := apiClient.Beta.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -15542,6 +18078,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15549,6 +18086,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetCorrelationConfig(context.Background(), sourceId).Execute() @@ -15572,6 +18112,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15579,6 +18120,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), sourceId).Execute() @@ -15602,6 +18146,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15610,6 +18155,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -15633,6 +18181,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15640,6 +18189,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -15663,6 +18215,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15670,6 +18223,9 @@ func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.GetSourceAccountsSchema(context.Background(), sourceId).Execute() @@ -15691,6 +18247,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15698,6 +18255,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() @@ -15721,6 +18281,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15729,6 +18290,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() @@ -15752,6 +18316,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15759,6 +18324,9 @@ func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background(), sourceId).Execute() @@ -15782,6 +18350,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15790,6 +18359,9 @@ 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) r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), sourceId).Execute() @@ -15811,6 +18383,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15819,6 +18392,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -15842,6 +18418,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15851,6 +18428,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() @@ -15874,6 +18454,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15883,6 +18464,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.ImportAccounts(context.Background(), sourceId).Execute() @@ -15906,6 +18490,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15914,6 +18499,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.ImportEntitlements(context.Background(), sourceId).Execute() @@ -15937,6 +18525,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15945,6 +18534,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceAccountsSchema(context.Background(), sourceId).Execute() @@ -15968,6 +18560,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15976,6 +18569,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).Execute() @@ -15999,6 +18595,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16008,6 +18605,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), sourceId).Execute() @@ -16031,6 +18631,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16039,6 +18640,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), sourceId).Execute() @@ -16062,6 +18666,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16069,6 +18674,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -16092,6 +18700,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16105,6 +18714,9 @@ 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) resp, r, err := apiClient.Beta.SourcesAPI.ListSources(context.Background()).Execute() @@ -16128,16 +18740,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - resourceObjectsRequest := fmt.Sprintf(`{ + data := []byte(`{ "maxCount" : 100, "objectType" : "group" - }`) # ResourceObjectsRequest | + }`) // ResourceObjectsRequest | + + + var resourceObjectsRequest beta.ResourceObjectsRequest + if err := json.Unmarshal(data, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16162,6 +18784,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16169,6 +18792,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() @@ -16192,13 +18818,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - correlationConfig := fmt.Sprintf(`{ + data := []byte(`{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -16218,7 +18845,16 @@ } ], "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" - }`) # CorrelationConfig | + }`) // CorrelationConfig | + + + var correlationConfig beta.CorrelationConfig + if err := json.Unmarshal(data, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16243,20 +18879,30 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - nativeChangeDetectionConfig := fmt.Sprintf(`{ + data := []byte(`{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], "allNonEntitlementAttributes" : false, "allEntitlements" : false, "enabled" : true - }`) # NativeChangeDetectionConfig | + }`) // NativeChangeDetectionConfig | + + + var nativeChangeDetectionConfig beta.NativeChangeDetectionConfig + if err := json.Unmarshal(data, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16281,6 +18927,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16288,7 +18935,7 @@ 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. - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -16327,7 +18974,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16352,13 +19008,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -16440,7 +19097,16 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | + + + var source beta.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16465,13 +19131,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - attrSyncSourceConfig := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -16488,7 +19155,16 @@ "id" : "2c9180835d191a86015d28455b4b232a", "type" : "SOURCE" } - }`) # AttrSyncSourceConfig | + }`) // AttrSyncSourceConfig | + + + var attrSyncSourceConfig beta.AttrSyncSourceConfig + if err := json.Unmarshal(data, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16513,6 +19189,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16520,7 +19197,7 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema ID. # string | The Schema ID. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -16553,7 +19230,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema beta.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16578,6 +19264,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16585,6 +19272,9 @@ func main() { sourceId := `sourceId_example` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.SyncAttributesForSource(context.Background(), sourceId).Execute() @@ -16608,6 +19298,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16615,6 +19306,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() @@ -16638,6 +19332,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16645,6 +19340,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() @@ -16668,6 +19366,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16676,6 +19375,15 @@ sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | + + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -16699,6 +19407,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16708,6 +19417,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16731,6 +19449,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16739,6 +19458,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16762,13 +19490,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - sourceEntitlementRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -16780,7 +19509,16 @@ } ], "requestCommentRequired" : true } - }`) # SourceEntitlementRequestConfig | + }`) // SourceEntitlementRequestConfig | + + + var sourceEntitlementRequestConfig beta.SourceEntitlementRequestConfig + if err := json.Unmarshal(data, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16805,6 +19543,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16814,6 +19553,15 @@ schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16837,6 +19585,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16844,6 +19593,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -16867,6 +19619,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16878,6 +19631,9 @@ 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) resp, r, err := apiClient.Beta.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() @@ -16901,14 +19657,24 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - exportPayload := fmt.Sprintf(`{ + data := []byte(`{ "description" : "Export Job 1 Test" - }`) # ExportPayload | Export options control what will be included in the export. + }`) // ExportPayload | Export options control what will be included in the export. + + + var exportPayload beta.ExportPayload + if err := json.Unmarshal(data, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16933,6 +19699,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16940,6 +19707,9 @@ 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) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() @@ -16963,6 +19733,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16970,6 +19741,9 @@ 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) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() @@ -16993,6 +19767,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17000,6 +19775,9 @@ 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) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() @@ -17023,6 +19801,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17030,6 +19809,9 @@ 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) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() @@ -17053,6 +19835,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17060,7 +19843,10 @@ 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. 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 := fmt.Sprintf(``) # ImportOptions | (optional) + data := []byte(``) // ImportOptions | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17085,12 +19871,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() @@ -17114,6 +19904,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17121,6 +19912,9 @@ func main() { batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() @@ -17144,12 +19938,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() @@ -17173,6 +19971,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17186,6 +19985,9 @@ 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) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() @@ -17209,6 +20011,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17217,6 +20020,15 @@ id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id sedPatch := fmt.Sprintf(``) // []SedPatch | Sed Patch Request + + var sedPatch beta.SedPatch + if err := json.Unmarshal(data, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() @@ -17240,6 +20052,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17247,6 +20060,15 @@ func main() { sedApproval := fmt.Sprintf(``) // []SedApproval | Sed Approval + + var sedApproval beta.SedApproval + if err := json.Unmarshal(data, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() @@ -17270,18 +20092,28 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedAssignment := fmt.Sprintf(`{ + data := []byte(`{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] - }`) # SedAssignment | Sed Assignment Request + }`) // SedAssignment | Sed Assignment Request + + + var sedAssignment beta.SedAssignment + if err := json.Unmarshal(data, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17306,15 +20138,19 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedBatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] - }`) # SedBatchRequest | Sed Batch Request (optional) + }`) // SedBatchRequest | Sed Batch Request (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17339,6 +20175,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17347,6 +20184,9 @@ 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) r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -17368,12 +20208,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -17385,7 +20226,16 @@ } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkTaggedObject beta.BulkTaggedObject + if err := json.Unmarshal(data, &bulkTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17408,6 +20258,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17416,6 +20267,9 @@ 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) resp, r, err := apiClient.Beta.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -17439,6 +20293,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17449,6 +20304,9 @@ 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) resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() @@ -17472,6 +20330,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17483,6 +20342,9 @@ 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) resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() @@ -17506,6 +20368,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17513,14 +20376,23 @@ func main() { type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject beta.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17545,19 +20417,29 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject beta.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17580,12 +20462,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -17597,7 +20480,16 @@ } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkTaggedObject beta.BulkTaggedObject + if err := json.Unmarshal(data, &bulkTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17622,13 +20514,14 @@ "context" "fmt" "os" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tag := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2022-05-04T14:48:49Z", "tagCategoryRefs" : [ { "name" : "CN=entitlement.490efde5,OU=OrgCo,OU=ServiceDept,DC=HQAD,DC=local", @@ -17642,7 +20535,16 @@ "name" : "PCI", "modified" : "2022-07-14T16:31:11Z", "id" : "449ecdc0-d4ff-4341-acf6-92f6f7ce604f" - }`) # Tag | + }`) // Tag | + + + var tag beta.Tag + if err := json.Unmarshal(data, &tag); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17667,6 +20569,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17674,6 +20577,9 @@ 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) r, err := apiClient.Beta.TagsAPI.DeleteTagById(context.Background(), id).Execute() @@ -17695,6 +20601,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17702,6 +20609,9 @@ 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) resp, r, err := apiClient.Beta.TagsAPI.GetTagById(context.Background(), id).Execute() @@ -17725,6 +20635,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17736,6 +20647,9 @@ 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) resp, r, err := apiClient.Beta.TagsAPI.ListTags(context.Background()).Execute() @@ -17759,6 +20673,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17768,6 +20683,9 @@ 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) r, err := apiClient.Beta.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Execute() @@ -17789,6 +20707,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17798,6 +20717,9 @@ 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) resp, r, err := apiClient.Beta.TaskManagementAPI.GetPendingTasks(context.Background()).Execute() @@ -17821,6 +20743,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17828,6 +20751,9 @@ func main() { id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() @@ -17851,6 +20777,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17862,6 +20789,9 @@ 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) resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatusList(context.Background()).Execute() @@ -17885,6 +20815,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17893,6 +20824,15 @@ id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. + + var jsonPatchOperation beta.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17916,12 +20856,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute() @@ -17945,16 +20889,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. + + + var transform beta.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17979,6 +20933,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17986,6 +20941,9 @@ 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) r, err := apiClient.Beta.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -18007,6 +20965,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18014,6 +20973,9 @@ 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) resp, r, err := apiClient.Beta.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -18037,6 +20999,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18048,6 +21011,9 @@ 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) resp, r, err := apiClient.Beta.TransformsAPI.ListTransforms(context.Background()).Execute() @@ -18071,17 +21037,21 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // 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) @@ -18106,19 +21076,29 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the invocation to complete. # string | The ID of the invocation to complete. - completeInvocation := fmt.Sprintf(`{ + data := []byte(`{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." - }`) # CompleteInvocation | + }`) // CompleteInvocation | + + + var completeInvocation beta.CompleteInvocation + if err := json.Unmarshal(data, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18141,12 +21121,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - subscriptionPostRequest := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -18170,7 +21151,16 @@ "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPostRequest | + }`) // SubscriptionPostRequest | + + + var subscriptionPostRequest beta.SubscriptionPostRequest + if err := json.Unmarshal(data, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18195,6 +21185,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18202,6 +21193,9 @@ func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | Subscription ID # string | Subscription ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() @@ -18223,6 +21217,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18234,6 +21229,9 @@ 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) resp, r, err := apiClient.Beta.TriggersAPI.ListSubscriptions(context.Background()).Execute() @@ -18257,6 +21255,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18268,6 +21267,9 @@ 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) resp, r, err := apiClient.Beta.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Execute() @@ -18291,6 +21293,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18302,6 +21305,9 @@ 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) resp, r, err := apiClient.Beta.TriggersAPI.ListTriggers(context.Background()).Execute() @@ -18325,6 +21331,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18333,6 +21340,15 @@ id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | ID of the Subscription to patch # string | ID of the Subscription to patch subscriptionPatchRequestInner := fmt.Sprintf(``) // []SubscriptionPatchRequestInner | + + var subscriptionPatchRequestInner beta.SubscriptionPatchRequestInner + if err := json.Unmarshal(data, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.PatchSubscription(context.Background(), id).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() @@ -18356,12 +21372,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - testInvocation := fmt.Sprintf(`{ + data := []byte(`{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -18370,7 +21387,16 @@ "contentJson" : { "workflowId" : 1234 } - }`) # TestInvocation | + }`) // TestInvocation | + + + var testInvocation beta.TestInvocation + if err := json.Unmarshal(data, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18395,17 +21421,27 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - validateFilterInputDto := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } - }`) # ValidateFilterInputDto | + }`) // ValidateFilterInputDto | + + + var validateFilterInputDto beta.ValidateFilterInputDto + if err := json.Unmarshal(data, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18430,13 +21466,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | Subscription ID # string | Subscription ID - subscriptionPutRequest := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -18459,7 +21496,16 @@ "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPutRequest | + }`) // SubscriptionPutRequest | + + + var subscriptionPutRequest beta.SubscriptionPutRequest + if err := json.Unmarshal(data, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18484,12 +21530,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() @@ -18513,16 +21563,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tenantUiMetadataItemUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" - }`) # TenantUiMetadataItemUpdateRequest | + }`) // TenantUiMetadataItemUpdateRequest | + + + var tenantUiMetadataItemUpdateRequest beta.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(data, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18547,12 +21607,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -18574,7 +21635,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping beta.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18599,12 +21669,13 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -18626,7 +21697,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping beta.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18651,12 +21731,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -18680,6 +21764,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18687,6 +21772,9 @@ 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) r, err := apiClient.Beta.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -18708,12 +21796,22 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18738,6 +21836,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18745,6 +21844,9 @@ 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) r, err := apiClient.Beta.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -18766,6 +21868,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18774,6 +21877,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() @@ -18797,6 +21903,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18804,6 +21911,9 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -18827,6 +21937,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18834,6 +21945,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -18857,6 +21971,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18868,6 +21983,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() @@ -18891,6 +22009,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18899,6 +22018,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() @@ -18922,6 +22044,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18931,6 +22054,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() @@ -18954,12 +22080,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -18983,6 +22113,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18992,6 +22123,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() @@ -19015,6 +22149,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19025,6 +22160,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflows(context.Background()).Execute() @@ -19048,6 +22186,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19056,6 +22195,15 @@ id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -19079,13 +22227,17 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - postExternalExecuteWorkflowRequest := fmt.Sprintf(``) # PostExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // PostExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19110,6 +22262,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19117,6 +22270,9 @@ 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) resp, r, err := apiClient.Beta.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() @@ -19140,13 +22296,14 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -19179,7 +22336,16 @@ "type" : "EVENT" }, "enabled" : false - }`) # WorkflowBody | + }`) // WorkflowBody | + + + var workflowBody beta.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19204,13 +22370,17 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19235,13 +22405,23 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19266,6 +22446,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19274,6 +22455,9 @@ 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) resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -19297,6 +22481,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19304,6 +22489,9 @@ 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) resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -19327,6 +22515,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19335,6 +22524,9 @@ 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) resp, r, err := apiClient.Beta.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() @@ -19346,39 +22538,6 @@ // response from `CompleteWorkItem`: WorkItems fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) } -- path: /work-items/{id}/forward - method: Post - xCodeSample: - - lang: Go - label: SDK_tools/sdk/go/beta/methods/work-items#forward-work-item - source: | - package main - - import ( - "context" - "fmt" - "os" - beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" - sailpoint "github.com/sailpoint-oss/golang-sdk/v2" - ) - - func main() { - id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - workItemForward := fmt.Sprintf(`{ - "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", - "comment" : "I'm going on vacation.", - "sendNotifications" : true - }`) # WorkItemForward | - - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) - r, err := apiClient.Beta.WorkItemsAPI.ForwardWorkItem(context.Background(), id).WorkItemForward(workItemForward).Execute() - //r, err := apiClient.Beta.WorkItemsAPI.ForwardWorkItem(context.Background(), id).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) - } - } - path: /work-items/completed method: Get xCodeSample: @@ -19391,16 +22550,20 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := `ownerId_example` // string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + ownerId := `2c91808571bcfcf80171c23e4b4221fc` // string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) 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) 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) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() @@ -19424,17 +22587,23 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := `ownerId_example` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + ownerId := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + 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) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).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) @@ -19454,12 +22623,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := `ownerId_example` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + 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) @@ -19484,6 +22657,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19492,6 +22666,9 @@ 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) resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() @@ -19515,12 +22692,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := `ownerId_example` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + 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) @@ -19545,6 +22726,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19553,7 +22735,10 @@ 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) 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 := `ownerId_example` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) + 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) @@ -19578,6 +22763,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19586,6 +22772,9 @@ 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) resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -19609,6 +22798,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19616,6 +22806,9 @@ 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) resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -19639,6 +22832,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19647,6 +22841,15 @@ 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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() @@ -19658,6 +22861,49 @@ // response from `SubmitAccountSelection`: WorkItems fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) } +- path: /work-items/{id}/forward + method: Post + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/beta/methods/work-items#submit-forward-work-item + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item + data := []byte(`{ + "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", + "comment" : "I'm going on vacation.", + "sendNotifications" : true + }`) // WorkItemForward | + + + var workItemForward beta.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + + + 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) + } + } - path: /reassignment-configurations method: Post xCodeSample: @@ -19670,18 +22916,28 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configurationItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | + + + var configurationItemRequest beta.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19706,6 +22962,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19714,6 +22971,9 @@ identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id configType := // ConfigTypeEnum | # ConfigTypeEnum | + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() @@ -19735,6 +22995,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,6 +23005,9 @@ configType := accessRequests // ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type exclusionFilters := fmt.Sprintf(`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) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).Execute() @@ -19767,12 +23031,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() @@ -19796,6 +23064,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19803,6 +23072,9 @@ func main() { identityId := `2c91808781a71ddb0181b9090b5c504f` // string | unique identity id # string | unique identity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() @@ -19826,12 +23098,16 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() @@ -19855,6 +23131,7 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19863,6 +23140,9 @@ 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) resp, r, err := apiClient.Beta.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Execute() @@ -19886,19 +23166,29 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id - configurationItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | + + + var configurationItemRequest beta.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19923,16 +23213,26 @@ "context" "fmt" "os" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tenantConfigurationRequest := fmt.Sprintf(`{ + data := []byte(`{ "configDetails" : { "disabled" : true } - }`) # TenantConfigurationRequest | + }`) // TenantConfigurationRequest | + + + var tenantConfigurationRequest beta.TenantConfigurationRequest + if err := json.Unmarshal(data, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) diff --git a/static/code-examples/v2024/go_code_examples_overlay.yaml b/static/code-examples/v2024/go_code_examples_overlay.yaml index 515c9b038..f49f3dca0 100644 --- a/static/code-examples/v2024/go_code_examples_overlay.yaml +++ b/static/code-examples/v2024/go_code_examples_overlay.yaml @@ -10,6 +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" ) @@ -18,6 +19,9 @@ 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) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -41,6 +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" ) @@ -50,6 +55,9 @@ 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) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() @@ -73,6 +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" ) @@ -81,6 +90,9 @@ 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) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -104,6 +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" ) @@ -112,6 +125,9 @@ 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) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -135,12 +151,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -225,7 +242,16 @@ "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | + + + var accessProfile v2024.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -250,6 +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" ) @@ -257,6 +284,9 @@ 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) r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -278,15 +308,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | + + + var accessProfileBulkDeleteRequest v2024.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -311,6 +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" ) @@ -318,6 +359,9 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -341,6 +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" ) @@ -353,6 +398,9 @@ 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) resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() @@ -376,6 +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" ) @@ -390,6 +439,9 @@ 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) resp, r, err := apiClient.V2024.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() @@ -413,6 +465,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -421,6 +474,15 @@ id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -444,6 +506,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -452,6 +515,15 @@ 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 := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | + + var accessProfileBulkUpdateRequestInner v2024.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(data, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() @@ -475,13 +547,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -489,7 +562,10 @@ "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. (optional) + }`) // CommentDto | Reviewer's comment. (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -514,16 +590,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + data := []byte(`{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. + + + var forwardApprovalDto v2024.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -548,6 +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" ) @@ -556,6 +643,9 @@ 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) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() @@ -579,6 +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" ) @@ -589,6 +680,9 @@ 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) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Execute() @@ -612,6 +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" ) @@ -624,6 +719,9 @@ 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) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() @@ -647,6 +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" ) @@ -659,6 +758,9 @@ 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) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() @@ -682,13 +784,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -696,7 +799,16 @@ "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. + + + var commentDto v2024.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -721,6 +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" ) @@ -730,6 +843,9 @@ 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) resp, r, err := apiClient.V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() @@ -753,15 +869,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkApproveAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "I approve these request items", "approvalIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ] - }`) # BulkApproveAccessRequest | + }`) // BulkApproveAccessRequest | + + + var bulkApproveAccessRequest v2024.BulkApproveAccessRequest + if err := json.Unmarshal(data, &bulkApproveAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -786,15 +912,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | + + + var cancelAccessRequest v2024.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -819,15 +955,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkCancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ], "comment" : "I requested this role by mistake." - }`) # BulkCancelAccessRequest | + }`) // BulkCancelAccessRequest | + + + var bulkCancelAccessRequest v2024.BulkCancelAccessRequest + if err := json.Unmarshal(data, &bulkCancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -852,18 +998,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - closeAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." - }`) # CloseAccessRequest | + }`) // CloseAccessRequest | + + + var closeAccessRequest v2024.CloseAccessRequest + if err := json.Unmarshal(data, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -888,12 +1044,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -1083,7 +1240,16 @@ "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | + + + var accessRequest v2024.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1108,12 +1274,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -1137,6 +1307,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1153,6 +1324,9 @@ 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) resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() @@ -1176,6 +1350,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1192,6 +1367,9 @@ 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) resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).Execute() @@ -1215,12 +1393,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountsSelectionRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -1283,7 +1462,16 @@ "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ] - }`) # AccountsSelectionRequest | + }`) // AccountsSelectionRequest | + + + var accountsSelectionRequest v2024.AccountsSelectionRequest + if err := json.Unmarshal(data, &accountsSelectionRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1308,12 +1496,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -1331,14 +1520,30 @@ }, "autoApprovalEnabled" : true, "entitlementRequestConfig" : { - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | + + + var accessRequestConfig v2024.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1363,6 +1568,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,6 +1576,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -1393,6 +1602,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1407,6 +1617,9 @@ 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) resp, r, err := apiClient.V2024.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() @@ -1430,6 +1643,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1438,6 +1652,9 @@ 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) resp, r, err := apiClient.V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1461,12 +1678,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -1475,7 +1693,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | + + + var accountAttributesCreate v2024.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1500,6 +1727,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1507,6 +1735,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1530,6 +1761,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1538,6 +1770,9 @@ 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) resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1561,16 +1796,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest v2024.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1595,6 +1840,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1603,6 +1849,9 @@ 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) resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1626,15 +1875,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | + + + var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1659,16 +1918,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest v2024.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1693,6 +1962,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1701,6 +1971,9 @@ 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) resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1724,15 +1997,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | + + + var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1757,6 +2040,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1764,6 +2048,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -1787,6 +2074,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1797,6 +2085,9 @@ 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) resp, r, err := apiClient.V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() @@ -1820,6 +2111,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1832,6 +2124,9 @@ 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) resp, r, err := apiClient.V2024.AccountsAPI.ListAccounts(context.Background()).Execute() @@ -1855,13 +2150,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -1869,7 +2165,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | + + + var accountAttributes v2024.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1894,6 +2199,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1901,6 +2207,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -1924,17 +2233,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | + + + var accountUnlockRequest v2024.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1959,6 +2278,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1967,6 +2287,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -1990,6 +2319,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2001,6 +2331,9 @@ 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) resp, r, err := apiClient.V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() @@ -2024,6 +2357,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2035,6 +2369,9 @@ 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) resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() @@ -2058,12 +2395,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -2087,6 +2428,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2094,6 +2436,9 @@ 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) r, err := apiClient.V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -2115,6 +2460,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2123,6 +2469,9 @@ 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) resp, r, err := apiClient.V2024.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2146,6 +2495,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2156,6 +2506,9 @@ 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) resp, r, err := apiClient.V2024.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2179,13 +2532,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppCreateDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -2194,7 +2548,16 @@ "type" : "SOURCE" }, "matchAllAccounts" : true - }`) # SourceAppCreateDto | + }`) // SourceAppCreateDto | + + + var sourceAppCreateDto v2024.SourceAppCreateDto + if err := json.Unmarshal(data, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2219,6 +2582,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2229,6 +2593,15 @@ requestBody := fmt.Sprintf(`[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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -2252,6 +2625,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2260,6 +2634,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2283,6 +2660,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2291,6 +2669,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2314,6 +2695,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2325,6 +2707,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2348,6 +2733,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2360,6 +2746,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2383,6 +2772,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2394,6 +2784,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2417,6 +2810,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2429,6 +2823,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2452,6 +2849,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2462,6 +2860,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2485,6 +2886,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2497,6 +2899,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2520,6 +2925,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2531,6 +2937,9 @@ 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) resp, r, err := apiClient.V2024.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2554,6 +2963,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2563,6 +2973,9 @@ 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 := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2586,6 +2999,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2595,6 +3009,9 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2618,13 +3035,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -2635,7 +3053,10 @@ "path" : "/matchAllAccounts", "value" : false } ] - }`) # SourceAppBulkUpdateRequest | (optional) + }`) // SourceAppBulkUpdateRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2658,6 +3079,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2666,6 +3088,9 @@ 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) resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2689,6 +3114,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2696,6 +3122,9 @@ 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) resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2719,6 +3148,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2728,6 +3158,15 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2751,6 +3190,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2758,6 +3198,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() @@ -2781,6 +3224,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2789,6 +3233,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2812,6 +3265,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,6 +3280,9 @@ 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) resp, r, err := apiClient.V2024.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() @@ -2849,6 +3306,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2856,6 +3314,9 @@ 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) r, err := apiClient.V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() @@ -2877,6 +3338,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2884,6 +3346,9 @@ 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) resp, r, err := apiClient.V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() @@ -2907,12 +3372,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() @@ -2936,6 +3405,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2951,6 +3421,9 @@ 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) resp, r, err := apiClient.V2024.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() @@ -2974,12 +3447,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -2996,7 +3470,16 @@ "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | + }`) // CampaignFilterDetails | + + + var campaignFilterDetails v2024.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3021,6 +3504,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3028,6 +3512,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | A json list of IDs of campaign filters to delete. + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() @@ -3049,6 +3542,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3056,6 +3550,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() @@ -3079,6 +3576,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3088,6 +3586,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() @@ -3111,13 +3612,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { filterId := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -3134,7 +3636,16 @@ "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | A campaign filter details with updated field values. + }`) // CampaignFilterDetails | A campaign filter details with updated field values. + + + var campaignFilterDetails v2024.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3159,15 +3670,19 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - campaignCompleteOptions := fmt.Sprintf(`{ + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3192,12 +3707,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -3306,7 +3822,16 @@ "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | + + + var campaign v2024.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3331,13 +3856,14 @@ "context" "fmt" "os" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -3461,7 +3987,16 @@ "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | + + + var campaignTemplate v2024.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3486,6 +4021,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3493,6 +4029,9 @@ 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) r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -3514,6 +4053,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3521,6 +4061,9 @@ 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) r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -3542,14 +4085,24 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignsDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # CampaignsDeleteRequest | IDs of the campaigns to delete. + }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. + + + var campaignsDeleteRequest v2024.CampaignsDeleteRequest + if err := json.Unmarshal(data, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3574,6 +4127,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3586,6 +4140,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() @@ -3609,6 +4166,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3617,6 +4175,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() @@ -3640,6 +4201,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3647,6 +4209,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -3670,12 +4235,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -3699,6 +4268,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3706,6 +4276,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -3729,6 +4302,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3736,6 +4310,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -3759,6 +4336,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3770,6 +4348,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() @@ -3793,20 +4374,30 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | + + + var adminReviewReassign v2024.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3831,6 +4422,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3839,6 +4431,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3862,14 +4463,24 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. + + + var campaignReportsConfig v2024.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3894,13 +4505,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -3919,7 +4531,10 @@ }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3942,15 +4557,19 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + data := []byte(`{ "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) + }`) // 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) @@ -3975,6 +4594,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3982,6 +4602,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -4005,6 +4628,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4013,6 +4637,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -4036,6 +4663,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4043,6 +4671,9 @@ 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) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -4066,6 +4697,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4074,6 +4706,15 @@ id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4097,6 +4738,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4104,6 +4746,9 @@ func main() { id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() @@ -4127,6 +4772,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4134,6 +4780,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() @@ -4157,6 +4806,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4169,6 +4819,9 @@ 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) resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() @@ -4192,6 +4845,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4203,6 +4857,9 @@ 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) resp, r, err := apiClient.V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() @@ -4226,6 +4883,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4238,6 +4896,9 @@ 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) resp, r, err := apiClient.V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() @@ -4261,6 +4922,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4276,6 +4938,9 @@ 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) resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() @@ -4299,6 +4964,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4311,6 +4977,9 @@ 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) resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() @@ -4334,6 +5003,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4342,6 +5012,15 @@ 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 := fmt.Sprintf(`[{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(data, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() @@ -4365,13 +5044,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -4381,7 +5061,16 @@ "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | + + + var reviewReassign v2024.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4406,6 +5095,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4413,6 +5103,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() @@ -4436,13 +5129,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -4452,7 +5146,16 @@ "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | + + + var reviewReassign v2024.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4477,6 +5180,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4490,6 +5194,9 @@ 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) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() @@ -4513,6 +5220,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4521,6 +5229,9 @@ 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) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() @@ -4544,6 +5255,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4556,6 +5268,9 @@ 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) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() @@ -4579,6 +5294,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4587,6 +5303,9 @@ 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) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() @@ -4610,14 +5329,24 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deployRequest := fmt.Sprintf(`{ + data := []byte(`{ "draftId" : "3d0fe04b-57df-4a46-a83b-8f04b0f9d10b" - }`) # DeployRequest | The deploy request body. + }`) // DeployRequest | The deploy request body. + + + var deployRequest v2024.DeployRequest + if err := json.Unmarshal(data, &deployRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4642,19 +5371,29 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingRequest := fmt.Sprintf(`{ + data := []byte(`{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" - }`) # ObjectMappingRequest | The object mapping request body. + }`) // ObjectMappingRequest | The object mapping request body. + + + var objectMappingRequest v2024.ObjectMappingRequest + if err := json.Unmarshal(data, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4679,13 +5418,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingBulkCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -4699,7 +5439,16 @@ "enabled" : false, "objectType" : "IDENTITY" } ] - }`) # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + + + var objectMappingBulkCreateRequest v2024.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(data, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4724,12 +5473,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionPayload := fmt.Sprintf(`{ + data := []byte(`{ "cronString" : "0 0 12 * * * *", "timeZoneId" : "America/Chicago", "startTime" : "2024-08-16T14:16:58.389Z", @@ -4751,7 +5501,16 @@ }, "sourceBackupId" : "5678b87d-48ca-439a-868f-2160001da8c2" } - }`) # ScheduledActionPayload | The scheduled action creation request body. + }`) // ScheduledActionPayload | The scheduled action creation request body. + + + var scheduledActionPayload v2024.ScheduledActionPayload + if err := json.Unmarshal(data, &scheduledActionPayload); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4776,6 +5535,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4784,6 +5544,9 @@ 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) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() @@ -4807,6 +5570,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4814,6 +5578,9 @@ 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) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() @@ -4835,6 +5602,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4842,6 +5610,9 @@ 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) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() @@ -4863,6 +5634,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4871,6 +5643,9 @@ 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) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() @@ -4892,6 +5667,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,6 +5675,9 @@ 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) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() @@ -4920,6 +5699,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4927,6 +5707,9 @@ 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) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() @@ -4948,6 +5731,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4955,6 +5739,9 @@ 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) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() @@ -4978,6 +5765,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4985,6 +5773,9 @@ 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) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() @@ -5008,6 +5799,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5015,6 +5807,9 @@ 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) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() @@ -5038,6 +5833,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5045,6 +5841,9 @@ 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) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListBackups(context.Background()).Execute() @@ -5068,12 +5867,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() @@ -5097,6 +5900,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5104,6 +5908,9 @@ 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) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDrafts(context.Background()).Execute() @@ -5127,12 +5934,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() @@ -5156,6 +5967,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5163,6 +5975,9 @@ 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) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() @@ -5186,13 +6001,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingBulkPatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -5205,7 +6021,16 @@ "value" : "New Target Value" } ] } - }`) # ObjectMappingBulkPatchRequest | The object mapping request body. + }`) // ObjectMappingBulkPatchRequest | The object mapping request body. + + + var objectMappingBulkPatchRequest v2024.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(data, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5230,13 +6055,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -5246,7 +6072,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. + }`) // JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. + + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5271,14 +6106,24 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorCustomizerCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerCreateRequest | Connector customizer to create. + }`) // ConnectorCustomizerCreateRequest | Connector customizer to create. + + + var connectorCustomizerCreateRequest v2024.ConnectorCustomizerCreateRequest + if err := json.Unmarshal(data, &connectorCustomizerCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5303,6 +6148,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5310,6 +6156,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() @@ -5333,6 +6182,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5340,6 +6190,9 @@ 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) r, err := apiClient.V2024.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() @@ -5361,6 +6214,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5368,6 +6222,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() @@ -5391,6 +6248,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5399,6 +6257,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Execute() @@ -5422,15 +6283,19 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to update. # string | ID of the connector customizer to update. - connectorCustomizerUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5455,12 +6320,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorRuleCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -5485,7 +6351,16 @@ "description" : "This rule does that", "attributes" : { }, "type" : "BuildMap" - }`) # ConnectorRuleCreateRequest | Connector rule to create. + }`) // ConnectorRuleCreateRequest | Connector rule to create. + + + var connectorRuleCreateRequest v2024.ConnectorRuleCreateRequest + if err := json.Unmarshal(data, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5510,6 +6385,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5517,6 +6393,9 @@ 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) r, err := apiClient.V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() @@ -5538,6 +6417,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5545,6 +6425,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() @@ -5568,6 +6451,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5577,6 +6461,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() @@ -5600,13 +6487,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to update. # string | ID of the connector rule to update. - connectorRuleUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -5632,7 +6520,10 @@ "attributes" : { }, "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" - }`) # ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5657,15 +6548,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceCode := fmt.Sprintf(`{ + data := []byte(`{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" - }`) # SourceCode | Code to validate. + }`) // SourceCode | Code to validate. + + + var sourceCode v2024.SourceCode + if err := json.Unmarshal(data, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5690,18 +6591,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - v3CreateConnectorDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" - }`) # V3CreateConnectorDto | + }`) // V3CreateConnectorDto | + + + var v3CreateConnectorDto v2024.V3CreateConnectorDto + if err := json.Unmarshal(data, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5726,6 +6637,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5733,6 +6645,9 @@ 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) r, err := apiClient.V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() @@ -5754,6 +6669,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5762,6 +6678,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() @@ -5785,6 +6704,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5792,6 +6712,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() @@ -5815,6 +6738,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5826,6 +6750,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorList(context.Background()).Execute() @@ -5849,6 +6776,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5856,6 +6784,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() @@ -5879,6 +6810,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5886,6 +6818,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() @@ -5909,6 +6844,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5917,6 +6853,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -5940,6 +6879,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5948,6 +6888,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() @@ -5971,6 +6914,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5979,6 +6923,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() @@ -6002,6 +6949,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6010,6 +6958,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() @@ -6033,6 +6984,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6041,6 +6993,9 @@ 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) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -6064,6 +7019,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6072,6 +7028,15 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | A list of connector detail update operations + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6095,12 +7060,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -6210,7 +7176,10 @@ }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6235,12 +7204,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -6248,7 +7218,10 @@ "id" : "00000000-0000-0000-0000-000000000000", "type" : "action", "versionNumber" : 1 - }`) # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6273,6 +7246,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6281,6 +7255,9 @@ 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) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() @@ -6304,12 +7281,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "formInput" : { "input1" : "Sales" }, @@ -6329,7 +7307,10 @@ "formDefinitionId" : "00000000-0000-0000-0000-000000000000", "state" : "ASSIGNED", "ttl" : 1571827560 - }`) # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6354,6 +7335,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6361,6 +7343,9 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() @@ -6384,6 +7369,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6394,6 +7380,9 @@ 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) resp, r, err := apiClient.V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() @@ -6417,6 +7406,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6425,6 +7415,9 @@ 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) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() @@ -6448,6 +7441,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6455,6 +7449,9 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() @@ -6478,6 +7475,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6485,6 +7483,9 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() @@ -6508,6 +7509,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6516,6 +7518,9 @@ 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) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() @@ -6539,6 +7544,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6546,6 +7552,9 @@ func main() { body := fmt.Sprintf(`[{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) resp, r, err := apiClient.V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() @@ -6569,6 +7578,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6577,6 +7587,9 @@ formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID body := fmt.Sprintf(`[{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) resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() @@ -6600,6 +7613,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6608,6 +7622,9 @@ formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID body := fmt.Sprintf(`[{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) resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() @@ -6631,6 +7648,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6641,6 +7659,9 @@ 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) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() @@ -6664,6 +7685,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6675,6 +7697,9 @@ 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) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() @@ -6698,12 +7723,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() @@ -6727,12 +7756,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() @@ -6756,6 +7789,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6765,7 +7799,7 @@ limit := 10 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) 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 := `ac` // 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) - formElementPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -6775,7 +7809,10 @@ }, "dataSourceType" : "STATIC" } - }`) # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6800,17 +7837,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - customPasswordInstruction := fmt.Sprintf(`{ + data := []byte(`{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" - }`) # CustomPasswordInstruction | + }`) // CustomPasswordInstruction | + + + var customPasswordInstruction v2024.CustomPasswordInstruction + if err := json.Unmarshal(data, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6835,6 +7882,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6844,6 +7892,9 @@ 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) r, err := apiClient.V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -6865,6 +7916,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6874,6 +7926,9 @@ 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) resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -6897,12 +7952,22 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - dataSegment := fmt.Sprintf(``) # DataSegment | + data := []byte(``) // DataSegment | + + + var dataSegment v2024.DataSegment + if err := json.Unmarshal(data, &dataSegment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6927,6 +7992,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6936,6 +8002,9 @@ 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) r, err := apiClient.V2024.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -6957,6 +8026,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6965,6 +8035,9 @@ 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) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -6988,6 +8061,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,6 +8070,9 @@ 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) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7019,6 +8096,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7027,6 +8105,9 @@ 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) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7050,6 +8131,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7064,6 +8146,9 @@ 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) resp, r, err := apiClient.V2024.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7087,6 +8172,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7096,6 +8182,15 @@ 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 := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -7119,6 +8214,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7128,6 +8224,15 @@ requestBody := fmt.Sprintf(``) // []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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -7149,13 +8254,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. - dimension := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -7241,7 +8347,16 @@ "type" : "STANDARD" }, "parentId" : "2c918086749d78830174a1a40e121518" - }`) # Dimension | + }`) // Dimension | + + + var dimension v2024.Dimension + if err := json.Unmarshal(data, &dimension); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7266,15 +8381,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimensions. # string | Parent Role Id of the dimensions. - dimensionBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "dimensionIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # DimensionBulkDeleteRequest | + }`) // DimensionBulkDeleteRequest | + + + var dimensionBulkDeleteRequest v2024.DimensionBulkDeleteRequest + if err := json.Unmarshal(data, &dimensionBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7299,6 +8424,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7307,6 +8433,9 @@ 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) r, err := apiClient.V2024.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() @@ -7328,6 +8457,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7336,6 +8466,9 @@ 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) resp, r, err := apiClient.V2024.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() @@ -7359,6 +8492,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7372,6 +8506,9 @@ 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) resp, r, err := apiClient.V2024.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Execute() @@ -7395,6 +8532,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7408,6 +8546,9 @@ 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) resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Execute() @@ -7431,6 +8572,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7444,6 +8586,9 @@ 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) resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensions(context.Background(), roleId).Execute() @@ -7467,6 +8612,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7476,6 +8622,15 @@ dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7499,6 +8654,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7509,6 +8665,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7532,6 +8691,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7542,6 +8702,9 @@ 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) r, err := apiClient.V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7563,6 +8726,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7571,6 +8735,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7594,6 +8761,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7602,6 +8770,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7625,6 +8796,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7634,6 +8806,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7657,6 +8832,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7670,6 +8846,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7693,6 +8872,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7706,6 +8886,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7729,6 +8912,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7745,6 +8929,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7768,6 +8955,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7777,6 +8965,9 @@ 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 := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7800,6 +8991,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7807,12 +8999,28 @@ func main() { id := `2c91808a7813090a017814121e121518` // 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") - entitlementRequestConfig := fmt.Sprintf(`{ - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" - }`) # EntitlementRequestConfig | + data := []byte(`{ + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } + }`) // EntitlementRequestConfig | + + + var entitlementRequestConfig v2024.EntitlementRequestConfig + if err := json.Unmarshal(data, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7837,6 +9045,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7845,6 +9054,9 @@ 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) resp, r, err := apiClient.V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7868,13 +9080,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - entitlementBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -7885,7 +9098,16 @@ "path" : "/requestable", "value" : false } ] - }`) # EntitlementBulkUpdateRequest | + }`) // EntitlementBulkUpdateRequest | + + + var entitlementBulkUpdateRequest v2024.EntitlementBulkUpdateRequest + if err := json.Unmarshal(data, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7908,16 +9130,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - networkConfiguration := fmt.Sprintf(`{ + data := []byte(`{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "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. + }`) // 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(data, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7942,12 +9174,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() @@ -7971,12 +9207,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() @@ -8000,12 +9240,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() @@ -8029,12 +9273,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() @@ -8058,6 +9306,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8065,6 +9314,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8088,6 +9346,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8095,6 +9354,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8118,6 +9386,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8125,6 +9394,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8148,6 +9426,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8155,6 +9434,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8178,13 +9466,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupDto := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -8199,7 +9488,16 @@ "description" : "Description of the Governance Group", "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" - }`) # WorkgroupDto | + }`) // WorkgroupDto | + + + var workgroupDto v2024.WorkgroupDto + if err := json.Unmarshal(data, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8224,6 +9522,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8232,6 +9531,9 @@ 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) r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8253,6 +9555,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8262,6 +9565,15 @@ 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 := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. + + var identityPreviewResponseIdentity v2024.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -8285,15 +9597,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] - }`) # WorkgroupBulkDeleteRequest | + }`) // WorkgroupBulkDeleteRequest | + + + var workgroupBulkDeleteRequest v2024.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(data, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8318,6 +9640,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8326,6 +9649,9 @@ 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) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8349,6 +9675,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8361,6 +9688,9 @@ 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) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8384,6 +9714,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8396,6 +9727,9 @@ 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) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8419,6 +9753,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8431,6 +9766,9 @@ 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) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8454,6 +9792,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8463,6 +9802,9 @@ 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 := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8486,6 +9828,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8495,6 +9838,15 @@ 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 := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. + + var identityPreviewResponseIdentity v2024.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -8518,19 +9870,29 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8555,19 +9917,29 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8592,19 +9964,29 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8629,6 +10011,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8637,6 +10020,15 @@ 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 := fmt.Sprintf(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. + + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -8660,6 +10052,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8674,6 +10067,9 @@ 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) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8697,6 +10093,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8704,6 +10101,9 @@ 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) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8727,6 +10127,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8739,6 +10140,9 @@ 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) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8762,6 +10166,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8774,6 +10179,9 @@ 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) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8797,6 +10205,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,6 +10218,9 @@ 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) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8832,20 +10244,30 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - accessRequestRecommendationConfigDto := fmt.Sprintf(`{ + data := []byte(`{ "scoreThreshold" : 0.5, "startDateAttribute" : "startDate", "restrictionAttribute" : "location", "moverAttribute" : "isMover", "joinerAttribute" : "isJoiner", "useRestrictionAttribute" : true - }`) # AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. + }`) // AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. + + + var accessRequestRecommendationConfigDto v2024.AccessRequestRecommendationConfigDto + if err := json.Unmarshal(data, &accessRequestRecommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8870,13 +10292,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - commonAccessItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -8886,7 +10309,16 @@ "ownerId" : "ownerId" }, "status" : "CONFIRMED" - }`) # CommonAccessItemRequest | + }`) // CommonAccessItemRequest | + + + var commonAccessItemRequest v2024.CommonAccessItemRequest + if err := json.Unmarshal(data, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8911,6 +10343,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8923,6 +10356,9 @@ 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) resp, r, err := apiClient.V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8946,6 +10382,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8954,6 +10391,15 @@ 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 := fmt.Sprintf(``) // []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(data, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() @@ -8977,6 +10423,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8985,6 +10432,9 @@ 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) resp, r, err := apiClient.V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9008,6 +10458,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9020,6 +10471,9 @@ 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) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9043,6 +10497,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9056,6 +10511,9 @@ 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) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9079,6 +10537,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9087,6 +10546,9 @@ 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) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9110,6 +10572,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9118,6 +10581,9 @@ 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) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9141,6 +10607,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9154,6 +10621,9 @@ 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) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9177,6 +10647,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9185,6 +10656,15 @@ 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 := fmt.Sprintf(``) // []string | + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -9206,6 +10686,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9220,6 +10701,9 @@ 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) resp, r, err := apiClient.V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9243,6 +10727,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9251,6 +10736,15 @@ 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 := fmt.Sprintf(``) // []string | + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -9272,6 +10766,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,6 +10778,9 @@ 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) resp, r, err := apiClient.V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9306,13 +10804,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -9330,7 +10829,16 @@ } ], "includeTranslationMessages" : false, "includeDebugInformation" : true - }`) # RecommendationRequestDto | + }`) // RecommendationRequestDto | + + + var recommendationRequestDto v2024.RecommendationRequestDto + if err := json.Unmarshal(data, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9355,6 +10863,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9362,6 +10871,9 @@ 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) resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9385,18 +10897,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationConfigDto := fmt.Sprintf(`{ + data := []byte(`{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false - }`) # RecommendationConfigDto | + }`) // RecommendationConfigDto | + + + var recommendationConfigDto v2024.RecommendationConfigDto + if err := json.Unmarshal(data, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9421,6 +10943,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9431,13 +10954,16 @@ 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") minEntitlementPopularity := 56 // int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) - roleMiningPotentialRoleProvisionRequest := fmt.Sprintf(`{ + data := []byte(`{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false - }`) # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9462,13 +10988,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - roleMiningSessionDto := fmt.Sprintf(`{ + data := []byte(`{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -9499,7 +11026,16 @@ "minNumIdentitiesInPotentialRole" : 20, "identityCount" : 0, "type" : "SPECIALIZED" - }`) # RoleMiningSessionDto | Role mining session parameters + }`) // RoleMiningSessionDto | Role mining session parameters + + + var roleMiningSessionDto v2024.RoleMiningSessionDto + if err := json.Unmarshal(data, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9524,6 +11060,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,6 +11071,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9557,6 +11097,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9566,6 +11107,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9589,6 +11133,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9597,10 +11142,13 @@ sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id 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 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") - roleMiningPotentialRoleExportRequest := fmt.Sprintf(`{ + data := []byte(`{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true - }`) # RoleMiningPotentialRoleExportRequest | (optional) + }`) // RoleMiningPotentialRoleExportRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9625,6 +11173,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9635,6 +11184,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9658,6 +11210,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9670,6 +11223,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9693,6 +11249,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9703,6 +11260,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9726,6 +11286,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9741,6 +11302,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9764,6 +11328,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9778,6 +11343,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9801,6 +11369,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9815,6 +11384,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9838,6 +11410,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9847,6 +11420,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9870,6 +11446,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9883,6 +11460,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9906,6 +11486,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9919,6 +11500,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9942,6 +11526,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9955,6 +11540,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9978,6 +11566,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9991,6 +11580,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10014,6 +11606,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10022,6 +11615,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10045,6 +11641,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10053,6 +11650,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10076,6 +11676,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10084,6 +11685,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10107,6 +11711,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10119,6 +11724,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10142,6 +11750,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10153,6 +11762,9 @@ 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) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10176,6 +11788,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10186,6 +11799,15 @@ 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 := fmt.Sprintf(`[{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(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -10209,6 +11831,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10219,6 +11842,15 @@ 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 := fmt.Sprintf(`[{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(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -10242,6 +11874,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10251,6 +11884,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -10274,6 +11916,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10282,10 +11925,19 @@ 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 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") - roleMiningPotentialRoleEditEntitlements := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "entId1", "entId2" ], "exclude" : true - }`) # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + + + var roleMiningPotentialRoleEditEntitlements v2024.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(data, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10310,6 +11962,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10319,6 +11972,9 @@ 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) r, err := apiClient.V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10340,6 +11996,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10350,6 +12007,9 @@ 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) resp, r, err := apiClient.V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() @@ -10373,6 +12033,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10381,6 +12042,9 @@ 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) r, err := apiClient.V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10402,6 +12066,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10410,6 +12075,9 @@ 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) resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10433,6 +12101,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10441,6 +12110,9 @@ 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) resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10464,6 +12136,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10473,6 +12146,9 @@ 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) resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10496,6 +12172,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10506,6 +12183,9 @@ 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) resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10529,6 +12209,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10542,6 +12223,9 @@ 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) resp, r, err := apiClient.V2024.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10565,6 +12249,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10573,6 +12258,9 @@ 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) r, err := apiClient.V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10594,6 +12282,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10601,10 +12290,19 @@ 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 := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - sendAccountVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" - }`) # SendAccountVerificationRequest | + }`) // SendAccountVerificationRequest | + + + var sendAccountVerificationRequest v2024.SendAccountVerificationRequest + if err := json.Unmarshal(data, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10627,16 +12325,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - inviteIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false - }`) # InviteIdentitiesRequest | + }`) // InviteIdentitiesRequest | + + + var inviteIdentitiesRequest v2024.InviteIdentitiesRequest + if err := json.Unmarshal(data, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10661,15 +12369,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - processIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] - }`) # ProcessIdentitiesRequest | + }`) // ProcessIdentitiesRequest | + + + var processIdentitiesRequest v2024.ProcessIdentitiesRequest + if err := json.Unmarshal(data, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10694,6 +12412,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10702,6 +12421,9 @@ 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) resp, r, err := apiClient.V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10725,13 +12447,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttribute := fmt.Sprintf(`{ + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -10752,7 +12475,16 @@ "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | + + + var identityAttribute v2024.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10777,6 +12509,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10785,6 +12518,9 @@ 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) r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10806,15 +12542,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttributeNames := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "name", "displayName" ] - }`) # IdentityAttributeNames | + }`) // IdentityAttributeNames | + + + var identityAttributeNames v2024.IdentityAttributeNames + if err := json.Unmarshal(data, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10837,6 +12583,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10845,6 +12592,9 @@ 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) resp, r, err := apiClient.V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10868,6 +12618,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10879,6 +12630,9 @@ 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) resp, r, err := apiClient.V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10902,6 +12656,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10909,7 +12664,7 @@ 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") - identityAttribute := fmt.Sprintf(`{ + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -10930,7 +12685,16 @@ "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | + + + var identityAttribute v2024.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10955,6 +12719,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10969,6 +12734,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10992,6 +12760,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11007,6 +12776,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11030,6 +12802,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11038,6 +12811,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11061,6 +12837,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11075,6 +12852,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11098,6 +12878,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11107,6 +12888,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11130,6 +12914,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11144,6 +12929,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11167,6 +12955,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11175,6 +12964,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11198,6 +12990,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11210,6 +13003,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11233,6 +13029,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11245,6 +13042,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11268,6 +13068,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11278,6 +13079,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11301,6 +13105,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11314,6 +13119,9 @@ 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) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11337,12 +13145,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -11390,7 +13199,16 @@ "name" : "aName", "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | + + + var identityProfile v2024.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11415,6 +13233,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11422,6 +13241,9 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -11445,6 +13267,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11452,6 +13275,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. + + var requestBody v2024.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -11475,6 +13307,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11486,6 +13319,9 @@ 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) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() @@ -11509,13 +13345,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -11541,7 +13378,16 @@ } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. + + + var identityPreviewRequest v2024.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11566,6 +13412,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11573,6 +13420,9 @@ 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) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -11596,6 +13446,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11603,6 +13454,9 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -11626,6 +13480,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11633,6 +13488,15 @@ func main() { identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. + + var identityProfileExportedObject v2024.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -11656,6 +13520,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11667,6 +13532,9 @@ 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) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() @@ -11690,6 +13558,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11697,6 +13566,9 @@ 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) resp, r, err := apiClient.V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -11720,6 +13592,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11728,6 +13601,15 @@ identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11751,13 +13633,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - lifecycleState := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -11781,7 +13664,16 @@ "technicalName" : "Technical Name", "identityState" : "identityState", "enabled" : true - }`) # LifecycleState | Lifecycle state to be created. + }`) // LifecycleState | Lifecycle state to be created. + + + var lifecycleState v2024.LifecycleState + if err := json.Unmarshal(data, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11806,6 +13698,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11814,6 +13707,9 @@ 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) resp, r, err := apiClient.V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -11837,6 +13733,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11845,6 +13742,9 @@ 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) resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -11868,6 +13768,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11879,6 +13780,9 @@ 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) resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() @@ -11902,13 +13806,23 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. - setLifecycleStateRequest := fmt.Sprintf(``) # SetLifecycleStateRequest | + data := []byte(``) // SetLifecycleStateRequest | + + + var setLifecycleStateRequest v2024.SetLifecycleStateRequest + if err := json.Unmarshal(data, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11933,6 +13847,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11942,6 +13857,15 @@ lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11953,6 +13877,231 @@ // response from `UpdateLifecycleStates`: LifecycleState fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) } +- path: /accounts/{id}/classify + method: Post + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-account-classify#send-classify-machine-account + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + 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) + 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) + } +- path: /sources/{sourceId}/machine-account-mappings + method: Post + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-account-mappings#create-machine-account-mappings + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + data := []byte(`{ + "transformDefinition" : { + "attributes" : { + "input" : { + "attributes" : { + "name" : "8d3e0094e99445de98eef6c75e25jc04", + "attributeName" : "givenName", + "sourceName" : "delimited-src" + }, + "type" : "accountAttribute" + } + }, + "id" : "ToUpper", + "type" : "reference" + }, + "target" : { + "sourceId" : "2c9180835d2e5168015d32f890ca1581", + "attributeName" : "businessApplication", + "type" : "IDENTITY" + } + }`) // AttributeMappings | + + + var attributeMappings v2024.AttributeMappings + if err := json.Unmarshal(data, &attributeMappings); err != nil { + fmt.Println("Error:", err) + return + } + + + + 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) + } +- path: /sources/{sourceId}/machine-account-mappings + method: Delete + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-account-mappings#delete-machine-account-mappings + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | source ID. # string | source ID. + + + + + 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) + } + } +- path: /sources/{sourceId}/machine-account-mappings + method: Get + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-account-mappings#list-machine-account-mappings + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID # string | Source ID + 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) + 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) + } +- path: /sources/{sourceId}/machine-mappings + method: Put + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-account-mappings#set-machine-account-mappings + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + data := []byte(`{ + "transformDefinition" : { + "attributes" : { + "input" : { + "attributes" : { + "name" : "8d3e0094e99445de98eef6c75e25jc04", + "attributeName" : "givenName", + "sourceName" : "delimited-src" + }, + "type" : "accountAttribute" + } + }, + "id" : "ToUpper", + "type" : "reference" + }, + "target" : { + "sourceId" : "2c9180835d2e5168015d32f890ca1581", + "attributeName" : "businessApplication", + "type" : "IDENTITY" + } + }`) // AttributeMappings | + + + var attributeMappings v2024.AttributeMappings + if err := json.Unmarshal(data, &attributeMappings); err != nil { + fmt.Println("Error:", err) + return + } + + + + 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) + } - path: /machine-accounts/{id} method: Get xCodeSample: @@ -11965,6 +14114,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11973,6 +14123,9 @@ 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) resp, r, err := apiClient.V2024.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11996,6 +14149,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12008,6 +14162,9 @@ 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) resp, r, err := apiClient.V2024.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12031,6 +14188,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12040,6 +14198,15 @@ 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 := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -12051,6 +14218,119 @@ // response from `UpdateMachineAccount`: MachineAccount fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.UpdateMachineAccount`: %v\n", resp) } +- path: /sources/{sourceId}/machine-classification-config + method: Delete + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-classification-config#delete-machine-classification-config + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + + + + + 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) + } + } +- path: /sources/{sourceId}/machine-classification-config + method: Get + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-classification-config#get-machine-classification-config + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID # string | Source ID + + + + + 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) + } +- path: /sources/{sourceId}/machine-classification-config + method: Put + xCodeSample: + - lang: Go + label: SDK_tools/sdk/go/v2024/methods/machine-classification-config#set-machine-classification-config + source: | + package main + + import ( + "context" + "fmt" + "os" + "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" + ) + + func main() { + id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. + data := []byte(`{ + "criteria" : "criteria", + "created" : "2017-07-11T18:45:37.098Z", + "modified" : "2018-06-25T20:22:28.104Z", + "classificationMethod" : "SOURCE", + "enabled" : true + }`) // MachineClassificationConfig | + + + var machineClassificationConfig v2024.MachineClassificationConfig + if err := json.Unmarshal(data, &machineClassificationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + + + 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) + } - path: /machine-identities method: Post xCodeSample: @@ -12063,13 +14343,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - machineIdentity := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2015-05-28T14:07:17Z", "businessApplication" : "ADService", "name" : "aName", @@ -12078,7 +14359,16 @@ "attributes" : "{\"Region\":\"EU\"}", "id" : "id12345", "manuallyEdited" : true - }`) # MachineIdentity | + }`) // MachineIdentity | + + + var machineIdentity v2024.MachineIdentity + if err := json.Unmarshal(data, &machineIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12103,6 +14393,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12111,6 +14402,9 @@ 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) r, err := apiClient.V2024.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12132,6 +14426,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12140,6 +14435,9 @@ 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) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12163,6 +14461,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12175,6 +14474,9 @@ 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) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12198,6 +14500,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12207,6 +14510,15 @@ 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 := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -12230,17 +14542,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" - }`) # ManagedClientRequest | + }`) // ManagedClientRequest | + + + var managedClientRequest v2024.ManagedClientRequest + if err := json.Unmarshal(data, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12265,6 +14587,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12272,6 +14595,9 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() @@ -12293,6 +14619,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12300,6 +14627,9 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() @@ -12323,6 +14653,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12331,6 +14662,9 @@ 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) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -12354,6 +14688,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12364,6 +14699,9 @@ 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) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() @@ -12387,6 +14725,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12395,6 +14734,15 @@ id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12418,12 +14766,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterRequest := fmt.Sprintf(`{ + data := []byte(`{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -12431,7 +14780,16 @@ "name" : "Managed Cluster Name", "description" : "A short description of the managed cluster.", "type" : "idn" - }`) # ManagedClusterRequest | + }`) // ManagedClusterRequest | + + + var managedClusterRequest v2024.ManagedClusterRequest + if err := json.Unmarshal(data, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12456,6 +14814,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12464,6 +14823,9 @@ 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) r, err := apiClient.V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() @@ -12485,6 +14847,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12492,6 +14855,9 @@ 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) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -12515,6 +14881,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12522,6 +14889,9 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -12545,6 +14915,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12555,6 +14926,9 @@ 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) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() @@ -12578,13 +14952,23 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + data := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + + + var putClientLogConfigurationRequest v2024.PutClientLogConfigurationRequest + if err := json.Unmarshal(data, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12609,6 +14993,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12616,6 +15001,9 @@ 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) resp, r, err := apiClient.V2024.ManagedClustersAPI.Update(context.Background(), id).Execute() @@ -12639,6 +15027,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12647,6 +15036,15 @@ id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12670,18 +15068,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterType := fmt.Sprintf(`{ + data := []byte(`{ "managedProcessIds" : [ "someId", "someId2" ], "pod" : "megapod-useast1", "org" : "denali-cjh", "id" : "aClusterTypeId", "type" : "idn" - }`) # ManagedClusterType | + }`) // ManagedClusterType | + + + var managedClusterType v2024.ManagedClusterType + if err := json.Unmarshal(data, &managedClusterType); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12706,6 +15114,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12713,6 +15122,9 @@ func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() @@ -12734,6 +15146,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12741,6 +15154,9 @@ func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() @@ -12764,6 +15180,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12775,6 +15192,9 @@ 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) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Execute() @@ -12798,13 +15218,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -12814,7 +15235,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSONPatch payload used to update the schema. + }`) // JsonPatch | The JSONPatch payload used to update the schema. + + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12839,12 +15269,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -12868,6 +15302,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12875,6 +15310,9 @@ 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) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() @@ -12898,12 +15336,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -12927,12 +15369,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -12942,7 +15385,16 @@ "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | + + + var mfaDuoConfig v2024.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12967,6 +15419,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12974,6 +15427,15 @@ func main() { kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | + + var kbaAnswerRequestItem v2024.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -12997,18 +15459,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | + + + var mfaOktaConfig v2024.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13033,6 +15505,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13040,6 +15513,9 @@ 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) resp, r, err := apiClient.V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -13063,12 +15539,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostIntegrationsCreate := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "MyName", "id" : "2c91808568c529c60168cca6f90c1313", @@ -13093,7 +15570,16 @@ "name" : "My Multi-Host Integration", "description" : "This is the Multi-Host Integration.", "modified" : "2024-01-23T18:08:50.897Z" - }`) # MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + + + var multiHostIntegrationsCreate v2024.MultiHostIntegrationsCreate + if err := json.Unmarshal(data, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13118,6 +15604,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13126,6 +15613,15 @@ multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. multiHostIntegrationsCreateSources := fmt.Sprintf(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. + + var multiHostIntegrationsCreateSources v2024.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(data, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() @@ -13147,6 +15643,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13154,6 +15651,9 @@ 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) r, err := apiClient.V2024.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() @@ -13175,6 +15675,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13184,6 +15685,9 @@ 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) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() @@ -13207,6 +15711,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13216,6 +15721,9 @@ 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) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() @@ -13239,6 +15747,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13246,6 +15755,9 @@ 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) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() @@ -13269,6 +15781,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13281,6 +15794,9 @@ 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) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() @@ -13304,6 +15820,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13311,6 +15828,9 @@ 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) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() @@ -13334,12 +15854,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() @@ -13363,6 +15887,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13375,6 +15900,9 @@ 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) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() @@ -13398,6 +15926,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13405,6 +15934,9 @@ 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) r, err := apiClient.V2024.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() @@ -13426,6 +15958,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13434,6 +15967,9 @@ 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) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() @@ -13457,6 +15993,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13465,6 +16002,15 @@ multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{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(data, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() @@ -13486,15 +16032,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "Approved by manager" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | + + + var nonEmployeeApprovalDecision v2024.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13519,13 +16075,14 @@ "context" "fmt" "os" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -13538,7 +16095,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. + + + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13563,13 +16129,14 @@ "context" "fmt" "os" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -13582,7 +16149,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body + + + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13607,12 +16183,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -13637,7 +16214,16 @@ }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. + + + var nonEmployeeSourceRequestBody v2024.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13662,20 +16248,30 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | + + + var nonEmployeeSchemaAttributeBody v2024.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13700,6 +16296,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13707,6 +16304,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -13728,12 +16328,22 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordsInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + + + var deleteNonEmployeeRecordsInBulkRequest v2024.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13756,6 +16366,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13763,6 +16374,9 @@ 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) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -13784,6 +16398,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13792,6 +16407,9 @@ 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) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -13813,6 +16431,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13820,6 +16439,9 @@ func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -13841,6 +16463,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13848,6 +16471,9 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -13869,6 +16495,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13876,6 +16503,9 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -13897,6 +16527,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13904,6 +16535,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -13925,6 +16559,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13933,6 +16568,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() @@ -13956,6 +16594,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13963,6 +16602,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -13986,6 +16628,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13993,6 +16636,9 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -14016,6 +16662,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14023,6 +16670,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -14046,6 +16696,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14053,6 +16704,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -14076,6 +16730,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14083,6 +16738,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -14106,6 +16764,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14114,6 +16773,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -14137,6 +16799,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14144,6 +16807,9 @@ func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -14167,6 +16833,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14174,6 +16841,9 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -14197,6 +16867,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14205,6 +16876,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -14228,6 +16902,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14240,6 +16915,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() @@ -14263,6 +16941,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14274,6 +16953,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() @@ -14297,6 +16979,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14309,6 +16992,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() @@ -14332,6 +17018,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14344,6 +17031,9 @@ 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) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() @@ -14367,6 +17057,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14375,6 +17066,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14398,6 +17098,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14407,6 +17108,15 @@ sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14430,6 +17140,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,6 +17149,15 @@ sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14461,15 +17181,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "approved" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | + + + var nonEmployeeRejectApprovalDecision v2024.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14494,6 +17224,7 @@ "context" "fmt" "os" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -14501,7 +17232,7 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -14514,7 +17245,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14539,15 +17279,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - domainAddress := fmt.Sprintf(`{ + data := []byte(`{ "domain" : "sailpoint.com" - }`) # DomainAddress | + }`) // DomainAddress | + + + var domainAddress v2024.DomainAddress + if err := json.Unmarshal(data, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14572,13 +17322,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - templateDto := fmt.Sprintf(`{ + data := []byte(`{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -14595,7 +17346,16 @@ "from" : "$__global.emailFromAddress", "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" - }`) # TemplateDto | + }`) // TemplateDto | + + + var templateDto v2024.TemplateDto + if err := json.Unmarshal(data, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14620,18 +17380,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - emailStatusDto := fmt.Sprintf(`{ + data := []byte(`{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" - }`) # EmailStatusDto | + }`) // EmailStatusDto | + + + var emailStatusDto v2024.EmailStatusDto + if err := json.Unmarshal(data, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14656,6 +17426,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14664,6 +17435,15 @@ 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 := fmt.Sprintf(``) // []TemplateBulkDeleteDto | + + var templateBulkDeleteDto v2024.TemplateBulkDeleteDto + if err := json.Unmarshal(data, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() @@ -14685,6 +17465,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14693,6 +17474,9 @@ 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) r, err := apiClient.V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14714,6 +17498,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14721,6 +17506,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14744,6 +17532,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14752,6 +17541,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14775,6 +17567,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14783,6 +17576,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14806,6 +17602,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14813,6 +17610,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14836,6 +17636,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14848,6 +17649,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14871,6 +17675,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14878,6 +17683,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14901,6 +17709,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14911,6 +17720,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14934,6 +17746,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14944,6 +17757,9 @@ 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) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14967,16 +17783,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - mailFromAttributesDto := fmt.Sprintf(`{ + data := []byte(`{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" - }`) # MailFromAttributesDto | + }`) // MailFromAttributesDto | + + + var mailFromAttributesDto v2024.MailFromAttributesDto + if err := json.Unmarshal(data, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15001,17 +17827,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sendTestNotificationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" - }`) # SendTestNotificationRequestDto | + }`) // SendTestNotificationRequestDto | + + + var sendTestNotificationRequestDto v2024.SendTestNotificationRequestDto + if err := json.Unmarshal(data, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15034,12 +17870,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -15055,7 +17892,16 @@ "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | + + + var createOAuthClientRequest v2024.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15080,6 +17926,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15087,6 +17934,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -15108,6 +17958,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15115,6 +17966,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -15138,6 +17992,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15145,6 +18000,9 @@ 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) resp, r, err := apiClient.V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() @@ -15168,6 +18026,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15176,6 +18035,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15199,6 +18067,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15206,6 +18075,9 @@ 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) resp, r, err := apiClient.V2024.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -15229,6 +18101,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15239,6 +18112,9 @@ 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) resp, r, err := apiClient.V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -15262,6 +18138,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15270,6 +18147,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15293,17 +18179,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig v2024.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15328,12 +18224,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -15357,17 +18257,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig v2024.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15392,12 +18302,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -15421,6 +18335,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15428,6 +18343,9 @@ func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() @@ -15449,17 +18367,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - passwordDigitTokenReset := fmt.Sprintf(`{ + data := []byte(`{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" - }`) # PasswordDigitTokenReset | + }`) // PasswordDigitTokenReset | + + + var passwordDigitTokenReset v2024.PasswordDigitTokenReset + if err := json.Unmarshal(data, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15484,6 +18412,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15491,6 +18420,9 @@ func main() { id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() @@ -15514,15 +18446,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | + + + var passwordInfoQueryDTO v2024.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15547,18 +18489,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | + + + var passwordChangeRequest v2024.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15583,12 +18535,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -15620,7 +18573,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15645,6 +18607,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15652,6 +18615,9 @@ 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) r, err := apiClient.V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -15673,6 +18639,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15680,6 +18647,9 @@ 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) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -15703,6 +18673,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15712,6 +18683,9 @@ 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) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() @@ -15735,13 +18709,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -15773,7 +18748,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15798,19 +18782,29 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup v2024.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15835,6 +18829,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15842,6 +18837,9 @@ 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) r, err := apiClient.V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -15863,6 +18861,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15870,6 +18869,9 @@ 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) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -15893,6 +18895,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15902,6 +18905,9 @@ 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) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() @@ -15925,20 +18931,30 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup v2024.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15963,16 +18979,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. + + + var createPersonalAccessTokenRequest v2024.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15997,6 +19023,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16004,6 +19031,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -16025,6 +19055,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16033,6 +19064,9 @@ 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) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() @@ -16056,6 +19090,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16064,6 +19099,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16087,6 +19131,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16099,6 +19144,9 @@ 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) resp, r, err := apiClient.V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() @@ -16122,12 +19170,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -16151,12 +19203,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -16170,7 +19223,16 @@ "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | + + + var publicIdentityConfig v2024.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16195,6 +19257,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16202,6 +19265,9 @@ 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) r, err := apiClient.V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() @@ -16223,6 +19289,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16233,6 +19300,9 @@ 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) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() @@ -16256,6 +19326,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16264,6 +19335,9 @@ 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) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() @@ -16287,18 +19361,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportDetails := fmt.Sprintf(`{ + data := []byte(`{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } - }`) # ReportDetails | + }`) // ReportDetails | + + + var reportDetails v2024.ReportDetails + if err := json.Unmarshal(data, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16323,6 +19407,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16338,6 +19423,9 @@ 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) resp, r, err := apiClient.V2024.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() @@ -16361,6 +19449,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16368,6 +19457,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16391,6 +19483,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16401,6 +19494,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16424,6 +19520,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16439,6 +19536,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16462,6 +19562,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16470,6 +19571,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16493,6 +19597,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16505,6 +19610,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16528,6 +19636,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16537,6 +19646,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16560,6 +19672,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16570,6 +19683,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16593,6 +19709,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16601,6 +19718,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16624,6 +19744,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16631,6 +19752,9 @@ 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) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16654,12 +19778,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -16817,7 +19942,16 @@ }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | + + + var role v2024.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16842,14 +19976,24 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | + + + var roleBulkDeleteRequest v2024.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16874,6 +20018,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16883,6 +20028,9 @@ 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) r, err := apiClient.V2024.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() @@ -16904,6 +20052,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16911,6 +20060,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -16932,12 +20084,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() @@ -16961,6 +20117,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16968,6 +20125,9 @@ 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) resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() @@ -16991,6 +20151,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16998,6 +20159,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetRole(context.Background(), id).Execute() @@ -17021,6 +20185,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17033,6 +20198,9 @@ 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) resp, r, err := apiClient.V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() @@ -17056,6 +20224,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17069,6 +20238,9 @@ 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) resp, r, err := apiClient.V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17092,6 +20264,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17106,6 +20279,9 @@ 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) resp, r, err := apiClient.V2024.RolesAPI.ListRoles(context.Background()).Execute() @@ -17129,6 +20305,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17137,6 +20314,15 @@ id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17160,6 +20346,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17172,13 +20359,16 @@ 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) 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) - roleListFilterDTO := fmt.Sprintf(`{ + data := []byte(`{ "ammKeyValues" : [ { "attribute" : "iscFederalClassifications", "values" : [ "secret" ] } ], "filters" : "dimensional eq false" - }`) # RoleListFilterDTO | (optional) + }`) // RoleListFilterDTO | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17203,6 +20393,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17212,6 +20403,9 @@ 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) resp, r, err := apiClient.V2024.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() @@ -17235,12 +20429,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByFilterRequest := fmt.Sprintf(`{ + data := []byte(`{ "values" : [ { "attribute" : "iscFederalClassifications", "values" : [ "topSecret" ] @@ -17248,7 +20443,16 @@ "filters" : " requestable eq false", "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByFilterRequest | + }`) // RoleMetadataBulkUpdateByFilterRequest | + + + var roleMetadataBulkUpdateByFilterRequest v2024.RoleMetadataBulkUpdateByFilterRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByFilterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17273,12 +20477,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByIdRequest := fmt.Sprintf(`{ + data := []byte(`{ "roles" : [ "b1db89554cfa431cb8b9921ea38d9367" ], "values" : [ { "attribute" : "iscFederalClassifications", @@ -17286,7 +20491,16 @@ } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByIdRequest | + }`) // RoleMetadataBulkUpdateByIdRequest | + + + var roleMetadataBulkUpdateByIdRequest v2024.RoleMetadataBulkUpdateByIdRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByIdRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17311,12 +20525,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByQueryRequest := fmt.Sprintf(`{ + data := []byte(`{ "query" : { "query\"" : { "indices" : [ "roles" ], @@ -17339,7 +20554,16 @@ } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByQueryRequest | + }`) // RoleMetadataBulkUpdateByQueryRequest | + + + var roleMetadataBulkUpdateByQueryRequest v2024.RoleMetadataBulkUpdateByQueryRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByQueryRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17364,12 +20588,22 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createSavedSearchRequest := fmt.Sprintf(``) # CreateSavedSearchRequest | The saved search to persist. + data := []byte(``) // CreateSavedSearchRequest | The saved search to persist. + + + var createSavedSearchRequest v2024.CreateSavedSearchRequest + if err := json.Unmarshal(data, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17394,6 +20628,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17401,6 +20636,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() @@ -17422,13 +20660,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - searchArguments := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -17438,7 +20677,16 @@ "type" : "IDENTITY" } ], "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. + }`) // 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(data, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17461,6 +20709,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17468,6 +20717,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() @@ -17491,6 +20743,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17501,6 +20754,9 @@ 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) resp, r, err := apiClient.V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() @@ -17524,13 +20780,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - savedSearch := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -17574,7 +20831,16 @@ "modified" : "2018-06-25T20:22:28.104Z", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] - }`) # SavedSearch | The saved search to persist. + }`) // SavedSearch | The saved search to persist. + + + var savedSearch v2024.SavedSearch + if err := json.Unmarshal(data, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17599,12 +20865,22 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createScheduledSearchRequest := fmt.Sprintf(`{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. + data := []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(data, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17629,6 +20905,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17636,6 +20913,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() @@ -17657,6 +20937,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17664,6 +20945,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() @@ -17687,6 +20971,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17697,6 +20982,9 @@ 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) resp, r, err := apiClient.V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() @@ -17720,16 +21008,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - typedReference := fmt.Sprintf(`{ + data := []byte(`{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" - }`) # TypedReference | The recipient to be removed from the scheduled search. + }`) // TypedReference | The recipient to be removed from the scheduled search. + + + var typedReference v2024.TypedReference + if err := json.Unmarshal(data, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17752,13 +21050,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - scheduledSearch := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -17848,7 +21147,16 @@ "modified" : "", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false - }`) # ScheduledSearch | The scheduled search to persist. + }`) // ScheduledSearch | The scheduled search to persist. + + + var scheduledSearch v2024.ScheduledSearch + if err := json.Unmarshal(data, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17873,12 +21181,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -17994,11 +21303,20 @@ "type" : "access" } } - }`) # Search | + }`) // Search | 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) 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(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() @@ -18022,12 +21340,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -18143,7 +21462,16 @@ "type" : "access" } } - }`) # Search | + }`) // Search | + + + var search v2024.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18166,6 +21494,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18174,6 +21503,9 @@ 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) resp, r, err := apiClient.V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() @@ -18197,12 +21529,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -18318,11 +21651,20 @@ "type" : "access" } } - }`) # Search | + }`) // Search | 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 := 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(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchPost(context.Background()).Search(search).Execute() @@ -18346,20 +21688,30 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - searchAttributeConfig := fmt.Sprintf(`{ + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | + + + var searchAttributeConfig v2024.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18384,6 +21736,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18392,6 +21745,9 @@ 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) r, err := apiClient.V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -18413,6 +21769,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18422,6 +21779,9 @@ 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) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -18445,6 +21805,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18453,6 +21814,9 @@ 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) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -18476,6 +21840,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18485,6 +21850,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -18508,12 +21882,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -18536,7 +21911,16 @@ "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | + + + var segment v2024.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18561,6 +21945,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18568,6 +21953,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -18589,6 +21977,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18596,6 +21985,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -18619,6 +22011,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18628,6 +22021,9 @@ 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) resp, r, err := apiClient.V2024.SegmentsAPI.ListSegments(context.Background()).Execute() @@ -18651,6 +22047,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18659,6 +22056,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -18682,12 +22088,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -18720,7 +22127,16 @@ }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create + + + var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18745,6 +22161,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18752,6 +22169,9 @@ 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) r, err := apiClient.V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -18773,6 +22193,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18780,6 +22201,9 @@ 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) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -18803,6 +22227,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18810,6 +22235,9 @@ 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) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -18833,12 +22261,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -18862,6 +22294,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18873,6 +22306,9 @@ 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) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() @@ -18896,12 +22332,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -18925,6 +22365,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18933,6 +22374,15 @@ id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonPatchOperation := fmt.Sprintf(``) // []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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -18956,13 +22406,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -18995,7 +22446,16 @@ }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update + + + var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19020,15 +22480,25 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration + + + var queuedCheckConfigDetails v2024.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19053,13 +22523,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - simIntegrationDetails := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -19076,7 +22547,16 @@ "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | DTO containing the details of the SIM integration + }`) // SimIntegrationDetails | DTO containing the details of the SIM integration + + + var simIntegrationDetails v2024.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19101,6 +22581,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19109,6 +22590,9 @@ 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) r, err := apiClient.V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19130,6 +22614,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19138,6 +22623,9 @@ 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) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19161,6 +22649,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19168,6 +22657,9 @@ 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) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19191,6 +22683,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19198,7 +22691,7 @@ func main() { id := `12345` // string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -19208,7 +22701,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. + + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19233,6 +22735,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19240,7 +22743,7 @@ func main() { id := `12345` // string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -19250,7 +22753,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM + + + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19275,6 +22787,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19282,7 +22795,7 @@ 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") - simIntegrationDetails := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -19299,7 +22812,16 @@ "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | The full DTO of the integration containing the updated model + }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model + + + var simIntegrationDetails v2024.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19324,12 +22846,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -19384,7 +22907,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy v2024.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19409,6 +22941,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19417,6 +22950,9 @@ 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) r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() @@ -19438,6 +22974,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19445,6 +22982,9 @@ 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) r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -19466,6 +23006,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19474,6 +23015,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -19497,6 +23041,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19504,6 +23049,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -19527,12 +23075,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -19556,6 +23108,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19563,6 +23116,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -19586,6 +23142,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19593,6 +23150,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -19616,6 +23176,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19623,6 +23184,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -19646,6 +23210,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19653,6 +23218,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -19676,6 +23244,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19687,6 +23256,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() @@ -19710,6 +23282,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19718,6 +23291,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -19741,13 +23323,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + data := []byte(`{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -19832,7 +23415,16 @@ "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | + + + var sodPolicySchedule v2024.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19857,13 +23449,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -19918,7 +23511,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy v2024.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19943,6 +23545,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19950,6 +23553,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() @@ -19973,14 +23579,18 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20005,6 +23615,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20012,6 +23623,9 @@ 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) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -20035,12 +23649,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -20051,7 +23666,16 @@ "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | + + + var identityWithNewAccess v2024.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20076,12 +23700,22 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess1 := fmt.Sprintf(`{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 | + data := []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(data, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20106,13 +23740,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -20151,7 +23786,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20176,12 +23820,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -20263,9 +23908,18 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // 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(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() @@ -20289,13 +23943,23 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - schedule1 := fmt.Sprintf(``) # Schedule1 | + data := []byte(``) // Schedule1 | + + + var schedule1 v2024.Schedule1 + if err := json.Unmarshal(data, &schedule1); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20320,13 +23984,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -20359,7 +24024,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema v2024.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20384,6 +24058,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20392,6 +24067,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20415,6 +24093,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20423,6 +24102,9 @@ 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) r, err := apiClient.V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20444,6 +24126,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20452,6 +24135,9 @@ 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) r, err := apiClient.V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -20473,6 +24159,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20480,6 +24167,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() @@ -20503,6 +24193,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20511,6 +24202,9 @@ 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) r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -20532,6 +24226,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20540,6 +24235,9 @@ 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) r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -20561,6 +24259,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20568,6 +24267,9 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() @@ -20589,6 +24291,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20596,6 +24299,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() @@ -20619,6 +24325,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20627,6 +24334,9 @@ 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) r, err := apiClient.V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() @@ -20648,6 +24358,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20656,6 +24367,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20679,6 +24393,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20687,6 +24402,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -20710,6 +24428,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20717,6 +24436,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -20740,6 +24462,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20748,6 +24471,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20771,6 +24497,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20779,6 +24506,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() @@ -20802,6 +24532,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20809,6 +24540,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() @@ -20832,6 +24566,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20839,6 +24574,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20862,6 +24600,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20869,6 +24608,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() @@ -20892,6 +24634,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20900,6 +24643,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -20923,6 +24669,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20930,6 +24677,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() @@ -20953,6 +24703,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20961,6 +24712,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -20984,6 +24738,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20993,6 +24748,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() @@ -21016,6 +24774,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21026,6 +24785,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21049,6 +24811,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21057,6 +24820,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() @@ -21080,6 +24846,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21088,6 +24855,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() @@ -21111,6 +24881,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21120,6 +24891,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() @@ -21143,6 +24917,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21152,6 +24927,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21175,6 +24953,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21182,6 +24961,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -21205,6 +24987,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21218,6 +25001,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.ListSources(context.Background()).Execute() @@ -21241,6 +25027,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21248,6 +25035,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() @@ -21271,13 +25061,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - correlationConfig := fmt.Sprintf(`{ + data := []byte(`{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -21297,7 +25088,16 @@ } ], "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" - }`) # CorrelationConfig | + }`) // CorrelationConfig | + + + var correlationConfig v2024.CorrelationConfig + if err := json.Unmarshal(data, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21322,6 +25122,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21329,14 +25130,23 @@ 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") - nativeChangeDetectionConfig := fmt.Sprintf(`{ + data := []byte(`{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], "allNonEntitlementAttributes" : false, "allEntitlements" : false, "enabled" : true - }`) # NativeChangeDetectionConfig | + }`) // NativeChangeDetectionConfig | + + + var nativeChangeDetectionConfig v2024.NativeChangeDetectionConfig + if err := json.Unmarshal(data, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21361,6 +25171,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21368,7 +25179,7 @@ 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. - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -21407,7 +25218,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21432,13 +25252,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -21520,7 +25341,16 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | + + + var source v2024.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21545,6 +25375,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21552,7 +25383,7 @@ 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") - attrSyncSourceConfig := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -21569,7 +25400,16 @@ "id" : "2c9180835d191a86015d28455b4b232a", "type" : "SOURCE" } - }`) # AttrSyncSourceConfig | + }`) // AttrSyncSourceConfig | + + + var attrSyncSourceConfig v2024.AttrSyncSourceConfig + if err := json.Unmarshal(data, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21594,6 +25434,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21601,7 +25442,7 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -21634,7 +25475,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema v2024.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21659,16 +25509,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - resourceObjectsRequest := fmt.Sprintf(`{ + data := []byte(`{ "maxCount" : 100, "objectType" : "group" - }`) # ResourceObjectsRequest | + }`) // ResourceObjectsRequest | + + + var resourceObjectsRequest v2024.ResourceObjectsRequest + if err := json.Unmarshal(data, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21693,6 +25553,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21701,6 +25562,9 @@ 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) resp, r, err := apiClient.V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21724,6 +25588,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21731,6 +25596,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() @@ -21754,6 +25622,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21761,6 +25630,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() @@ -21784,6 +25656,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21792,6 +25665,15 @@ sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id passwordPolicyHoldersDtoInner := fmt.Sprintf(``) // []PasswordPolicyHoldersDtoInner | + + var passwordPolicyHoldersDtoInner v2024.PasswordPolicyHoldersDtoInner + if err := json.Unmarshal(data, &passwordPolicyHoldersDtoInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() @@ -21815,6 +25697,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21823,6 +25706,15 @@ sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | + + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -21846,6 +25738,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21855,6 +25748,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -21878,6 +25780,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21886,6 +25789,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -21909,13 +25821,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceEntitlementRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -21927,7 +25840,16 @@ } ], "requestCommentRequired" : true } - }`) # SourceEntitlementRequestConfig | + }`) // SourceEntitlementRequestConfig | + + + var sourceEntitlementRequestConfig v2024.SourceEntitlementRequestConfig + if err := json.Unmarshal(data, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21952,6 +25874,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21961,6 +25884,15 @@ scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -21984,6 +25916,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21993,6 +25926,15 @@ schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22016,6 +25958,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22023,6 +25966,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -22046,6 +25992,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22057,6 +26004,9 @@ 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) resp, r, err := apiClient.V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() @@ -22080,14 +26030,24 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - exportPayload := fmt.Sprintf(`{ + data := []byte(`{ "description" : "Export Job 1 Test" - }`) # ExportPayload | Export options control what will be included in the export. + }`) // ExportPayload | Export options control what will be included in the export. + + + var exportPayload v2024.ExportPayload + if err := json.Unmarshal(data, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22112,6 +26072,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22119,6 +26080,9 @@ 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) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() @@ -22142,6 +26106,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22149,6 +26114,9 @@ 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) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() @@ -22172,6 +26140,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22179,6 +26148,9 @@ 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) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() @@ -22202,6 +26174,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22209,6 +26182,9 @@ 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) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() @@ -22232,6 +26208,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22239,7 +26216,10 @@ 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. 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 := fmt.Sprintf(``) # ImportOptions | (optional) + data := []byte(``) // ImportOptions | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22264,12 +26244,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() @@ -22293,6 +26277,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22300,6 +26285,9 @@ func main() { batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() @@ -22323,12 +26311,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() @@ -22352,6 +26344,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22366,6 +26359,9 @@ 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) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() @@ -22389,6 +26385,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22397,6 +26394,15 @@ id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id sedPatch := fmt.Sprintf(``) // []SedPatch | Sed Patch Request + + var sedPatch v2024.SedPatch + if err := json.Unmarshal(data, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() @@ -22420,6 +26426,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22427,6 +26434,15 @@ func main() { sedApproval := fmt.Sprintf(``) // []SedApproval | Sed Approval + + var sedApproval v2024.SedApproval + if err := json.Unmarshal(data, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() @@ -22450,18 +26466,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedAssignment := fmt.Sprintf(`{ + data := []byte(`{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] - }`) # SedAssignment | Sed Assignment Request + }`) // SedAssignment | Sed Assignment Request + + + var sedAssignment v2024.SedAssignment + if err := json.Unmarshal(data, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22486,15 +26512,19 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedBatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] - }`) # SedBatchRequest | Sed Batch Request (optional) + }`) // SedBatchRequest | Sed Batch Request (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22519,6 +26549,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22527,6 +26558,9 @@ 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) r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -22548,12 +26582,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkRemoveTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -22564,7 +26599,16 @@ "type" : "IDENTITY" } ], "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkRemoveTaggedObject v2024.BulkRemoveTaggedObject + if err := json.Unmarshal(data, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22587,6 +26631,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22595,6 +26640,9 @@ 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) resp, r, err := apiClient.V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -22618,6 +26666,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22628,6 +26677,9 @@ 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) resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() @@ -22651,6 +26703,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22662,6 +26715,9 @@ 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) resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() @@ -22685,6 +26741,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22692,14 +26749,23 @@ func main() { type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject v2024.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22724,19 +26790,29 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject v2024.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22759,12 +26835,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkAddTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -22776,7 +26853,16 @@ } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkAddTaggedObject v2024.BulkAddTaggedObject + if err := json.Unmarshal(data, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22801,6 +26887,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22811,6 +26898,9 @@ 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) r, err := apiClient.V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22832,6 +26922,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22842,6 +26933,9 @@ 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) resp, r, err := apiClient.V2024.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22865,6 +26959,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22873,6 +26968,9 @@ 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) resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22896,6 +26994,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22908,6 +27007,9 @@ 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) resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22931,6 +27033,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22940,6 +27043,15 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22963,12 +27075,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TenantAPI.GetTenant(context.Background()).Execute() @@ -22992,6 +27108,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22999,6 +27116,9 @@ 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) resp, r, err := apiClient.V2024.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23022,17 +27142,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "op" : "replace", "path" : "/description", "value" : "New description" - }`) # JsonPatchOperation | + }`) // JsonPatchOperation | + + + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23055,16 +27185,26 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. + + + var transform v2024.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23089,6 +27229,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23096,6 +27237,9 @@ 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) r, err := apiClient.V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -23117,6 +27261,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23124,6 +27269,9 @@ 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) resp, r, err := apiClient.V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -23147,6 +27295,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23158,6 +27307,9 @@ 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) resp, r, err := apiClient.V2024.TransformsAPI.ListTransforms(context.Background()).Execute() @@ -23181,17 +27333,21 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // 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) @@ -23216,6 +27372,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23223,13 +27380,22 @@ func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the invocation to complete. # string | The ID of the invocation to complete. 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") - completeInvocation := fmt.Sprintf(`{ + data := []byte(`{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." - }`) # CompleteInvocation | + }`) // CompleteInvocation | + + + var completeInvocation v2024.CompleteInvocation + if err := json.Unmarshal(data, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23252,13 +27418,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - subscriptionPostRequest := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -23282,7 +27449,16 @@ "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPostRequest | + }`) // SubscriptionPostRequest | + + + var subscriptionPostRequest v2024.SubscriptionPostRequest + if err := json.Unmarshal(data, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23307,6 +27483,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23315,6 +27492,9 @@ 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) r, err := apiClient.V2024.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23336,6 +27516,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23348,6 +27529,9 @@ 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) resp, r, err := apiClient.V2024.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23371,6 +27555,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23383,6 +27568,9 @@ 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) resp, r, err := apiClient.V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23406,6 +27594,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23418,6 +27607,9 @@ 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) resp, r, err := apiClient.V2024.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23441,6 +27633,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23450,6 +27643,15 @@ 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 := fmt.Sprintf(``) // []SubscriptionPatchRequestInner | + + var subscriptionPatchRequestInner v2024.SubscriptionPatchRequestInner + if err := json.Unmarshal(data, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() @@ -23473,13 +27675,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - testInvocation := fmt.Sprintf(`{ + data := []byte(`{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -23488,7 +27691,16 @@ "contentJson" : { "workflowId" : 1234 } - }`) # TestInvocation | + }`) // TestInvocation | + + + var testInvocation v2024.TestInvocation + if err := json.Unmarshal(data, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23513,18 +27725,28 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - validateFilterInputDto := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } - }`) # ValidateFilterInputDto | + }`) // ValidateFilterInputDto | + + + var validateFilterInputDto v2024.ValidateFilterInputDto + if err := json.Unmarshal(data, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23549,6 +27771,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 +27779,7 @@ 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") - subscriptionPutRequest := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -23579,7 +27802,16 @@ "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPutRequest | + }`) // SubscriptionPutRequest | + + + var subscriptionPutRequest v2024.SubscriptionPutRequest + if err := json.Unmarshal(data, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23604,6 +27836,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23611,6 +27844,9 @@ 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) resp, r, err := apiClient.V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23634,17 +27870,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantUiMetadataItemUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" - }`) # TenantUiMetadataItemUpdateRequest | + }`) // TenantUiMetadataItemUpdateRequest | + + + var tenantUiMetadataItemUpdateRequest v2024.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(data, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23669,12 +27915,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -23696,7 +27943,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping v2024.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23721,12 +27977,13 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -23748,7 +28005,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping v2024.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23773,12 +28039,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -23802,6 +28072,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23809,6 +28080,9 @@ 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) r, err := apiClient.V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -23830,13 +28104,17 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - createExternalExecuteWorkflowRequest := fmt.Sprintf(``) # CreateExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23861,12 +28139,22 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23891,6 +28179,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23898,6 +28187,9 @@ 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) resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() @@ -23921,6 +28213,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23928,6 +28221,9 @@ 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) r, err := apiClient.V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -23949,6 +28245,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23956,6 +28253,9 @@ 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) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() @@ -23979,6 +28279,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23986,6 +28287,9 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -24009,6 +28313,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24016,6 +28321,9 @@ 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) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -24039,6 +28347,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24050,6 +28359,9 @@ 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) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() @@ -24073,6 +28385,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24081,6 +28394,9 @@ 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) resp, r, err := apiClient.V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() @@ -24104,6 +28420,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24113,6 +28430,9 @@ 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) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() @@ -24136,12 +28456,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -24165,6 +28489,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24174,6 +28499,9 @@ 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) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() @@ -24197,12 +28525,16 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() @@ -24226,6 +28558,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24234,6 +28567,15 @@ id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -24257,13 +28599,14 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -24296,7 +28639,16 @@ "type" : "EVENT" }, "enabled" : false - }`) # WorkflowBody | + }`) // WorkflowBody | + + + var workflowBody v2024.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24321,13 +28673,17 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24352,13 +28708,23 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24383,6 +28749,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24391,6 +28758,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -24414,6 +28784,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24421,6 +28792,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -24444,6 +28818,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24452,6 +28827,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() @@ -24475,6 +28853,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24482,11 +28861,20 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item 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") - workItemForward := fmt.Sprintf(`{ + data := []byte(`{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true - }`) # WorkItemForward | + }`) // WorkItemForward | + + + var workItemForward v2024.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24509,6 +28897,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24519,6 +28908,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() @@ -24542,6 +28934,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24550,6 +28943,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24573,6 +28969,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24580,6 +28977,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() @@ -24603,6 +29003,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24610,6 +29011,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() @@ -24633,6 +29037,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24640,6 +29045,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() @@ -24663,6 +29071,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24673,6 +29082,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.ListWorkItems(context.Background()).Execute() @@ -24696,6 +29108,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24704,6 +29117,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -24727,6 +29143,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24734,6 +29151,9 @@ 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) resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -24757,6 +29177,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24765,6 +29186,15 @@ 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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() @@ -24788,19 +29218,29 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - configurationItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | + + + var configurationItemRequest v2024.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24825,6 +29265,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24834,6 +29275,9 @@ 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) r, err := apiClient.V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24855,6 +29299,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24865,6 +29310,9 @@ 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 := fmt.Sprintf(`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) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24888,6 +29336,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24895,6 +29344,9 @@ 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) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24918,6 +29370,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24926,6 +29379,9 @@ 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) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24949,6 +29405,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24956,6 +29413,9 @@ 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) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24979,6 +29439,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24986,6 +29447,9 @@ 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) resp, r, err := apiClient.V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -25009,6 +29473,7 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25016,13 +29481,22 @@ func main() { identityId := `2c91808781a71ddb0181b9090b5c504e` // 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") - configurationItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | + + + var configurationItemRequest v2024.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -25047,17 +29521,27 @@ "context" "fmt" "os" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantConfigurationRequest := fmt.Sprintf(`{ + data := []byte(`{ "configDetails" : { "disabled" : true } - }`) # TenantConfigurationRequest | + }`) // TenantConfigurationRequest | + + + var tenantConfigurationRequest v2024.TenantConfigurationRequest + if err := json.Unmarshal(data, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) diff --git a/static/code-examples/v2025/go_code_examples_overlay.yaml b/static/code-examples/v2025/go_code_examples_overlay.yaml index 996ff9a61..580bf5a19 100644 --- a/static/code-examples/v2025/go_code_examples_overlay.yaml +++ b/static/code-examples/v2025/go_code_examples_overlay.yaml @@ -10,6 +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" ) @@ -18,6 +19,9 @@ 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) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -41,6 +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" ) @@ -50,6 +55,9 @@ 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) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() @@ -73,6 +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" ) @@ -81,6 +90,9 @@ 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) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -104,6 +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" ) @@ -112,6 +125,9 @@ 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) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -135,12 +151,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -225,7 +242,16 @@ "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | + + + var accessProfile v2025.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -250,6 +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" ) @@ -257,6 +284,9 @@ 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) r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -278,15 +308,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | + + + var accessProfileBulkDeleteRequest v2025.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -311,6 +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" ) @@ -318,6 +359,9 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -341,6 +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" ) @@ -353,6 +398,9 @@ 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) resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() @@ -376,6 +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" ) @@ -390,6 +439,9 @@ 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) resp, r, err := apiClient.V2025.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() @@ -413,6 +465,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -421,6 +474,15 @@ id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -444,6 +506,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -452,6 +515,15 @@ 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 := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | + + var accessProfileBulkUpdateRequestInner v2025.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(data, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() @@ -475,13 +547,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -489,7 +562,10 @@ "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. (optional) + }`) // CommentDto | Reviewer's comment. (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -514,16 +590,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + data := []byte(`{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. + + + var forwardApprovalDto v2025.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -548,6 +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" ) @@ -556,6 +643,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() @@ -579,6 +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" ) @@ -589,6 +680,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Execute() @@ -612,6 +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" ) @@ -624,6 +719,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() @@ -647,6 +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" ) @@ -659,6 +758,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() @@ -682,13 +784,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -696,7 +799,16 @@ "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. + + + var commentDto v2025.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -721,6 +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" ) @@ -730,6 +843,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() @@ -753,15 +869,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkApproveAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "I approve these request items", "approvalIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ] - }`) # BulkApproveAccessRequest | + }`) // BulkApproveAccessRequest | + + + var bulkApproveAccessRequest v2025.BulkApproveAccessRequest + if err := json.Unmarshal(data, &bulkApproveAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -786,15 +912,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | + + + var cancelAccessRequest v2025.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -819,15 +955,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkCancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ], "comment" : "I requested this role by mistake." - }`) # BulkCancelAccessRequest | + }`) // BulkCancelAccessRequest | + + + var bulkCancelAccessRequest v2025.BulkCancelAccessRequest + if err := json.Unmarshal(data, &bulkCancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -852,18 +998,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - closeAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." - }`) # CloseAccessRequest | + }`) // CloseAccessRequest | + + + var closeAccessRequest v2025.CloseAccessRequest + if err := json.Unmarshal(data, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -888,12 +1044,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -1073,7 +1230,16 @@ "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | + + + var accessRequest v2025.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1098,12 +1264,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -1127,6 +1297,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1136,6 +1307,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestsAPI.GetEntitlementDetailsForIdentity(context.Background(), identityId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1159,6 +1333,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1175,6 +1350,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() @@ -1198,6 +1376,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1214,6 +1393,9 @@ 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) resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).Execute() @@ -1237,12 +1419,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountsSelectionRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -1305,7 +1488,16 @@ "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ] - }`) # AccountsSelectionRequest | + }`) // AccountsSelectionRequest | + + + var accountsSelectionRequest v2025.AccountsSelectionRequest + if err := json.Unmarshal(data, &accountsSelectionRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1330,12 +1522,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -1353,14 +1546,30 @@ }, "autoApprovalEnabled" : true, "entitlementRequestConfig" : { - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | + + + var accessRequestConfig v2025.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1385,6 +1594,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1392,6 +1602,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -1415,6 +1628,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1429,6 +1643,9 @@ 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) resp, r, err := apiClient.V2025.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() @@ -1452,6 +1669,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1460,6 +1678,9 @@ 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) resp, r, err := apiClient.V2025.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1483,12 +1704,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -1497,7 +1719,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | + + + var accountAttributesCreate v2025.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1522,6 +1753,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1529,6 +1761,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1552,6 +1787,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1560,6 +1796,9 @@ 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) resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1583,16 +1822,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest v2025.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1617,6 +1866,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1625,6 +1875,9 @@ 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) resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1648,15 +1901,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | + + + var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1681,16 +1944,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest v2025.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1715,6 +1988,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1723,6 +1997,9 @@ 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) resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1746,15 +2023,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identitiesAccountsBulkRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] - }`) # IdentitiesAccountsBulkRequest | + }`) // IdentitiesAccountsBulkRequest | + + + var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(data, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1779,6 +2066,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1786,6 +2074,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -1809,6 +2100,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1819,6 +2111,9 @@ 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) resp, r, err := apiClient.V2025.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() @@ -1842,6 +2137,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1854,6 +2150,9 @@ 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) resp, r, err := apiClient.V2025.AccountsAPI.ListAccounts(context.Background()).Execute() @@ -1877,13 +2176,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -1891,7 +2191,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | + + + var accountAttributes v2025.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1916,6 +2225,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1923,6 +2233,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -1946,17 +2259,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | + + + var accountUnlockRequest v2025.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1981,6 +2304,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1989,6 +2313,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -2012,6 +2345,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2023,6 +2357,9 @@ 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) resp, r, err := apiClient.V2025.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() @@ -2046,6 +2383,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2057,6 +2395,9 @@ 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) resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() @@ -2080,12 +2421,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -2109,6 +2454,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2116,6 +2462,9 @@ 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) r, err := apiClient.V2025.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -2137,6 +2486,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2145,6 +2495,9 @@ 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) resp, r, err := apiClient.V2025.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2168,6 +2521,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2178,6 +2532,9 @@ 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) resp, r, err := apiClient.V2025.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2201,13 +2558,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppCreateDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -2216,7 +2574,16 @@ "type" : "SOURCE" }, "matchAllAccounts" : true - }`) # SourceAppCreateDto | + }`) // SourceAppCreateDto | + + + var sourceAppCreateDto v2025.SourceAppCreateDto + if err := json.Unmarshal(data, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2241,6 +2608,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2251,6 +2619,15 @@ requestBody := fmt.Sprintf(`[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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -2274,6 +2651,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2282,6 +2660,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2305,6 +2686,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2313,6 +2695,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2336,6 +2721,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2347,6 +2733,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2370,6 +2759,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2382,6 +2772,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2405,6 +2798,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2416,6 +2810,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2439,6 +2836,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2451,6 +2849,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2474,6 +2875,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2484,6 +2886,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2507,6 +2912,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2519,6 +2925,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2542,6 +2951,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2553,6 +2963,9 @@ 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) resp, r, err := apiClient.V2025.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2576,6 +2989,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2585,6 +2999,9 @@ 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 := fmt.Sprintf(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2608,6 +3025,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2617,6 +3035,9 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2640,13 +3061,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceAppBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -2657,7 +3079,10 @@ "path" : "/matchAllAccounts", "value" : false } ] - }`) # SourceAppBulkUpdateRequest | (optional) + }`) // SourceAppBulkUpdateRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2680,6 +3105,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2688,6 +3114,9 @@ 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) resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2711,6 +3140,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2718,6 +3148,9 @@ 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) resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2741,6 +3174,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2750,6 +3184,15 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2773,6 +3216,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2780,6 +3224,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() @@ -2803,6 +3250,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2811,6 +3259,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2834,6 +3291,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2848,6 +3306,9 @@ 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) resp, r, err := apiClient.V2025.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() @@ -2871,6 +3332,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2878,6 +3340,9 @@ 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) r, err := apiClient.V2025.BrandingAPI.DeleteBranding(context.Background(), name).Execute() @@ -2899,6 +3364,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2906,6 +3372,9 @@ 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) resp, r, err := apiClient.V2025.BrandingAPI.GetBranding(context.Background(), name).Execute() @@ -2929,12 +3398,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.GetBrandingList(context.Background()).Execute() @@ -2958,6 +3431,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2973,6 +3447,9 @@ 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) resp, r, err := apiClient.V2025.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() @@ -2996,12 +3473,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -3018,7 +3496,16 @@ "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | + }`) // CampaignFilterDetails | + + + var campaignFilterDetails v2025.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3043,6 +3530,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3050,6 +3538,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | A json list of IDs of campaign filters to delete. + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() @@ -3071,6 +3568,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3078,6 +3576,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() @@ -3101,6 +3602,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3110,6 +3612,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() @@ -3133,13 +3638,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { filterId := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -3156,7 +3662,16 @@ "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | A campaign filter details with updated field values. + }`) // CampaignFilterDetails | A campaign filter details with updated field values. + + + var campaignFilterDetails v2025.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3181,15 +3696,19 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - campaignCompleteOptions := fmt.Sprintf(`{ + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3214,12 +3733,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -3328,7 +3848,16 @@ "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | + + + var campaign v2025.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3353,13 +3882,14 @@ "context" "fmt" "os" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -3483,7 +4013,16 @@ "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | + + + var campaignTemplate v2025.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3508,6 +4047,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3515,6 +4055,9 @@ 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) r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -3536,6 +4079,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3543,6 +4087,9 @@ 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) r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -3564,14 +4111,24 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignsDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # CampaignsDeleteRequest | IDs of the campaigns to delete. + }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. + + + var campaignsDeleteRequest v2025.CampaignsDeleteRequest + if err := json.Unmarshal(data, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3596,6 +4153,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3608,6 +4166,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() @@ -3631,6 +4192,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3639,6 +4201,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() @@ -3662,6 +4227,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3669,6 +4235,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -3692,12 +4261,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -3721,6 +4294,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3728,6 +4302,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -3751,6 +4328,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3758,6 +4336,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -3781,6 +4362,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3792,6 +4374,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() @@ -3815,20 +4400,30 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | + + + var adminReviewReassign v2025.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3853,6 +4448,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3861,6 +4457,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3884,14 +4489,24 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. + + + var campaignReportsConfig v2025.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3916,13 +4531,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -3941,7 +4557,10 @@ }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3964,15 +4583,19 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + data := []byte(`{ "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) + }`) // 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) @@ -3997,6 +4620,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4004,6 +4628,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -4027,6 +4654,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4035,6 +4663,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -4058,6 +4689,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4065,6 +4697,9 @@ 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) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -4088,6 +4723,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4096,6 +4732,15 @@ id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4119,6 +4764,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4126,6 +4772,9 @@ func main() { id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() @@ -4149,6 +4798,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4156,6 +4806,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() @@ -4179,6 +4832,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4191,6 +4845,9 @@ 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) resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() @@ -4214,6 +4871,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4225,6 +4883,9 @@ 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) resp, r, err := apiClient.V2025.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() @@ -4248,6 +4909,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4260,6 +4922,9 @@ 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) resp, r, err := apiClient.V2025.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() @@ -4283,6 +4948,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4298,6 +4964,9 @@ 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) resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() @@ -4321,6 +4990,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4333,6 +5003,9 @@ 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) resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() @@ -4356,6 +5029,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4364,6 +5038,15 @@ 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 := fmt.Sprintf(`[{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(data, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() @@ -4387,13 +5070,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -4403,7 +5087,16 @@ "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | + + + var reviewReassign v2025.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4428,6 +5121,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4435,6 +5129,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() @@ -4458,13 +5155,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -4474,7 +5172,16 @@ "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | + + + var reviewReassign v2025.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4499,6 +5206,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4512,6 +5220,9 @@ 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) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() @@ -4535,6 +5246,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4543,6 +5255,9 @@ 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) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() @@ -4566,6 +5281,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4578,6 +5294,9 @@ 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) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() @@ -4601,6 +5320,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4609,6 +5329,9 @@ 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) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() @@ -4632,14 +5355,24 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deployRequest := fmt.Sprintf(`{ + data := []byte(`{ "draftId" : "3d0fe04b-57df-4a46-a83b-8f04b0f9d10b" - }`) # DeployRequest | The deploy request body. + }`) // DeployRequest | The deploy request body. + + + var deployRequest v2025.DeployRequest + if err := json.Unmarshal(data, &deployRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4664,19 +5397,29 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingRequest := fmt.Sprintf(`{ + data := []byte(`{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" - }`) # ObjectMappingRequest | The object mapping request body. + }`) // ObjectMappingRequest | The object mapping request body. + + + var objectMappingRequest v2025.ObjectMappingRequest + if err := json.Unmarshal(data, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4701,13 +5444,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingBulkCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -4721,7 +5465,16 @@ "enabled" : false, "objectType" : "IDENTITY" } ] - }`) # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + + + var objectMappingBulkCreateRequest v2025.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(data, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4746,12 +5499,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scheduledActionPayload := fmt.Sprintf(`{ + data := []byte(`{ "cronString" : "0 0 * * * *", "timeZoneId" : "America/Chicago", "startTime" : "2024-08-16T14:16:58.389Z", @@ -4773,7 +5527,16 @@ }, "sourceBackupId" : "5678b87d-48ca-439a-868f-2160001da8c2" } - }`) # ScheduledActionPayload | The scheduled action creation request body. + }`) // ScheduledActionPayload | The scheduled action creation request body. + + + var scheduledActionPayload v2025.ScheduledActionPayload + if err := json.Unmarshal(data, &scheduledActionPayload); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4798,6 +5561,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4806,6 +5570,9 @@ 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) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() @@ -4829,6 +5596,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4836,6 +5604,9 @@ 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) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() @@ -4857,6 +5628,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4864,6 +5636,9 @@ 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) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() @@ -4885,6 +5660,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4893,6 +5669,9 @@ 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) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() @@ -4914,6 +5693,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4921,6 +5701,9 @@ 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) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() @@ -4942,6 +5725,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4949,6 +5733,9 @@ 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) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() @@ -4970,6 +5757,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4977,6 +5765,9 @@ 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) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() @@ -5000,6 +5791,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5007,6 +5799,9 @@ 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) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() @@ -5030,6 +5825,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5037,6 +5833,9 @@ 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) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() @@ -5060,6 +5859,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5067,6 +5867,9 @@ 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) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListBackups(context.Background()).Execute() @@ -5090,12 +5893,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() @@ -5119,6 +5926,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5126,6 +5934,9 @@ 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) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDrafts(context.Background()).Execute() @@ -5149,12 +5960,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() @@ -5178,6 +5993,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5185,6 +6001,9 @@ 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) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() @@ -5208,13 +6027,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingBulkPatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -5227,7 +6047,16 @@ "value" : "New Target Value" } ] } - }`) # ObjectMappingBulkPatchRequest | The object mapping request body. + }`) // ObjectMappingBulkPatchRequest | The object mapping request body. + + + var objectMappingBulkPatchRequest v2025.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(data, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5252,13 +6081,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -5268,7 +6098,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. + }`) // JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. + + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5293,14 +6132,24 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorCustomizerCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerCreateRequest | Connector customizer to create. + }`) // ConnectorCustomizerCreateRequest | Connector customizer to create. + + + var connectorCustomizerCreateRequest v2025.ConnectorCustomizerCreateRequest + if err := json.Unmarshal(data, &connectorCustomizerCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5325,6 +6174,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,6 +6182,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() @@ -5355,6 +6208,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5362,6 +6216,9 @@ 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) r, err := apiClient.V2025.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() @@ -5383,6 +6240,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5390,6 +6248,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() @@ -5413,6 +6274,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5421,6 +6283,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Execute() @@ -5444,15 +6309,19 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to update. # string | ID of the connector customizer to update. - connectorCustomizerUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "My Custom Connector" - }`) # ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5477,12 +6346,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - connectorRuleCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -5507,7 +6377,16 @@ "description" : "This rule does that", "attributes" : { }, "type" : "BuildMap" - }`) # ConnectorRuleCreateRequest | Connector rule to create. + }`) // ConnectorRuleCreateRequest | Connector rule to create. + + + var connectorRuleCreateRequest v2025.ConnectorRuleCreateRequest + if err := json.Unmarshal(data, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5532,6 +6411,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5539,6 +6419,9 @@ 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) r, err := apiClient.V2025.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() @@ -5560,6 +6443,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5567,6 +6451,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() @@ -5590,6 +6477,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5599,6 +6487,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() @@ -5622,13 +6513,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to update. # string | ID of the connector rule to update. - connectorRuleUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -5654,7 +6546,10 @@ "attributes" : { }, "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" - }`) # ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) + }`) // ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5679,15 +6574,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceCode := fmt.Sprintf(`{ + data := []byte(`{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" - }`) # SourceCode | Code to validate. + }`) // SourceCode | Code to validate. + + + var sourceCode v2025.SourceCode + if err := json.Unmarshal(data, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5712,18 +6617,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - v3CreateConnectorDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" - }`) # V3CreateConnectorDto | + }`) // V3CreateConnectorDto | + + + var v3CreateConnectorDto v2025.V3CreateConnectorDto + if err := json.Unmarshal(data, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5748,6 +6663,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5755,6 +6671,9 @@ 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) r, err := apiClient.V2025.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() @@ -5776,6 +6695,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5784,6 +6704,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() @@ -5807,6 +6730,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5814,6 +6738,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() @@ -5837,6 +6764,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5848,6 +6776,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorList(context.Background()).Execute() @@ -5871,6 +6802,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5878,6 +6810,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() @@ -5901,6 +6836,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5908,6 +6844,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() @@ -5931,6 +6870,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5939,6 +6879,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -5962,6 +6905,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,6 +6914,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() @@ -5993,6 +6940,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6001,6 +6949,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() @@ -6024,6 +6975,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6032,6 +6984,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() @@ -6055,6 +7010,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6063,6 +7019,9 @@ 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) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -6086,6 +7045,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6094,6 +7054,15 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | A list of connector detail update operations + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6117,12 +7086,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -6232,7 +7202,10 @@ }, "key" : "department" } ] - }`) # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6257,12 +7230,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -6270,7 +7244,10 @@ "id" : "00000000-0000-0000-0000-000000000000", "type" : "action", "versionNumber" : 1 - }`) # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6295,6 +7272,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6303,6 +7281,9 @@ 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) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() @@ -6326,12 +7307,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - body := fmt.Sprintf(`{ + data := []byte(`{ "formInput" : { "input1" : "Sales" }, @@ -6351,7 +7333,10 @@ "formDefinitionId" : "00000000-0000-0000-0000-000000000000", "state" : "ASSIGNED", "ttl" : 1571827560 - }`) # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6376,6 +7361,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6383,6 +7369,9 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() @@ -6406,6 +7395,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6416,6 +7406,9 @@ 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) resp, r, err := apiClient.V2025.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() @@ -6439,6 +7432,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6447,6 +7441,9 @@ 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) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() @@ -6470,6 +7467,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6477,6 +7475,9 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() @@ -6500,6 +7501,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6507,6 +7509,9 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() @@ -6530,6 +7535,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6538,6 +7544,9 @@ 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) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() @@ -6561,6 +7570,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6568,6 +7578,9 @@ func main() { body := fmt.Sprintf(`[{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) resp, r, err := apiClient.V2025.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() @@ -6591,6 +7604,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6599,6 +7613,9 @@ formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID body := fmt.Sprintf(`[{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) resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() @@ -6622,6 +7639,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6630,6 +7648,9 @@ formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID body := fmt.Sprintf(`[{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) resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() @@ -6653,6 +7674,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6663,6 +7685,9 @@ 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) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() @@ -6686,6 +7711,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6697,6 +7723,9 @@ 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) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() @@ -6720,12 +7749,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() @@ -6749,12 +7782,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() @@ -6778,6 +7815,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6787,7 +7825,7 @@ limit := 10 // int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int64 | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) 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 := `ac` // 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) - formElementPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -6797,7 +7835,10 @@ }, "dataSourceType" : "STATIC" } - }`) # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6822,17 +7863,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - customPasswordInstruction := fmt.Sprintf(`{ + data := []byte(`{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" - }`) # CustomPasswordInstruction | + }`) // CustomPasswordInstruction | + + + var customPasswordInstruction v2025.CustomPasswordInstruction + if err := json.Unmarshal(data, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6857,6 +7908,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6866,6 +7918,9 @@ 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) r, err := apiClient.V2025.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -6887,6 +7942,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6896,6 +7952,9 @@ 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) resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -6919,12 +7978,22 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - dataSegment := fmt.Sprintf(``) # DataSegment | + data := []byte(``) // DataSegment | + + + var dataSegment v2025.DataSegment + if err := json.Unmarshal(data, &dataSegment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6949,6 +8018,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6958,6 +8028,9 @@ 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) r, err := apiClient.V2025.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -6979,6 +8052,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,6 +8061,9 @@ 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) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7010,6 +8087,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7018,6 +8096,9 @@ 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) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7041,6 +8122,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7049,6 +8131,9 @@ 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) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7072,6 +8157,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7086,6 +8172,9 @@ 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) resp, r, err := apiClient.V2025.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7109,6 +8198,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7118,6 +8208,15 @@ 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 := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -7141,6 +8240,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7150,6 +8250,15 @@ requestBody := fmt.Sprintf(``) // []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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -7171,13 +8280,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. - dimension := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -7263,7 +8373,16 @@ "type" : "STANDARD" }, "parentId" : "2c918086749d78830174a1a40e121518" - }`) # Dimension | + }`) // Dimension | + + + var dimension v2025.Dimension + if err := json.Unmarshal(data, &dimension); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7288,15 +8407,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimensions. # string | Parent Role Id of the dimensions. - dimensionBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "dimensionIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # DimensionBulkDeleteRequest | + }`) // DimensionBulkDeleteRequest | + + + var dimensionBulkDeleteRequest v2025.DimensionBulkDeleteRequest + if err := json.Unmarshal(data, &dimensionBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7321,6 +8450,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7329,6 +8459,9 @@ 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) r, err := apiClient.V2025.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() @@ -7350,6 +8483,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7358,6 +8492,9 @@ 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) resp, r, err := apiClient.V2025.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() @@ -7381,6 +8518,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7394,6 +8532,9 @@ 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) resp, r, err := apiClient.V2025.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Execute() @@ -7417,6 +8558,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7430,6 +8572,9 @@ 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) resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Execute() @@ -7453,6 +8598,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7466,6 +8612,9 @@ 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) resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensions(context.Background(), roleId).Execute() @@ -7489,6 +8638,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7498,6 +8648,15 @@ dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7521,6 +8680,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7531,6 +8691,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7554,6 +8717,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7564,6 +8728,9 @@ 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) r, err := apiClient.V2025.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7585,6 +8752,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7593,6 +8761,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7616,6 +8787,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7624,6 +8796,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7647,6 +8822,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7656,6 +8832,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7679,6 +8858,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7692,6 +8872,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7715,6 +8898,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7728,6 +8912,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7751,6 +8938,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7767,6 +8955,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7790,6 +8981,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7799,6 +8991,9 @@ 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 := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7822,6 +9017,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7829,12 +9025,28 @@ func main() { id := `2c91808a7813090a017814121e121518` // 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") - entitlementRequestConfig := fmt.Sprintf(`{ - "requestCommentsRequired" : false, - "deniedCommentsRequired" : false, - "allowEntitlementRequest" : true, - "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" - }`) # EntitlementRequestConfig | + data := []byte(`{ + "accessRequestConfig" : { + "denialCommentRequired" : false, + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ], + "requestCommentRequired" : true + } + }`) // EntitlementRequestConfig | + + + var entitlementRequestConfig v2025.EntitlementRequestConfig + if err := json.Unmarshal(data, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7859,6 +9071,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7867,6 +9080,9 @@ 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) resp, r, err := apiClient.V2025.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -7890,13 +9106,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - entitlementBulkUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -7907,7 +9124,16 @@ "path" : "/requestable", "value" : false } ] - }`) # EntitlementBulkUpdateRequest | + }`) // EntitlementBulkUpdateRequest | + + + var entitlementBulkUpdateRequest v2025.EntitlementBulkUpdateRequest + if err := json.Unmarshal(data, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7930,16 +9156,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - networkConfiguration := fmt.Sprintf(`{ + data := []byte(`{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "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. + }`) // 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(data, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7964,12 +9200,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() @@ -7993,12 +9233,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() @@ -8022,12 +9266,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() @@ -8051,12 +9299,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() @@ -8080,6 +9332,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8087,6 +9340,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8110,6 +9372,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8117,6 +9380,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8140,6 +9412,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8147,6 +9420,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8170,6 +9452,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8177,6 +9460,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8200,13 +9492,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupDto := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -8221,7 +9514,16 @@ "description" : "Description of the Governance Group", "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" - }`) # WorkgroupDto | + }`) // WorkgroupDto | + + + var workgroupDto v2025.WorkgroupDto + if err := json.Unmarshal(data, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8246,6 +9548,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8254,6 +9557,9 @@ 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) r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8275,6 +9581,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8284,6 +9591,15 @@ 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 := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. + + var identityPreviewResponseIdentity v2025.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -8307,15 +9623,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - workgroupBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] - }`) # WorkgroupBulkDeleteRequest | + }`) // WorkgroupBulkDeleteRequest | + + + var workgroupBulkDeleteRequest v2025.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(data, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8340,6 +9666,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8348,6 +9675,9 @@ 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) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8371,6 +9701,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8383,6 +9714,9 @@ 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) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8406,6 +9740,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8418,6 +9753,9 @@ 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) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8441,6 +9779,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8453,6 +9792,9 @@ 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) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8476,6 +9818,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8485,6 +9828,9 @@ 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 := fmt.Sprintf(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8508,6 +9854,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8517,6 +9864,15 @@ 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 := fmt.Sprintf(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. + + var identityPreviewResponseIdentity v2025.IdentityPreviewResponseIdentity + if err := json.Unmarshal(data, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -8540,19 +9896,29 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. + + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8577,19 +9943,29 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. + + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8614,19 +9990,29 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" - }`) # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. + + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8651,6 +10037,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8659,6 +10046,15 @@ 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 := fmt.Sprintf(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. + + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(data, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -8682,6 +10078,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8696,6 +10093,9 @@ 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) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8719,6 +10119,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8726,6 +10127,9 @@ 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) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8749,6 +10153,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8761,6 +10166,9 @@ 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) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8784,6 +10192,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8796,6 +10205,9 @@ 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) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8819,6 +10231,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8831,6 +10244,9 @@ 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) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8854,20 +10270,30 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - accessRequestRecommendationConfigDto := fmt.Sprintf(`{ + data := []byte(`{ "scoreThreshold" : 0.5, "startDateAttribute" : "startDate", "restrictionAttribute" : "location", "moverAttribute" : "isMover", "joinerAttribute" : "isJoiner", "useRestrictionAttribute" : true - }`) # AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. + }`) // AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. + + + var accessRequestRecommendationConfigDto v2025.AccessRequestRecommendationConfigDto + if err := json.Unmarshal(data, &accessRequestRecommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8892,13 +10318,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - commonAccessItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -8908,7 +10335,16 @@ "ownerId" : "ownerId" }, "status" : "CONFIRMED" - }`) # CommonAccessItemRequest | + }`) // CommonAccessItemRequest | + + + var commonAccessItemRequest v2025.CommonAccessItemRequest + if err := json.Unmarshal(data, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8933,6 +10369,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8945,6 +10382,9 @@ 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) resp, r, err := apiClient.V2025.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8968,6 +10408,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8976,6 +10417,15 @@ 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 := fmt.Sprintf(``) // []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(data, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() @@ -8999,6 +10449,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9007,6 +10458,9 @@ 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) resp, r, err := apiClient.V2025.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9030,6 +10484,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9042,6 +10497,9 @@ 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) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9065,6 +10523,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9078,6 +10537,9 @@ 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) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9101,6 +10563,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9109,6 +10572,9 @@ 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) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9132,6 +10598,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9140,6 +10607,9 @@ 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) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9163,6 +10633,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9176,6 +10647,9 @@ 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) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9199,6 +10673,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9207,6 +10682,15 @@ 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 := fmt.Sprintf(``) // []string | + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -9228,6 +10712,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9242,6 +10727,9 @@ 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) resp, r, err := apiClient.V2025.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9265,6 +10753,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9273,6 +10762,15 @@ 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 := fmt.Sprintf(``) // []string | + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -9294,6 +10792,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9305,6 +10804,9 @@ 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) resp, r, err := apiClient.V2025.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9328,13 +10830,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -9352,7 +10855,16 @@ } ], "includeTranslationMessages" : false, "includeDebugInformation" : true - }`) # RecommendationRequestDto | + }`) // RecommendationRequestDto | + + + var recommendationRequestDto v2025.RecommendationRequestDto + if err := json.Unmarshal(data, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9377,6 +10889,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9384,6 +10897,9 @@ 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) resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9407,18 +10923,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - recommendationConfigDto := fmt.Sprintf(`{ + data := []byte(`{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false - }`) # RecommendationConfigDto | + }`) // RecommendationConfigDto | + + + var recommendationConfigDto v2025.RecommendationConfigDto + if err := json.Unmarshal(data, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9443,6 +10969,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9453,13 +10980,16 @@ 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") minEntitlementPopularity := 56 // int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int32 | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to true) - roleMiningPotentialRoleProvisionRequest := fmt.Sprintf(`{ + data := []byte(`{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false - }`) # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9484,13 +11014,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - roleMiningSessionDto := fmt.Sprintf(`{ + data := []byte(`{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -9521,7 +11052,16 @@ "minNumIdentitiesInPotentialRole" : 20, "identityCount" : 0, "type" : "SPECIALIZED" - }`) # RoleMiningSessionDto | Role mining session parameters + }`) // RoleMiningSessionDto | Role mining session parameters + + + var roleMiningSessionDto v2025.RoleMiningSessionDto + if err := json.Unmarshal(data, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9546,6 +11086,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9556,6 +11097,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9579,6 +11123,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9588,6 +11133,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9611,6 +11159,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9619,10 +11168,13 @@ sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id 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 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") - roleMiningPotentialRoleExportRequest := fmt.Sprintf(`{ + data := []byte(`{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true - }`) # RoleMiningPotentialRoleExportRequest | (optional) + }`) // RoleMiningPotentialRoleExportRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9647,6 +11199,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9657,6 +11210,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9680,6 +11236,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9692,6 +11249,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9715,6 +11275,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9725,6 +11286,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9748,6 +11312,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9763,6 +11328,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9786,6 +11354,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9800,6 +11369,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9823,6 +11395,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9837,6 +11410,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9860,6 +11436,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9869,6 +11446,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9892,6 +11472,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9905,6 +11486,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9928,6 +11512,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9941,6 +11526,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9964,6 +11552,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9977,6 +11566,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10000,6 +11592,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10013,6 +11606,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10036,6 +11632,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10044,6 +11641,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10067,6 +11667,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10075,6 +11676,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10098,6 +11702,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10106,6 +11711,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10129,6 +11737,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10141,6 +11750,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10164,6 +11776,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10175,6 +11788,9 @@ 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) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10198,6 +11814,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,6 +11825,15 @@ 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 := fmt.Sprintf(`[{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(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -10231,6 +11857,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10241,6 +11868,15 @@ 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 := fmt.Sprintf(`[{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(data, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -10264,6 +11900,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10273,6 +11910,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -10296,6 +11942,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10304,10 +11951,19 @@ 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 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") - roleMiningPotentialRoleEditEntitlements := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "entId1", "entId2" ], "exclude" : true - }`) # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters + + + var roleMiningPotentialRoleEditEntitlements v2025.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(data, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10332,6 +11988,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10341,6 +11998,9 @@ 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) r, err := apiClient.V2025.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10362,6 +12022,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10372,6 +12033,9 @@ 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) resp, r, err := apiClient.V2025.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() @@ -10395,6 +12059,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10403,6 +12068,9 @@ 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) r, err := apiClient.V2025.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10424,6 +12092,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10432,6 +12101,9 @@ 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) resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10455,6 +12127,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10463,6 +12136,9 @@ 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) resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10486,6 +12162,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10495,6 +12172,9 @@ 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) resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10518,6 +12198,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10528,6 +12209,9 @@ 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) resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10551,6 +12235,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10564,6 +12249,9 @@ 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) resp, r, err := apiClient.V2025.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10587,6 +12275,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10595,6 +12284,9 @@ 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) r, err := apiClient.V2025.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10616,6 +12308,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10623,10 +12316,19 @@ 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 := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - sendAccountVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" - }`) # SendAccountVerificationRequest | + }`) // SendAccountVerificationRequest | + + + var sendAccountVerificationRequest v2025.SendAccountVerificationRequest + if err := json.Unmarshal(data, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10649,16 +12351,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - inviteIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false - }`) # InviteIdentitiesRequest | + }`) // InviteIdentitiesRequest | + + + var inviteIdentitiesRequest v2025.InviteIdentitiesRequest + if err := json.Unmarshal(data, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10683,15 +12395,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - processIdentitiesRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] - }`) # ProcessIdentitiesRequest | + }`) // ProcessIdentitiesRequest | + + + var processIdentitiesRequest v2025.ProcessIdentitiesRequest + if err := json.Unmarshal(data, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10716,6 +12438,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10724,6 +12447,9 @@ 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) resp, r, err := apiClient.V2025.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10747,13 +12473,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttribute := fmt.Sprintf(`{ + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -10774,7 +12501,16 @@ "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | + + + var identityAttribute v2025.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10799,6 +12535,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,6 +12544,9 @@ 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) r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10828,15 +12568,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityAttributeNames := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "name", "displayName" ] - }`) # IdentityAttributeNames | + }`) // IdentityAttributeNames | + + + var identityAttributeNames v2025.IdentityAttributeNames + if err := json.Unmarshal(data, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10859,6 +12609,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10867,6 +12618,9 @@ 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) resp, r, err := apiClient.V2025.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10890,6 +12644,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10901,6 +12656,9 @@ 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) resp, r, err := apiClient.V2025.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10924,6 +12682,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10931,7 +12690,7 @@ 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") - identityAttribute := fmt.Sprintf(`{ + data := []byte(`{ "standard" : false, "system" : false, "sources" : [ { @@ -10952,7 +12711,16 @@ "type" : "string", "searchable" : false, "multi" : false - }`) # IdentityAttribute | + }`) // IdentityAttribute | + + + var identityAttribute v2025.IdentityAttribute + if err := json.Unmarshal(data, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10977,6 +12745,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,6 +12760,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11014,6 +12786,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11029,6 +12802,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11052,6 +12828,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11060,6 +12837,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11083,6 +12863,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11097,6 +12878,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11120,6 +12904,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11129,6 +12914,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11152,6 +12940,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11166,6 +12955,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11189,6 +12981,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11197,6 +12990,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11220,6 +13016,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11232,6 +13029,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11255,6 +13055,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11267,6 +13068,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11290,6 +13094,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11300,6 +13105,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11323,6 +13131,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11336,6 +13145,9 @@ 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) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11359,12 +13171,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -11412,7 +13225,16 @@ "name" : "aName", "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | + + + var identityProfile v2025.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11437,6 +13259,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11444,6 +13267,9 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -11467,6 +13293,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11474,6 +13301,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. + + var requestBody v2025.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -11497,6 +13333,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11508,6 +13345,9 @@ 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) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() @@ -11531,13 +13371,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - identityPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -11563,7 +13404,16 @@ } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. + + + var identityPreviewRequest v2025.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11588,6 +13438,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11595,6 +13446,9 @@ 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) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -11618,6 +13472,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11625,6 +13480,9 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -11648,6 +13506,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11655,6 +13514,15 @@ func main() { identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. + + var identityProfileExportedObject v2025.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -11678,6 +13546,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11689,6 +13558,9 @@ 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) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() @@ -11712,6 +13584,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11719,6 +13592,9 @@ 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) resp, r, err := apiClient.V2025.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -11742,6 +13618,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11750,6 +13627,15 @@ identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11773,13 +13659,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - lifecycleState := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -11803,7 +13690,16 @@ "technicalName" : "Technical Name", "identityState" : "identityState", "enabled" : true - }`) # LifecycleState | Lifecycle state to be created. + }`) // LifecycleState | Lifecycle state to be created. + + + var lifecycleState v2025.LifecycleState + if err := json.Unmarshal(data, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11828,6 +13724,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11836,6 +13733,9 @@ 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) resp, r, err := apiClient.V2025.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -11859,6 +13759,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11867,6 +13768,9 @@ 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) resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -11890,6 +13794,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11901,6 +13806,9 @@ 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) resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() @@ -11924,13 +13832,23 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. - setLifecycleStateRequest := fmt.Sprintf(``) # SetLifecycleStateRequest | + data := []byte(``) // SetLifecycleStateRequest | + + + var setLifecycleStateRequest v2025.SetLifecycleStateRequest + if err := json.Unmarshal(data, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11955,6 +13873,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11964,6 +13883,15 @@ lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11987,6 +13915,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11995,6 +13924,9 @@ 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) resp, r, err := apiClient.V2025.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12018,6 +13950,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12030,6 +13963,9 @@ 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) resp, r, err := apiClient.V2025.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12053,6 +13989,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12062,6 +13999,15 @@ 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 := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -12085,13 +14031,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - machineIdentity := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2015-05-28T14:07:17Z", "businessApplication" : "ADService", "name" : "aName", @@ -12100,7 +14047,16 @@ "attributes" : "{\"Region\":\"EU\"}", "id" : "id12345", "manuallyEdited" : true - }`) # MachineIdentity | + }`) // MachineIdentity | + + + var machineIdentity v2025.MachineIdentity + if err := json.Unmarshal(data, &machineIdentity); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12125,6 +14081,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12133,6 +14090,9 @@ 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) r, err := apiClient.V2025.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12154,6 +14114,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12162,6 +14123,9 @@ 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) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12185,6 +14149,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12197,6 +14162,9 @@ 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) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12220,6 +14188,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12229,6 +14198,15 @@ 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 := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -12252,17 +14230,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" - }`) # ManagedClientRequest | + }`) // ManagedClientRequest | + + + var managedClientRequest v2025.ManagedClientRequest + if err := json.Unmarshal(data, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12287,6 +14275,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12294,6 +14283,9 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() @@ -12315,6 +14307,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12322,6 +14315,9 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() @@ -12345,6 +14341,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12353,6 +14350,9 @@ 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) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -12376,6 +14376,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12386,6 +14387,9 @@ 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) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() @@ -12409,6 +14413,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12417,6 +14422,15 @@ id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12440,12 +14454,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterRequest := fmt.Sprintf(`{ + data := []byte(`{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -12453,7 +14468,16 @@ "name" : "Managed Cluster Name", "description" : "A short description of the managed cluster.", "type" : "idn" - }`) # ManagedClusterRequest | + }`) // ManagedClusterRequest | + + + var managedClusterRequest v2025.ManagedClusterRequest + if err := json.Unmarshal(data, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12478,6 +14502,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12486,6 +14511,9 @@ 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) r, err := apiClient.V2025.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() @@ -12507,6 +14535,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12514,6 +14543,9 @@ 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) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -12537,6 +14569,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12544,6 +14577,9 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -12567,6 +14603,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12577,6 +14614,9 @@ 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) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() @@ -12600,13 +14640,23 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + data := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + + + var putClientLogConfigurationRequest v2025.PutClientLogConfigurationRequest + if err := json.Unmarshal(data, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12631,6 +14681,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12638,6 +14689,9 @@ 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) resp, r, err := apiClient.V2025.ManagedClustersAPI.Update(context.Background(), id).Execute() @@ -12661,6 +14715,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12669,6 +14724,15 @@ id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12692,18 +14756,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterType := fmt.Sprintf(`{ + data := []byte(`{ "managedProcessIds" : [ "someId", "someId2" ], "pod" : "megapod-useast1", "org" : "denali-cjh", "id" : "aClusterTypeId", "type" : "idn" - }`) # ManagedClusterType | + }`) // ManagedClusterType | + + + var managedClusterType v2025.ManagedClusterType + if err := json.Unmarshal(data, &managedClusterType); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12728,6 +14802,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12735,6 +14810,9 @@ func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() @@ -12756,6 +14834,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,6 +14842,9 @@ func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() @@ -12786,6 +14868,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12797,6 +14880,9 @@ 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) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Execute() @@ -12820,13 +14906,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -12836,7 +14923,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JSONPatch payload used to update the schema. + }`) // JsonPatch | The JSONPatch payload used to update the schema. + + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12861,12 +14957,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -12890,6 +14990,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12897,6 +14998,9 @@ 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) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() @@ -12920,12 +15024,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -12949,12 +15057,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -12964,7 +15073,16 @@ "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | + + + var mfaDuoConfig v2025.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12989,6 +15107,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12996,6 +15115,15 @@ func main() { kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | + + var kbaAnswerRequestItem v2025.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -13019,18 +15147,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | + + + var mfaOktaConfig v2025.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13055,6 +15193,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13062,6 +15201,9 @@ 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) resp, r, err := apiClient.V2025.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -13085,12 +15227,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiHostIntegrationsCreate := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "MyName", "id" : "2c91808568c529c60168cca6f90c1313", @@ -13115,7 +15258,16 @@ "name" : "My Multi-Host Integration", "description" : "This is the Multi-Host Integration.", "modified" : "2024-01-23T18:08:50.897Z" - }`) # MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create + + + var multiHostIntegrationsCreate v2025.MultiHostIntegrationsCreate + if err := json.Unmarshal(data, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13140,6 +15292,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,6 +15301,15 @@ multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. multiHostIntegrationsCreateSources := fmt.Sprintf(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. + + var multiHostIntegrationsCreateSources v2025.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(data, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() @@ -13169,6 +15331,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13176,6 +15339,9 @@ 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) r, err := apiClient.V2025.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() @@ -13197,6 +15363,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13206,6 +15373,9 @@ 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) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() @@ -13229,6 +15399,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13238,6 +15409,9 @@ 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) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() @@ -13261,6 +15435,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13268,6 +15443,9 @@ 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) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() @@ -13291,6 +15469,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13303,6 +15482,9 @@ 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) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() @@ -13326,6 +15508,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13333,6 +15516,9 @@ 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) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() @@ -13356,12 +15542,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() @@ -13385,6 +15575,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13397,6 +15588,9 @@ 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) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() @@ -13420,6 +15614,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13427,6 +15622,9 @@ 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) r, err := apiClient.V2025.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() @@ -13448,6 +15646,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13456,6 +15655,9 @@ 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) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() @@ -13479,6 +15681,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13487,6 +15690,15 @@ multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. updateMultiHostSourcesRequestInner := fmt.Sprintf(`[{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(data, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() @@ -13508,15 +15720,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "Approved by manager" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | + + + var nonEmployeeApprovalDecision v2025.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13541,13 +15763,14 @@ "context" "fmt" "os" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -13560,7 +15783,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. + + + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13585,13 +15817,14 @@ "context" "fmt" "os" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -13604,7 +15837,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body + + + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13629,12 +15871,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -13659,7 +15902,16 @@ }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. + + + var nonEmployeeSourceRequestBody v2025.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13684,20 +15936,30 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | + + + var nonEmployeeSchemaAttributeBody v2025.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13722,6 +15984,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13729,6 +15992,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -13750,12 +16016,22 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordsInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + + + var deleteNonEmployeeRecordsInBulkRequest v2025.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13778,6 +16054,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13785,6 +16062,9 @@ 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) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -13806,6 +16086,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13814,6 +16095,9 @@ 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) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -13835,6 +16119,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13842,6 +16127,9 @@ func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -13863,6 +16151,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13870,6 +16159,9 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -13891,6 +16183,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13898,6 +16191,9 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -13919,6 +16215,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13926,6 +16223,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -13947,6 +16247,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13955,6 +16256,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() @@ -13978,6 +16282,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13985,6 +16290,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -14008,6 +16316,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14015,6 +16324,9 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -14038,6 +16350,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14045,6 +16358,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -14068,6 +16384,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14075,6 +16392,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -14098,6 +16418,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14105,6 +16426,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -14128,6 +16452,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14136,6 +16461,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -14159,6 +16487,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14166,6 +16495,9 @@ func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -14189,6 +16521,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14196,6 +16529,9 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -14219,6 +16555,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14227,6 +16564,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -14250,6 +16590,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14262,6 +16603,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() @@ -14285,6 +16629,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14296,6 +16641,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() @@ -14319,6 +16667,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14331,6 +16680,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() @@ -14354,6 +16706,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14366,6 +16719,9 @@ 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) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() @@ -14389,6 +16745,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14397,6 +16754,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14420,6 +16786,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14429,6 +16796,15 @@ sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14452,6 +16828,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14460,6 +16837,15 @@ sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14483,15 +16869,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "approved" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | + + + var nonEmployeeRejectApprovalDecision v2025.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14516,6 +16912,7 @@ "context" "fmt" "os" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -14523,7 +16920,7 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -14536,7 +16933,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14561,15 +16967,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - domainAddress := fmt.Sprintf(`{ + data := []byte(`{ "domain" : "sailpoint.com" - }`) # DomainAddress | + }`) // DomainAddress | + + + var domainAddress v2025.DomainAddress + if err := json.Unmarshal(data, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14594,13 +17010,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - templateDto := fmt.Sprintf(`{ + data := []byte(`{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -14617,7 +17034,16 @@ "from" : "$__global.emailFromAddress", "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" - }`) # TemplateDto | + }`) // TemplateDto | + + + var templateDto v2025.TemplateDto + if err := json.Unmarshal(data, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14642,18 +17068,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - emailStatusDto := fmt.Sprintf(`{ + data := []byte(`{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" - }`) # EmailStatusDto | + }`) // EmailStatusDto | + + + var emailStatusDto v2025.EmailStatusDto + if err := json.Unmarshal(data, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -14678,6 +17114,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14686,6 +17123,15 @@ 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 := fmt.Sprintf(``) // []TemplateBulkDeleteDto | + + var templateBulkDeleteDto v2025.TemplateBulkDeleteDto + if err := json.Unmarshal(data, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() @@ -14707,6 +17153,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14715,6 +17162,9 @@ 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) r, err := apiClient.V2025.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14736,6 +17186,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14743,6 +17194,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14766,6 +17220,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14774,6 +17229,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14797,6 +17255,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14805,6 +17264,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14828,6 +17290,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14835,6 +17298,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14858,6 +17324,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14870,6 +17337,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14893,6 +17363,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14900,6 +17371,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14923,6 +17397,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14933,6 +17408,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14956,6 +17434,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14966,6 +17445,9 @@ 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) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14989,16 +17471,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - mailFromAttributesDto := fmt.Sprintf(`{ + data := []byte(`{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" - }`) # MailFromAttributesDto | + }`) // MailFromAttributesDto | + + + var mailFromAttributesDto v2025.MailFromAttributesDto + if err := json.Unmarshal(data, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15023,17 +17515,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sendTestNotificationRequestDto := fmt.Sprintf(`{ + data := []byte(`{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" - }`) # SendTestNotificationRequestDto | + }`) // SendTestNotificationRequestDto | + + + var sendTestNotificationRequestDto v2025.SendTestNotificationRequestDto + if err := json.Unmarshal(data, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15056,12 +17558,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -15077,7 +17580,16 @@ "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | + + + var createOAuthClientRequest v2025.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15102,6 +17614,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15109,6 +17622,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -15130,6 +17646,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15137,6 +17654,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -15160,6 +17680,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15167,6 +17688,9 @@ 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) resp, r, err := apiClient.V2025.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() @@ -15190,6 +17714,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15198,6 +17723,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15221,6 +17755,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15228,6 +17763,9 @@ 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) resp, r, err := apiClient.V2025.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -15251,6 +17789,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15261,6 +17800,9 @@ 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) resp, r, err := apiClient.V2025.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -15284,6 +17826,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15292,6 +17835,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15315,17 +17867,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig v2025.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15350,12 +17912,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -15379,17 +17945,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig v2025.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15414,12 +17990,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -15443,6 +18023,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15450,6 +18031,9 @@ func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() @@ -15471,17 +18055,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - passwordDigitTokenReset := fmt.Sprintf(`{ + data := []byte(`{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" - }`) # PasswordDigitTokenReset | + }`) // PasswordDigitTokenReset | + + + var passwordDigitTokenReset v2025.PasswordDigitTokenReset + if err := json.Unmarshal(data, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15506,6 +18100,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15513,6 +18108,9 @@ func main() { id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() @@ -15536,15 +18134,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | + + + var passwordInfoQueryDTO v2025.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15569,18 +18177,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | + + + var passwordChangeRequest v2025.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15605,12 +18223,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -15642,7 +18261,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15667,6 +18295,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15674,6 +18303,9 @@ 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) r, err := apiClient.V2025.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -15695,6 +18327,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15702,6 +18335,9 @@ 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) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -15725,6 +18361,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15734,6 +18371,9 @@ 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) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() @@ -15757,13 +18397,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -15795,7 +18436,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15820,19 +18470,29 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup v2025.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15857,6 +18517,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15864,6 +18525,9 @@ 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) r, err := apiClient.V2025.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -15885,6 +18549,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15892,6 +18557,9 @@ 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) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -15915,6 +18583,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15924,6 +18593,9 @@ 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) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() @@ -15947,20 +18619,30 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup v2025.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -15985,16 +18667,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. + + + var createPersonalAccessTokenRequest v2025.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16019,6 +18711,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16026,6 +18719,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -16047,6 +18743,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16055,6 +18752,9 @@ 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) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() @@ -16078,6 +18778,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16086,6 +18787,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16109,6 +18819,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16121,6 +18832,9 @@ 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) resp, r, err := apiClient.V2025.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() @@ -16144,12 +18858,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -16173,12 +18891,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -16192,7 +18911,16 @@ "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | + + + var publicIdentityConfig v2025.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16217,6 +18945,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16224,6 +18953,9 @@ 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) r, err := apiClient.V2025.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() @@ -16245,6 +18977,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16255,6 +18988,9 @@ 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) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() @@ -16278,6 +19014,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16286,6 +19023,9 @@ 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) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() @@ -16309,18 +19049,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportDetails := fmt.Sprintf(`{ + data := []byte(`{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } - }`) # ReportDetails | + }`) // ReportDetails | + + + var reportDetails v2025.ReportDetails + if err := json.Unmarshal(data, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16345,6 +19095,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16360,6 +19111,9 @@ 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) resp, r, err := apiClient.V2025.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() @@ -16383,6 +19137,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16390,6 +19145,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16413,6 +19171,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16423,6 +19182,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16446,6 +19208,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16461,6 +19224,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16484,6 +19250,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16492,6 +19259,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16515,6 +19285,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16527,6 +19298,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16550,6 +19324,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16559,6 +19334,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16582,6 +19360,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16592,6 +19371,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16615,6 +19397,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16623,6 +19406,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16646,6 +19432,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16653,6 +19440,9 @@ 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) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -16676,12 +19466,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -16839,7 +19630,16 @@ }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | + + + var role v2025.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16864,14 +19664,24 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | + + + var roleBulkDeleteRequest v2025.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -16896,6 +19706,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16905,6 +19716,9 @@ 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) r, err := apiClient.V2025.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() @@ -16926,6 +19740,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16933,6 +19748,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -16954,12 +19772,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() @@ -16983,6 +19805,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16990,6 +19813,9 @@ 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) resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() @@ -17013,6 +19839,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17020,6 +19847,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetRole(context.Background(), id).Execute() @@ -17043,6 +19873,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17055,6 +19886,9 @@ 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) resp, r, err := apiClient.V2025.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() @@ -17078,6 +19912,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17091,6 +19926,9 @@ 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) resp, r, err := apiClient.V2025.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17114,6 +19952,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17128,6 +19967,9 @@ 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) resp, r, err := apiClient.V2025.RolesAPI.ListRoles(context.Background()).Execute() @@ -17151,6 +19993,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17159,6 +20002,15 @@ id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17182,6 +20034,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17194,13 +20047,16 @@ 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) 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) - roleListFilterDTO := fmt.Sprintf(`{ + data := []byte(`{ "ammKeyValues" : [ { "attribute" : "iscFederalClassifications", "values" : [ "secret" ] } ], "filters" : "dimensional eq false" - }`) # RoleListFilterDTO | (optional) + }`) // RoleListFilterDTO | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17225,6 +20081,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17234,6 +20091,9 @@ 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) resp, r, err := apiClient.V2025.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() @@ -17257,12 +20117,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByFilterRequest := fmt.Sprintf(`{ + data := []byte(`{ "values" : [ { "attribute" : "iscFederalClassifications", "values" : [ "topSecret" ] @@ -17270,7 +20131,16 @@ "filters" : " requestable eq false", "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByFilterRequest | + }`) // RoleMetadataBulkUpdateByFilterRequest | + + + var roleMetadataBulkUpdateByFilterRequest v2025.RoleMetadataBulkUpdateByFilterRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByFilterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17295,12 +20165,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByIdRequest := fmt.Sprintf(`{ + data := []byte(`{ "roles" : [ "b1db89554cfa431cb8b9921ea38d9367" ], "values" : [ { "attribute" : "iscFederalClassifications", @@ -17308,7 +20179,16 @@ } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByIdRequest | + }`) // RoleMetadataBulkUpdateByIdRequest | + + + var roleMetadataBulkUpdateByIdRequest v2025.RoleMetadataBulkUpdateByIdRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByIdRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17333,12 +20213,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleMetadataBulkUpdateByQueryRequest := fmt.Sprintf(`{ + data := []byte(`{ "query" : { "query\"" : { "indices" : [ "roles" ], @@ -17361,7 +20242,16 @@ } ], "replaceScope" : "ALL", "operation" : "REPLACE" - }`) # RoleMetadataBulkUpdateByQueryRequest | + }`) // RoleMetadataBulkUpdateByQueryRequest | + + + var roleMetadataBulkUpdateByQueryRequest v2025.RoleMetadataBulkUpdateByQueryRequest + if err := json.Unmarshal(data, &roleMetadataBulkUpdateByQueryRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17386,12 +20276,22 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createSavedSearchRequest := fmt.Sprintf(``) # CreateSavedSearchRequest | The saved search to persist. + data := []byte(``) // CreateSavedSearchRequest | The saved search to persist. + + + var createSavedSearchRequest v2025.CreateSavedSearchRequest + if err := json.Unmarshal(data, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17416,6 +20316,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17423,6 +20324,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() @@ -17444,13 +20348,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - searchArguments := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -17460,7 +20365,16 @@ "type" : "IDENTITY" } ], "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. + }`) // 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(data, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17483,6 +20397,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17490,6 +20405,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() @@ -17513,6 +20431,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17523,6 +20442,9 @@ 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) resp, r, err := apiClient.V2025.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() @@ -17546,13 +20468,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - savedSearch := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -17596,7 +20519,16 @@ "modified" : "2018-06-25T20:22:28.104Z", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] - }`) # SavedSearch | The saved search to persist. + }`) // SavedSearch | The saved search to persist. + + + var savedSearch v2025.SavedSearch + if err := json.Unmarshal(data, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17621,12 +20553,22 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createScheduledSearchRequest := fmt.Sprintf(`{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. + data := []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(data, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17651,6 +20593,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17658,6 +20601,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() @@ -17679,6 +20625,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17686,6 +20633,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() @@ -17709,6 +20659,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17719,6 +20670,9 @@ 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) resp, r, err := apiClient.V2025.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() @@ -17742,16 +20696,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - typedReference := fmt.Sprintf(`{ + data := []byte(`{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" - }`) # TypedReference | The recipient to be removed from the scheduled search. + }`) // TypedReference | The recipient to be removed from the scheduled search. + + + var typedReference v2025.TypedReference + if err := json.Unmarshal(data, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17774,13 +20738,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - scheduledSearch := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -17870,7 +20835,16 @@ "modified" : "", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false - }`) # ScheduledSearch | The scheduled search to persist. + }`) // ScheduledSearch | The scheduled search to persist. + + + var scheduledSearch v2025.ScheduledSearch + if err := json.Unmarshal(data, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -17895,12 +20869,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -18016,11 +20991,20 @@ "type" : "access" } } - }`) # Search | + }`) // Search | 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) 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(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() @@ -18044,12 +21028,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -18165,7 +21150,16 @@ "type" : "access" } } - }`) # Search | + }`) // Search | + + + var search v2025.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18188,6 +21182,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18196,6 +21191,9 @@ 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) resp, r, err := apiClient.V2025.SearchAPI.SearchGet(context.Background(), index, id).Execute() @@ -18219,12 +21217,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -18340,11 +21339,20 @@ "type" : "access" } } - }`) # Search | + }`) // Search | 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 := 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(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchPost(context.Background()).Search(search).Execute() @@ -18368,20 +21376,30 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - searchAttributeConfig := fmt.Sprintf(`{ + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | + + + var searchAttributeConfig v2025.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18406,6 +21424,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18414,6 +21433,9 @@ 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) r, err := apiClient.V2025.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -18435,6 +21457,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18444,6 +21467,9 @@ 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) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -18467,6 +21493,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18475,6 +21502,9 @@ 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) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -18498,6 +21528,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18507,6 +21538,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -18530,12 +21570,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -18558,7 +21599,16 @@ "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | + + + var segment v2025.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18583,6 +21633,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18590,6 +21641,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -18611,6 +21665,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18618,6 +21673,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -18641,6 +21699,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18650,6 +21709,9 @@ 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) resp, r, err := apiClient.V2025.SegmentsAPI.ListSegments(context.Background()).Execute() @@ -18673,6 +21735,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18681,6 +21744,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -18704,12 +21776,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -18742,7 +21815,16 @@ }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create + + + var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -18767,6 +21849,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18774,6 +21857,9 @@ 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) r, err := apiClient.V2025.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -18795,6 +21881,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18802,6 +21889,9 @@ 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) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -18825,6 +21915,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18832,6 +21923,9 @@ 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) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -18855,12 +21949,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -18884,6 +21982,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18895,6 +21994,9 @@ 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) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() @@ -18918,12 +22020,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -18947,6 +22053,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18955,6 +22062,15 @@ id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonPatchOperation := fmt.Sprintf(``) // []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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -18978,13 +22094,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -19017,7 +22134,16 @@ }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update + + + var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19042,15 +22168,25 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration + + + var queuedCheckConfigDetails v2025.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19075,13 +22211,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - simIntegrationDetails := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -19098,7 +22235,16 @@ "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | DTO containing the details of the SIM integration + }`) // SimIntegrationDetails | DTO containing the details of the SIM integration + + + var simIntegrationDetails v2025.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19123,6 +22269,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19131,6 +22278,9 @@ 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) r, err := apiClient.V2025.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19152,6 +22302,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19160,6 +22311,9 @@ 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) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19183,6 +22337,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19190,6 +22345,9 @@ 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) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19213,6 +22371,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19220,7 +22379,7 @@ func main() { id := `12345` // string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -19230,7 +22389,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. + + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19255,6 +22423,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 +22431,7 @@ func main() { id := `12345` // string | SIM integration id # string | SIM integration 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") - jsonPatch := fmt.Sprintf(`{ + data := []byte(`{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -19272,7 +22441,16 @@ "path" : "/description", "value" : "New description" } ] - }`) # JsonPatch | The JsonPatch object that describes the changes of SIM + }`) // JsonPatch | The JsonPatch object that describes the changes of SIM + + + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(data, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19297,6 +22475,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19304,7 +22483,7 @@ 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") - simIntegrationDetails := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -19321,7 +22500,16 @@ "id" : "2c918085708c274401708c2a8a760001", "type" : "IDENTITY" } - }`) # SimIntegrationDetails | The full DTO of the integration containing the updated model + }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model + + + var simIntegrationDetails v2025.SimIntegrationDetails + if err := json.Unmarshal(data, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19346,12 +22534,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -19406,7 +22595,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy v2025.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19431,6 +22629,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19439,6 +22638,9 @@ 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) r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() @@ -19460,6 +22662,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19467,6 +22670,9 @@ 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) r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -19488,6 +22694,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19496,6 +22703,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -19519,6 +22729,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19526,6 +22737,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -19549,12 +22763,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -19578,6 +22796,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19585,6 +22804,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -19608,6 +22830,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19615,6 +22838,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -19638,6 +22864,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19645,6 +22872,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -19668,6 +22898,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19675,6 +22906,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -19698,6 +22932,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19709,6 +22944,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() @@ -19732,6 +22970,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19740,6 +22979,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -19763,13 +23011,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + data := []byte(`{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -19854,7 +23103,16 @@ "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | + + + var sodPolicySchedule v2025.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19879,13 +23137,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -19940,7 +23199,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy v2025.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -19965,6 +23233,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19972,6 +23241,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() @@ -19995,14 +23267,18 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20027,6 +23303,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20034,6 +23311,9 @@ 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) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -20057,12 +23337,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -20073,7 +23354,16 @@ "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | + + + var identityWithNewAccess v2025.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20098,12 +23388,22 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess1 := fmt.Sprintf(`{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 | + data := []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(data, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20128,13 +23428,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -20173,7 +23474,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20198,12 +23508,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -20285,9 +23596,18 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // 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(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() @@ -20311,13 +23631,23 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - schedule1 := fmt.Sprintf(``) # Schedule1 | + data := []byte(``) // Schedule1 | + + + var schedule1 v2025.Schedule1 + if err := json.Unmarshal(data, &schedule1); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20342,13 +23672,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -20381,7 +23712,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema v2025.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -20406,6 +23746,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20414,6 +23755,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20437,6 +23781,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,6 +23790,9 @@ 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) r, err := apiClient.V2025.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20466,6 +23814,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20474,6 +23823,9 @@ 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) r, err := apiClient.V2025.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -20495,6 +23847,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20502,6 +23855,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.DeleteSource(context.Background(), id).Execute() @@ -20525,6 +23881,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20533,6 +23890,9 @@ 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) r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -20554,6 +23914,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20562,6 +23923,9 @@ 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) r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -20583,6 +23947,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20590,6 +23955,9 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() @@ -20611,6 +23979,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20618,6 +23987,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() @@ -20641,6 +24013,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20649,6 +24022,9 @@ 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) r, err := apiClient.V2025.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() @@ -20670,6 +24046,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20678,6 +24055,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20701,6 +24081,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20709,6 +24090,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -20732,6 +24116,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20739,6 +24124,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -20762,6 +24150,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20770,6 +24159,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20793,6 +24185,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20801,6 +24194,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() @@ -20824,6 +24220,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20831,6 +24228,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() @@ -20854,6 +24254,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20861,6 +24262,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -20884,6 +24288,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20891,6 +24296,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() @@ -20914,6 +24322,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20922,6 +24331,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -20945,6 +24357,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20952,6 +24365,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() @@ -20975,6 +24391,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20983,6 +24400,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -21006,6 +24426,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21015,6 +24436,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() @@ -21038,6 +24462,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21047,6 +24472,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.ImportAccounts(context.Background(), id).Execute() @@ -21070,6 +24498,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21078,6 +24507,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() @@ -21101,6 +24533,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21109,6 +24542,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() @@ -21132,6 +24568,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21141,6 +24578,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() @@ -21164,6 +24604,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21173,6 +24614,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21196,6 +24640,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21203,6 +24648,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -21226,6 +24674,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21239,6 +24688,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.ListSources(context.Background()).Execute() @@ -21262,6 +24714,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21269,6 +24722,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() @@ -21292,13 +24748,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - correlationConfig := fmt.Sprintf(`{ + data := []byte(`{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -21318,7 +24775,16 @@ } ], "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" - }`) # CorrelationConfig | + }`) // CorrelationConfig | + + + var correlationConfig v2025.CorrelationConfig + if err := json.Unmarshal(data, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21343,6 +24809,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21350,14 +24817,23 @@ 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") - nativeChangeDetectionConfig := fmt.Sprintf(`{ + data := []byte(`{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], "allNonEntitlementAttributes" : false, "allEntitlements" : false, "enabled" : true - }`) # NativeChangeDetectionConfig | + }`) // NativeChangeDetectionConfig | + + + var nativeChangeDetectionConfig v2025.NativeChangeDetectionConfig + if err := json.Unmarshal(data, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21382,6 +24858,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21389,7 +24866,7 @@ 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. - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -21428,7 +24905,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21453,13 +24939,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -21541,7 +25028,16 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | + + + var source v2025.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21566,6 +25062,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21573,7 +25070,7 @@ 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") - attrSyncSourceConfig := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -21590,7 +25087,16 @@ "id" : "2c9180835d191a86015d28455b4b232a", "type" : "SOURCE" } - }`) # AttrSyncSourceConfig | + }`) // AttrSyncSourceConfig | + + + var attrSyncSourceConfig v2025.AttrSyncSourceConfig + if err := json.Unmarshal(data, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21615,6 +25121,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21622,7 +25129,7 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -21655,7 +25162,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema v2025.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21680,16 +25196,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - resourceObjectsRequest := fmt.Sprintf(`{ + data := []byte(`{ "maxCount" : 100, "objectType" : "group" - }`) # ResourceObjectsRequest | + }`) // ResourceObjectsRequest | + + + var resourceObjectsRequest v2025.ResourceObjectsRequest + if err := json.Unmarshal(data, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21714,6 +25240,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21722,6 +25249,9 @@ 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) resp, r, err := apiClient.V2025.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21745,6 +25275,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21752,6 +25283,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() @@ -21775,6 +25309,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21782,6 +25317,9 @@ func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() @@ -21805,6 +25343,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21813,6 +25352,15 @@ sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id passwordPolicyHoldersDtoInner := fmt.Sprintf(``) // []PasswordPolicyHoldersDtoInner | + + var passwordPolicyHoldersDtoInner v2025.PasswordPolicyHoldersDtoInner + if err := json.Unmarshal(data, &passwordPolicyHoldersDtoInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() @@ -21836,6 +25384,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21844,6 +25393,15 @@ sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | + + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -21867,6 +25425,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21876,6 +25435,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -21899,6 +25467,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21907,6 +25476,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -21930,13 +25508,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - sourceEntitlementRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -21948,7 +25527,16 @@ } ], "requestCommentRequired" : true } - }`) # SourceEntitlementRequestConfig | + }`) // SourceEntitlementRequestConfig | + + + var sourceEntitlementRequestConfig v2025.SourceEntitlementRequestConfig + if err := json.Unmarshal(data, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -21973,6 +25561,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21982,6 +25571,15 @@ scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22005,6 +25603,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22014,6 +25613,15 @@ schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22037,6 +25645,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22044,6 +25653,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -22067,6 +25679,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22078,6 +25691,9 @@ 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) resp, r, err := apiClient.V2025.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() @@ -22101,14 +25717,24 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - exportPayload := fmt.Sprintf(`{ + data := []byte(`{ "description" : "Export Job 1 Test" - }`) # ExportPayload | Export options control what will be included in the export. + }`) // ExportPayload | Export options control what will be included in the export. + + + var exportPayload v2025.ExportPayload + if err := json.Unmarshal(data, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22133,6 +25759,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22140,6 +25767,9 @@ 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) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() @@ -22163,6 +25793,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22170,6 +25801,9 @@ 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) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() @@ -22193,6 +25827,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22200,6 +25835,9 @@ 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) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() @@ -22223,6 +25861,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22230,6 +25869,9 @@ 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) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() @@ -22253,6 +25895,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22260,7 +25903,10 @@ 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. 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 := fmt.Sprintf(``) # ImportOptions | (optional) + data := []byte(``) // ImportOptions | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22285,12 +25931,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() @@ -22314,6 +25964,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22321,6 +25972,9 @@ func main() { batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() @@ -22344,12 +25998,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() @@ -22373,6 +26031,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22387,6 +26046,9 @@ 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) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() @@ -22410,6 +26072,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22418,6 +26081,15 @@ id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id sedPatch := fmt.Sprintf(``) // []SedPatch | Sed Patch Request + + var sedPatch v2025.SedPatch + if err := json.Unmarshal(data, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() @@ -22441,6 +26113,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22448,6 +26121,15 @@ func main() { sedApproval := fmt.Sprintf(``) // []SedApproval | Sed Approval + + var sedApproval v2025.SedApproval + if err := json.Unmarshal(data, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() @@ -22471,18 +26153,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedAssignment := fmt.Sprintf(`{ + data := []byte(`{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] - }`) # SedAssignment | Sed Assignment Request + }`) // SedAssignment | Sed Assignment Request + + + var sedAssignment v2025.SedAssignment + if err := json.Unmarshal(data, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22507,15 +26199,19 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sedBatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] - }`) # SedBatchRequest | Sed Batch Request (optional) + }`) // SedBatchRequest | Sed Batch Request (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22540,6 +26236,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22548,6 +26245,9 @@ 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) r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -22569,12 +26269,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkRemoveTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -22585,7 +26286,16 @@ "type" : "IDENTITY" } ], "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkRemoveTaggedObject v2025.BulkRemoveTaggedObject + if err := json.Unmarshal(data, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22608,6 +26318,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22616,6 +26327,9 @@ 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) resp, r, err := apiClient.V2025.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -22639,6 +26353,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22649,6 +26364,9 @@ 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) resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() @@ -22672,6 +26390,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22683,6 +26402,9 @@ 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) resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() @@ -22706,6 +26428,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22713,14 +26436,23 @@ func main() { type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject v2025.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22745,19 +26477,29 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject v2025.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22780,12 +26522,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkAddTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -22797,7 +26540,16 @@ } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkAddTaggedObject v2025.BulkAddTaggedObject + if err := json.Unmarshal(data, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -22822,6 +26574,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22832,6 +26585,9 @@ 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) r, err := apiClient.V2025.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22853,6 +26609,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22863,6 +26620,9 @@ 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) resp, r, err := apiClient.V2025.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22886,6 +26646,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22894,6 +26655,9 @@ 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) resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22917,6 +26681,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22929,6 +26694,9 @@ 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) resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22952,6 +26720,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22961,6 +26730,15 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22984,12 +26762,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TenantAPI.GetTenant(context.Background()).Execute() @@ -23013,6 +26795,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23020,6 +26803,9 @@ 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) resp, r, err := apiClient.V2025.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23043,17 +26829,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(`{ + data := []byte(`{ "op" : "replace", "path" : "/description", "value" : "New description" - }`) # JsonPatchOperation | + }`) // JsonPatchOperation | + + + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23076,16 +26872,26 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. + + + var transform v2025.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23110,6 +26916,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23117,6 +26924,9 @@ 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) r, err := apiClient.V2025.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -23138,6 +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" ) @@ -23145,6 +26956,9 @@ 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) resp, r, err := apiClient.V2025.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -23168,6 +26982,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23179,6 +26994,9 @@ 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) resp, r, err := apiClient.V2025.TransformsAPI.ListTransforms(context.Background()).Execute() @@ -23202,17 +27020,21 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // 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) @@ -23237,6 +27059,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,13 +27067,22 @@ func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the invocation to complete. # string | The ID of the invocation to complete. 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") - completeInvocation := fmt.Sprintf(`{ + data := []byte(`{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." - }`) # CompleteInvocation | + }`) // CompleteInvocation | + + + var completeInvocation v2025.CompleteInvocation + if err := json.Unmarshal(data, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23273,13 +27105,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - subscriptionPostRequest := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -23303,7 +27136,16 @@ "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPostRequest | + }`) // SubscriptionPostRequest | + + + var subscriptionPostRequest v2025.SubscriptionPostRequest + if err := json.Unmarshal(data, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23328,6 +27170,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23336,6 +27179,9 @@ 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) r, err := apiClient.V2025.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23357,6 +27203,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23369,6 +27216,9 @@ 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) resp, r, err := apiClient.V2025.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23392,6 +27242,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23404,6 +27255,9 @@ 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) resp, r, err := apiClient.V2025.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23427,6 +27281,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23439,6 +27294,9 @@ 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) resp, r, err := apiClient.V2025.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23462,6 +27320,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23471,6 +27330,15 @@ 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 := fmt.Sprintf(``) // []SubscriptionPatchRequestInner | + + var subscriptionPatchRequestInner v2025.SubscriptionPatchRequestInner + if err := json.Unmarshal(data, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() @@ -23494,13 +27362,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - testInvocation := fmt.Sprintf(`{ + data := []byte(`{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -23509,7 +27378,16 @@ "contentJson" : { "workflowId" : 1234 } - }`) # TestInvocation | + }`) // TestInvocation | + + + var testInvocation v2025.TestInvocation + if err := json.Unmarshal(data, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23534,18 +27412,28 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - validateFilterInputDto := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } - }`) # ValidateFilterInputDto | + }`) // ValidateFilterInputDto | + + + var validateFilterInputDto v2025.ValidateFilterInputDto + if err := json.Unmarshal(data, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23570,6 +27458,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23577,7 +27466,7 @@ 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") - subscriptionPutRequest := fmt.Sprintf(`{ + data := []byte(`{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -23600,7 +27489,16 @@ "responseDeadline" : "PT1H", "type" : "HTTP", "enabled" : true - }`) # SubscriptionPutRequest | + }`) // SubscriptionPutRequest | + + + var subscriptionPutRequest v2025.SubscriptionPutRequest + if err := json.Unmarshal(data, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23625,6 +27523,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23632,6 +27531,9 @@ 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) resp, r, err := apiClient.V2025.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23655,17 +27557,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantUiMetadataItemUpdateRequest := fmt.Sprintf(`{ + data := []byte(`{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" - }`) # TenantUiMetadataItemUpdateRequest | + }`) // TenantUiMetadataItemUpdateRequest | + + + var tenantUiMetadataItemUpdateRequest v2025.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(data, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23690,12 +27602,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -23717,7 +27630,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping v2025.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23742,12 +27664,13 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -23769,7 +27692,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping v2025.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23794,12 +27726,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -23823,6 +27759,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23830,6 +27767,9 @@ 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) r, err := apiClient.V2025.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -23851,13 +27791,17 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - createExternalExecuteWorkflowRequest := fmt.Sprintf(``) # CreateExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23882,12 +27826,22 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -23912,6 +27866,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23919,6 +27874,9 @@ 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) resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() @@ -23942,6 +27900,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23949,6 +27908,9 @@ 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) r, err := apiClient.V2025.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -23970,6 +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" ) @@ -23977,6 +27940,9 @@ 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) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() @@ -24000,6 +27966,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24007,6 +27974,9 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -24030,6 +28000,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24037,6 +28008,9 @@ 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) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -24060,6 +28034,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24071,6 +28046,9 @@ 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) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() @@ -24094,6 +28072,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24102,6 +28081,9 @@ 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) resp, r, err := apiClient.V2025.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() @@ -24125,6 +28107,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24134,6 +28117,9 @@ 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) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() @@ -24157,12 +28143,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -24186,6 +28176,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24195,6 +28186,9 @@ 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) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() @@ -24218,12 +28212,16 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflows(context.Background()).Execute() @@ -24247,6 +28245,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24255,6 +28254,15 @@ id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -24278,13 +28286,14 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -24317,7 +28326,16 @@ "type" : "EVENT" }, "enabled" : false - }`) # WorkflowBody | + }`) // WorkflowBody | + + + var workflowBody v2025.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24342,13 +28360,17 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24373,13 +28395,23 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24404,6 +28436,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24412,6 +28445,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -24435,6 +28471,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24442,6 +28479,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -24465,6 +28505,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24473,6 +28514,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() @@ -24496,6 +28540,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24503,11 +28548,20 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item 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") - workItemForward := fmt.Sprintf(`{ + data := []byte(`{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true - }`) # WorkItemForward | + }`) // WorkItemForward | + + + var workItemForward v2025.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24530,6 +28584,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24540,6 +28595,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() @@ -24563,6 +28621,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24571,6 +28630,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24594,6 +28656,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24601,6 +28664,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() @@ -24624,6 +28690,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24631,6 +28698,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() @@ -24654,6 +28724,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24661,6 +28732,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() @@ -24684,6 +28758,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24694,6 +28769,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.ListWorkItems(context.Background()).Execute() @@ -24717,6 +28795,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,6 +28804,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -24748,6 +28830,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24755,6 +28838,9 @@ 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) resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -24778,6 +28864,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24786,6 +28873,15 @@ 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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() @@ -24809,19 +28905,29 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - configurationItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | + + + var configurationItemRequest v2025.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -24846,6 +28952,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24855,6 +28962,9 @@ 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) r, err := apiClient.V2025.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24876,6 +28986,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24886,6 +28997,9 @@ 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 := fmt.Sprintf(`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) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24909,6 +29023,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24916,6 +29031,9 @@ 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) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24939,6 +29057,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24947,6 +29066,9 @@ 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) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24970,6 +29092,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24977,6 +29100,9 @@ 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) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -25000,6 +29126,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25007,6 +29134,9 @@ 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) resp, r, err := apiClient.V2025.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -25030,6 +29160,7 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25037,13 +29168,22 @@ func main() { identityId := `2c91808781a71ddb0181b9090b5c504e` // 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") - configurationItemRequest := fmt.Sprintf(`{ + data := []byte(`{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" - }`) # ConfigurationItemRequest | + }`) // ConfigurationItemRequest | + + + var configurationItemRequest v2025.ConfigurationItemRequest + if err := json.Unmarshal(data, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -25068,17 +29208,27 @@ "context" "fmt" "os" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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") - tenantConfigurationRequest := fmt.Sprintf(`{ + data := []byte(`{ "configDetails" : { "disabled" : true } - }`) # TenantConfigurationRequest | + }`) // TenantConfigurationRequest | + + + var tenantConfigurationRequest v2025.TenantConfigurationRequest + if err := json.Unmarshal(data, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) diff --git a/static/code-examples/v3/go_code_examples_overlay.yaml b/static/code-examples/v3/go_code_examples_overlay.yaml index 7a15181ad..c5007d724 100644 --- a/static/code-examples/v3/go_code_examples_overlay.yaml +++ b/static/code-examples/v3/go_code_examples_overlay.yaml @@ -10,12 +10,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -100,7 +101,16 @@ "modified" : "2021-03-02T20:22:28.104Z", "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true - }`) # AccessProfile | + }`) // AccessProfile | + + + var accessProfile v3.AccessProfile + if err := json.Unmarshal(data, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -125,6 +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" ) @@ -132,6 +143,9 @@ 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) r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -153,15 +167,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessProfileBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true - }`) # AccessProfileBulkDeleteRequest | + }`) // AccessProfileBulkDeleteRequest | + + + var accessProfileBulkDeleteRequest v3.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -186,6 +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" ) @@ -193,6 +218,9 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -216,6 +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" ) @@ -228,6 +257,9 @@ 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) resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() @@ -251,6 +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" ) @@ -265,6 +298,9 @@ 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) resp, r, err := apiClient.V3.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() @@ -288,6 +324,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -296,6 +333,15 @@ id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -319,13 +365,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -333,7 +380,10 @@ "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. (optional) + }`) // CommentDto | Reviewer's comment. (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -358,16 +408,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - forwardApprovalDto := fmt.Sprintf(`{ + data := []byte(`{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" - }`) # ForwardApprovalDto | Information about the forwarded approval. + }`) // ForwardApprovalDto | Information about the forwarded approval. + + + var forwardApprovalDto v3.ForwardApprovalDto + if err := json.Unmarshal(data, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -392,6 +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" ) @@ -400,6 +461,9 @@ 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) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() @@ -423,6 +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" ) @@ -435,6 +500,9 @@ 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) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() @@ -458,6 +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" ) @@ -470,6 +539,9 @@ 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) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() @@ -493,13 +565,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { approvalId := `2c91808b7294bea301729568c68c002e` // string | Approval ID. # string | Approval ID. - commentDto := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -507,7 +580,16 @@ "type" : "IDENTITY" }, "comment" : "This is a comment." - }`) # CommentDto | Reviewer's comment. + }`) // CommentDto | Reviewer's comment. + + + var commentDto v3.CommentDto + if err := json.Unmarshal(data, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -532,15 +614,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - cancelAccessRequest := fmt.Sprintf(`{ + data := []byte(`{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." - }`) # CancelAccessRequest | + }`) // CancelAccessRequest | + + + var cancelAccessRequest v3.CancelAccessRequest + if err := json.Unmarshal(data, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -565,12 +657,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestedFor" : "2c918084660f45d6016617daa9210584", "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -760,7 +853,16 @@ "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ] } ] - }`) # AccessRequest | + }`) // AccessRequest | + + + var accessRequest v3.AccessRequest + if err := json.Unmarshal(data, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -785,12 +887,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -814,6 +920,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -830,6 +937,9 @@ 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) resp, r, err := apiClient.V3.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() @@ -853,12 +963,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accessRequestConfig := fmt.Sprintf(`{ + data := []byte(`{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -883,7 +994,16 @@ }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true - }`) # AccessRequestConfig | + }`) // AccessRequestConfig | + + + var accessRequestConfig v3.AccessRequestConfig + if err := json.Unmarshal(data, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -908,6 +1028,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -915,6 +1036,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -938,6 +1062,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -952,6 +1077,9 @@ 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) resp, r, err := apiClient.V3.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() @@ -975,12 +1103,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - accountAttributesCreate := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -989,7 +1118,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributesCreate | + }`) // AccountAttributesCreate | + + + var accountAttributesCreate v3.AccountAttributesCreate + if err := json.Unmarshal(data, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1014,6 +1152,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1021,6 +1160,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1044,16 +1186,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest v3.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1078,16 +1230,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - accountToggleRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" - }`) # AccountToggleRequest | + }`) // AccountToggleRequest | + + + var accountToggleRequest v3.AccountToggleRequest + if err := json.Unmarshal(data, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1112,6 +1274,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1119,6 +1282,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -1142,6 +1308,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1152,6 +1319,9 @@ 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) resp, r, err := apiClient.V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() @@ -1175,6 +1345,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1187,6 +1358,9 @@ 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) resp, r, err := apiClient.V3.AccountsAPI.ListAccounts(context.Background()).Execute() @@ -1210,13 +1384,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - accountAttributes := fmt.Sprintf(`{ + data := []byte(`{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -1224,7 +1399,16 @@ "sAMAccountName" : "jDoe", "mail" : "john.doe@sailpoint.com" } - }`) # AccountAttributes | + }`) // AccountAttributes | + + + var accountAttributes v3.AccountAttributes + if err := json.Unmarshal(data, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1249,6 +1433,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1256,6 +1441,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -1279,17 +1467,27 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account ID. # string | The account ID. - accountUnlockRequest := fmt.Sprintf(`{ + data := []byte(`{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false - }`) # AccountUnlockRequest | + }`) // AccountUnlockRequest | + + + var accountUnlockRequest v3.AccountUnlockRequest + if err := json.Unmarshal(data, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1314,6 +1512,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,6 +1521,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -1345,6 +1553,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1356,6 +1565,9 @@ 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) resp, r, err := apiClient.V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() @@ -1379,6 +1591,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1390,6 +1603,9 @@ 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) resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() @@ -1413,12 +1629,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -1442,6 +1662,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1449,6 +1670,9 @@ 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) r, err := apiClient.V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -1470,6 +1694,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1477,6 +1702,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() @@ -1500,6 +1728,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1508,6 +1737,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -1531,6 +1769,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1545,6 +1784,9 @@ 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) resp, r, err := apiClient.V3.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() @@ -1568,6 +1810,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1575,6 +1818,9 @@ 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) r, err := apiClient.V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() @@ -1596,6 +1842,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1603,6 +1850,9 @@ 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) resp, r, err := apiClient.V3.BrandingAPI.GetBranding(context.Background(), name).Execute() @@ -1626,12 +1876,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.GetBrandingList(context.Background()).Execute() @@ -1655,6 +1909,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1670,6 +1925,9 @@ 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) resp, r, err := apiClient.V3.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() @@ -1693,12 +1951,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -1715,7 +1974,16 @@ "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | + }`) // CampaignFilterDetails | + + + var campaignFilterDetails v3.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1740,6 +2008,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1747,6 +2016,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | A json list of IDs of campaign filters to delete. + + var requestBody v3.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() @@ -1768,6 +2046,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1775,6 +2054,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() @@ -1798,6 +2080,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1807,6 +2090,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() @@ -1830,13 +2116,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { filterId := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter being modified. # string | The ID of the campaign filter being modified. - campaignFilterDetails := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -1853,7 +2140,16 @@ "recordChildMatches" : false, "suppressMatchedItems" : false } ] - }`) # CampaignFilterDetails | A campaign filter details with updated field values. + }`) // CampaignFilterDetails | A campaign filter details with updated field values. + + + var campaignFilterDetails v3.CampaignFilterDetails + if err := json.Unmarshal(data, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1878,15 +2174,19 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - campaignCompleteOptions := fmt.Sprintf(`{ + data := []byte(`{ "autoCompleteAction" : "REVOKE" - }`) # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -1911,12 +2211,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaign := fmt.Sprintf(`{ + data := []byte(`{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -2024,7 +2325,16 @@ "deadline" : "2020-03-15T10:00:01.456Z", "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" - }`) # Campaign | + }`) // Campaign | + + + var campaign v3.Campaign + if err := json.Unmarshal(data, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2049,13 +2359,14 @@ "context" "fmt" "os" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignTemplate := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -2178,7 +2489,16 @@ "correlatedStatus" : "CORRELATED" }, "id" : "2c9079b270a266a60170a277bb960008" - }`) # CampaignTemplate | + }`) // CampaignTemplate | + + + var campaignTemplate v3.CampaignTemplate + if err := json.Unmarshal(data, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2203,6 +2523,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2210,6 +2531,9 @@ 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) r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -2231,6 +2555,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2238,6 +2563,9 @@ 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) r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -2259,14 +2587,24 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignsDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] - }`) # CampaignsDeleteRequest | IDs of the campaigns to delete. + }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. + + + var campaignsDeleteRequest v3.CampaignsDeleteRequest + if err := json.Unmarshal(data, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2291,6 +2629,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2303,6 +2642,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() @@ -2326,6 +2668,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2334,6 +2677,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() @@ -2357,6 +2703,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2364,6 +2711,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -2387,12 +2737,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -2416,6 +2770,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2423,6 +2778,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -2446,6 +2804,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2453,6 +2812,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -2476,6 +2838,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2487,6 +2850,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() @@ -2510,20 +2876,30 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification campaign ID # string | The certification campaign ID - adminReviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "IDENTITY" } - }`) # AdminReviewReassign | + }`) // AdminReviewReassign | + + + var adminReviewReassign v3.AdminReviewReassign + if err := json.Unmarshal(data, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2548,6 +2924,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2556,6 +2933,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2579,14 +2965,24 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - campaignReportsConfig := fmt.Sprintf(`{ + data := []byte(`{ "identityAttributeColumns" : [ "firstname", "lastname" ] - }`) # CampaignReportsConfig | Campaign report configuration. + }`) // CampaignReportsConfig | Campaign report configuration. + + + var campaignReportsConfig v3.CampaignReportsConfig + if err := json.Unmarshal(data, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2611,13 +3007,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template being scheduled. # string | ID of the campaign template being scheduled. - schedule := fmt.Sprintf(`{ + data := []byte(`{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -2636,7 +3033,10 @@ }, "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" - }`) # Schedule | (optional) + }`) // Schedule | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -2659,15 +3059,19 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Campaign ID. # string | Campaign ID. - activateCampaignOptions := fmt.Sprintf(`{ + data := []byte(`{ "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) + }`) // 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) @@ -2692,6 +3096,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2699,6 +3104,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -2722,6 +3130,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2730,6 +3139,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -2753,6 +3165,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2760,6 +3173,9 @@ 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) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -2783,6 +3199,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2791,6 +3208,15 @@ id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2814,6 +3240,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2821,6 +3248,9 @@ func main() { id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() @@ -2844,6 +3274,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2851,6 +3282,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() @@ -2874,6 +3308,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2886,6 +3321,9 @@ 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) resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() @@ -2909,6 +3347,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2920,6 +3359,9 @@ 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) resp, r, err := apiClient.V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() @@ -2943,6 +3385,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2955,6 +3398,9 @@ 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) resp, r, err := apiClient.V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() @@ -2978,6 +3424,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2993,6 +3440,9 @@ 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) resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() @@ -3016,6 +3466,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3028,6 +3479,9 @@ 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) resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() @@ -3051,6 +3505,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3059,6 +3514,15 @@ 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 := fmt.Sprintf(`[{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(data, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() @@ -3082,13 +3546,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -3098,7 +3563,16 @@ "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | + + + var reviewReassign v3.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3123,6 +3597,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3130,6 +3605,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() @@ -3153,13 +3631,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - reviewReassign := fmt.Sprintf(`{ + data := []byte(`{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -3169,7 +3648,16 @@ "id" : "ef38f94347e94562b5bb8424a56397d8", "type" : "ITEM" } ] - }`) # ReviewReassign | + }`) // ReviewReassign | + + + var reviewReassign v3.ReviewReassign + if err := json.Unmarshal(data, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3194,6 +3682,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3207,6 +3696,9 @@ 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) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() @@ -3230,6 +3722,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3238,6 +3731,9 @@ 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) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() @@ -3261,6 +3757,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3273,6 +3770,9 @@ 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) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() @@ -3296,6 +3796,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3304,6 +3805,9 @@ 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) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() @@ -3327,19 +3831,29 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingRequest := fmt.Sprintf(`{ + data := []byte(`{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" - }`) # ObjectMappingRequest | The object mapping request body. + }`) // ObjectMappingRequest | The object mapping request body. + + + var objectMappingRequest v3.ObjectMappingRequest + if err := json.Unmarshal(data, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3364,13 +3878,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingBulkCreateRequest := fmt.Sprintf(`{ + data := []byte(`{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -3384,7 +3899,16 @@ "enabled" : false, "objectType" : "IDENTITY" } ] - }`) # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. + + + var objectMappingBulkCreateRequest v3.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(data, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3409,6 +3933,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3417,6 +3942,9 @@ 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) resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() @@ -3440,6 +3968,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3448,6 +3977,9 @@ 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) r, err := apiClient.V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() @@ -3469,6 +4001,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3476,6 +4009,9 @@ 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) r, err := apiClient.V3.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() @@ -3497,6 +4033,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3504,6 +4041,9 @@ 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) resp, r, err := apiClient.V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() @@ -3527,6 +4067,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3534,6 +4075,9 @@ 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) resp, r, err := apiClient.V3.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() @@ -3557,6 +4101,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3564,6 +4109,9 @@ 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) resp, r, err := apiClient.V3.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() @@ -3587,13 +4135,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - objectMappingBulkPatchRequest := fmt.Sprintf(`{ + data := []byte(`{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -3606,7 +4155,16 @@ "value" : "New Target Value" } ] } - }`) # ObjectMappingBulkPatchRequest | The object mapping request body. + }`) // ObjectMappingBulkPatchRequest | The object mapping request body. + + + var objectMappingBulkPatchRequest v3.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(data, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3631,18 +4189,28 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - v3CreateConnectorDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" - }`) # V3CreateConnectorDto | + }`) // V3CreateConnectorDto | + + + var v3CreateConnectorDto v3.V3CreateConnectorDto + if err := json.Unmarshal(data, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -3667,6 +4235,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3674,6 +4243,9 @@ 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) r, err := apiClient.V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() @@ -3695,6 +4267,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3703,6 +4276,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() @@ -3726,6 +4302,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3737,6 +4314,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorList(context.Background()).Execute() @@ -3760,6 +4340,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3767,6 +4348,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() @@ -3790,6 +4374,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3797,6 +4382,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() @@ -3820,6 +4408,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3828,6 +4417,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -3851,6 +4443,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3859,6 +4452,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() @@ -3882,6 +4478,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3890,6 +4487,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() @@ -3913,6 +4513,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3921,6 +4522,9 @@ 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) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -3944,6 +4548,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3952,6 +4557,15 @@ 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 := fmt.Sprintf(``) // []JsonPatchOperation | A list of connector detail update operations + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3975,16 +4589,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - networkConfiguration := fmt.Sprintf(`{ + data := []byte(`{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "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. + }`) // 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(data, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4009,12 +4633,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() @@ -4038,12 +4666,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() @@ -4067,12 +4699,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() @@ -4096,12 +4732,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() @@ -4125,6 +4765,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4132,6 +4773,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4155,6 +4805,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4162,6 +4813,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4185,6 +4845,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4192,6 +4853,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4215,6 +4885,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4222,6 +4893,15 @@ func main() { jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4245,12 +4925,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -4298,7 +4979,16 @@ "name" : "aName", "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" - }`) # IdentityProfile | + }`) // IdentityProfile | + + + var identityProfile v3.IdentityProfile + if err := json.Unmarshal(data, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4323,6 +5013,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4330,6 +5021,9 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -4353,6 +5047,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4360,6 +5055,15 @@ func main() { requestBody := fmt.Sprintf(``) // []string | Identity Profile bulk delete request body. + + var requestBody v3.RequestBody + if err := json.Unmarshal(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -4383,6 +5087,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4394,6 +5099,9 @@ 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) resp, r, err := apiClient.V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() @@ -4417,6 +5125,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4424,6 +5133,9 @@ 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) resp, r, err := apiClient.V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -4447,6 +5159,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4454,6 +5167,9 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -4477,6 +5193,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4484,6 +5201,15 @@ func main() { identityProfileExportedObject := fmt.Sprintf(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. + + var identityProfileExportedObject v3.IdentityProfileExportedObject + if err := json.Unmarshal(data, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -4507,6 +5233,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4518,6 +5245,9 @@ 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) resp, r, err := apiClient.V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() @@ -4541,12 +5271,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityPreviewRequest := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -4572,7 +5303,16 @@ } ], "enabled" : true } - }`) # IdentityPreviewRequest | Identity Preview request body. + }`) // IdentityPreviewRequest | Identity Preview request body. + + + var identityPreviewRequest v3.IdentityPreviewRequest + if err := json.Unmarshal(data, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4597,6 +5337,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4604,6 +5345,9 @@ 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) resp, r, err := apiClient.V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -4627,6 +5371,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4635,6 +5380,15 @@ identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4658,13 +5412,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - lifecycleState := fmt.Sprintf(`{ + data := []byte(`{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -4688,7 +5443,16 @@ "technicalName" : "Technical Name", "identityState" : "identityState", "enabled" : true - }`) # LifecycleState | Lifecycle state to be created. + }`) // LifecycleState | Lifecycle state to be created. + + + var lifecycleState v3.LifecycleState + if err := json.Unmarshal(data, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4713,6 +5477,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4721,6 +5486,9 @@ 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) resp, r, err := apiClient.V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -4744,6 +5512,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4752,6 +5521,9 @@ 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) resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -4775,6 +5547,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4786,6 +5559,9 @@ 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) resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() @@ -4809,13 +5585,23 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. - setLifecycleStateRequest := fmt.Sprintf(``) # SetLifecycleStateRequest | + data := []byte(``) // SetLifecycleStateRequest | + + + var setLifecycleStateRequest v3.SetLifecycleStateRequest + if err := json.Unmarshal(data, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4840,6 +5626,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4849,6 +5636,15 @@ lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4872,17 +5668,27 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" - }`) # ManagedClientRequest | + }`) // ManagedClientRequest | + + + var managedClientRequest v3.ManagedClientRequest + if err := json.Unmarshal(data, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -4907,6 +5713,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4914,6 +5721,9 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() @@ -4935,6 +5745,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4942,6 +5753,9 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() @@ -4965,6 +5779,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4973,6 +5788,9 @@ 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) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -4996,6 +5814,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5006,6 +5825,9 @@ 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) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() @@ -5029,6 +5851,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5037,6 +5860,15 @@ id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -5060,12 +5892,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterRequest := fmt.Sprintf(`{ + data := []byte(`{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -5073,7 +5906,16 @@ "name" : "Managed Cluster Name", "description" : "A short description of the managed cluster.", "type" : "idn" - }`) # ManagedClusterRequest | + }`) // ManagedClusterRequest | + + + var managedClusterRequest v3.ManagedClusterRequest + if err := json.Unmarshal(data, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5098,6 +5940,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5106,6 +5949,9 @@ 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) r, err := apiClient.V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() @@ -5127,6 +5973,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5134,6 +5981,9 @@ 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) resp, r, err := apiClient.V3.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -5157,6 +6007,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5164,6 +6015,9 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -5187,6 +6041,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5197,6 +6052,9 @@ 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) resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() @@ -5220,13 +6078,23 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) 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 := fmt.Sprintf(``) # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + data := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + + + var putClientLogConfigurationRequest v3.PutClientLogConfigurationRequest + if err := json.Unmarshal(data, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5251,6 +6119,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5259,6 +6128,15 @@ id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. jsonPatchOperation := fmt.Sprintf(``) // []JsonPatchOperation | JSONPatch payload used to update the object. + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -5282,6 +6160,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5289,6 +6168,9 @@ 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) resp, r, err := apiClient.V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() @@ -5312,12 +6194,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -5341,6 +6227,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,6 +6235,9 @@ 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) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() @@ -5371,12 +6261,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -5400,12 +6294,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -5415,7 +6310,16 @@ "mfaMethod" : "duo-web", "enabled" : true, "identityAttribute" : "email" - }`) # MfaDuoConfig | + }`) // MfaDuoConfig | + + + var mfaDuoConfig v3.MfaDuoConfig + if err := json.Unmarshal(data, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5440,6 +6344,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5447,6 +6352,15 @@ func main() { kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | + + var kbaAnswerRequestItem v3.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -5470,18 +6384,28 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := fmt.Sprintf(`{ + data := []byte(`{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" - }`) # MfaOktaConfig | + }`) // MfaOktaConfig | + + + var mfaOktaConfig v3.MfaOktaConfig + if err := json.Unmarshal(data, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5506,6 +6430,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5513,6 +6438,9 @@ 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) resp, r, err := apiClient.V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -5536,15 +6464,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sendTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK" - }`) # SendTokenRequest | + }`) // SendTokenRequest | + + + var sendTokenRequest v3.SendTokenRequest + if err := json.Unmarshal(data, &sendTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5569,15 +6507,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' - verificationPollRequest := fmt.Sprintf(`{ + data := []byte(`{ "requestId" : "089899f13a8f4da7824996191587bab9" - }`) # VerificationPollRequest | + }`) // VerificationPollRequest | + + + var verificationPollRequest v3.VerificationPollRequest + if err := json.Unmarshal(data, &verificationPollRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5602,15 +6550,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - duoVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "signedResponse" : "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2", "userId" : "2c9180947f0ef465017f215cbcfd004b" - }`) # DuoVerificationRequest | + }`) // DuoVerificationRequest | + + + var duoVerificationRequest v3.DuoVerificationRequest + if err := json.Unmarshal(data, &duoVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5635,6 +6593,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5642,6 +6601,15 @@ func main() { kbaAnswerRequestItem := fmt.Sprintf(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | + + var kbaAnswerRequestItem v3.KbaAnswerRequestItem + if err := json.Unmarshal(data, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -5665,14 +6633,24 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - oktaVerificationRequest := fmt.Sprintf(`{ + data := []byte(`{ "userId" : "example@mail.com" - }`) # OktaVerificationRequest | + }`) // OktaVerificationRequest | + + + var oktaVerificationRequest v3.OktaVerificationRequest + if err := json.Unmarshal(data, &oktaVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5697,16 +6675,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tokenAuthRequest := fmt.Sprintf(`{ + data := []byte(`{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK", "token" : "12345" - }`) # TokenAuthRequest | + }`) // TokenAuthRequest | + + + var tokenAuthRequest v3.TokenAuthRequest + if err := json.Unmarshal(data, &tokenAuthRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5731,15 +6719,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "Approved by manager" - }`) # NonEmployeeApprovalDecision | + }`) // NonEmployeeApprovalDecision | + + + var nonEmployeeApprovalDecision v3.NonEmployeeApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5764,13 +6762,14 @@ "context" "fmt" "os" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -5783,7 +6782,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee record creation request body. + }`) // NonEmployeeRequestBody | Non-Employee record creation request body. + + + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5808,13 +6816,14 @@ "context" "fmt" "os" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -5827,7 +6836,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" - }`) # NonEmployeeRequestBody | Non-Employee creation request body + }`) // NonEmployeeRequestBody | Non-Employee creation request body + + + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5852,12 +6870,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -5882,7 +6901,16 @@ }, { "id" : "2c91808570313110017040b06f344ec9" } ] - }`) # NonEmployeeSourceRequestBody | Non-Employee source creation request body. + }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. + + + var nonEmployeeSourceRequestBody v3.NonEmployeeSourceRequestBody + if err := json.Unmarshal(data, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5907,20 +6935,30 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - nonEmployeeSchemaAttributeBody := fmt.Sprintf(`{ + data := []byte(`{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", "type" : "TEXT", "technicalName" : "account.name", "required" : true - }`) # NonEmployeeSchemaAttributeBody | + }`) // NonEmployeeSchemaAttributeBody | + + + var nonEmployeeSchemaAttributeBody v3.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(data, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -5945,6 +6983,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,6 +6991,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -5973,12 +7015,22 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordsInBulkRequest := fmt.Sprintf(``) # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + data := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + + + var deleteNonEmployeeRecordsInBulkRequest v3.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(data, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6001,6 +7053,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6008,6 +7061,9 @@ 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) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -6029,6 +7085,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6037,6 +7094,9 @@ 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) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -6058,6 +7118,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6065,6 +7126,9 @@ func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -6086,6 +7150,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6093,6 +7158,9 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -6114,6 +7182,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6121,6 +7190,9 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -6142,6 +7214,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6149,6 +7222,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -6170,6 +7246,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6178,6 +7255,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() @@ -6201,6 +7281,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6208,6 +7289,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -6231,6 +7315,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,6 +7323,9 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -6261,6 +7349,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6268,6 +7357,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -6291,6 +7383,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6298,6 +7391,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -6321,6 +7417,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6328,6 +7425,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -6351,6 +7451,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6359,6 +7460,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -6382,6 +7486,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6389,6 +7494,9 @@ func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -6412,6 +7520,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6419,6 +7528,9 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -6442,6 +7554,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6450,6 +7563,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -6473,6 +7589,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6485,6 +7602,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() @@ -6508,6 +7628,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6519,6 +7640,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() @@ -6542,6 +7666,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6554,6 +7679,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() @@ -6577,6 +7705,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6589,6 +7718,9 @@ 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) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() @@ -6612,6 +7744,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6620,6 +7753,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6643,6 +7785,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6652,6 +7795,15 @@ sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6675,6 +7827,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6683,6 +7836,15 @@ sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6706,15 +7868,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := fmt.Sprintf(`{ + data := []byte(`{ "comment" : "approved" - }`) # NonEmployeeRejectApprovalDecision | + }`) // NonEmployeeRejectApprovalDecision | + + + var nonEmployeeRejectApprovalDecision v3.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(data, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6739,6 +7911,7 @@ "context" "fmt" "os" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -6746,7 +7919,7 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) - nonEmployeeRequestBody := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -6759,7 +7932,16 @@ "endDate" : "2021-03-25T00:00:00-05:00", "email" : "william.smith@example.com", "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. + }`) // 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(data, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6784,12 +7966,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := fmt.Sprintf(`{ + data := []byte(`{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -6805,7 +7988,16 @@ "scope" : [ "demo:api-client-scope:first", "demo:api-client-scope:second" ], "name" : "Demo API Client", "claimsSupported" : false - }`) # CreateOAuthClientRequest | + }`) // CreateOAuthClientRequest | + + + var createOAuthClientRequest v3.CreateOAuthClientRequest + if err := json.Unmarshal(data, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6830,6 +8022,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6837,6 +8030,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -6858,6 +8054,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6865,6 +8062,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -6888,6 +8088,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6895,6 +8096,9 @@ 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) resp, r, err := apiClient.V3.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() @@ -6918,6 +8122,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6926,6 +8131,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6949,17 +8163,27 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig v3.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -6984,12 +8208,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -7013,17 +8241,27 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := fmt.Sprintf(`{ + data := []byte(`{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true - }`) # PasswordOrgConfig | + }`) // PasswordOrgConfig | + + + var passwordOrgConfig v3.PasswordOrgConfig + if err := json.Unmarshal(data, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7048,12 +8286,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -7077,6 +8319,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7084,6 +8327,9 @@ func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() @@ -7105,6 +8351,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7112,6 +8359,9 @@ func main() { id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() @@ -7135,15 +8385,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := fmt.Sprintf(`{ + data := []byte(`{ "sourceName" : "My-AD", "userName" : "Abby.Smith" - }`) # PasswordInfoQueryDTO | + }`) // PasswordInfoQueryDTO | + + + var passwordInfoQueryDTO v3.PasswordInfoQueryDTO + if err := json.Unmarshal(data, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7168,18 +8428,28 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := fmt.Sprintf(`{ + data := []byte(`{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" - }`) # PasswordChangeRequest | + }`) // PasswordChangeRequest | + + + var passwordChangeRequest v3.PasswordChangeRequest + if err := json.Unmarshal(data, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7204,12 +8474,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -7241,7 +8512,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto v3.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7266,6 +8546,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7273,6 +8554,9 @@ 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) r, err := apiClient.V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -7294,6 +8578,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7301,6 +8586,9 @@ 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) resp, r, err := apiClient.V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -7324,6 +8612,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7333,6 +8622,9 @@ 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) resp, r, err := apiClient.V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() @@ -7356,13 +8648,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ff808081838d9e9d01838da6a03e0007` // string | The ID of password policy to update. # string | The ID of password policy to update. - passwordPolicyV3Dto := fmt.Sprintf(`{ + data := []byte(`{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -7394,7 +8687,16 @@ "requireStrongAuthOffNetwork" : true, "name" : "PasswordPolicy Example", "maxLength" : 25 - }`) # PasswordPolicyV3Dto | + }`) // PasswordPolicyV3Dto | + + + var passwordPolicyV3Dto v3.PasswordPolicyV3Dto + if err := json.Unmarshal(data, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7419,19 +8721,29 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup v3.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7456,6 +8768,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,6 +8776,9 @@ 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) r, err := apiClient.V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -7484,6 +8800,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7491,6 +8808,9 @@ 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) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -7514,6 +8834,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7523,6 +8844,9 @@ 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) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() @@ -7546,20 +8870,30 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to update. # string | The ID of password sync group to update. - passwordSyncGroup := fmt.Sprintf(`{ + data := []byte(`{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", "passwordPolicyId" : "2c91808d744ba0ce01746f93b6204501", "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] - }`) # PasswordSyncGroup | + }`) // PasswordSyncGroup | + + + var passwordSyncGroup v3.PasswordSyncGroup + if err := json.Unmarshal(data, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7584,16 +8918,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := fmt.Sprintf(`{ + data := []byte(`{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" - }`) # CreatePersonalAccessTokenRequest | Name and scope of personal access token. + }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. + + + var createPersonalAccessTokenRequest v3.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(data, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7618,6 +8962,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7625,6 +8970,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -7646,6 +8994,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7654,6 +9003,9 @@ 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) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() @@ -7677,6 +9029,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7685,6 +9038,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7708,6 +9070,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7720,6 +9083,9 @@ 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) resp, r, err := apiClient.V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() @@ -7743,12 +9109,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -7772,12 +9142,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := fmt.Sprintf(`{ + data := []byte(`{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -7791,7 +9162,16 @@ "id" : "2c9180a46faadee4016fb4e018c20639", "type" : "IDENTITY" } - }`) # PublicIdentityConfig | + }`) // PublicIdentityConfig | + + + var publicIdentityConfig v3.PublicIdentityConfig + if err := json.Unmarshal(data, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7816,6 +9196,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7823,6 +9204,9 @@ 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) r, err := apiClient.V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() @@ -7844,6 +9228,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7854,6 +9239,9 @@ 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) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() @@ -7877,6 +9265,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7885,6 +9274,9 @@ 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) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() @@ -7908,18 +9300,28 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportDetails := fmt.Sprintf(`{ + data := []byte(`{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } - }`) # ReportDetails | + }`) // ReportDetails | + + + var reportDetails v3.ReportDetails + if err := json.Unmarshal(data, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -7944,6 +9346,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7959,6 +9362,9 @@ 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) resp, r, err := apiClient.V3.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() @@ -7982,12 +9388,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -8145,7 +9552,16 @@ }, "id" : "2c918086749d78830174a1a40e121518", "requestable" : true - }`) # Role | + }`) // Role | + + + var role v3.Role + if err := json.Unmarshal(data, &role); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8170,14 +9586,24 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := fmt.Sprintf(`{ + data := []byte(`{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] - }`) # RoleBulkDeleteRequest | + }`) // RoleBulkDeleteRequest | + + + var roleBulkDeleteRequest v3.RoleBulkDeleteRequest + if err := json.Unmarshal(data, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8202,6 +9628,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8209,6 +9636,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | Role ID. # string | Role ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -8230,6 +9660,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8237,6 +9668,9 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | Role ID. # string | Role ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.GetRole(context.Background(), id).Execute() @@ -8260,6 +9694,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8272,6 +9707,9 @@ 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) resp, r, err := apiClient.V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() @@ -8295,6 +9733,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8309,6 +9748,9 @@ 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) resp, r, err := apiClient.V3.RolesAPI.ListRoles(context.Background()).Execute() @@ -8332,6 +9774,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8340,6 +9783,15 @@ id := `2c91808a7813090a017814121e121518` // string | Role ID to patch # string | Role ID to patch jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | + + var jsonPatchOperation v3.JsonPatchOperation + if err := json.Unmarshal(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8363,12 +9815,22 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createSavedSearchRequest := fmt.Sprintf(``) # CreateSavedSearchRequest | The saved search to persist. + data := []byte(``) // CreateSavedSearchRequest | The saved search to persist. + + + var createSavedSearchRequest v3.CreateSavedSearchRequest + if err := json.Unmarshal(data, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8393,6 +9855,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8400,6 +9863,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() @@ -8421,13 +9887,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - searchArguments := fmt.Sprintf(`{ + data := []byte(`{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -8437,7 +9904,16 @@ "type" : "IDENTITY" } ], "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. + }`) // 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(data, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8460,6 +9936,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8467,6 +9944,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() @@ -8490,6 +9970,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8500,6 +9981,9 @@ 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) resp, r, err := apiClient.V3.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() @@ -8523,13 +10007,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - savedSearch := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -8573,7 +10058,16 @@ "modified" : "2018-06-25T20:22:28.104Z", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] - }`) # SavedSearch | The saved search to persist. + }`) // SavedSearch | The saved search to persist. + + + var savedSearch v3.SavedSearch + if err := json.Unmarshal(data, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8598,12 +10092,22 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createScheduledSearchRequest := fmt.Sprintf(`{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. + data := []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(data, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8628,6 +10132,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8635,6 +10140,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() @@ -8656,6 +10164,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8663,6 +10172,9 @@ func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() @@ -8686,6 +10198,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8696,6 +10209,9 @@ 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) resp, r, err := apiClient.V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() @@ -8719,16 +10235,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - typedReference := fmt.Sprintf(`{ + data := []byte(`{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" - }`) # TypedReference | The recipient to be removed from the scheduled search. + }`) // TypedReference | The recipient to be removed from the scheduled search. + + + var typedReference v3.TypedReference + if err := json.Unmarshal(data, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8751,13 +10277,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - scheduledSearch := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -8799,7 +10326,16 @@ "modified" : "", "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false - }`) # ScheduledSearch | The scheduled search to persist. + }`) // ScheduledSearch | The scheduled search to persist. + + + var scheduledSearch v3.ScheduledSearch + if err := json.Unmarshal(data, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -8824,12 +10360,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -8945,11 +10482,20 @@ "type" : "access" } } - }`) # Search | + }`) // Search | 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) 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(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() @@ -8973,12 +10519,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -9094,7 +10641,16 @@ "type" : "access" } } - }`) # Search | + }`) // Search | + + + var search v3.Search + if err := json.Unmarshal(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9117,6 +10673,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9125,6 +10682,9 @@ 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) resp, r, err := apiClient.V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() @@ -9148,12 +10708,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := fmt.Sprintf(`{ + data := []byte(`{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -9269,11 +10830,20 @@ "type" : "access" } } - }`) # Search | + }`) // Search | 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 := 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(data, &search); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchPost(context.Background()).Search(search).Execute() @@ -9297,19 +10867,29 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - searchAttributeConfig := fmt.Sprintf(`{ + data := []byte(`{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { "2c91808b79fd2422017a0b35d30f3968" : "employeeNumber", "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } - }`) # SearchAttributeConfig | + }`) // SearchAttributeConfig | + + + var searchAttributeConfig v3.SearchAttributeConfig + if err := json.Unmarshal(data, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9334,6 +10914,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9341,6 +10922,9 @@ 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) r, err := apiClient.V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() @@ -9362,6 +10946,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9370,6 +10955,9 @@ 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) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() @@ -9393,6 +10981,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9400,6 +10989,9 @@ 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) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() @@ -9423,6 +11015,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9431,6 +11024,15 @@ name := `promotedMailAttribute` // string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9454,12 +11056,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -9482,7 +11085,16 @@ "description" : "This segment represents xyz", "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" - }`) # Segment | + }`) // Segment | + + + var segment v3.Segment + if err := json.Unmarshal(data, &segment); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9507,6 +11119,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9514,6 +11127,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -9535,6 +11151,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9542,6 +11159,9 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -9565,6 +11185,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9574,6 +11195,9 @@ 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) resp, r, err := apiClient.V3.SegmentsAPI.ListSegments(context.Background()).Execute() @@ -9597,6 +11221,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9605,6 +11230,15 @@ id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestBody := fmt.Sprintf(`[{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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -9628,12 +11262,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -9666,7 +11301,16 @@ }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of a new integration to create + }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create + + + var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9691,6 +11335,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9698,6 +11343,9 @@ 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) r, err := apiClient.V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -9719,6 +11367,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9726,6 +11375,9 @@ 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) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -9749,6 +11401,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9756,6 +11409,9 @@ 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) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -9779,12 +11435,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -9808,6 +11468,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9819,6 +11480,9 @@ 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) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() @@ -9842,12 +11506,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -9871,6 +11539,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9879,6 +11548,15 @@ id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonPatchOperation := fmt.Sprintf(``) // []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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9902,13 +11580,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := fmt.Sprintf(`{ + data := []byte(`{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -9941,7 +11620,16 @@ }, "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" - }`) # ServiceDeskIntegrationDto | The specifics of the integration to update + }`) // ServiceDeskIntegrationDto | The specifics of the integration to update + + + var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto + if err := json.Unmarshal(data, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9966,15 +11654,25 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := fmt.Sprintf(`{ + data := []byte(`{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" - }`) # QueuedCheckConfigDetails | The modified time check configuration + }`) // QueuedCheckConfigDetails | The modified time check configuration + + + var queuedCheckConfigDetails v3.QueuedCheckConfigDetails + if err := json.Unmarshal(data, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -9999,12 +11697,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -10059,7 +11758,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy v3.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10084,6 +11792,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10092,6 +11801,9 @@ 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) r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() @@ -10113,6 +11825,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10120,6 +11833,9 @@ 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) r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -10141,6 +11857,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10149,6 +11866,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -10172,6 +11892,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10179,6 +11900,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -10202,12 +11926,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -10231,6 +11959,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10238,6 +11967,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -10261,6 +11993,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10268,6 +12001,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -10291,6 +12027,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10298,6 +12035,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -10321,6 +12061,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10328,6 +12069,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -10351,6 +12095,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10362,6 +12107,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() @@ -10385,6 +12133,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10393,6 +12142,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -10416,13 +12174,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update its schedule. # string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := fmt.Sprintf(`{ + data := []byte(`{ "schedule" : { "hours" : { "values" : [ "MON", "WED" ], @@ -10459,7 +12218,16 @@ "modified" : "2020-01-01T00:00:00Z", "description" : "Schedule for policy xyz", "emailEmptyResults" : false - }`) # SodPolicySchedule | + }`) // SodPolicySchedule | + + + var sodPolicySchedule v3.SodPolicySchedule + if err := json.Unmarshal(data, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10484,13 +12252,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy to update. # string | The ID of the SOD policy to update. - sodPolicy := fmt.Sprintf(`{ + data := []byte(`{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -10545,7 +12314,16 @@ "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" - }`) # SodPolicy | + }`) // SodPolicy | + + + var sodPolicy v3.SodPolicy + if err := json.Unmarshal(data, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10570,6 +12348,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10577,6 +12356,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() @@ -10600,14 +12382,18 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := fmt.Sprintf(`{ + data := []byte(`{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] - }`) # MultiPolicyRequest | (optional) + }`) // MultiPolicyRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10632,6 +12418,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10639,6 +12426,9 @@ 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) resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -10662,12 +12452,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := fmt.Sprintf(`{ + data := []byte(`{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -10678,7 +12469,16 @@ "id" : "2c918087682f9a86016839c0509c1ab2", "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] - }`) # IdentityWithNewAccess | + }`) // IdentityWithNewAccess | + + + var identityWithNewAccess v3.IdentityWithNewAccess + if err := json.Unmarshal(data, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10703,12 +12503,22 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess1 := fmt.Sprintf(`{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 | + data := []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(data, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10733,13 +12543,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -10778,7 +12589,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10803,12 +12623,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -10890,9 +12711,18 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // 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(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() @@ -10916,13 +12746,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -10955,7 +12786,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema v3.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -10980,6 +12820,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10988,6 +12829,9 @@ 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) r, err := apiClient.V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -11009,6 +12853,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11016,6 +12861,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() @@ -11039,6 +12887,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11047,6 +12896,9 @@ 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) r, err := apiClient.V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -11068,6 +12920,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11075,6 +12928,9 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() @@ -11096,6 +12952,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11104,6 +12961,9 @@ 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) r, err := apiClient.V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() @@ -11125,6 +12985,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11133,6 +12994,9 @@ 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) resp, r, err := apiClient.V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -11156,6 +13020,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11163,6 +13028,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -11186,6 +13054,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11193,6 +13062,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() @@ -11216,6 +13088,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11223,6 +13096,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() @@ -11246,6 +13122,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11254,6 +13131,9 @@ 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) resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -11277,6 +13157,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11286,6 +13167,9 @@ 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) resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() @@ -11309,6 +13193,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11317,6 +13202,9 @@ 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) resp, r, err := apiClient.V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() @@ -11340,6 +13228,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11348,6 +13237,9 @@ 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) resp, r, err := apiClient.V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() @@ -11371,6 +13263,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11380,6 +13273,9 @@ 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) resp, r, err := apiClient.V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() @@ -11403,6 +13299,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11410,6 +13307,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -11433,6 +13333,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11446,6 +13347,9 @@ 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) resp, r, err := apiClient.V3.SourcesAPI.ListSources(context.Background()).Execute() @@ -11469,6 +13373,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11476,7 +13381,7 @@ 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. - provisioningPolicyDto := fmt.Sprintf(`{ + data := []byte(`{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -11515,7 +13420,16 @@ "type" : "string" } ], "usageType" : "CREATE" - }`) # ProvisioningPolicyDto | + }`) // ProvisioningPolicyDto | + + + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11540,13 +13454,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - source := fmt.Sprintf(`{ + data := []byte(`{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -11628,7 +13543,16 @@ }, "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" - }`) # Source | + }`) // Source | + + + var source v3.Source + if err := json.Unmarshal(data, &source); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11653,6 +13577,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11660,7 +13585,7 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - schema := fmt.Sprintf(`{ + data := []byte(`{ "features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ], "nativeObjectType" : "User", "configuration" : { @@ -11693,7 +13618,16 @@ "id" : "2c9180835d191a86015d28455b4a2329", "displayAttribute" : "distinguishedName", "identityAttribute" : "sAMAccountName" - }`) # Schema | + }`) // Schema | + + + var schema v3.Schema + if err := json.Unmarshal(data, &schema); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11718,6 +13652,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11726,6 +13661,15 @@ sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto | + + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -11749,6 +13693,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11758,6 +13703,15 @@ 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 := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11781,6 +13735,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11789,6 +13744,15 @@ id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11812,6 +13776,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11821,6 +13786,15 @@ schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11844,6 +13818,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11851,6 +13826,9 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -11874,6 +13852,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11885,6 +13864,9 @@ 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) resp, r, err := apiClient.V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() @@ -11908,6 +13890,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11916,6 +13899,9 @@ 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) r, err := apiClient.V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -11937,12 +13923,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkRemoveTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -11953,7 +13940,16 @@ "type" : "IDENTITY" } ], "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkRemoveTaggedObject v3.BulkRemoveTaggedObject + if err := json.Unmarshal(data, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -11976,6 +13972,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11984,6 +13981,9 @@ 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) resp, r, err := apiClient.V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -12007,6 +14007,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12017,6 +14018,9 @@ 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) resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() @@ -12040,6 +14044,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12051,6 +14056,9 @@ 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) resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() @@ -12074,6 +14082,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12081,14 +14090,23 @@ func main() { type_ := `ROLE` // string | The type of tagged object to update. # string | The type of tagged object to update. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to update. # string | The ID of the object reference to update. - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject v3.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12113,19 +14131,29 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }, "tags" : [ "BU_FINANCE", "PCI" ] - }`) # TaggedObject | + }`) // TaggedObject | + + + var taggedObject v3.TaggedObject + if err := json.Unmarshal(data, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12148,12 +14176,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkAddTaggedObject := fmt.Sprintf(`{ + data := []byte(`{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -12165,7 +14194,16 @@ } ], "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] - }`) # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + + var bulkAddTaggedObject v3.BulkAddTaggedObject + if err := json.Unmarshal(data, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12190,16 +14228,26 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The transform to be created. + }`) // Transform | The transform to be created. + + + var transform v3.Transform + if err := json.Unmarshal(data, &transform); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12224,6 +14272,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12231,6 +14280,9 @@ 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) r, err := apiClient.V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -12252,6 +14304,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12259,6 +14312,9 @@ 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) resp, r, err := apiClient.V3.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -12282,6 +14338,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12293,6 +14350,9 @@ 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) resp, r, err := apiClient.V3.TransformsAPI.ListTransforms(context.Background()).Execute() @@ -12316,17 +14376,21 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to update # string | ID of the transform to update - transform := fmt.Sprintf(`{ + data := []byte(`{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" - }`) # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + }`) // 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) @@ -12351,12 +14415,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -12378,7 +14443,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping v3.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12403,12 +14477,13 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := fmt.Sprintf(`{ + data := []byte(`{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -12430,7 +14505,16 @@ "Valid" : true, "Time" : "2024-03-14T12:56:19.391294Z" } - }`) # VendorConnectorMapping | + }`) // VendorConnectorMapping | + + + var vendorConnectorMapping v3.VendorConnectorMapping + if err := json.Unmarshal(data, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12455,12 +14539,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -12484,6 +14572,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12491,6 +14580,9 @@ 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) r, err := apiClient.V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -12512,13 +14604,17 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - createExternalExecuteWorkflowRequest := fmt.Sprintf(``) # CreateExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12543,12 +14639,22 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -12573,6 +14679,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12580,6 +14687,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() @@ -12603,6 +14713,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12610,6 +14721,9 @@ 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) r, err := apiClient.V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -12631,6 +14745,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12639,6 +14754,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() @@ -12662,6 +14780,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12669,6 +14788,9 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -12692,6 +14814,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12699,6 +14822,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -12722,6 +14848,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12733,6 +14860,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() @@ -12756,6 +14886,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12764,6 +14895,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() @@ -12787,6 +14921,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12796,6 +14931,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() @@ -12819,12 +14957,16 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -12848,6 +14990,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12857,6 +15000,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() @@ -12880,6 +15026,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12890,6 +15037,9 @@ 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) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflows(context.Background()).Execute() @@ -12913,6 +15063,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12921,6 +15072,15 @@ id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonPatchOperation := fmt.Sprintf(`[{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(data, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12944,13 +15104,14 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - workflowBody := fmt.Sprintf(`{ + data := []byte(`{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -12983,7 +15144,16 @@ "type" : "EVENT" }, "enabled" : false - }`) # WorkflowBody | + }`) // WorkflowBody | + + + var workflowBody v3.WorkflowBody + if err := json.Unmarshal(data, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13008,13 +15178,17 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testExternalExecuteWorkflowRequest := fmt.Sprintf(``) # TestExternalExecuteWorkflowRequest | (optional) + data := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13039,13 +15213,23 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - testWorkflowRequest := fmt.Sprintf(`{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 | + data := []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(data, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13070,6 +15254,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13078,6 +15263,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -13101,6 +15289,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13108,6 +15297,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -13131,6 +15323,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13139,6 +15332,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() @@ -13162,6 +15358,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13172,6 +15369,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() @@ -13195,6 +15395,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13202,6 +15403,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() @@ -13225,6 +15429,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13232,6 +15437,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() @@ -13255,6 +15463,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13262,6 +15471,9 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() @@ -13285,6 +15497,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13292,6 +15505,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() @@ -13315,6 +15531,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13325,6 +15542,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.ListWorkItems(context.Background()).Execute() @@ -13348,6 +15568,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13356,6 +15577,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -13379,6 +15603,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13386,6 +15611,9 @@ 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) resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -13409,17 +15637,27 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - workItemForward := fmt.Sprintf(`{ + data := []byte(`{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true - }`) # WorkItemForward | + }`) // WorkItemForward | + + + var workItemForward v3.WorkItemForward + if err := json.Unmarshal(data, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) @@ -13442,6 +15680,7 @@ "context" "fmt" "os" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13450,6 +15689,15 @@ 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(data, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + + + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute()