From eb998b63d224c06334110694faedea4d0f28ea51 Mon Sep 17 00:00:00 2001 From: Patrick Cowland Date: Wed, 29 Nov 2023 19:53:59 +0000 Subject: [PATCH 1/2] Fix invalid value for `EnumMFADevicePolicySelection` model --- CHANGELOG.md | 5 +++++ mfa/.version | 2 +- mfa/CHANGELOG.md | 4 ++++ mfa/README.md | 2 +- mfa/api/openapi.yaml | 4 ++-- mfa/configuration.go | 2 +- mfa/docs/EnumMFADevicePolicySelection.md | 2 +- mfa/generate/pingone-mfa.yml | 4 ++-- mfa/go.mod | 2 +- mfa/go.sum | 4 ++-- mfa/model_enum_mfa_device_policy_selection.go | 6 +++--- 11 files changed, 23 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee8ba2ec..42320e2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Release (2023-11-29) (2) + +* `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.18.1](./mfa/CHANGELOG.md) + * **Bug** Fixed invalid value for `EnumMFADevicePolicySelection` model. `ALWAYS_PROMPT_TO_SELECT` corrected to `ALWAYS_DISPLAY_DEVICES`. + # Release (2023-11-29) * `github.com/patrickcping/pingone-go-sdk-v2` : v0.11.1 diff --git a/mfa/.version b/mfa/.version index 47d04a52..6b2d58c8 100644 --- a/mfa/.version +++ b/mfa/.version @@ -1 +1 @@ -0.18.0 \ No newline at end of file +0.18.1 \ No newline at end of file diff --git a/mfa/CHANGELOG.md b/mfa/CHANGELOG.md index 2afd8cc3..d4476b1b 100644 --- a/mfa/CHANGELOG.md +++ b/mfa/CHANGELOG.md @@ -1,3 +1,7 @@ +# v0.18.1 (2023-11-29) + +* **Bug** Fixed invalid value for `EnumMFADevicePolicySelection` model. `ALWAYS_PROMPT_TO_SELECT` corrected to `ALWAYS_DISPLAY_DEVICES`. + # v0.18.0 (2023-11-10) * **Enhancement** Add API error handling for `409` errors. [#279](https://github.com/patrickcping/pingone-go-sdk-v2/pull/279) diff --git a/mfa/README.md b/mfa/README.md index f2845082..f192fac4 100644 --- a/mfa/README.md +++ b/mfa/README.md @@ -6,7 +6,7 @@ The PingOne Platform API covering the PingOne MFA service This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 2023-06-29 -- Package version: 0.18.0 +- Package version: 0.18.1 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation diff --git a/mfa/api/openapi.yaml b/mfa/api/openapi.yaml index 78554587..701deb7f 100644 --- a/mfa/api/openapi.yaml +++ b/mfa/api/openapi.yaml @@ -3914,12 +3914,12 @@ components: The default method that should be used for authentication. Can take one of the following values: * `DEFAULT_TO_FIRST` - use the method that the user set as their default * `PROMPT_TO_SELECT` - always have the user select the method to use if there is more than one method available - * `ALWAYS_PROMPT_TO_SELECT` - always have the user select the method to use even if there is only one method available + * `ALWAYS_DISPLAY_DEVICES` - always have the user select the method to use even if there is only one method available If this parameter is not provided, the `DEFAULT_TO_FIRST` option is used. enum: - DEFAULT_TO_FIRST - PROMPT_TO_SELECT - - ALWAYS_PROMPT_TO_SELECT + - ALWAYS_DISPLAY_DEVICES type: string EnumMFAPushCredentialAttrType: description: | diff --git a/mfa/configuration.go b/mfa/configuration.go index 3d6a348f..7315c506 100644 --- a/mfa/configuration.go +++ b/mfa/configuration.go @@ -91,7 +91,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "pingtools PingOne-GOLANG-SDK (mfa)/0.18.0 go", + UserAgent: "pingtools PingOne-GOLANG-SDK (mfa)/0.18.1 go", Debug: false, DefaultServerIndex: 0, Servers: ServerConfigurations{ diff --git a/mfa/docs/EnumMFADevicePolicySelection.md b/mfa/docs/EnumMFADevicePolicySelection.md index dc797f9d..73fa05aa 100644 --- a/mfa/docs/EnumMFADevicePolicySelection.md +++ b/mfa/docs/EnumMFADevicePolicySelection.md @@ -7,7 +7,7 @@ * `PROMPT_TO_SELECT` (value: `"PROMPT_TO_SELECT"`) -* `ALWAYS_PROMPT_TO_SELECT` (value: `"ALWAYS_PROMPT_TO_SELECT"`) +* `ALWAYS_DISPLAY_DEVICES` (value: `"ALWAYS_DISPLAY_DEVICES"`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/mfa/generate/pingone-mfa.yml b/mfa/generate/pingone-mfa.yml index 29b37018..4033b470 100644 --- a/mfa/generate/pingone-mfa.yml +++ b/mfa/generate/pingone-mfa.yml @@ -524,12 +524,12 @@ components: If the parameter is not provided, the default value is `EMAIL_THEN_SMS`. EnumMFADevicePolicySelection: type: string - enum: [DEFAULT_TO_FIRST, PROMPT_TO_SELECT, ALWAYS_PROMPT_TO_SELECT] + enum: [DEFAULT_TO_FIRST, PROMPT_TO_SELECT, ALWAYS_DISPLAY_DEVICES] description: | The default method that should be used for authentication. Can take one of the following values: * `DEFAULT_TO_FIRST` - use the method that the user set as their default * `PROMPT_TO_SELECT` - always have the user select the method to use if there is more than one method available - * `ALWAYS_PROMPT_TO_SELECT` - always have the user select the method to use even if there is only one method available + * `ALWAYS_DISPLAY_DEVICES` - always have the user select the method to use even if there is only one method available If this parameter is not provided, the `DEFAULT_TO_FIRST` option is used. EnumMFAPushCredentialAttrType: type: string diff --git a/mfa/go.mod b/mfa/go.mod index ad98a91d..2b9bae8a 100644 --- a/mfa/go.mod +++ b/mfa/go.mod @@ -2,4 +2,4 @@ module github.com/patrickcping/pingone-go-sdk-v2/mfa go 1.18 -require golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa +require golang.org/x/exp v0.0.0-20231127185646-65229373498e diff --git a/mfa/go.sum b/mfa/go.sum index 0a4b649f..9fcf0065 100644 --- a/mfa/go.sum +++ b/mfa/go.sum @@ -1,2 +1,2 @@ -golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= -golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= +golang.org/x/exp v0.0.0-20231127185646-65229373498e h1:Gvh4YaCaXNs6dKTlfgismwWZKyjVZXwOPfIyUaqU3No= +golang.org/x/exp v0.0.0-20231127185646-65229373498e/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= diff --git a/mfa/model_enum_mfa_device_policy_selection.go b/mfa/model_enum_mfa_device_policy_selection.go index c4c5cacb..7ba3058e 100644 --- a/mfa/model_enum_mfa_device_policy_selection.go +++ b/mfa/model_enum_mfa_device_policy_selection.go @@ -15,21 +15,21 @@ import ( "fmt" ) -// EnumMFADevicePolicySelection The default method that should be used for authentication. Can take one of the following values: * `DEFAULT_TO_FIRST` - use the method that the user set as their default * `PROMPT_TO_SELECT` - always have the user select the method to use if there is more than one method available * `ALWAYS_PROMPT_TO_SELECT` - always have the user select the method to use even if there is only one method available If this parameter is not provided, the `DEFAULT_TO_FIRST` option is used. +// EnumMFADevicePolicySelection The default method that should be used for authentication. Can take one of the following values: * `DEFAULT_TO_FIRST` - use the method that the user set as their default * `PROMPT_TO_SELECT` - always have the user select the method to use if there is more than one method available * `ALWAYS_DISPLAY_DEVICES` - always have the user select the method to use even if there is only one method available If this parameter is not provided, the `DEFAULT_TO_FIRST` option is used. type EnumMFADevicePolicySelection string // List of EnumMFADevicePolicySelection const ( ENUMMFADEVICEPOLICYSELECTION_DEFAULT_TO_FIRST EnumMFADevicePolicySelection = "DEFAULT_TO_FIRST" ENUMMFADEVICEPOLICYSELECTION_PROMPT_TO_SELECT EnumMFADevicePolicySelection = "PROMPT_TO_SELECT" - ENUMMFADEVICEPOLICYSELECTION_ALWAYS_PROMPT_TO_SELECT EnumMFADevicePolicySelection = "ALWAYS_PROMPT_TO_SELECT" + ENUMMFADEVICEPOLICYSELECTION_ALWAYS_DISPLAY_DEVICES EnumMFADevicePolicySelection = "ALWAYS_DISPLAY_DEVICES" ) // All allowed values of EnumMFADevicePolicySelection enum var AllowedEnumMFADevicePolicySelectionEnumValues = []EnumMFADevicePolicySelection{ "DEFAULT_TO_FIRST", "PROMPT_TO_SELECT", - "ALWAYS_PROMPT_TO_SELECT", + "ALWAYS_DISPLAY_DEVICES", } func (v *EnumMFADevicePolicySelection) UnmarshalJSON(src []byte) error { From 32883de133b7616a855259dd4d45574bdaf2a2e8 Mon Sep 17 00:00:00 2001 From: Patrick Cowland Date: Wed, 29 Nov 2023 19:54:43 +0000 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 +- mfa/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42320e2f..2fdeb812 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Release (2023-11-29) (2) * `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.18.1](./mfa/CHANGELOG.md) - * **Bug** Fixed invalid value for `EnumMFADevicePolicySelection` model. `ALWAYS_PROMPT_TO_SELECT` corrected to `ALWAYS_DISPLAY_DEVICES`. + * **Bug** Fixed invalid value for `EnumMFADevicePolicySelection` model. `ALWAYS_PROMPT_TO_SELECT` corrected to `ALWAYS_DISPLAY_DEVICES`. [#289](https://github.com/patrickcping/pingone-go-sdk-v2/pull/289) # Release (2023-11-29) diff --git a/mfa/CHANGELOG.md b/mfa/CHANGELOG.md index d4476b1b..88bc8a09 100644 --- a/mfa/CHANGELOG.md +++ b/mfa/CHANGELOG.md @@ -1,6 +1,6 @@ # v0.18.1 (2023-11-29) -* **Bug** Fixed invalid value for `EnumMFADevicePolicySelection` model. `ALWAYS_PROMPT_TO_SELECT` corrected to `ALWAYS_DISPLAY_DEVICES`. +* **Bug** Fixed invalid value for `EnumMFADevicePolicySelection` model. `ALWAYS_PROMPT_TO_SELECT` corrected to `ALWAYS_DISPLAY_DEVICES`. [#289](https://github.com/patrickcping/pingone-go-sdk-v2/pull/289) # v0.18.0 (2023-11-10)