mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-10 04:19:42 +00:00
Update Go SDK docs: 16303902516
This commit is contained in:
@@ -78,7 +78,8 @@ func main() {
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
var createPersonalAccessTokenRequest beta.CreatePersonalAccessTokenRequest
|
var createPersonalAccessTokenRequest beta.CreatePersonalAccessTokenRequest
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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
|
## Methods
|
||||||
|
|
||||||
@@ -118,4 +119,49 @@ SetAccessTokenValiditySeconds sets AccessTokenValiditySeconds field to given val
|
|||||||
|
|
||||||
HasAccessTokenValiditySeconds returns a boolean if a field has been set.
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -22,12 +22,13 @@ Name | Type | Description | Notes
|
|||||||
**Owner** | [**PatOwner**](pat-owner) | |
|
**Owner** | [**PatOwner**](pat-owner) | |
|
||||||
**Created** | **SailPointTime** | 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. |
|
**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
|
## Methods
|
||||||
|
|
||||||
### NewCreatePersonalAccessTokenResponse
|
### 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
|
NewCreatePersonalAccessTokenResponse instantiates a new CreatePersonalAccessTokenResponse object
|
||||||
This constructor will assign default values to properties that have it defined,
|
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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]
|
**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
|
## Methods
|
||||||
|
|
||||||
@@ -212,4 +214,64 @@ SetManaged sets Managed field to given value.
|
|||||||
|
|
||||||
HasManaged returns a boolean if a field has been set.
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ func main() {
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
var createPersonalAccessTokenRequest v2024.CreatePersonalAccessTokenRequest
|
var createPersonalAccessTokenRequest v2024.CreatePersonalAccessTokenRequest
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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
|
## Methods
|
||||||
|
|
||||||
@@ -118,4 +119,49 @@ SetAccessTokenValiditySeconds sets AccessTokenValiditySeconds field to given val
|
|||||||
|
|
||||||
HasAccessTokenValiditySeconds returns a boolean if a field has been set.
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -22,12 +22,13 @@ Name | Type | Description | Notes
|
|||||||
**Owner** | [**PatOwner**](pat-owner) | |
|
**Owner** | [**PatOwner**](pat-owner) | |
|
||||||
**Created** | **SailPointTime** | 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. |
|
**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
|
## Methods
|
||||||
|
|
||||||
### NewCreatePersonalAccessTokenResponse
|
### 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
|
NewCreatePersonalAccessTokenResponse instantiates a new CreatePersonalAccessTokenResponse object
|
||||||
This constructor will assign default values to properties that have it defined,
|
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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]
|
**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 **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. | [optional]
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
@@ -212,4 +214,54 @@ SetManaged sets Managed field to given value.
|
|||||||
|
|
||||||
HasManaged returns a boolean if a field has been set.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ func main() {
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
var createPersonalAccessTokenRequest v2025.CreatePersonalAccessTokenRequest
|
var createPersonalAccessTokenRequest v2025.CreatePersonalAccessTokenRequest
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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
|
## Methods
|
||||||
|
|
||||||
@@ -118,4 +119,49 @@ SetAccessTokenValiditySeconds sets AccessTokenValiditySeconds field to given val
|
|||||||
|
|
||||||
HasAccessTokenValiditySeconds returns a boolean if a field has been set.
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -22,12 +22,13 @@ Name | Type | Description | Notes
|
|||||||
**Owner** | [**PatOwner**](pat-owner) | |
|
**Owner** | [**PatOwner**](pat-owner) | |
|
||||||
**Created** | **SailPointTime** | 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. |
|
**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
|
## Methods
|
||||||
|
|
||||||
### NewCreatePersonalAccessTokenResponse
|
### 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
|
NewCreatePersonalAccessTokenResponse instantiates a new CreatePersonalAccessTokenResponse object
|
||||||
This constructor will assign default values to properties that have it defined,
|
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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]
|
**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 **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. | [optional]
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
@@ -212,4 +214,54 @@ SetManaged sets Managed field to given value.
|
|||||||
|
|
||||||
HasManaged returns a boolean if a field has been set.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ func main() {
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
var createPersonalAccessTokenRequest v3.CreatePersonalAccessTokenRequest
|
var createPersonalAccessTokenRequest v3.CreatePersonalAccessTokenRequest
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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
|
## Methods
|
||||||
|
|
||||||
@@ -118,4 +119,49 @@ SetAccessTokenValiditySeconds sets AccessTokenValiditySeconds field to given val
|
|||||||
|
|
||||||
HasAccessTokenValiditySeconds returns a boolean if a field has been set.
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -22,12 +22,13 @@ Name | Type | Description | Notes
|
|||||||
**Owner** | [**PatOwner**](pat-owner) | |
|
**Owner** | [**PatOwner**](pat-owner) | |
|
||||||
**Created** | **SailPointTime** | 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. |
|
**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
|
## Methods
|
||||||
|
|
||||||
### NewCreatePersonalAccessTokenResponse
|
### 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
|
NewCreatePersonalAccessTokenResponse instantiates a new CreatePersonalAccessTokenResponse object
|
||||||
This constructor will assign default values to properties that have it defined,
|
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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. |
|
**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]
|
**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]
|
**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 **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. | [optional]
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
@@ -212,4 +214,54 @@ SetManaged sets Managed field to given value.
|
|||||||
|
|
||||||
HasManaged returns a boolean if a field has been set.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14609,7 +14609,8 @@
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18947,7 +18947,8 @@
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19385,7 +19385,8 @@
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8886,7 +8886,8 @@
|
|||||||
createpersonalaccesstokenrequest := []byte(`{
|
createpersonalaccesstokenrequest := []byte(`{
|
||||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||||
"accessTokenValiditySeconds" : 36900,
|
"accessTokenValiditySeconds" : 36900,
|
||||||
"name" : "NodeJS Integration"
|
"name" : "NodeJS Integration",
|
||||||
|
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||||
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
}`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user