Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TimeUnit enum in the DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime model #190

Merged
merged 5 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Release (Unreleased)

* `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.11.1](./mfa/CHANGELOG.md)
* **Enhancement** Fix `TimeUnit` enum in the `DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime` model. [#190](https://github.com/patrickcping/pingone-go-sdk-v2/pull/190)
* `github.com/patrickcping/pingone-go-sdk-v2/verify` : [v0.1.0](./verify/CHANGELOG.md)
* **Initial release** [#186](https://github.com/patrickcping/pingone-go-sdk-v2/pull/186)

Expand Down
2 changes: 2 additions & 0 deletions mfa/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ docs/EnumMFAPushCredentialAttrType.md
docs/EnumMFASettingsDeviceSelection.md
docs/EnumMFASettingsPairingKeyFormat.md
docs/EnumTimeUnit.md
docs/EnumTimeUnitPairingKeyLifetime.md
docs/EnumTimeUnitPushTimeout.md
docs/FIDODeviceApi.md
docs/FIDOPolicy.md
Expand Down Expand Up @@ -113,6 +114,7 @@ model_enum_mfa_push_credential_attr_type.go
model_enum_mfa_settings_device_selection.go
model_enum_mfa_settings_pairing_key_format.go
model_enum_time_unit.go
model_enum_time_unit_pairing_key_lifetime.go
model_enum_time_unit_push_timeout.go
model_fido_policy.go
model_fido_policy_allowed_authenticators_inner.go
Expand Down
2 changes: 1 addition & 1 deletion mfa/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0
0.11.1
4 changes: 4 additions & 0 deletions mfa/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.11.1 (Unreleased)

* **Enhancement** Fix `TimeUnit` enum in the `DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime` model. [#190](https://github.com/patrickcping/pingone-go-sdk-v2/pull/190)

# v0.11.0 (2023-05-23)

* **Enhancement** Support for `PhoneExtensions` in the `MFASettings` model. [#175](https://github.com/patrickcping/pingone-go-sdk-v2/pull/175)
Expand Down
3 changes: 2 additions & 1 deletion mfa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2021-10-17
- Package version: 0.11.0
- Package version: 0.11.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -153,6 +153,7 @@ Class | Method | HTTP request | Description
- [EnumMFASettingsDeviceSelection](docs/EnumMFASettingsDeviceSelection.md)
- [EnumMFASettingsPairingKeyFormat](docs/EnumMFASettingsPairingKeyFormat.md)
- [EnumTimeUnit](docs/EnumTimeUnit.md)
- [EnumTimeUnitPairingKeyLifetime](docs/EnumTimeUnitPairingKeyLifetime.md)
- [EnumTimeUnitPushTimeout](docs/EnumTimeUnitPushTimeout.md)
- [FIDOPolicy](docs/FIDOPolicy.md)
- [FIDOPolicyAllowedAuthenticatorsInner](docs/FIDOPolicyAllowedAuthenticatorsInner.md)
Expand Down
8 changes: 7 additions & 1 deletion mfa/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3030,6 +3030,12 @@ components:
- MINUTES
- SECONDS
type: string
EnumTimeUnitPairingKeyLifetime:
description: The time unit for the `pairingKeyLifetime.duration` parameter.
enum:
- MINUTES
- HOURS
type: string
EnumTimeUnitPushTimeout:
description: "The time unit for the `pushTimeout.duration` parameter. Currently,\
\ the only permitted value is `SECONDS`."
Expand Down Expand Up @@ -3415,7 +3421,7 @@ components:
\ is not provided, the duration is set to 10 minutes."
type: integer
timeUnit:
$ref: '#/components/schemas/EnumTimeUnit'
$ref: '#/components/schemas/EnumTimeUnitPairingKeyLifetime'
required:
- duration
- timeUnit
Expand Down
2 changes: 1 addition & 1 deletion mfa/configuration.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Duration** | **int32** | The amount of time an issued pairing key can be used until it expires. Minimum is 1 minute and maximum is 48 hours. If this parameter is not provided, the duration is set to 10 minutes. | [default to 10]
**TimeUnit** | [**EnumTimeUnit**](EnumTimeUnit.md) | |
**TimeUnit** | [**EnumTimeUnitPairingKeyLifetime**](EnumTimeUnitPairingKeyLifetime.md) | |

## Methods

### NewDeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime

`func NewDeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime(duration int32, timeUnit EnumTimeUnit, ) *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime`
`func NewDeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime(duration int32, timeUnit EnumTimeUnitPairingKeyLifetime, ) *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime`

NewDeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime instantiates a new DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -48,20 +48,20 @@ SetDuration sets Duration field to given value.

### GetTimeUnit

`func (o *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime) GetTimeUnit() EnumTimeUnit`
`func (o *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime) GetTimeUnit() EnumTimeUnitPairingKeyLifetime`

GetTimeUnit returns the TimeUnit field if non-nil, zero value otherwise.

### GetTimeUnitOk

`func (o *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime) GetTimeUnitOk() (*EnumTimeUnit, bool)`
`func (o *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime) GetTimeUnitOk() (*EnumTimeUnitPairingKeyLifetime, bool)`

GetTimeUnitOk returns a tuple with the TimeUnit field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetTimeUnit

`func (o *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime) SetTimeUnit(v EnumTimeUnit)`
`func (o *DeviceAuthenticationPolicyMobileApplicationsInnerPairingKeyLifetime) SetTimeUnit(v EnumTimeUnitPairingKeyLifetime)`

SetTimeUnit sets TimeUnit field to given value.

Expand Down
13 changes: 13 additions & 0 deletions mfa/docs/EnumTimeUnitPairingKeyLifetime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# EnumTimeUnitPairingKeyLifetime

## Enum


* `MINUTES` (value: `"MINUTES"`)

* `HOURS` (value: `"HOURS"`)


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion mfa/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/patrickcping/pingone-go-sdk-v2/mfa

go 1.18

require golang.org/x/exp v0.0.0-20230519143937-03e91628a987
require golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
4 changes: 2 additions & 2 deletions mfa/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/exp v0.0.0-20230519143937-03e91628a987 h1:3xJIFvzUFbu4ls0BTBYcgbCGhA63eAOEMxIHugyXJqA=
golang.org/x/exp v0.0.0-20230519143937-03e91628a987/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=

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

111 changes: 111 additions & 0 deletions mfa/model_enum_time_unit_pairing_key_lifetime.go

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

10 changes: 7 additions & 3 deletions pingone-mfa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ components:
description: The amount of time an issued pairing key can be used until it expires. Minimum is 1 minute and maximum is 48 hours. If this parameter is not provided, the duration is set to 10 minutes.
default: 10
timeUnit:
$ref: '#/components/schemas/EnumTimeUnit'
$ref: '#/components/schemas/EnumTimeUnitPairingKeyLifetime'
required:
- duration
- timeUnit
- timeUnit
pushLimit:
type: object
properties:
Expand All @@ -218,7 +218,7 @@ components:
$ref: '#/components/schemas/EnumTimeUnit'
required:
- duration
- timeUnit
- timeUnit
timePeriod:
type: object
properties:
Expand Down Expand Up @@ -407,6 +407,10 @@ components:
type: string
enum: [MINUTES, SECONDS]
description: The type of time unit
EnumTimeUnitPairingKeyLifetime:
type: string
enum: [MINUTES, HOURS]
description: The time unit for the `pairingKeyLifetime.duration` parameter.
EnumTimeUnitPushTimeout:
type: string
enum: [SECONDS]
Expand Down