diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md index 73cf7dbc9..e72c4a48c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md @@ -88,12 +88,10 @@ func main() { "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | diff --git a/docs/tools/sdk/go/Reference/Beta/Models/IdentityWithNewAccessAccessRefsInner.md b/docs/tools/sdk/go/Reference/Beta/Models/IdentityWithNewAccessAccessRefsInner.md index eb1d14799..456376725 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/IdentityWithNewAccessAccessRefsInner.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/IdentityWithNewAccessAccessRefsInner.md @@ -17,7 +17,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | Entitlement's DTO type. | [optional] **Id** | Pointer to **string** | Entitlement's ID. | [optional] -**Name** | Pointer to **string** | Entitlement's display name. | [optional] ## Methods @@ -88,29 +87,4 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. -### GetName - -`func (o *IdentityWithNewAccessAccessRefsInner) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *IdentityWithNewAccessAccessRefsInner) 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 *IdentityWithNewAccessAccessRefsInner) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *IdentityWithNewAccessAccessRefsInner) HasName() bool` - -HasName returns a boolean if a field has been set. - diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md index 5c0b8a741..6a92b29d8 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md @@ -84,12 +84,10 @@ func main() { "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | @@ -132,7 +130,7 @@ Other parameters are passed through a pointer to a apiStartViolationCheckRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identityWithNewAccess1** | [**IdentityWithNewAccess1**](../models/identity-with-new-access1) | | + **identityWithNewAccess** | [**IdentityWithNewAccess**](../models/identity-with-new-access) | | ### Return type @@ -158,10 +156,19 @@ import ( ) func main() { - identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | + identitywithnewaccess := []byte(`{ + "identityId" : "2c91808568c529c60168cca6f90c1313", + "accessRefs" : [ { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c050861ab1" + }, { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c0509c1ab2" + } ] + }`) // IdentityWithNewAccess | - var identityWithNewAccess1 v2024.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + var identityWithNewAccess v2024.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { fmt.Println("Error:", err) return } @@ -169,8 +176,8 @@ func main() { 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() + resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + //resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).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/Models/EntitlementRef1.md b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRef1.md deleted file mode 100644 index c75def9a0..000000000 --- a/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRef1.md +++ /dev/null @@ -1,116 +0,0 @@ ---- -id: v2024-entitlement-ref1 -title: EntitlementRef1 -pagination_label: EntitlementRef1 -sidebar_label: EntitlementRef1 -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'EntitlementRef1', 'V2024EntitlementRef1'] -slug: /tools/sdk/go/v2024/models/entitlement-ref1 -tags: ['SDK', 'Software Development Kit', 'EntitlementRef1', 'V2024EntitlementRef1'] ---- - -# EntitlementRef1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **string** | Entitlement's DTO type. | [optional] -**Id** | Pointer to **string** | Entitlement's ID. | [optional] -**Name** | Pointer to **string** | Entitlement's display name. | [optional] - -## Methods - -### NewEntitlementRef1 - -`func NewEntitlementRef1() *EntitlementRef1` - -NewEntitlementRef1 instantiates a new EntitlementRef1 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 - -### NewEntitlementRef1WithDefaults - -`func NewEntitlementRef1WithDefaults() *EntitlementRef1` - -NewEntitlementRef1WithDefaults instantiates a new EntitlementRef1 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 *EntitlementRef1) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *EntitlementRef1) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetId - -`func (o *EntitlementRef1) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *EntitlementRef1) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *EntitlementRef1) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *EntitlementRef1) HasName() bool` - -HasName returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V2024/Models/IdentityWithNewAccess1.md b/docs/tools/sdk/go/Reference/V2024/Models/IdentityWithNewAccess1.md deleted file mode 100644 index 0f85a3feb..000000000 --- a/docs/tools/sdk/go/Reference/V2024/Models/IdentityWithNewAccess1.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: v2024-identity-with-new-access1 -title: IdentityWithNewAccess1 -pagination_label: IdentityWithNewAccess1 -sidebar_label: IdentityWithNewAccess1 -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'IdentityWithNewAccess1', 'V2024IdentityWithNewAccess1'] -slug: /tools/sdk/go/v2024/models/identity-with-new-access1 -tags: ['SDK', 'Software Development Kit', 'IdentityWithNewAccess1', 'V2024IdentityWithNewAccess1'] ---- - -# IdentityWithNewAccess1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**IdentityId** | **string** | Set of identity IDs to be checked. | -**AccessRefs** | [**[]EntitlementRef1**](entitlement-ref1) | The bundle of access profiles to be added to the identities specified. All references must be ENTITLEMENT type. | -**ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on completion of the violation check. | [optional] - -## Methods - -### NewIdentityWithNewAccess1 - -`func NewIdentityWithNewAccess1(identityId string, accessRefs []EntitlementRef1, ) *IdentityWithNewAccess1` - -NewIdentityWithNewAccess1 instantiates a new IdentityWithNewAccess1 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 - -### NewIdentityWithNewAccess1WithDefaults - -`func NewIdentityWithNewAccess1WithDefaults() *IdentityWithNewAccess1` - -NewIdentityWithNewAccess1WithDefaults instantiates a new IdentityWithNewAccess1 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 *IdentityWithNewAccess1) GetIdentityId() string` - -GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. - -### GetIdentityIdOk - -`func (o *IdentityWithNewAccess1) 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 *IdentityWithNewAccess1) SetIdentityId(v string)` - -SetIdentityId sets IdentityId field to given value. - - -### GetAccessRefs - -`func (o *IdentityWithNewAccess1) GetAccessRefs() []EntitlementRef1` - -GetAccessRefs returns the AccessRefs field if non-nil, zero value otherwise. - -### GetAccessRefsOk - -`func (o *IdentityWithNewAccess1) GetAccessRefsOk() (*[]EntitlementRef1, bool)` - -GetAccessRefsOk returns a tuple with the AccessRefs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessRefs - -`func (o *IdentityWithNewAccess1) SetAccessRefs(v []EntitlementRef1)` - -SetAccessRefs sets AccessRefs field to given value. - - -### GetClientMetadata - -`func (o *IdentityWithNewAccess1) GetClientMetadata() map[string]string` - -GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. - -### GetClientMetadataOk - -`func (o *IdentityWithNewAccess1) 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 *IdentityWithNewAccess1) SetClientMetadata(v map[string]string)` - -SetClientMetadata sets ClientMetadata field to given value. - -### HasClientMetadata - -`func (o *IdentityWithNewAccess1) HasClientMetadata() bool` - -HasClientMetadata returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V2024/Models/IdentityWithNewAccessAccessRefsInner.md b/docs/tools/sdk/go/Reference/V2024/Models/IdentityWithNewAccessAccessRefsInner.md index 1890782ba..dce6b30d8 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/IdentityWithNewAccessAccessRefsInner.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/IdentityWithNewAccessAccessRefsInner.md @@ -17,7 +17,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | Entitlement's DTO type. | [optional] **Id** | Pointer to **string** | Entitlement's ID. | [optional] -**Name** | Pointer to **string** | Entitlement's display name. | [optional] ## Methods @@ -88,29 +87,4 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. -### GetName - -`func (o *IdentityWithNewAccessAccessRefsInner) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *IdentityWithNewAccessAccessRefsInner) 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 *IdentityWithNewAccessAccessRefsInner) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *IdentityWithNewAccessAccessRefsInner) HasName() bool` - -HasName returns a boolean if a field has been set. - diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md index ff10d5fdd..2738ce8ce 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md @@ -84,12 +84,10 @@ func main() { "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | @@ -132,7 +130,7 @@ Other parameters are passed through a pointer to a apiStartViolationCheckRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identityWithNewAccess1** | [**IdentityWithNewAccess1**](../models/identity-with-new-access1) | | + **identityWithNewAccess** | [**IdentityWithNewAccess**](../models/identity-with-new-access) | | ### Return type @@ -158,10 +156,19 @@ import ( ) func main() { - identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | + identitywithnewaccess := []byte(`{ + "identityId" : "2c91808568c529c60168cca6f90c1313", + "accessRefs" : [ { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c050861ab1" + }, { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c0509c1ab2" + } ] + }`) // IdentityWithNewAccess | - var identityWithNewAccess1 v2025.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + var identityWithNewAccess v2025.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { fmt.Println("Error:", err) return } @@ -169,8 +176,8 @@ func main() { 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() + resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + //resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).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/Models/EntitlementRef1.md b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRef1.md deleted file mode 100644 index 49f9cb436..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRef1.md +++ /dev/null @@ -1,116 +0,0 @@ ---- -id: v2025-entitlement-ref1 -title: EntitlementRef1 -pagination_label: EntitlementRef1 -sidebar_label: EntitlementRef1 -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'EntitlementRef1', 'V2025EntitlementRef1'] -slug: /tools/sdk/go/v2025/models/entitlement-ref1 -tags: ['SDK', 'Software Development Kit', 'EntitlementRef1', 'V2025EntitlementRef1'] ---- - -# EntitlementRef1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **string** | Entitlement's DTO type. | [optional] -**Id** | Pointer to **string** | Entitlement's ID. | [optional] -**Name** | Pointer to **string** | Entitlement's display name. | [optional] - -## Methods - -### NewEntitlementRef1 - -`func NewEntitlementRef1() *EntitlementRef1` - -NewEntitlementRef1 instantiates a new EntitlementRef1 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 - -### NewEntitlementRef1WithDefaults - -`func NewEntitlementRef1WithDefaults() *EntitlementRef1` - -NewEntitlementRef1WithDefaults instantiates a new EntitlementRef1 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 *EntitlementRef1) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *EntitlementRef1) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetId - -`func (o *EntitlementRef1) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *EntitlementRef1) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *EntitlementRef1) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *EntitlementRef1) HasName() bool` - -HasName returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V2025/Models/IdentityWithNewAccess1.md b/docs/tools/sdk/go/Reference/V2025/Models/IdentityWithNewAccess1.md deleted file mode 100644 index a0fbd25a5..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/IdentityWithNewAccess1.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: v2025-identity-with-new-access1 -title: IdentityWithNewAccess1 -pagination_label: IdentityWithNewAccess1 -sidebar_label: IdentityWithNewAccess1 -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'IdentityWithNewAccess1', 'V2025IdentityWithNewAccess1'] -slug: /tools/sdk/go/v2025/models/identity-with-new-access1 -tags: ['SDK', 'Software Development Kit', 'IdentityWithNewAccess1', 'V2025IdentityWithNewAccess1'] ---- - -# IdentityWithNewAccess1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**IdentityId** | **string** | Set of identity IDs to be checked. | -**AccessRefs** | [**[]EntitlementRef1**](entitlement-ref1) | The bundle of access profiles to be added to the identities specified. All references must be ENTITLEMENT type. | -**ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on completion of the violation check. | [optional] - -## Methods - -### NewIdentityWithNewAccess1 - -`func NewIdentityWithNewAccess1(identityId string, accessRefs []EntitlementRef1, ) *IdentityWithNewAccess1` - -NewIdentityWithNewAccess1 instantiates a new IdentityWithNewAccess1 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 - -### NewIdentityWithNewAccess1WithDefaults - -`func NewIdentityWithNewAccess1WithDefaults() *IdentityWithNewAccess1` - -NewIdentityWithNewAccess1WithDefaults instantiates a new IdentityWithNewAccess1 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 *IdentityWithNewAccess1) GetIdentityId() string` - -GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. - -### GetIdentityIdOk - -`func (o *IdentityWithNewAccess1) 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 *IdentityWithNewAccess1) SetIdentityId(v string)` - -SetIdentityId sets IdentityId field to given value. - - -### GetAccessRefs - -`func (o *IdentityWithNewAccess1) GetAccessRefs() []EntitlementRef1` - -GetAccessRefs returns the AccessRefs field if non-nil, zero value otherwise. - -### GetAccessRefsOk - -`func (o *IdentityWithNewAccess1) GetAccessRefsOk() (*[]EntitlementRef1, bool)` - -GetAccessRefsOk returns a tuple with the AccessRefs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessRefs - -`func (o *IdentityWithNewAccess1) SetAccessRefs(v []EntitlementRef1)` - -SetAccessRefs sets AccessRefs field to given value. - - -### GetClientMetadata - -`func (o *IdentityWithNewAccess1) GetClientMetadata() map[string]string` - -GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. - -### GetClientMetadataOk - -`func (o *IdentityWithNewAccess1) 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 *IdentityWithNewAccess1) SetClientMetadata(v map[string]string)` - -SetClientMetadata sets ClientMetadata field to given value. - -### HasClientMetadata - -`func (o *IdentityWithNewAccess1) HasClientMetadata() bool` - -HasClientMetadata returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V2025/Models/IdentityWithNewAccessAccessRefsInner.md b/docs/tools/sdk/go/Reference/V2025/Models/IdentityWithNewAccessAccessRefsInner.md index 95a8bfe28..176b43f2e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/IdentityWithNewAccessAccessRefsInner.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/IdentityWithNewAccessAccessRefsInner.md @@ -17,7 +17,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | Entitlement's DTO type. | [optional] **Id** | Pointer to **string** | Entitlement's ID. | [optional] -**Name** | Pointer to **string** | Entitlement's display name. | [optional] ## Methods @@ -88,29 +87,4 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. -### GetName - -`func (o *IdentityWithNewAccessAccessRefsInner) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *IdentityWithNewAccessAccessRefsInner) 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 *IdentityWithNewAccessAccessRefsInner) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *IdentityWithNewAccessAccessRefsInner) HasName() bool` - -HasName returns a boolean if a field has been set. - diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md index 7cd2b8b85..f86306cfe 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md @@ -84,12 +84,10 @@ func main() { "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | @@ -132,7 +130,7 @@ Other parameters are passed through a pointer to a apiStartViolationCheckRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identityWithNewAccess1** | [**IdentityWithNewAccess1**](../models/identity-with-new-access1) | | + **identityWithNewAccess** | [**IdentityWithNewAccess**](../models/identity-with-new-access) | | ### Return type @@ -158,10 +156,19 @@ import ( ) func main() { - identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | + identitywithnewaccess := []byte(`{ + "identityId" : "2c91808568c529c60168cca6f90c1313", + "accessRefs" : [ { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c050861ab1" + }, { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c0509c1ab2" + } ] + }`) // IdentityWithNewAccess | - var identityWithNewAccess1 v3.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + var identityWithNewAccess v3.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { fmt.Println("Error:", err) return } @@ -169,8 +176,8 @@ func main() { 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() + resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + //resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).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/Models/EntitlementRef1.md b/docs/tools/sdk/go/Reference/V3/Models/EntitlementRef1.md deleted file mode 100644 index 90631d993..000000000 --- a/docs/tools/sdk/go/Reference/V3/Models/EntitlementRef1.md +++ /dev/null @@ -1,116 +0,0 @@ ---- -id: entitlement-ref1 -title: EntitlementRef1 -pagination_label: EntitlementRef1 -sidebar_label: EntitlementRef1 -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'EntitlementRef1', 'EntitlementRef1'] -slug: /tools/sdk/go/v3/models/entitlement-ref1 -tags: ['SDK', 'Software Development Kit', 'EntitlementRef1', 'EntitlementRef1'] ---- - -# EntitlementRef1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **string** | Entitlement's DTO type. | [optional] -**Id** | Pointer to **string** | Entitlement's ID. | [optional] -**Name** | Pointer to **string** | Entitlement's display name. | [optional] - -## Methods - -### NewEntitlementRef1 - -`func NewEntitlementRef1() *EntitlementRef1` - -NewEntitlementRef1 instantiates a new EntitlementRef1 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 - -### NewEntitlementRef1WithDefaults - -`func NewEntitlementRef1WithDefaults() *EntitlementRef1` - -NewEntitlementRef1WithDefaults instantiates a new EntitlementRef1 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 *EntitlementRef1) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *EntitlementRef1) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetId - -`func (o *EntitlementRef1) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *EntitlementRef1) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *EntitlementRef1) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *EntitlementRef1) 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 *EntitlementRef1) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *EntitlementRef1) HasName() bool` - -HasName returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V3/Models/IdentityWithNewAccess1.md b/docs/tools/sdk/go/Reference/V3/Models/IdentityWithNewAccess1.md deleted file mode 100644 index f8ad1035a..000000000 --- a/docs/tools/sdk/go/Reference/V3/Models/IdentityWithNewAccess1.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: identity-with-new-access1 -title: IdentityWithNewAccess1 -pagination_label: IdentityWithNewAccess1 -sidebar_label: IdentityWithNewAccess1 -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'IdentityWithNewAccess1', 'IdentityWithNewAccess1'] -slug: /tools/sdk/go/v3/models/identity-with-new-access1 -tags: ['SDK', 'Software Development Kit', 'IdentityWithNewAccess1', 'IdentityWithNewAccess1'] ---- - -# IdentityWithNewAccess1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**IdentityId** | **string** | Set of identity IDs to be checked. | -**AccessRefs** | [**[]EntitlementRef1**](entitlement-ref1) | The bundle of access profiles to be added to the identities specified. All references must be ENTITLEMENT type. | -**ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on completion of the violation check. | [optional] - -## Methods - -### NewIdentityWithNewAccess1 - -`func NewIdentityWithNewAccess1(identityId string, accessRefs []EntitlementRef1, ) *IdentityWithNewAccess1` - -NewIdentityWithNewAccess1 instantiates a new IdentityWithNewAccess1 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 - -### NewIdentityWithNewAccess1WithDefaults - -`func NewIdentityWithNewAccess1WithDefaults() *IdentityWithNewAccess1` - -NewIdentityWithNewAccess1WithDefaults instantiates a new IdentityWithNewAccess1 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 *IdentityWithNewAccess1) GetIdentityId() string` - -GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. - -### GetIdentityIdOk - -`func (o *IdentityWithNewAccess1) 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 *IdentityWithNewAccess1) SetIdentityId(v string)` - -SetIdentityId sets IdentityId field to given value. - - -### GetAccessRefs - -`func (o *IdentityWithNewAccess1) GetAccessRefs() []EntitlementRef1` - -GetAccessRefs returns the AccessRefs field if non-nil, zero value otherwise. - -### GetAccessRefsOk - -`func (o *IdentityWithNewAccess1) GetAccessRefsOk() (*[]EntitlementRef1, bool)` - -GetAccessRefsOk returns a tuple with the AccessRefs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessRefs - -`func (o *IdentityWithNewAccess1) SetAccessRefs(v []EntitlementRef1)` - -SetAccessRefs sets AccessRefs field to given value. - - -### GetClientMetadata - -`func (o *IdentityWithNewAccess1) GetClientMetadata() map[string]string` - -GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. - -### GetClientMetadataOk - -`func (o *IdentityWithNewAccess1) 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 *IdentityWithNewAccess1) SetClientMetadata(v map[string]string)` - -SetClientMetadata sets ClientMetadata field to given value. - -### HasClientMetadata - -`func (o *IdentityWithNewAccess1) HasClientMetadata() bool` - -HasClientMetadata returns a boolean if a field has been set. - - diff --git a/docs/tools/sdk/go/Reference/V3/Models/IdentityWithNewAccessAccessRefsInner.md b/docs/tools/sdk/go/Reference/V3/Models/IdentityWithNewAccessAccessRefsInner.md index aa0ff810c..4060b8ab9 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/IdentityWithNewAccessAccessRefsInner.md +++ b/docs/tools/sdk/go/Reference/V3/Models/IdentityWithNewAccessAccessRefsInner.md @@ -17,7 +17,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | Entitlement's DTO type. | [optional] **Id** | Pointer to **string** | Entitlement's ID. | [optional] -**Name** | Pointer to **string** | Entitlement's display name. | [optional] ## Methods @@ -88,29 +87,4 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. -### GetName - -`func (o *IdentityWithNewAccessAccessRefsInner) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *IdentityWithNewAccessAccessRefsInner) 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 *IdentityWithNewAccessAccessRefsInner) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *IdentityWithNewAccessAccessRefsInner) HasName() bool` - -HasName returns a boolean if a field has been set. - diff --git a/static/code-examples/beta/go_code_examples_overlay.yaml b/static/code-examples/beta/go_code_examples_overlay.yaml index 6a5c4ac50..e1c25acac 100644 --- a/static/code-examples/beta/go_code_examples_overlay.yaml +++ b/static/code-examples/beta/go_code_examples_overlay.yaml @@ -16684,12 +16684,10 @@ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | diff --git a/static/code-examples/v2024/go_code_examples_overlay.yaml b/static/code-examples/v2024/go_code_examples_overlay.yaml index 84e34edf9..2432145c7 100644 --- a/static/code-examples/v2024/go_code_examples_overlay.yaml +++ b/static/code-examples/v2024/go_code_examples_overlay.yaml @@ -22040,12 +22040,10 @@ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | @@ -22087,11 +22085,20 @@ ) func main() { - identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | + identitywithnewaccess := []byte(`{ + "identityId" : "2c91808568c529c60168cca6f90c1313", + "accessRefs" : [ { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c050861ab1" + }, { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c0509c1ab2" + } ] + }`) // IdentityWithNewAccess | - var identityWithNewAccess1 v2024.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + var identityWithNewAccess v2024.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { fmt.Println("Error:", err) return } @@ -22100,8 +22107,8 @@ 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() + resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + //resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).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/static/code-examples/v2025/go_code_examples_overlay.yaml b/static/code-examples/v2025/go_code_examples_overlay.yaml index 62473eeab..d38fd6a02 100644 --- a/static/code-examples/v2025/go_code_examples_overlay.yaml +++ b/static/code-examples/v2025/go_code_examples_overlay.yaml @@ -23208,12 +23208,10 @@ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | @@ -23255,11 +23253,20 @@ ) func main() { - identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | + identitywithnewaccess := []byte(`{ + "identityId" : "2c91808568c529c60168cca6f90c1313", + "accessRefs" : [ { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c050861ab1" + }, { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c0509c1ab2" + } ] + }`) // IdentityWithNewAccess | - var identityWithNewAccess1 v2025.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + var identityWithNewAccess v2025.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { fmt.Println("Error:", err) return } @@ -23268,8 +23275,8 @@ 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() + resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + //resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).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/static/code-examples/v3/go_code_examples_overlay.yaml b/static/code-examples/v3/go_code_examples_overlay.yaml index 425f65d9a..f7509e3fa 100644 --- a/static/code-examples/v3/go_code_examples_overlay.yaml +++ b/static/code-examples/v3/go_code_examples_overlay.yaml @@ -10540,12 +10540,10 @@ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c050861ab1", - "name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c050861ab1" }, { "type" : "ENTITLEMENT", - "id" : "2c918087682f9a86016839c0509c1ab2", - "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" + "id" : "2c918087682f9a86016839c0509c1ab2" } ] }`) // IdentityWithNewAccess | @@ -10587,11 +10585,20 @@ ) func main() { - identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | + identitywithnewaccess := []byte(`{ + "identityId" : "2c91808568c529c60168cca6f90c1313", + "accessRefs" : [ { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c050861ab1" + }, { + "type" : "ENTITLEMENT", + "id" : "2c918087682f9a86016839c0509c1ab2" + } ] + }`) // IdentityWithNewAccess | - var identityWithNewAccess1 v3.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + var identityWithNewAccess v3.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { fmt.Println("Error:", err) return } @@ -10600,8 +10607,8 @@ 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() + resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + //resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess(identityWithNewAccess).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)