Update Go SDK docs: 16303902516

This commit is contained in:
developer-relations-sp
2025-07-15 20:44:17 +00:00
parent 333c25da10
commit bf6d4b5b85
20 changed files with 510 additions and 16 deletions

View File

@@ -17,7 +17,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | The name of the personal access token (PAT) to be created. Cannot be the same as another PAT owned by the user for whom this PAT is being created. |
**Scope** | Pointer to **[]string** | Scopes of the personal access token. If no scope is specified, the token will be created with the default scope \"sp:scopes:all\". This means the personal access token will have all the rights of the owner who created it. | [optional]
**AccessTokenValiditySeconds** | Pointer to **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. | [optional]
**AccessTokenValiditySeconds** | Pointer to **NullableInt32** | 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. | [optional]
**ExpirationDate** | Pointer to **NullableTime** | Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date. | [optional]
## Methods
@@ -118,4 +119,49 @@ SetAccessTokenValiditySeconds sets AccessTokenValiditySeconds field to given val
HasAccessTokenValiditySeconds returns a boolean if a field has been set.
### SetAccessTokenValiditySecondsNil
`func (o *CreatePersonalAccessTokenRequest) SetAccessTokenValiditySecondsNil(b bool)`
SetAccessTokenValiditySecondsNil sets the value for AccessTokenValiditySeconds to be an explicit nil
### UnsetAccessTokenValiditySeconds
`func (o *CreatePersonalAccessTokenRequest) UnsetAccessTokenValiditySeconds()`
UnsetAccessTokenValiditySeconds ensures that no value is present for AccessTokenValiditySeconds, not even an explicit nil
### GetExpirationDate
`func (o *CreatePersonalAccessTokenRequest) GetExpirationDate() SailPointTime`
GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise.
### GetExpirationDateOk
`func (o *CreatePersonalAccessTokenRequest) GetExpirationDateOk() (*SailPointTime, bool)`
GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetExpirationDate
`func (o *CreatePersonalAccessTokenRequest) SetExpirationDate(v SailPointTime)`
SetExpirationDate sets ExpirationDate field to given value.
### HasExpirationDate
`func (o *CreatePersonalAccessTokenRequest) HasExpirationDate() bool`
HasExpirationDate returns a boolean if a field has been set.
### SetExpirationDateNil
`func (o *CreatePersonalAccessTokenRequest) SetExpirationDateNil(b bool)`
SetExpirationDateNil sets the value for ExpirationDate to be an explicit nil
### UnsetExpirationDate
`func (o *CreatePersonalAccessTokenRequest) UnsetExpirationDate()`
UnsetExpirationDate ensures that no value is present for ExpirationDate, not even an explicit nil

View File

@@ -22,12 +22,13 @@ Name | Type | Description | Notes
**Owner** | [**PatOwner**](pat-owner) | |
**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. |
**ExpirationDate** | **SailPointTime** | Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date. |
## Methods
### NewCreatePersonalAccessTokenResponse
`func NewCreatePersonalAccessTokenResponse(id string, secret string, scope []string, name string, owner PatOwner, created SailPointTime, accessTokenValiditySeconds int32, ) *CreatePersonalAccessTokenResponse`
`func NewCreatePersonalAccessTokenResponse(id string, secret string, scope []string, name string, owner PatOwner, created SailPointTime, accessTokenValiditySeconds int32, expirationDate SailPointTime, ) *CreatePersonalAccessTokenResponse`
NewCreatePersonalAccessTokenResponse instantiates a new CreatePersonalAccessTokenResponse object
This constructor will assign default values to properties that have it defined,
@@ -192,4 +193,24 @@ and a boolean to check if the value has been set.
SetAccessTokenValiditySeconds sets AccessTokenValiditySeconds field to given value.
### GetExpirationDate
`func (o *CreatePersonalAccessTokenResponse) GetExpirationDate() SailPointTime`
GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise.
### GetExpirationDateOk
`func (o *CreatePersonalAccessTokenResponse) GetExpirationDateOk() (*SailPointTime, bool)`
GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetExpirationDate
`func (o *CreatePersonalAccessTokenResponse) SetExpirationDate(v SailPointTime)`
SetExpirationDate sets ExpirationDate field to given value.

View File

@@ -22,6 +22,8 @@ Name | Type | Description | Notes
**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]
**AccessTokenValiditySeconds** | Pointer to **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. | [optional] [default to 43200]
**ExpirationDate** | Pointer to **NullableTime** | Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date. | [optional]
## Methods
@@ -212,4 +214,64 @@ SetManaged sets Managed field to given value.
HasManaged returns a boolean if a field has been set.
### GetAccessTokenValiditySeconds
`func (o *GetPersonalAccessTokenResponse) GetAccessTokenValiditySeconds() int32`
GetAccessTokenValiditySeconds returns the AccessTokenValiditySeconds field if non-nil, zero value otherwise.
### GetAccessTokenValiditySecondsOk
`func (o *GetPersonalAccessTokenResponse) GetAccessTokenValiditySecondsOk() (*int32, bool)`
GetAccessTokenValiditySecondsOk returns a tuple with the AccessTokenValiditySeconds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAccessTokenValiditySeconds
`func (o *GetPersonalAccessTokenResponse) SetAccessTokenValiditySeconds(v int32)`
SetAccessTokenValiditySeconds sets AccessTokenValiditySeconds field to given value.
### HasAccessTokenValiditySeconds
`func (o *GetPersonalAccessTokenResponse) HasAccessTokenValiditySeconds() bool`
HasAccessTokenValiditySeconds returns a boolean if a field has been set.
### GetExpirationDate
`func (o *GetPersonalAccessTokenResponse) GetExpirationDate() SailPointTime`
GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise.
### GetExpirationDateOk
`func (o *GetPersonalAccessTokenResponse) GetExpirationDateOk() (*SailPointTime, bool)`
GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetExpirationDate
`func (o *GetPersonalAccessTokenResponse) SetExpirationDate(v SailPointTime)`
SetExpirationDate sets ExpirationDate field to given value.
### HasExpirationDate
`func (o *GetPersonalAccessTokenResponse) HasExpirationDate() bool`
HasExpirationDate returns a boolean if a field has been set.
### SetExpirationDateNil
`func (o *GetPersonalAccessTokenResponse) SetExpirationDateNil(b bool)`
SetExpirationDateNil sets the value for ExpirationDate to be an explicit nil
### UnsetExpirationDate
`func (o *GetPersonalAccessTokenResponse) UnsetExpirationDate()`
UnsetExpirationDate ensures that no value is present for ExpirationDate, not even an explicit nil