Skip to content

Commit

Permalink
Merge pull request #41 from pingidentity/oauthAccessTokenMappingIdOpt…
Browse files Browse the repository at this point in the history
…ional

oauthAccessTokenMapping id to optional
  • Loading branch information
wesleymccollam authored Feb 15, 2024
2 parents 2431a9a + 8c12449 commit 708d88f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 19 deletions.
1 change: 0 additions & 1 deletion api/pf-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15183,7 +15183,6 @@ components:
- accessTokenManagerRef
- attributeContractFulfillment
- context
- id
type: object
properties:
id:
Expand Down
1 change: 0 additions & 1 deletion configurationapi/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15957,7 +15957,6 @@ components:
- accessTokenManagerRef
- attributeContractFulfillment
- context
- id
type: object
AccessTokenMappingContext:
description: The Access Token Attribute Mapping.
Expand Down
9 changes: 7 additions & 2 deletions configurationapi/docs/AccessTokenMapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | The id of the Access Token Mapping. |
**Id** | Pointer to **string** | The id of the Access Token Mapping. | [optional]
**Context** | [**AccessTokenMappingContext**](AccessTokenMappingContext.md) | |
**AccessTokenManagerRef** | [**ResourceLink**](ResourceLink.md) | |
**AttributeSources** | Pointer to [**[]AttributeSourceAggregation**](AttributeSourceAggregation.md) | A list of configured data stores to look up attributes from. | [optional]
Expand All @@ -15,7 +15,7 @@ Name | Type | Description | Notes

### NewAccessTokenMapping

`func NewAccessTokenMapping(id string, context AccessTokenMappingContext, accessTokenManagerRef ResourceLink, attributeContractFulfillment map[string]AttributeFulfillmentValue, ) *AccessTokenMapping`
`func NewAccessTokenMapping(context AccessTokenMappingContext, accessTokenManagerRef ResourceLink, attributeContractFulfillment map[string]AttributeFulfillmentValue, ) *AccessTokenMapping`

NewAccessTokenMapping instantiates a new AccessTokenMapping object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -49,6 +49,11 @@ and a boolean to check if the value has been set.

SetId sets Id field to given value.

### HasId

`func (o *AccessTokenMapping) HasId() bool`

HasId returns a boolean if a field has been set.

### GetContext

Expand Down
4 changes: 2 additions & 2 deletions configurationapi/docs/OauthAccessTokenMappingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
)

func main() {
body := *openapiclient.NewAccessTokenMapping("Id_example", *openapiclient.NewAccessTokenMappingContext("Type_example", *openapiclient.NewResourceLink("Id_example")), *openapiclient.NewResourceLink("Id_example"), map[string]AttributeFulfillmentValue{"key": *openapiclient.NewAttributeFulfillmentValue(*openapiclient.NewSourceTypeIdKey("Type_example"), "Value_example")}) // AccessTokenMapping | Configuration for the new Access Token Mapping.
body := *openapiclient.NewAccessTokenMapping(*openapiclient.NewAccessTokenMappingContext("Type_example", *openapiclient.NewResourceLink("Id_example")), *openapiclient.NewResourceLink("Id_example"), map[string]AttributeFulfillmentValue{"key": *openapiclient.NewAttributeFulfillmentValue(*openapiclient.NewSourceTypeIdKey("Type_example"), "Value_example")}) // AccessTokenMapping | Configuration for the new Access Token Mapping.
xBypassExternalValidation := true // bool | External validation will be bypassed when set to true. Default to false. (optional) (default to false)

configuration := openapiclient.NewConfiguration()
Expand Down Expand Up @@ -295,7 +295,7 @@ import (

func main() {
id := "id_example" // string | ID of the Access Token Mapping to update.
body := *openapiclient.NewAccessTokenMapping("Id_example", *openapiclient.NewAccessTokenMappingContext("Type_example", *openapiclient.NewResourceLink("Id_example")), *openapiclient.NewResourceLink("Id_example"), map[string]AttributeFulfillmentValue{"key": *openapiclient.NewAttributeFulfillmentValue(*openapiclient.NewSourceTypeIdKey("Type_example"), "Value_example")}) // AccessTokenMapping | Configuration for updated mapping.
body := *openapiclient.NewAccessTokenMapping(*openapiclient.NewAccessTokenMappingContext("Type_example", *openapiclient.NewResourceLink("Id_example")), *openapiclient.NewResourceLink("Id_example"), map[string]AttributeFulfillmentValue{"key": *openapiclient.NewAttributeFulfillmentValue(*openapiclient.NewSourceTypeIdKey("Type_example"), "Value_example")}) // AccessTokenMapping | Configuration for updated mapping.
xBypassExternalValidation := true // bool | External validation will be bypassed when set to true. Default to false. (optional) (default to false)

configuration := openapiclient.NewConfiguration()
Expand Down
35 changes: 22 additions & 13 deletions configurationapi/model_access_token_mapping.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 708d88f

Please sign in to comment.