Update Go SDK docs: 17132447303

This commit is contained in:
developer-relations-sp
2025-08-21 16:07:10 +00:00
parent ed086d4f22
commit 9a947a6cc3
18 changed files with 103 additions and 835 deletions

View File

@@ -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)

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.