Skip to content

Commit

Permalink
Support for PhoneExtensions in the MFASettings model (#175)
Browse files Browse the repository at this point in the history
* Support for `PhoneExtensions` in the `MFASettings` model

* changelogs
  • Loading branch information
patrickcping authored May 22, 2023
1 parent 4026b0e commit 876804a
Show file tree
Hide file tree
Showing 14 changed files with 283 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* `github.com/patrickcping/pingone-go-sdk-v2/management` : [v0.21.0](./management/CHANGELOG.md)
* **Note** Deprecated `bundleId` and `packageName` at the root level of the `ApplicationOIDC` model. Customers should use `mobile.bundleId` and `mobile.packageName` going forward. [#172](https://github.com/patrickcping/pingone-go-sdk-v2/pull/172)
* **Enhancement** Added `filterOptions.ipAddressExposed` and `filterOptions.userAgentExposed` to the `Subscription` (webhook) data model. [#173](https://github.com/patrickcping/pingone-go-sdk-v2/pull/173)
* `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.11.0](./mfa/CHANGELOG.md)
* **Enhancement** Support for `PhoneExtensions` in the `MFASettings` model. [#175](https://github.com/patrickcping/pingone-go-sdk-v2/pull/175)

# Release (2023-05-19)

Expand Down
2 changes: 2 additions & 0 deletions mfa/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ docs/MFASettingsApi.md
docs/MFASettingsAuthentication.md
docs/MFASettingsLockout.md
docs/MFASettingsPairing.md
docs/MFASettingsPhoneExtensions.md
docs/ObjectEnvironment.md
docs/P1Error.md
docs/P1ErrorDetailsInner.md
Expand Down Expand Up @@ -127,6 +128,7 @@ model_mfa_settings.go
model_mfa_settings_authentication.go
model_mfa_settings_lockout.go
model_mfa_settings_pairing.go
model_mfa_settings_phone_extensions.go
model_object_environment.go
model_p1_error.go
model_p1_error_details_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.10.0
0.11.0
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.0 (Unreleased)

* **Enhancement** Support for `PhoneExtensions` in the `MFASettings` model. [#175](https://github.com/patrickcping/pingone-go-sdk-v2/pull/175)

# v0.10.0 (2023-05-19)

* **Note** Change default useragent for HTTP requests. [#160](https://github.com/patrickcping/pingone-go-sdk-v2/pull/160)
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.10.0
- Package version: 0.11.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -168,6 +168,7 @@ Class | Method | HTTP request | Description
- [MFASettingsAuthentication](docs/MFASettingsAuthentication.md)
- [MFASettingsLockout](docs/MFASettingsLockout.md)
- [MFASettingsPairing](docs/MFASettingsPairing.md)
- [MFASettingsPhoneExtensions](docs/MFASettingsPhoneExtensions.md)
- [ObjectEnvironment](docs/ObjectEnvironment.md)
- [P1Error](docs/P1Error.md)
- [P1ErrorDetailsInner](docs/P1ErrorDetailsInner.md)
Expand Down
16 changes: 16 additions & 0 deletions mfa/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3155,6 +3155,8 @@ components:
example:
environment:
id: id
phoneExtensions:
enabled: true
lockout:
durationSeconds: 6
failureCount: 0
Expand All @@ -3173,6 +3175,8 @@ components:
$ref: '#/components/schemas/MFASettings_lockout'
pairing:
$ref: '#/components/schemas/MFASettings_pairing'
phoneExtensions:
$ref: '#/components/schemas/MFASettings_phoneExtensions'
updatedAt:
description: The time the resource was last updated.
format: date-time
Expand Down Expand Up @@ -4079,6 +4083,18 @@ components:
- maxAllowedDevices
- pairingKeyFormat
type: object
MFASettings_phoneExtensions:
description: Contains settings for phone extension support.
example:
enabled: true
properties:
enabled:
description: "Set to `true` to allow one-time passwords to be delivered\
\ via voice to phone numbers that include extensions. Set to `false` to\
\ disable support for phone numbers with extensions. By default, support\
\ for extensions is disabled."
type: boolean
type: object
P1Error_details_inner_innerError:
description: Additional details to help the client developer resolve the fault
(primarily for UI validation reasons).
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.

26 changes: 26 additions & 0 deletions mfa/docs/MFASettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Authentication** | Pointer to [**MFASettingsAuthentication**](MFASettingsAuthentication.md) | | [optional]
**Lockout** | Pointer to [**MFASettingsLockout**](MFASettingsLockout.md) | | [optional]
**Pairing** | [**MFASettingsPairing**](MFASettingsPairing.md) | |
**PhoneExtensions** | Pointer to [**MFASettingsPhoneExtensions**](MFASettingsPhoneExtensions.md) | | [optional]
**UpdatedAt** | Pointer to **time.Time** | The time the resource was last updated. | [optional] [readonly]

## Methods
Expand Down Expand Up @@ -124,6 +125,31 @@ and a boolean to check if the value has been set.
SetPairing sets Pairing field to given value.


### GetPhoneExtensions

`func (o *MFASettings) GetPhoneExtensions() MFASettingsPhoneExtensions`

GetPhoneExtensions returns the PhoneExtensions field if non-nil, zero value otherwise.

### GetPhoneExtensionsOk

`func (o *MFASettings) GetPhoneExtensionsOk() (*MFASettingsPhoneExtensions, bool)`

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

### SetPhoneExtensions

`func (o *MFASettings) SetPhoneExtensions(v MFASettingsPhoneExtensions)`

SetPhoneExtensions sets PhoneExtensions field to given value.

### HasPhoneExtensions

`func (o *MFASettings) HasPhoneExtensions() bool`

HasPhoneExtensions returns a boolean if a field has been set.

### GetUpdatedAt

`func (o *MFASettings) GetUpdatedAt() time.Time`
Expand Down
56 changes: 56 additions & 0 deletions mfa/docs/MFASettingsPhoneExtensions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# MFASettingsPhoneExtensions

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Enabled** | Pointer to **bool** | Set to `true` to allow one-time passwords to be delivered via voice to phone numbers that include extensions. Set to `false` to disable support for phone numbers with extensions. By default, support for extensions is disabled. | [optional]

## Methods

### NewMFASettingsPhoneExtensions

`func NewMFASettingsPhoneExtensions() *MFASettingsPhoneExtensions`

NewMFASettingsPhoneExtensions instantiates a new MFASettingsPhoneExtensions object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewMFASettingsPhoneExtensionsWithDefaults

`func NewMFASettingsPhoneExtensionsWithDefaults() *MFASettingsPhoneExtensions`

NewMFASettingsPhoneExtensionsWithDefaults instantiates a new MFASettingsPhoneExtensions object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetEnabled

`func (o *MFASettingsPhoneExtensions) GetEnabled() bool`

GetEnabled returns the Enabled field if non-nil, zero value otherwise.

### GetEnabledOk

`func (o *MFASettingsPhoneExtensions) GetEnabledOk() (*bool, bool)`

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

### SetEnabled

`func (o *MFASettingsPhoneExtensions) SetEnabled(v bool)`

SetEnabled sets Enabled field to given value.

### HasEnabled

`func (o *MFASettingsPhoneExtensions) HasEnabled() bool`

HasEnabled returns a boolean if a field has been set.


[[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-20230425010034-47ecfdc1ba53
require golang.org/x/exp v0.0.0-20230519143937-03e91628a987
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-20230425010034-47ecfdc1ba53 h1:5llv2sWeaMSnA3w2kS57ouQQ4pudlXrR0dCgw51QK9o=
golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
golang.org/x/exp v0.0.0-20230519143937-03e91628a987 h1:3xJIFvzUFbu4ls0BTBYcgbCGhA63eAOEMxIHugyXJqA=
golang.org/x/exp v0.0.0-20230519143937-03e91628a987/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
36 changes: 36 additions & 0 deletions mfa/model_mfa_settings.go

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

127 changes: 127 additions & 0 deletions mfa/model_mfa_settings_phone_extensions.go

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

Loading

0 comments on commit 876804a

Please sign in to comment.