From 7b26e1d98f8c8265f5d45b9a18bd9335cc9e0337 Mon Sep 17 00:00:00 2001 From: Patrick Cowland Date: Mon, 20 Feb 2023 09:41:44 +0000 Subject: [PATCH 1/4] support huawei hms push --- CHANGELOG.md | 4 + management/CHANGELOG.md | 1 + management/api/openapi.yaml | 12 ++ management/docs/ApplicationOIDCAllOfMobile.md | 52 ++++++ .../model_application_oidc_all_of_mobile.go | 74 ++++++++ mfa/.openapi-generator/FILES | 8 + mfa/.version | 2 +- mfa/CHANGELOG.md | 5 + mfa/README.md | 4 + mfa/api/openapi.yaml | 55 +++++- ...cationsApplicationMFAPushCredentialsApi.md | 4 +- mfa/docs/CreateMFAPushCredentialRequest.md | 44 ++++- ...EntityArrayEmbeddedPushCredentialsInner.md | 44 ++++- mfa/docs/EnumMFAPushCredentialAttrType.md | 2 + mfa/docs/MFAPushCredential.md | 23 +-- mfa/docs/MFAPushCredentialAPNSAllOf.md | 23 ++- mfa/docs/MFAPushCredentialFCM.md | 72 ++++++++ mfa/docs/MFAPushCredentialFCMAllOf.md | 51 ++++++ mfa/docs/MFAPushCredentialHMS.md | 93 ++++++++++ mfa/docs/MFAPushCredentialHMSAllOf.md | 72 ++++++++ mfa/docs/UpdateMFAPushCredentialRequest.md | 44 ++++- mfa/go.mod | 3 +- mfa/go.sum | 15 +- ...odel_enum_mfa_push_credential_attr_type.go | 4 +- mfa/model_mfa_push_credential.go | 32 +--- mfa/model_mfa_push_credential_apns_all_of.go | 32 +++- mfa/model_mfa_push_credential_fcm.go | 138 ++++++++++++++ mfa/model_mfa_push_credential_fcm_all_of.go | 109 ++++++++++++ mfa/model_mfa_push_credential_hms.go | 168 ++++++++++++++++++ mfa/model_mfa_push_credential_hms_all_of.go | 139 +++++++++++++++ pingone-management.yml | 6 + pingone-mfa.yml | 44 ++++- 32 files changed, 1294 insertions(+), 85 deletions(-) create mode 100644 mfa/docs/MFAPushCredentialFCM.md create mode 100644 mfa/docs/MFAPushCredentialFCMAllOf.md create mode 100644 mfa/docs/MFAPushCredentialHMS.md create mode 100644 mfa/docs/MFAPushCredentialHMSAllOf.md create mode 100644 mfa/model_mfa_push_credential_fcm.go create mode 100644 mfa/model_mfa_push_credential_fcm_all_of.go create mode 100644 mfa/model_mfa_push_credential_hms.go create mode 100644 mfa/model_mfa_push_credential_hms_all_of.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c27c009..a6638e5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,11 @@ * `github.com/patrickcping/pingone-go-sdk-v2/management` : [v0.15.0](./management/CHANGELOG.md) * **Breaking change** `OrganizationsApi.ReadOneOrganizations` changed to `OrganizationsApi.ReadOneOrganization` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) * **Enhancement** Add `limit` parameter to `OrganizationsApi.ReadAllOrganizations` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) + * **Enhancement** Add support for Huawei HMS Push service * **Bug fix** - Correct the `EmailDomainTrustedEmail` API model [#103](https://github.com/patrickcping/pingone-go-sdk-v2/pull/103) +* `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.8.0](./mfa/CHANGELOG.md) + * **Breaking change** `Key` property removed from the `MFAPushCredential` model object and assigned to `MFAPushCredentialFCM` and `MFAPushCredentialAPNS` individually + * **Enhancement** Add support for Huawei HMS Push service # Release (2023-01-12) diff --git a/management/CHANGELOG.md b/management/CHANGELOG.md index ecd014ee..ab27c7e6 100644 --- a/management/CHANGELOG.md +++ b/management/CHANGELOG.md @@ -2,6 +2,7 @@ * **Breaking change** `OrganizationsApi.ReadOneOrganizations` changed to `OrganizationsApi.ReadOneOrganization` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) * **Enhancement** Add `limit` parameter to `OrganizationsApi.ReadAllOrganizations` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) +* **Enhancement** Add support for Huawei HMS Push service * **Bug fix** - Correct the `EmailDomainTrustedEmail` API model [#103](https://github.com/patrickcping/pingone-go-sdk-v2/pull/103) # v0.14.0 (2023-01-12) diff --git a/management/api/openapi.yaml b/management/api/openapi.yaml index 06d6fabc..450928d2 100644 --- a/management/api/openapi.yaml +++ b/management/api/openapi.yaml @@ -27055,6 +27055,18 @@ components: \ mobile.packageName property is unique per environment, and once defined,\ \ is immutable. this setting overrides the top-level packageName field." type: string + huaweiAppId: + description: "The unique identifier for the app on the device and in the\ + \ Huawei Mobile Service AppGallery. The value of the `huaweiAppId` property\ + \ is unique per environment, and once defined, is immutable. Used only\ + \ for applications for the Huawei ecosystem." + type: string + huaweiPackageName: + description: "The package name associated with the application, for push\ + \ notifications in native apps. The value of the `huaweiPackageName` property\ + \ is unique per environment, and once defined, is immutable. Used only\ + \ for applications for the Huawei ecosystem." + type: string passcodeRefreshDuration: $ref: '#/components/schemas/ApplicationOIDC_allOf_mobile_passcodeRefreshDuration' integrityDetection: diff --git a/management/docs/ApplicationOIDCAllOfMobile.md b/management/docs/ApplicationOIDCAllOfMobile.md index 1d036936..82a5ea20 100644 --- a/management/docs/ApplicationOIDCAllOfMobile.md +++ b/management/docs/ApplicationOIDCAllOfMobile.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **BundleId** | Pointer to **string** | A string that specifies the bundle associated with the application, for push notifications in native apps. The value of the bundleId property is unique per environment, and once defined, is immutable. this setting overrides the top-level bundleId field | [optional] **PackageName** | Pointer to **string** | A string that specifies the package name associated with the application, for push notifications in native apps. The value of the mobile.packageName property is unique per environment, and once defined, is immutable. this setting overrides the top-level packageName field. | [optional] +**HuaweiAppId** | Pointer to **string** | The unique identifier for the app on the device and in the Huawei Mobile Service AppGallery. The value of the `huaweiAppId` property is unique per environment, and once defined, is immutable. Used only for applications for the Huawei ecosystem. | [optional] +**HuaweiPackageName** | Pointer to **string** | The package name associated with the application, for push notifications in native apps. The value of the `huaweiPackageName` property is unique per environment, and once defined, is immutable. Used only for applications for the Huawei ecosystem. | [optional] **PasscodeRefreshDuration** | Pointer to [**ApplicationOIDCAllOfMobilePasscodeRefreshDuration**](ApplicationOIDCAllOfMobilePasscodeRefreshDuration.md) | | [optional] **IntegrityDetection** | Pointer to [**ApplicationOIDCAllOfMobileIntegrityDetection**](ApplicationOIDCAllOfMobileIntegrityDetection.md) | | [optional] **UriPrefix** | Pointer to **string** | A string that specifies a URI prefix that enables direct triggering of the mobile application when scanning a QR code. The URI prefix can be set to a universal link with a valid value (which can be a URL address that starts with `HTTP://` or `HTTPS://`, such as `https://www.acme.com`), or an app schema, which is just a string and requires no special validation. | [optional] @@ -79,6 +81,56 @@ SetPackageName sets PackageName field to given value. HasPackageName returns a boolean if a field has been set. +### GetHuaweiAppId + +`func (o *ApplicationOIDCAllOfMobile) GetHuaweiAppId() string` + +GetHuaweiAppId returns the HuaweiAppId field if non-nil, zero value otherwise. + +### GetHuaweiAppIdOk + +`func (o *ApplicationOIDCAllOfMobile) GetHuaweiAppIdOk() (*string, bool)` + +GetHuaweiAppIdOk returns a tuple with the HuaweiAppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHuaweiAppId + +`func (o *ApplicationOIDCAllOfMobile) SetHuaweiAppId(v string)` + +SetHuaweiAppId sets HuaweiAppId field to given value. + +### HasHuaweiAppId + +`func (o *ApplicationOIDCAllOfMobile) HasHuaweiAppId() bool` + +HasHuaweiAppId returns a boolean if a field has been set. + +### GetHuaweiPackageName + +`func (o *ApplicationOIDCAllOfMobile) GetHuaweiPackageName() string` + +GetHuaweiPackageName returns the HuaweiPackageName field if non-nil, zero value otherwise. + +### GetHuaweiPackageNameOk + +`func (o *ApplicationOIDCAllOfMobile) GetHuaweiPackageNameOk() (*string, bool)` + +GetHuaweiPackageNameOk returns a tuple with the HuaweiPackageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHuaweiPackageName + +`func (o *ApplicationOIDCAllOfMobile) SetHuaweiPackageName(v string)` + +SetHuaweiPackageName sets HuaweiPackageName field to given value. + +### HasHuaweiPackageName + +`func (o *ApplicationOIDCAllOfMobile) HasHuaweiPackageName() bool` + +HasHuaweiPackageName returns a boolean if a field has been set. + ### GetPasscodeRefreshDuration `func (o *ApplicationOIDCAllOfMobile) GetPasscodeRefreshDuration() ApplicationOIDCAllOfMobilePasscodeRefreshDuration` diff --git a/management/model_application_oidc_all_of_mobile.go b/management/model_application_oidc_all_of_mobile.go index a2261940..121af193 100644 --- a/management/model_application_oidc_all_of_mobile.go +++ b/management/model_application_oidc_all_of_mobile.go @@ -20,6 +20,10 @@ type ApplicationOIDCAllOfMobile struct { BundleId *string `json:"bundleId,omitempty"` // A string that specifies the package name associated with the application, for push notifications in native apps. The value of the mobile.packageName property is unique per environment, and once defined, is immutable. this setting overrides the top-level packageName field. PackageName *string `json:"packageName,omitempty"` + // The unique identifier for the app on the device and in the Huawei Mobile Service AppGallery. The value of the `huaweiAppId` property is unique per environment, and once defined, is immutable. Used only for applications for the Huawei ecosystem. + HuaweiAppId *string `json:"huaweiAppId,omitempty"` + // The package name associated with the application, for push notifications in native apps. The value of the `huaweiPackageName` property is unique per environment, and once defined, is immutable. Used only for applications for the Huawei ecosystem. + HuaweiPackageName *string `json:"huaweiPackageName,omitempty"` PasscodeRefreshDuration *ApplicationOIDCAllOfMobilePasscodeRefreshDuration `json:"passcodeRefreshDuration,omitempty"` IntegrityDetection *ApplicationOIDCAllOfMobileIntegrityDetection `json:"integrityDetection,omitempty"` // A string that specifies a URI prefix that enables direct triggering of the mobile application when scanning a QR code. The URI prefix can be set to a universal link with a valid value (which can be a URL address that starts with `HTTP://` or `HTTPS://`, such as `https://www.acme.com`), or an app schema, which is just a string and requires no special validation. @@ -107,6 +111,70 @@ func (o *ApplicationOIDCAllOfMobile) SetPackageName(v string) { o.PackageName = &v } +// GetHuaweiAppId returns the HuaweiAppId field value if set, zero value otherwise. +func (o *ApplicationOIDCAllOfMobile) GetHuaweiAppId() string { + if o == nil || isNil(o.HuaweiAppId) { + var ret string + return ret + } + return *o.HuaweiAppId +} + +// GetHuaweiAppIdOk returns a tuple with the HuaweiAppId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationOIDCAllOfMobile) GetHuaweiAppIdOk() (*string, bool) { + if o == nil || isNil(o.HuaweiAppId) { + return nil, false + } + return o.HuaweiAppId, true +} + +// HasHuaweiAppId returns a boolean if a field has been set. +func (o *ApplicationOIDCAllOfMobile) HasHuaweiAppId() bool { + if o != nil && !isNil(o.HuaweiAppId) { + return true + } + + return false +} + +// SetHuaweiAppId gets a reference to the given string and assigns it to the HuaweiAppId field. +func (o *ApplicationOIDCAllOfMobile) SetHuaweiAppId(v string) { + o.HuaweiAppId = &v +} + +// GetHuaweiPackageName returns the HuaweiPackageName field value if set, zero value otherwise. +func (o *ApplicationOIDCAllOfMobile) GetHuaweiPackageName() string { + if o == nil || isNil(o.HuaweiPackageName) { + var ret string + return ret + } + return *o.HuaweiPackageName +} + +// GetHuaweiPackageNameOk returns a tuple with the HuaweiPackageName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplicationOIDCAllOfMobile) GetHuaweiPackageNameOk() (*string, bool) { + if o == nil || isNil(o.HuaweiPackageName) { + return nil, false + } + return o.HuaweiPackageName, true +} + +// HasHuaweiPackageName returns a boolean if a field has been set. +func (o *ApplicationOIDCAllOfMobile) HasHuaweiPackageName() bool { + if o != nil && !isNil(o.HuaweiPackageName) { + return true + } + + return false +} + +// SetHuaweiPackageName gets a reference to the given string and assigns it to the HuaweiPackageName field. +func (o *ApplicationOIDCAllOfMobile) SetHuaweiPackageName(v string) { + o.HuaweiPackageName = &v +} + // GetPasscodeRefreshDuration returns the PasscodeRefreshDuration field value if set, zero value otherwise. func (o *ApplicationOIDCAllOfMobile) GetPasscodeRefreshDuration() ApplicationOIDCAllOfMobilePasscodeRefreshDuration { if o == nil || isNil(o.PasscodeRefreshDuration) { @@ -211,6 +279,12 @@ func (o ApplicationOIDCAllOfMobile) MarshalJSON() ([]byte, error) { if !isNil(o.PackageName) { toSerialize["packageName"] = o.PackageName } + if !isNil(o.HuaweiAppId) { + toSerialize["huaweiAppId"] = o.HuaweiAppId + } + if !isNil(o.HuaweiPackageName) { + toSerialize["huaweiPackageName"] = o.HuaweiPackageName + } if !isNil(o.PasscodeRefreshDuration) { toSerialize["passcodeRefreshDuration"] = o.PasscodeRefreshDuration } diff --git a/mfa/.openapi-generator/FILES b/mfa/.openapi-generator/FILES index 0e841f76..916d2731 100644 --- a/mfa/.openapi-generator/FILES +++ b/mfa/.openapi-generator/FILES @@ -53,6 +53,10 @@ docs/FIDOPolicyApi.md docs/MFAPushCredential.md docs/MFAPushCredentialAPNS.md docs/MFAPushCredentialAPNSAllOf.md +docs/MFAPushCredentialFCM.md +docs/MFAPushCredentialFCMAllOf.md +docs/MFAPushCredentialHMS.md +docs/MFAPushCredentialHMSAllOf.md docs/MFAPushCredentialResponse.md docs/MFASettings.md docs/MFASettingsApi.md @@ -106,6 +110,10 @@ model_fido_policy_allowed_authenticators_inner.go model_mfa_push_credential.go model_mfa_push_credential_apns.go model_mfa_push_credential_apns_all_of.go +model_mfa_push_credential_fcm.go +model_mfa_push_credential_fcm_all_of.go +model_mfa_push_credential_hms.go +model_mfa_push_credential_hms_all_of.go model_mfa_push_credential_response.go model_mfa_settings.go model_mfa_settings_authentication.go diff --git a/mfa/.version b/mfa/.version index d5cc44d1..8adc70fd 100644 --- a/mfa/.version +++ b/mfa/.version @@ -1 +1 @@ -0.7.2 \ No newline at end of file +0.8.0 \ No newline at end of file diff --git a/mfa/CHANGELOG.md b/mfa/CHANGELOG.md index 42289d91..4c01c2fc 100644 --- a/mfa/CHANGELOG.md +++ b/mfa/CHANGELOG.md @@ -1,3 +1,8 @@ +# v0.8.0 (Unreleased) + +* **Breaking change** `Key` property removed from the `MFAPushCredential` model object and assigned to `MFAPushCredentialFCM` and `MFAPushCredentialAPNS` individually +* **Enhancement** Add support for Huawei HMS Push service + # v0.7.2 (2023-01-12) * **Breaking change** Device selection `Authentication` model no longer required for the `MFASettings` model [#98](https://github.com/patrickcping/pingone-go-sdk-v2/pull/98) diff --git a/mfa/README.md b/mfa/README.md index 6524bcc9..03c381e5 100644 --- a/mfa/README.md +++ b/mfa/README.md @@ -156,6 +156,10 @@ Class | Method | HTTP request | Description - [MFAPushCredential](docs/MFAPushCredential.md) - [MFAPushCredentialAPNS](docs/MFAPushCredentialAPNS.md) - [MFAPushCredentialAPNSAllOf](docs/MFAPushCredentialAPNSAllOf.md) + - [MFAPushCredentialFCM](docs/MFAPushCredentialFCM.md) + - [MFAPushCredentialFCMAllOf](docs/MFAPushCredentialFCMAllOf.md) + - [MFAPushCredentialHMS](docs/MFAPushCredentialHMS.md) + - [MFAPushCredentialHMSAllOf](docs/MFAPushCredentialHMSAllOf.md) - [MFAPushCredentialResponse](docs/MFAPushCredentialResponse.md) - [MFASettings](docs/MFASettings.md) - [MFASettingsAuthentication](docs/MFASettingsAuthentication.md) diff --git a/mfa/api/openapi.yaml b/mfa/api/openapi.yaml index 1395cba9..0ec9bcf4 100644 --- a/mfa/api/openapi.yaml +++ b/mfa/api/openapi.yaml @@ -2884,11 +2884,16 @@ components: - ALWAYS_PROMPT_TO_SELECT type: string EnumMFAPushCredentialAttrType: - description: "A string that specifies the type of the push credentials. Mandatory.\ - \ Valid values APNS, FCM" + description: | + Specifies the push credential type. + Valid values: + * APNS (for Apple) + * FCM (for Google) + * HMS (for Huawei) enum: - APNS - FCM + - HMS type: string EnumMFASettingsDeviceSelection: deprecated: true @@ -2994,12 +2999,7 @@ components: properties: type: $ref: '#/components/schemas/EnumMFAPushCredentialAttrType' - key: - description: A string that Apple uses as an identifier to identify an authentication - key. Mandatory. - type: string required: - - key - type type: object MFAPushCredentialAPNS: @@ -3007,7 +3007,13 @@ components: - $ref: '#/components/schemas/MFAPushCredential' - $ref: '#/components/schemas/MFAPushCredentialAPNS_allOf' MFAPushCredentialFCM: - $ref: '#/components/schemas/MFAPushCredential' + allOf: + - $ref: '#/components/schemas/MFAPushCredential' + - $ref: '#/components/schemas/MFAPushCredentialFCM_allOf' + MFAPushCredentialHMS: + allOf: + - $ref: '#/components/schemas/MFAPushCredential' + - $ref: '#/components/schemas/MFAPushCredentialHMS_allOf' MFAPushCredentialResponse: example: createdAt: 2000-01-23T04:56:07.000+00:00 @@ -3105,6 +3111,7 @@ components: oneOf: - $ref: '#/components/schemas/MFAPushCredentialAPNS' - $ref: '#/components/schemas/MFAPushCredentialFCM' + - $ref: '#/components/schemas/MFAPushCredentialHMS' updateMFAPushCredential_request: example: type: APNS @@ -3117,6 +3124,7 @@ components: oneOf: - $ref: '#/components/schemas/MFAPushCredentialAPNS' - $ref: '#/components/schemas/MFAPushCredentialFCM' + - $ref: '#/components/schemas/MFAPushCredentialHMS' DeviceAuthenticationPolicyOfflineDevice_otp_lifeTime: example: duration: 0 @@ -3434,6 +3442,7 @@ components: anyOf: - $ref: '#/components/schemas/MFAPushCredentialAPNS' - $ref: '#/components/schemas/MFAPushCredentialFCM' + - $ref: '#/components/schemas/MFAPushCredentialHMS' EntityArray__embedded: example: fidoDevicesMetadata: @@ -3698,6 +3707,10 @@ components: type: object MFAPushCredentialAPNS_allOf: properties: + key: + description: A string that Apple uses as an identifier to identify an authentication + key. Mandatory. + type: string teamId: description: A string that Apple uses as an identifier to identify teams. type: string @@ -3707,10 +3720,36 @@ components: format. type: string required: + - key - teamId - token type: object example: null + MFAPushCredentialFCM_allOf: + properties: + key: + description: A string that Apple uses as an identifier to identify an authentication + key. Mandatory. + type: string + required: + - key + type: object + example: null + MFAPushCredentialHMS_allOf: + properties: + clientId: + description: Used only if type is set to HMS. OAuth 2.0 Client ID from the + Huawei Developers API console. + type: string + clientSecret: + description: Used only if type is set to HMS. The client secret associated + with the OAuth 2.0 Client ID. + type: string + required: + - clientId + - clientSecret + type: object + example: null MFASettings_authentication: deprecated: true description: An object that contains the device selection settings. diff --git a/mfa/docs/ApplicationsApplicationMFAPushCredentialsApi.md b/mfa/docs/ApplicationsApplicationMFAPushCredentialsApi.md index 207654db..a1436a45 100644 --- a/mfa/docs/ApplicationsApplicationMFAPushCredentialsApi.md +++ b/mfa/docs/ApplicationsApplicationMFAPushCredentialsApi.md @@ -33,7 +33,7 @@ import ( func main() { environmentID := "environmentID_example" // string | applicationID := "applicationID_example" // string | - createMFAPushCredentialRequest := openapiclient.createMFAPushCredential_request{MFAPushCredential: openapiclient.NewMFAPushCredential(openapiclient.EnumMFAPushCredentialAttrType("APNS"), "Key_example")} // CreateMFAPushCredentialRequest | (optional) + createMFAPushCredentialRequest := openapiclient.createMFAPushCredential_request{MFAPushCredentialAPNS: openapiclient.NewMFAPushCredentialAPNS(openapiclient.EnumMFAPushCredentialAttrType("APNS"), "Key_example", "TeamId_example", "Token_example")} // CreateMFAPushCredentialRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -326,7 +326,7 @@ func main() { environmentID := "environmentID_example" // string | applicationID := "applicationID_example" // string | pushCredentialID := "pushCredentialID_example" // string | - updateMFAPushCredentialRequest := openapiclient.updateMFAPushCredential_request{MFAPushCredential: openapiclient.NewMFAPushCredential(openapiclient.EnumMFAPushCredentialAttrType("APNS"), "Key_example")} // UpdateMFAPushCredentialRequest | (optional) + updateMFAPushCredentialRequest := openapiclient.updateMFAPushCredential_request{MFAPushCredentialAPNS: openapiclient.NewMFAPushCredentialAPNS(openapiclient.EnumMFAPushCredentialAttrType("APNS"), "Key_example", "TeamId_example", "Token_example")} // UpdateMFAPushCredentialRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/mfa/docs/CreateMFAPushCredentialRequest.md b/mfa/docs/CreateMFAPushCredentialRequest.md index 84d9dcca..70965c58 100644 --- a/mfa/docs/CreateMFAPushCredentialRequest.md +++ b/mfa/docs/CreateMFAPushCredentialRequest.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **Key** | **string** | A string that Apple uses as an identifier to identify an authentication key. Mandatory. | **TeamId** | **string** | A string that Apple uses as an identifier to identify teams. | **Token** | **string** | A string that Apple uses as the authentication token signing key to securely connect to APNS. This is a p8 file with a private key format. | +**ClientId** | **string** | Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. | +**ClientSecret** | **string** | Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. | ## Methods ### NewCreateMFAPushCredentialRequest -`func NewCreateMFAPushCredentialRequest(type_ EnumMFAPushCredentialAttrType, key string, teamId string, token string, ) *CreateMFAPushCredentialRequest` +`func NewCreateMFAPushCredentialRequest(type_ EnumMFAPushCredentialAttrType, key string, teamId string, token string, clientId string, clientSecret string, ) *CreateMFAPushCredentialRequest` NewCreateMFAPushCredentialRequest instantiates a new CreateMFAPushCredentialRequest object This constructor will assign default values to properties that have it defined, @@ -108,6 +110,46 @@ and a boolean to check if the value has been set. SetToken sets Token field to given value. +### GetClientId + +`func (o *CreateMFAPushCredentialRequest) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *CreateMFAPushCredentialRequest) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *CreateMFAPushCredentialRequest) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetClientSecret + +`func (o *CreateMFAPushCredentialRequest) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *CreateMFAPushCredentialRequest) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *CreateMFAPushCredentialRequest) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + + [[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/docs/EntityArrayEmbeddedPushCredentialsInner.md b/mfa/docs/EntityArrayEmbeddedPushCredentialsInner.md index 9d4618a2..81c42f75 100644 --- a/mfa/docs/EntityArrayEmbeddedPushCredentialsInner.md +++ b/mfa/docs/EntityArrayEmbeddedPushCredentialsInner.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **Key** | **string** | A string that Apple uses as an identifier to identify an authentication key. Mandatory. | **TeamId** | **string** | A string that Apple uses as an identifier to identify teams. | **Token** | **string** | A string that Apple uses as the authentication token signing key to securely connect to APNS. This is a p8 file with a private key format. | +**ClientId** | **string** | Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. | +**ClientSecret** | **string** | Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. | ## Methods ### NewEntityArrayEmbeddedPushCredentialsInner -`func NewEntityArrayEmbeddedPushCredentialsInner(type_ EnumMFAPushCredentialAttrType, key string, teamId string, token string, ) *EntityArrayEmbeddedPushCredentialsInner` +`func NewEntityArrayEmbeddedPushCredentialsInner(type_ EnumMFAPushCredentialAttrType, key string, teamId string, token string, clientId string, clientSecret string, ) *EntityArrayEmbeddedPushCredentialsInner` NewEntityArrayEmbeddedPushCredentialsInner instantiates a new EntityArrayEmbeddedPushCredentialsInner object This constructor will assign default values to properties that have it defined, @@ -108,6 +110,46 @@ and a boolean to check if the value has been set. SetToken sets Token field to given value. +### GetClientId + +`func (o *EntityArrayEmbeddedPushCredentialsInner) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *EntityArrayEmbeddedPushCredentialsInner) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *EntityArrayEmbeddedPushCredentialsInner) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetClientSecret + +`func (o *EntityArrayEmbeddedPushCredentialsInner) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *EntityArrayEmbeddedPushCredentialsInner) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *EntityArrayEmbeddedPushCredentialsInner) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + + [[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/docs/EnumMFAPushCredentialAttrType.md b/mfa/docs/EnumMFAPushCredentialAttrType.md index cb8fefc8..74a3502b 100644 --- a/mfa/docs/EnumMFAPushCredentialAttrType.md +++ b/mfa/docs/EnumMFAPushCredentialAttrType.md @@ -7,6 +7,8 @@ * `FCM` (value: `"FCM"`) +* `HMS` (value: `"HMS"`) + [[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/docs/MFAPushCredential.md b/mfa/docs/MFAPushCredential.md index 01c53c47..6348531b 100644 --- a/mfa/docs/MFAPushCredential.md +++ b/mfa/docs/MFAPushCredential.md @@ -5,13 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | [**EnumMFAPushCredentialAttrType**](EnumMFAPushCredentialAttrType.md) | | -**Key** | **string** | A string that Apple uses as an identifier to identify an authentication key. Mandatory. | ## Methods ### NewMFAPushCredential -`func NewMFAPushCredential(type_ EnumMFAPushCredentialAttrType, key string, ) *MFAPushCredential` +`func NewMFAPushCredential(type_ EnumMFAPushCredentialAttrType, ) *MFAPushCredential` NewMFAPushCredential instantiates a new MFAPushCredential object This constructor will assign default values to properties that have it defined, @@ -46,26 +45,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### GetKey - -`func (o *MFAPushCredential) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *MFAPushCredential) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *MFAPushCredential) SetKey(v string)` - -SetKey sets Key field to given value. - - [[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/docs/MFAPushCredentialAPNSAllOf.md b/mfa/docs/MFAPushCredentialAPNSAllOf.md index 6fc45cd3..f9c11b05 100644 --- a/mfa/docs/MFAPushCredentialAPNSAllOf.md +++ b/mfa/docs/MFAPushCredentialAPNSAllOf.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Key** | **string** | A string that Apple uses as an identifier to identify an authentication key. Mandatory. | **TeamId** | **string** | A string that Apple uses as an identifier to identify teams. | **Token** | **string** | A string that Apple uses as the authentication token signing key to securely connect to APNS. This is a p8 file with a private key format. | @@ -11,7 +12,7 @@ Name | Type | Description | Notes ### NewMFAPushCredentialAPNSAllOf -`func NewMFAPushCredentialAPNSAllOf(teamId string, token string, ) *MFAPushCredentialAPNSAllOf` +`func NewMFAPushCredentialAPNSAllOf(key string, teamId string, token string, ) *MFAPushCredentialAPNSAllOf` NewMFAPushCredentialAPNSAllOf instantiates a new MFAPushCredentialAPNSAllOf object This constructor will assign default values to properties that have it defined, @@ -26,6 +27,26 @@ NewMFAPushCredentialAPNSAllOfWithDefaults instantiates a new MFAPushCredentialAP 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 +### GetKey + +`func (o *MFAPushCredentialAPNSAllOf) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *MFAPushCredentialAPNSAllOf) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *MFAPushCredentialAPNSAllOf) SetKey(v string)` + +SetKey sets Key field to given value. + + ### GetTeamId `func (o *MFAPushCredentialAPNSAllOf) GetTeamId() string` diff --git a/mfa/docs/MFAPushCredentialFCM.md b/mfa/docs/MFAPushCredentialFCM.md new file mode 100644 index 00000000..ea1418f7 --- /dev/null +++ b/mfa/docs/MFAPushCredentialFCM.md @@ -0,0 +1,72 @@ +# MFAPushCredentialFCM + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**EnumMFAPushCredentialAttrType**](EnumMFAPushCredentialAttrType.md) | | +**Key** | **string** | A string that Apple uses as an identifier to identify an authentication key. Mandatory. | + +## Methods + +### NewMFAPushCredentialFCM + +`func NewMFAPushCredentialFCM(type_ EnumMFAPushCredentialAttrType, key string, ) *MFAPushCredentialFCM` + +NewMFAPushCredentialFCM instantiates a new MFAPushCredentialFCM 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 + +### NewMFAPushCredentialFCMWithDefaults + +`func NewMFAPushCredentialFCMWithDefaults() *MFAPushCredentialFCM` + +NewMFAPushCredentialFCMWithDefaults instantiates a new MFAPushCredentialFCM 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 + +### GetType + +`func (o *MFAPushCredentialFCM) GetType() EnumMFAPushCredentialAttrType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MFAPushCredentialFCM) GetTypeOk() (*EnumMFAPushCredentialAttrType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MFAPushCredentialFCM) SetType(v EnumMFAPushCredentialAttrType)` + +SetType sets Type field to given value. + + +### GetKey + +`func (o *MFAPushCredentialFCM) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *MFAPushCredentialFCM) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *MFAPushCredentialFCM) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[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/docs/MFAPushCredentialFCMAllOf.md b/mfa/docs/MFAPushCredentialFCMAllOf.md new file mode 100644 index 00000000..2eed91b3 --- /dev/null +++ b/mfa/docs/MFAPushCredentialFCMAllOf.md @@ -0,0 +1,51 @@ +# MFAPushCredentialFCMAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | A string that Apple uses as an identifier to identify an authentication key. Mandatory. | + +## Methods + +### NewMFAPushCredentialFCMAllOf + +`func NewMFAPushCredentialFCMAllOf(key string, ) *MFAPushCredentialFCMAllOf` + +NewMFAPushCredentialFCMAllOf instantiates a new MFAPushCredentialFCMAllOf 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 + +### NewMFAPushCredentialFCMAllOfWithDefaults + +`func NewMFAPushCredentialFCMAllOfWithDefaults() *MFAPushCredentialFCMAllOf` + +NewMFAPushCredentialFCMAllOfWithDefaults instantiates a new MFAPushCredentialFCMAllOf 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 + +### GetKey + +`func (o *MFAPushCredentialFCMAllOf) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *MFAPushCredentialFCMAllOf) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *MFAPushCredentialFCMAllOf) SetKey(v string)` + +SetKey sets Key field to given value. + + + +[[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/docs/MFAPushCredentialHMS.md b/mfa/docs/MFAPushCredentialHMS.md new file mode 100644 index 00000000..329699ea --- /dev/null +++ b/mfa/docs/MFAPushCredentialHMS.md @@ -0,0 +1,93 @@ +# MFAPushCredentialHMS + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**EnumMFAPushCredentialAttrType**](EnumMFAPushCredentialAttrType.md) | | +**ClientId** | **string** | Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. | +**ClientSecret** | **string** | Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. | + +## Methods + +### NewMFAPushCredentialHMS + +`func NewMFAPushCredentialHMS(type_ EnumMFAPushCredentialAttrType, clientId string, clientSecret string, ) *MFAPushCredentialHMS` + +NewMFAPushCredentialHMS instantiates a new MFAPushCredentialHMS 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 + +### NewMFAPushCredentialHMSWithDefaults + +`func NewMFAPushCredentialHMSWithDefaults() *MFAPushCredentialHMS` + +NewMFAPushCredentialHMSWithDefaults instantiates a new MFAPushCredentialHMS 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 + +### GetType + +`func (o *MFAPushCredentialHMS) GetType() EnumMFAPushCredentialAttrType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MFAPushCredentialHMS) GetTypeOk() (*EnumMFAPushCredentialAttrType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MFAPushCredentialHMS) SetType(v EnumMFAPushCredentialAttrType)` + +SetType sets Type field to given value. + + +### GetClientId + +`func (o *MFAPushCredentialHMS) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *MFAPushCredentialHMS) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *MFAPushCredentialHMS) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetClientSecret + +`func (o *MFAPushCredentialHMS) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *MFAPushCredentialHMS) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *MFAPushCredentialHMS) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + + + +[[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/docs/MFAPushCredentialHMSAllOf.md b/mfa/docs/MFAPushCredentialHMSAllOf.md new file mode 100644 index 00000000..0837b0d3 --- /dev/null +++ b/mfa/docs/MFAPushCredentialHMSAllOf.md @@ -0,0 +1,72 @@ +# MFAPushCredentialHMSAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientId** | **string** | Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. | +**ClientSecret** | **string** | Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. | + +## Methods + +### NewMFAPushCredentialHMSAllOf + +`func NewMFAPushCredentialHMSAllOf(clientId string, clientSecret string, ) *MFAPushCredentialHMSAllOf` + +NewMFAPushCredentialHMSAllOf instantiates a new MFAPushCredentialHMSAllOf 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 + +### NewMFAPushCredentialHMSAllOfWithDefaults + +`func NewMFAPushCredentialHMSAllOfWithDefaults() *MFAPushCredentialHMSAllOf` + +NewMFAPushCredentialHMSAllOfWithDefaults instantiates a new MFAPushCredentialHMSAllOf 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 + +### GetClientId + +`func (o *MFAPushCredentialHMSAllOf) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *MFAPushCredentialHMSAllOf) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *MFAPushCredentialHMSAllOf) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetClientSecret + +`func (o *MFAPushCredentialHMSAllOf) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *MFAPushCredentialHMSAllOf) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *MFAPushCredentialHMSAllOf) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + + + +[[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/docs/UpdateMFAPushCredentialRequest.md b/mfa/docs/UpdateMFAPushCredentialRequest.md index 3eae7e3a..09c83ff7 100644 --- a/mfa/docs/UpdateMFAPushCredentialRequest.md +++ b/mfa/docs/UpdateMFAPushCredentialRequest.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **Key** | **string** | A string that Apple uses as an identifier to identify an authentication key. Mandatory. | **TeamId** | **string** | A string that Apple uses as an identifier to identify teams. | **Token** | **string** | A string that Apple uses as the authentication token signing key to securely connect to APNS. This is a p8 file with a private key format. | +**ClientId** | **string** | Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. | +**ClientSecret** | **string** | Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. | ## Methods ### NewUpdateMFAPushCredentialRequest -`func NewUpdateMFAPushCredentialRequest(type_ EnumMFAPushCredentialAttrType, key string, teamId string, token string, ) *UpdateMFAPushCredentialRequest` +`func NewUpdateMFAPushCredentialRequest(type_ EnumMFAPushCredentialAttrType, key string, teamId string, token string, clientId string, clientSecret string, ) *UpdateMFAPushCredentialRequest` NewUpdateMFAPushCredentialRequest instantiates a new UpdateMFAPushCredentialRequest object This constructor will assign default values to properties that have it defined, @@ -108,6 +110,46 @@ and a boolean to check if the value has been set. SetToken sets Token field to given value. +### GetClientId + +`func (o *UpdateMFAPushCredentialRequest) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *UpdateMFAPushCredentialRequest) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *UpdateMFAPushCredentialRequest) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetClientSecret + +`func (o *UpdateMFAPushCredentialRequest) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *UpdateMFAPushCredentialRequest) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *UpdateMFAPushCredentialRequest) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + + [[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/go.mod b/mfa/go.mod index a18bf552..1e2c60dd 100644 --- a/mfa/go.mod +++ b/mfa/go.mod @@ -3,6 +3,7 @@ module github.com/patrickcping/pingone-go-sdk-v2/mfa go 1.13 require ( - golang.org/x/oauth2 v0.4.0 + golang.org/x/net v0.7.0 // indirect + golang.org/x/oauth2 v0.5.0 google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/mfa/go.sum b/mfa/go.sum index 361c06b1..c17d06dc 100644 --- a/mfa/go.sum +++ b/mfa/go.sum @@ -14,10 +14,11 @@ golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/oauth2 v0.4.0 h1:NF0gk8LVPg1Ml7SSbGyySuoxdsXitj7TvgvuRxIMc/M= -golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/oauth2 v0.5.0 h1:HuArIo48skDwlrvM3sEdHXElYslAMsf3KwRkkW4MC4s= +golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -25,15 +26,15 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= diff --git a/mfa/model_enum_mfa_push_credential_attr_type.go b/mfa/model_enum_mfa_push_credential_attr_type.go index 3558875a..505b659a 100644 --- a/mfa/model_enum_mfa_push_credential_attr_type.go +++ b/mfa/model_enum_mfa_push_credential_attr_type.go @@ -15,19 +15,21 @@ import ( "fmt" ) -// EnumMFAPushCredentialAttrType A string that specifies the type of the push credentials. Mandatory. Valid values APNS, FCM +// EnumMFAPushCredentialAttrType Specifies the push credential type. Valid values: * APNS (for Apple) * FCM (for Google) * HMS (for Huawei) type EnumMFAPushCredentialAttrType string // List of EnumMFAPushCredentialAttrType const ( ENUMMFAPUSHCREDENTIALATTRTYPE_APNS EnumMFAPushCredentialAttrType = "APNS" ENUMMFAPUSHCREDENTIALATTRTYPE_FCM EnumMFAPushCredentialAttrType = "FCM" + ENUMMFAPUSHCREDENTIALATTRTYPE_HMS EnumMFAPushCredentialAttrType = "HMS" ) // All allowed values of EnumMFAPushCredentialAttrType enum var AllowedEnumMFAPushCredentialAttrTypeEnumValues = []EnumMFAPushCredentialAttrType{ "APNS", "FCM", + "HMS", } func (v *EnumMFAPushCredentialAttrType) UnmarshalJSON(src []byte) error { diff --git a/mfa/model_mfa_push_credential.go b/mfa/model_mfa_push_credential.go index 79becbcf..00167809 100644 --- a/mfa/model_mfa_push_credential.go +++ b/mfa/model_mfa_push_credential.go @@ -17,18 +17,15 @@ import ( // MFAPushCredential struct for MFAPushCredential type MFAPushCredential struct { Type EnumMFAPushCredentialAttrType `json:"type"` - // A string that Apple uses as an identifier to identify an authentication key. Mandatory. - Key string `json:"key"` } // NewMFAPushCredential instantiates a new MFAPushCredential 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 -func NewMFAPushCredential(type_ EnumMFAPushCredentialAttrType, key string) *MFAPushCredential { +func NewMFAPushCredential(type_ EnumMFAPushCredentialAttrType) *MFAPushCredential { this := MFAPushCredential{} this.Type = type_ - this.Key = key return &this } @@ -64,38 +61,11 @@ func (o *MFAPushCredential) SetType(v EnumMFAPushCredentialAttrType) { o.Type = v } -// GetKey returns the Key field value -func (o *MFAPushCredential) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *MFAPushCredential) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *MFAPushCredential) SetKey(v string) { - o.Key = v -} - func (o MFAPushCredential) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["type"] = o.Type } - if true { - toSerialize["key"] = o.Key - } return json.Marshal(toSerialize) } diff --git a/mfa/model_mfa_push_credential_apns_all_of.go b/mfa/model_mfa_push_credential_apns_all_of.go index 9c107183..f624b29e 100644 --- a/mfa/model_mfa_push_credential_apns_all_of.go +++ b/mfa/model_mfa_push_credential_apns_all_of.go @@ -16,6 +16,8 @@ import ( // MFAPushCredentialAPNSAllOf struct for MFAPushCredentialAPNSAllOf type MFAPushCredentialAPNSAllOf struct { + // A string that Apple uses as an identifier to identify an authentication key. Mandatory. + Key string `json:"key"` // A string that Apple uses as an identifier to identify teams. TeamId string `json:"teamId"` // A string that Apple uses as the authentication token signing key to securely connect to APNS. This is a p8 file with a private key format. @@ -26,8 +28,9 @@ type MFAPushCredentialAPNSAllOf struct { // 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 -func NewMFAPushCredentialAPNSAllOf(teamId string, token string) *MFAPushCredentialAPNSAllOf { +func NewMFAPushCredentialAPNSAllOf(key string, teamId string, token string) *MFAPushCredentialAPNSAllOf { this := MFAPushCredentialAPNSAllOf{} + this.Key = key this.TeamId = teamId this.Token = token return &this @@ -41,6 +44,30 @@ func NewMFAPushCredentialAPNSAllOfWithDefaults() *MFAPushCredentialAPNSAllOf { return &this } +// GetKey returns the Key field value +func (o *MFAPushCredentialAPNSAllOf) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialAPNSAllOf) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *MFAPushCredentialAPNSAllOf) SetKey(v string) { + o.Key = v +} + // GetTeamId returns the TeamId field value func (o *MFAPushCredentialAPNSAllOf) GetTeamId() string { if o == nil { @@ -91,6 +118,9 @@ func (o *MFAPushCredentialAPNSAllOf) SetToken(v string) { func (o MFAPushCredentialAPNSAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } if true { toSerialize["teamId"] = o.TeamId } diff --git a/mfa/model_mfa_push_credential_fcm.go b/mfa/model_mfa_push_credential_fcm.go new file mode 100644 index 00000000..dea1d3b5 --- /dev/null +++ b/mfa/model_mfa_push_credential_fcm.go @@ -0,0 +1,138 @@ +/* +PingOne Platform API - PingOne MFA + +The PingOne Platform API covering the PingOne MFA service + +API version: 2021-10-17 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mfa + +import ( + "encoding/json" +) + +// MFAPushCredentialFCM struct for MFAPushCredentialFCM +type MFAPushCredentialFCM struct { + Type EnumMFAPushCredentialAttrType `json:"type"` + // A string that Apple uses as an identifier to identify an authentication key. Mandatory. + Key string `json:"key"` +} + +// NewMFAPushCredentialFCM instantiates a new MFAPushCredentialFCM 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 +func NewMFAPushCredentialFCM(type_ EnumMFAPushCredentialAttrType, key string) *MFAPushCredentialFCM { + this := MFAPushCredentialFCM{} + this.Type = type_ + this.Key = key + return &this +} + +// NewMFAPushCredentialFCMWithDefaults instantiates a new MFAPushCredentialFCM 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 +func NewMFAPushCredentialFCMWithDefaults() *MFAPushCredentialFCM { + this := MFAPushCredentialFCM{} + return &this +} + +// GetType returns the Type field value +func (o *MFAPushCredentialFCM) GetType() EnumMFAPushCredentialAttrType { + if o == nil { + var ret EnumMFAPushCredentialAttrType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialFCM) GetTypeOk() (*EnumMFAPushCredentialAttrType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MFAPushCredentialFCM) SetType(v EnumMFAPushCredentialAttrType) { + o.Type = v +} + +// GetKey returns the Key field value +func (o *MFAPushCredentialFCM) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialFCM) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *MFAPushCredentialFCM) SetKey(v string) { + o.Key = v +} + +func (o MFAPushCredentialFCM) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["key"] = o.Key + } + return json.Marshal(toSerialize) +} + +type NullableMFAPushCredentialFCM struct { + value *MFAPushCredentialFCM + isSet bool +} + +func (v NullableMFAPushCredentialFCM) Get() *MFAPushCredentialFCM { + return v.value +} + +func (v *NullableMFAPushCredentialFCM) Set(val *MFAPushCredentialFCM) { + v.value = val + v.isSet = true +} + +func (v NullableMFAPushCredentialFCM) IsSet() bool { + return v.isSet +} + +func (v *NullableMFAPushCredentialFCM) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMFAPushCredentialFCM(val *MFAPushCredentialFCM) *NullableMFAPushCredentialFCM { + return &NullableMFAPushCredentialFCM{value: val, isSet: true} +} + +func (v NullableMFAPushCredentialFCM) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMFAPushCredentialFCM) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/mfa/model_mfa_push_credential_fcm_all_of.go b/mfa/model_mfa_push_credential_fcm_all_of.go new file mode 100644 index 00000000..296868ed --- /dev/null +++ b/mfa/model_mfa_push_credential_fcm_all_of.go @@ -0,0 +1,109 @@ +/* +PingOne Platform API - PingOne MFA + +The PingOne Platform API covering the PingOne MFA service + +API version: 2021-10-17 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mfa + +import ( + "encoding/json" +) + +// MFAPushCredentialFCMAllOf struct for MFAPushCredentialFCMAllOf +type MFAPushCredentialFCMAllOf struct { + // A string that Apple uses as an identifier to identify an authentication key. Mandatory. + Key string `json:"key"` +} + +// NewMFAPushCredentialFCMAllOf instantiates a new MFAPushCredentialFCMAllOf 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 +func NewMFAPushCredentialFCMAllOf(key string) *MFAPushCredentialFCMAllOf { + this := MFAPushCredentialFCMAllOf{} + this.Key = key + return &this +} + +// NewMFAPushCredentialFCMAllOfWithDefaults instantiates a new MFAPushCredentialFCMAllOf 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 +func NewMFAPushCredentialFCMAllOfWithDefaults() *MFAPushCredentialFCMAllOf { + this := MFAPushCredentialFCMAllOf{} + return &this +} + +// GetKey returns the Key field value +func (o *MFAPushCredentialFCMAllOf) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialFCMAllOf) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *MFAPushCredentialFCMAllOf) SetKey(v string) { + o.Key = v +} + +func (o MFAPushCredentialFCMAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } + return json.Marshal(toSerialize) +} + +type NullableMFAPushCredentialFCMAllOf struct { + value *MFAPushCredentialFCMAllOf + isSet bool +} + +func (v NullableMFAPushCredentialFCMAllOf) Get() *MFAPushCredentialFCMAllOf { + return v.value +} + +func (v *NullableMFAPushCredentialFCMAllOf) Set(val *MFAPushCredentialFCMAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMFAPushCredentialFCMAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMFAPushCredentialFCMAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMFAPushCredentialFCMAllOf(val *MFAPushCredentialFCMAllOf) *NullableMFAPushCredentialFCMAllOf { + return &NullableMFAPushCredentialFCMAllOf{value: val, isSet: true} +} + +func (v NullableMFAPushCredentialFCMAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMFAPushCredentialFCMAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/mfa/model_mfa_push_credential_hms.go b/mfa/model_mfa_push_credential_hms.go new file mode 100644 index 00000000..80c5ec60 --- /dev/null +++ b/mfa/model_mfa_push_credential_hms.go @@ -0,0 +1,168 @@ +/* +PingOne Platform API - PingOne MFA + +The PingOne Platform API covering the PingOne MFA service + +API version: 2021-10-17 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mfa + +import ( + "encoding/json" +) + +// MFAPushCredentialHMS struct for MFAPushCredentialHMS +type MFAPushCredentialHMS struct { + Type EnumMFAPushCredentialAttrType `json:"type"` + // Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. + ClientId string `json:"clientId"` + // Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. + ClientSecret string `json:"clientSecret"` +} + +// NewMFAPushCredentialHMS instantiates a new MFAPushCredentialHMS 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 +func NewMFAPushCredentialHMS(type_ EnumMFAPushCredentialAttrType, clientId string, clientSecret string) *MFAPushCredentialHMS { + this := MFAPushCredentialHMS{} + this.Type = type_ + this.ClientId = clientId + this.ClientSecret = clientSecret + return &this +} + +// NewMFAPushCredentialHMSWithDefaults instantiates a new MFAPushCredentialHMS 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 +func NewMFAPushCredentialHMSWithDefaults() *MFAPushCredentialHMS { + this := MFAPushCredentialHMS{} + return &this +} + +// GetType returns the Type field value +func (o *MFAPushCredentialHMS) GetType() EnumMFAPushCredentialAttrType { + if o == nil { + var ret EnumMFAPushCredentialAttrType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialHMS) GetTypeOk() (*EnumMFAPushCredentialAttrType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MFAPushCredentialHMS) SetType(v EnumMFAPushCredentialAttrType) { + o.Type = v +} + +// GetClientId returns the ClientId field value +func (o *MFAPushCredentialHMS) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialHMS) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *MFAPushCredentialHMS) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *MFAPushCredentialHMS) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialHMS) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *MFAPushCredentialHMS) SetClientSecret(v string) { + o.ClientSecret = v +} + +func (o MFAPushCredentialHMS) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["clientId"] = o.ClientId + } + if true { + toSerialize["clientSecret"] = o.ClientSecret + } + return json.Marshal(toSerialize) +} + +type NullableMFAPushCredentialHMS struct { + value *MFAPushCredentialHMS + isSet bool +} + +func (v NullableMFAPushCredentialHMS) Get() *MFAPushCredentialHMS { + return v.value +} + +func (v *NullableMFAPushCredentialHMS) Set(val *MFAPushCredentialHMS) { + v.value = val + v.isSet = true +} + +func (v NullableMFAPushCredentialHMS) IsSet() bool { + return v.isSet +} + +func (v *NullableMFAPushCredentialHMS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMFAPushCredentialHMS(val *MFAPushCredentialHMS) *NullableMFAPushCredentialHMS { + return &NullableMFAPushCredentialHMS{value: val, isSet: true} +} + +func (v NullableMFAPushCredentialHMS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMFAPushCredentialHMS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/mfa/model_mfa_push_credential_hms_all_of.go b/mfa/model_mfa_push_credential_hms_all_of.go new file mode 100644 index 00000000..9cc15004 --- /dev/null +++ b/mfa/model_mfa_push_credential_hms_all_of.go @@ -0,0 +1,139 @@ +/* +PingOne Platform API - PingOne MFA + +The PingOne Platform API covering the PingOne MFA service + +API version: 2021-10-17 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mfa + +import ( + "encoding/json" +) + +// MFAPushCredentialHMSAllOf struct for MFAPushCredentialHMSAllOf +type MFAPushCredentialHMSAllOf struct { + // Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. + ClientId string `json:"clientId"` + // Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. + ClientSecret string `json:"clientSecret"` +} + +// NewMFAPushCredentialHMSAllOf instantiates a new MFAPushCredentialHMSAllOf 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 +func NewMFAPushCredentialHMSAllOf(clientId string, clientSecret string) *MFAPushCredentialHMSAllOf { + this := MFAPushCredentialHMSAllOf{} + this.ClientId = clientId + this.ClientSecret = clientSecret + return &this +} + +// NewMFAPushCredentialHMSAllOfWithDefaults instantiates a new MFAPushCredentialHMSAllOf 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 +func NewMFAPushCredentialHMSAllOfWithDefaults() *MFAPushCredentialHMSAllOf { + this := MFAPushCredentialHMSAllOf{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *MFAPushCredentialHMSAllOf) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialHMSAllOf) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *MFAPushCredentialHMSAllOf) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *MFAPushCredentialHMSAllOf) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *MFAPushCredentialHMSAllOf) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *MFAPushCredentialHMSAllOf) SetClientSecret(v string) { + o.ClientSecret = v +} + +func (o MFAPushCredentialHMSAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["clientId"] = o.ClientId + } + if true { + toSerialize["clientSecret"] = o.ClientSecret + } + return json.Marshal(toSerialize) +} + +type NullableMFAPushCredentialHMSAllOf struct { + value *MFAPushCredentialHMSAllOf + isSet bool +} + +func (v NullableMFAPushCredentialHMSAllOf) Get() *MFAPushCredentialHMSAllOf { + return v.value +} + +func (v *NullableMFAPushCredentialHMSAllOf) Set(val *MFAPushCredentialHMSAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMFAPushCredentialHMSAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMFAPushCredentialHMSAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMFAPushCredentialHMSAllOf(val *MFAPushCredentialHMSAllOf) *NullableMFAPushCredentialHMSAllOf { + return &NullableMFAPushCredentialHMSAllOf{value: val, isSet: true} +} + +func (v NullableMFAPushCredentialHMSAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMFAPushCredentialHMSAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/pingone-management.yml b/pingone-management.yml index a5e1fcc7..6970b45e 100644 --- a/pingone-management.yml +++ b/pingone-management.yml @@ -734,6 +734,12 @@ components: packageName: type: string description: A string that specifies the package name associated with the application, for push notifications in native apps. The value of the mobile.packageName property is unique per environment, and once defined, is immutable. this setting overrides the top-level packageName field. + huaweiAppId: + type: string + description: The unique identifier for the app on the device and in the Huawei Mobile Service AppGallery. The value of the `huaweiAppId` property is unique per environment, and once defined, is immutable. Used only for applications for the Huawei ecosystem. + huaweiPackageName: + type: string + description: The package name associated with the application, for push notifications in native apps. The value of the `huaweiPackageName` property is unique per environment, and once defined, is immutable. Used only for applications for the Huawei ecosystem. passcodeRefreshDuration: type: object properties: diff --git a/pingone-mfa.yml b/pingone-mfa.yml index 2fb3e2e4..fc1ddd8a 100644 --- a/pingone-mfa.yml +++ b/pingone-mfa.yml @@ -292,6 +292,7 @@ components: anyOf: - $ref: '#/components/schemas/MFAPushCredentialAPNS' - $ref: '#/components/schemas/MFAPushCredentialFCM' + - $ref: '#/components/schemas/MFAPushCredentialHMS' deviceAuthenticationPolicies: type: array items: @@ -341,8 +342,13 @@ components: If this parameter is not provided, the `DEFAULT_TO_FIRST` option is used. EnumMFAPushCredentialAttrType: type: string - enum: [APNS, FCM] - description: A string that specifies the type of the push credentials. Mandatory. Valid values APNS, FCM + enum: [APNS, FCM, HMS] + description: | + Specifies the push credential type. + Valid values: + * APNS (for Apple) + * FCM (for Google) + * HMS (for Huawei) EnumMFASettingsDeviceSelection: type: string deprecated: true @@ -422,17 +428,16 @@ components: properties: type: $ref: '#/components/schemas/EnumMFAPushCredentialAttrType' - key: - type: string - description: A string that Apple uses as an identifier to identify an authentication key. Mandatory. required: - type - - key MFAPushCredentialAPNS: allOf: - $ref: '#/components/schemas/MFAPushCredential' - type: object properties: + key: + type: string + description: A string that Apple uses as an identifier to identify an authentication key. Mandatory. teamId: type: string description: A string that Apple uses as an identifier to identify teams. @@ -440,10 +445,33 @@ components: type: string description: A string that Apple uses as the authentication token signing key to securely connect to APNS. This is a p8 file with a private key format. required: + - key - teamId - token MFAPushCredentialFCM: - $ref: '#/components/schemas/MFAPushCredential' + allOf: + - $ref: '#/components/schemas/MFAPushCredential' + - type: object + properties: + key: + type: string + description: A string that Apple uses as an identifier to identify an authentication key. Mandatory. + required: + - key + MFAPushCredentialHMS: + allOf: + - $ref: '#/components/schemas/MFAPushCredential' + - type: object + properties: + clientId: + type: string + description: Used only if type is set to HMS. OAuth 2.0 Client ID from the Huawei Developers API console. + clientSecret: + type: string + description: Used only if type is set to HMS. The client secret associated with the OAuth 2.0 Client ID. + required: + - clientId + - clientSecret MFAPushCredentialResponse: type: object properties: @@ -650,6 +678,7 @@ paths: oneOf: - $ref: '#/components/schemas/MFAPushCredentialAPNS' - $ref: '#/components/schemas/MFAPushCredentialFCM' + - $ref: '#/components/schemas/MFAPushCredentialHMS' example: type: FCM key: key.value @@ -790,6 +819,7 @@ paths: oneOf: - $ref: '#/components/schemas/MFAPushCredentialAPNS' - $ref: '#/components/schemas/MFAPushCredentialFCM' + - $ref: '#/components/schemas/MFAPushCredentialHMS' example: type: APNS key: key.value.updated From 7d4a71dade83459404f9055bf6dece57a528f505 Mon Sep 17 00:00:00 2001 From: Patrick Cowland Date: Mon, 20 Feb 2023 09:42:55 +0000 Subject: [PATCH 2/4] uplift mfa module version --- mfa/README.md | 2 +- mfa/configuration.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mfa/README.md b/mfa/README.md index 03c381e5..2f382483 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: 2021-10-17 -- Package version: 0.7.2 +- Package version: 0.8.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation diff --git a/mfa/configuration.go b/mfa/configuration.go index 801a7481..03b6e178 100644 --- a/mfa/configuration.go +++ b/mfa/configuration.go @@ -101,7 +101,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.7.2/go", + UserAgent: "OpenAPI-Generator/0.8.0/go", Debug: false, Servers: ServerConfigurations{ { From de84b7fcb212a866dcb2e775db1e308b405806fc Mon Sep 17 00:00:00 2001 From: Patrick Cowland Date: Mon, 20 Feb 2023 10:42:06 +0000 Subject: [PATCH 3/4] update API req/resp models --- ...odel_create_mfa_push_credential_request.go | 55 +++++++++++++------ ..._array__embedded_push_credentials_inner.go | 24 +++++--- ...odel_update_mfa_push_credential_request.go | 55 +++++++++++++------ 3 files changed, 93 insertions(+), 41 deletions(-) diff --git a/mfa/model_create_mfa_push_credential_request.go b/mfa/model_create_mfa_push_credential_request.go index 6d4ac364..02d0c3fb 100644 --- a/mfa/model_create_mfa_push_credential_request.go +++ b/mfa/model_create_mfa_push_credential_request.go @@ -15,21 +15,29 @@ import ( // CreateMFAPushCredentialRequest - struct for CreateMFAPushCredentialRequest type CreateMFAPushCredentialRequest struct { - MFAPushCredential *MFAPushCredential MFAPushCredentialAPNS *MFAPushCredentialAPNS + MFAPushCredentialFCM *MFAPushCredentialFCM + MFAPushCredentialHMS *MFAPushCredentialHMS } -// MFAPushCredentialAsCreateMFAPushCredentialRequest is a convenience function that returns MFAPushCredential wrapped in CreateMFAPushCredentialRequest -func MFAPushCredentialAsCreateMFAPushCredentialRequest(v *MFAPushCredential) CreateMFAPushCredentialRequest { +// MFAPushCredentialAPNSAsCreateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialAPNS wrapped in CreateMFAPushCredentialRequest +func MFAPushCredentialAPNSAsCreateMFAPushCredentialRequest(v *MFAPushCredentialAPNS) CreateMFAPushCredentialRequest { return CreateMFAPushCredentialRequest{ - MFAPushCredential: v, + MFAPushCredentialAPNS: v, } } -// MFAPushCredentialAPNSAsCreateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialAPNS wrapped in CreateMFAPushCredentialRequest -func MFAPushCredentialAPNSAsCreateMFAPushCredentialRequest(v *MFAPushCredentialAPNS) CreateMFAPushCredentialRequest { +// MFAPushCredentialFCMAsCreateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialFCM wrapped in CreateMFAPushCredentialRequest +func MFAPushCredentialFCMAsCreateMFAPushCredentialRequest(v *MFAPushCredentialFCM) CreateMFAPushCredentialRequest { return CreateMFAPushCredentialRequest{ - MFAPushCredentialAPNS: v, + MFAPushCredentialFCM: v, + } +} + +// MFAPushCredentialHMSAsCreateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialHMS wrapped in CreateMFAPushCredentialRequest +func MFAPushCredentialHMSAsCreateMFAPushCredentialRequest(v *MFAPushCredentialHMS) CreateMFAPushCredentialRequest { + return CreateMFAPushCredentialRequest{ + MFAPushCredentialHMS: v, } } @@ -42,18 +50,23 @@ func (dst *CreateMFAPushCredentialRequest) UnmarshalJSON(data []byte) error { return err } - dst.MFAPushCredential = nil + dst.MFAPushCredentialFCM = nil dst.MFAPushCredentialAPNS = nil + dst.MFAPushCredentialHMS = nil switch common.GetType() { case ENUMMFAPUSHCREDENTIALATTRTYPE_FCM: - if err := json.Unmarshal(data, &dst.MFAPushCredential); err != nil { // simple model + if err := json.Unmarshal(data, &dst.MFAPushCredentialFCM); err != nil { // simple model return err } case ENUMMFAPUSHCREDENTIALATTRTYPE_APNS: if err := json.Unmarshal(data, &dst.MFAPushCredentialAPNS); err != nil { // simple model return err } + case ENUMMFAPUSHCREDENTIALATTRTYPE_HMS: + if err := json.Unmarshal(data, &dst.MFAPushCredentialHMS); err != nil { // simple model + return err + } default: return fmt.Errorf("Data failed to match schemas in anyOf(CreateMFAPushCredential201Response)") } @@ -62,14 +75,18 @@ func (dst *CreateMFAPushCredentialRequest) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src CreateMFAPushCredentialRequest) MarshalJSON() ([]byte, error) { - if src.MFAPushCredential != nil { - return json.Marshal(&src.MFAPushCredential) - } - if src.MFAPushCredentialAPNS != nil { return json.Marshal(&src.MFAPushCredentialAPNS) } + if src.MFAPushCredentialFCM != nil { + return json.Marshal(&src.MFAPushCredentialFCM) + } + + if src.MFAPushCredentialHMS != nil { + return json.Marshal(&src.MFAPushCredentialHMS) + } + return nil, nil // no data in oneOf schemas } @@ -78,14 +95,18 @@ func (obj *CreateMFAPushCredentialRequest) GetActualInstance() interface{} { if obj == nil { return nil } - if obj.MFAPushCredential != nil { - return obj.MFAPushCredential - } - if obj.MFAPushCredentialAPNS != nil { return obj.MFAPushCredentialAPNS } + if obj.MFAPushCredentialFCM != nil { + return obj.MFAPushCredentialFCM + } + + if obj.MFAPushCredentialHMS != nil { + return obj.MFAPushCredentialHMS + } + // all schemas are nil return nil } diff --git a/mfa/model_entity_array__embedded_push_credentials_inner.go b/mfa/model_entity_array__embedded_push_credentials_inner.go index 7e38d3d9..8f872254 100644 --- a/mfa/model_entity_array__embedded_push_credentials_inner.go +++ b/mfa/model_entity_array__embedded_push_credentials_inner.go @@ -15,8 +15,9 @@ import ( // EntityArrayEmbeddedPushCredentialsInner struct for EntityArrayEmbeddedPushCredentialsInner type EntityArrayEmbeddedPushCredentialsInner struct { - MFAPushCredential *MFAPushCredential MFAPushCredentialAPNS *MFAPushCredentialAPNS + MFAPushCredentialFCM *MFAPushCredentialFCM + MFAPushCredentialHMS *MFAPushCredentialHMS } // Unmarshal JSON data into any of the pointers in the struct @@ -28,18 +29,23 @@ func (dst *EntityArrayEmbeddedPushCredentialsInner) UnmarshalJSON(data []byte) e return err } - dst.MFAPushCredential = nil + dst.MFAPushCredentialFCM = nil dst.MFAPushCredentialAPNS = nil + dst.MFAPushCredentialHMS = nil switch common.GetType() { case ENUMMFAPUSHCREDENTIALATTRTYPE_FCM: - if err := json.Unmarshal(data, &dst.MFAPushCredential); err != nil { // simple model + if err := json.Unmarshal(data, &dst.MFAPushCredentialFCM); err != nil { // simple model return err } case ENUMMFAPUSHCREDENTIALATTRTYPE_APNS: if err := json.Unmarshal(data, &dst.MFAPushCredentialAPNS); err != nil { // simple model return err } + case ENUMMFAPUSHCREDENTIALATTRTYPE_HMS: + if err := json.Unmarshal(data, &dst.MFAPushCredentialHMS); err != nil { // simple model + return err + } default: return fmt.Errorf("Data failed to match schemas in anyOf(EntityArrayEmbeddedPushCredentialsInner)") } @@ -48,14 +54,18 @@ func (dst *EntityArrayEmbeddedPushCredentialsInner) UnmarshalJSON(data []byte) e // Marshal data from the first non-nil pointers in the struct to JSON func (src *EntityArrayEmbeddedPushCredentialsInner) MarshalJSON() ([]byte, error) { - if src.MFAPushCredential != nil { - return json.Marshal(&src.MFAPushCredential) - } - if src.MFAPushCredentialAPNS != nil { return json.Marshal(&src.MFAPushCredentialAPNS) } + if src.MFAPushCredentialFCM != nil { + return json.Marshal(&src.MFAPushCredentialFCM) + } + + if src.MFAPushCredentialHMS != nil { + return json.Marshal(&src.MFAPushCredentialHMS) + } + return nil, nil // no data in anyOf schemas } diff --git a/mfa/model_update_mfa_push_credential_request.go b/mfa/model_update_mfa_push_credential_request.go index a609e7e0..71a9f3c6 100644 --- a/mfa/model_update_mfa_push_credential_request.go +++ b/mfa/model_update_mfa_push_credential_request.go @@ -15,21 +15,29 @@ import ( // UpdateMFAPushCredentialRequest - struct for UpdateMFAPushCredentialRequest type UpdateMFAPushCredentialRequest struct { - MFAPushCredential *MFAPushCredential MFAPushCredentialAPNS *MFAPushCredentialAPNS + MFAPushCredentialFCM *MFAPushCredentialFCM + MFAPushCredentialHMS *MFAPushCredentialHMS } -// MFAPushCredentialAsUpdateMFAPushCredentialRequest is a convenience function that returns MFAPushCredential wrapped in UpdateMFAPushCredentialRequest -func MFAPushCredentialAsUpdateMFAPushCredentialRequest(v *MFAPushCredential) UpdateMFAPushCredentialRequest { +// MFAPushCredentialAPNSAsUpdateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialAPNS wrapped in UpdateMFAPushCredentialRequest +func MFAPushCredentialAPNSAsUpdateMFAPushCredentialRequest(v *MFAPushCredentialAPNS) UpdateMFAPushCredentialRequest { return UpdateMFAPushCredentialRequest{ - MFAPushCredential: v, + MFAPushCredentialAPNS: v, } } -// MFAPushCredentialAPNSAsUpdateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialAPNS wrapped in UpdateMFAPushCredentialRequest -func MFAPushCredentialAPNSAsUpdateMFAPushCredentialRequest(v *MFAPushCredentialAPNS) UpdateMFAPushCredentialRequest { +// MFAPushCredentialFCMAsUpdateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialFCM wrapped in UpdateMFAPushCredentialRequest +func MFAPushCredentialFCMAsUpdateMFAPushCredentialRequest(v *MFAPushCredentialFCM) UpdateMFAPushCredentialRequest { return UpdateMFAPushCredentialRequest{ - MFAPushCredentialAPNS: v, + MFAPushCredentialFCM: v, + } +} + +// MFAPushCredentialHMSAsUpdateMFAPushCredentialRequest is a convenience function that returns MFAPushCredentialHMS wrapped in UpdateMFAPushCredentialRequest +func MFAPushCredentialHMSAsUpdateMFAPushCredentialRequest(v *MFAPushCredentialHMS) UpdateMFAPushCredentialRequest { + return UpdateMFAPushCredentialRequest{ + MFAPushCredentialHMS: v, } } @@ -42,18 +50,23 @@ func (dst *UpdateMFAPushCredentialRequest) UnmarshalJSON(data []byte) error { return err } - dst.MFAPushCredential = nil + dst.MFAPushCredentialFCM = nil dst.MFAPushCredentialAPNS = nil + dst.MFAPushCredentialHMS = nil switch common.GetType() { case ENUMMFAPUSHCREDENTIALATTRTYPE_FCM: - if err := json.Unmarshal(data, &dst.MFAPushCredential); err != nil { // simple model + if err := json.Unmarshal(data, &dst.MFAPushCredentialFCM); err != nil { // simple model return err } case ENUMMFAPUSHCREDENTIALATTRTYPE_APNS: if err := json.Unmarshal(data, &dst.MFAPushCredentialAPNS); err != nil { // simple model return err } + case ENUMMFAPUSHCREDENTIALATTRTYPE_HMS: + if err := json.Unmarshal(data, &dst.MFAPushCredentialHMS); err != nil { // simple model + return err + } default: return fmt.Errorf("Data failed to match schemas in oneOf(UpdateMFAPushCredentialRequest)") } @@ -62,14 +75,18 @@ func (dst *UpdateMFAPushCredentialRequest) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src UpdateMFAPushCredentialRequest) MarshalJSON() ([]byte, error) { - if src.MFAPushCredential != nil { - return json.Marshal(&src.MFAPushCredential) - } - if src.MFAPushCredentialAPNS != nil { return json.Marshal(&src.MFAPushCredentialAPNS) } + if src.MFAPushCredentialFCM != nil { + return json.Marshal(&src.MFAPushCredentialFCM) + } + + if src.MFAPushCredentialHMS != nil { + return json.Marshal(&src.MFAPushCredentialHMS) + } + return nil, nil // no data in oneOf schemas } @@ -78,14 +95,18 @@ func (obj *UpdateMFAPushCredentialRequest) GetActualInstance() interface{} { if obj == nil { return nil } - if obj.MFAPushCredential != nil { - return obj.MFAPushCredential - } - if obj.MFAPushCredentialAPNS != nil { return obj.MFAPushCredentialAPNS } + if obj.MFAPushCredentialFCM != nil { + return obj.MFAPushCredentialFCM + } + + if obj.MFAPushCredentialHMS != nil { + return obj.MFAPushCredentialHMS + } + // all schemas are nil return nil } From 986c338793a429645e177d2396c3f7a5b3b7653d Mon Sep 17 00:00:00 2001 From: Patrick Cowland Date: Mon, 20 Feb 2023 11:17:44 +0000 Subject: [PATCH 4/4] changelogs --- CHANGELOG.md | 6 +++--- management/CHANGELOG.md | 2 +- mfa/CHANGELOG.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6638e5e..9ba57723 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,11 @@ * `github.com/patrickcping/pingone-go-sdk-v2/management` : [v0.15.0](./management/CHANGELOG.md) * **Breaking change** `OrganizationsApi.ReadOneOrganizations` changed to `OrganizationsApi.ReadOneOrganization` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) * **Enhancement** Add `limit` parameter to `OrganizationsApi.ReadAllOrganizations` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) - * **Enhancement** Add support for Huawei HMS Push service + * **Enhancement** Add support for Huawei HMS Push service [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105) * **Bug fix** - Correct the `EmailDomainTrustedEmail` API model [#103](https://github.com/patrickcping/pingone-go-sdk-v2/pull/103) * `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.8.0](./mfa/CHANGELOG.md) - * **Breaking change** `Key` property removed from the `MFAPushCredential` model object and assigned to `MFAPushCredentialFCM` and `MFAPushCredentialAPNS` individually - * **Enhancement** Add support for Huawei HMS Push service + * **Breaking change** `Key` property removed from the `MFAPushCredential` model object and assigned to `MFAPushCredentialFCM` and `MFAPushCredentialAPNS` individually [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105) + * **Enhancement** Add support for Huawei HMS Push service [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105) # Release (2023-01-12) diff --git a/management/CHANGELOG.md b/management/CHANGELOG.md index ab27c7e6..b9c76d48 100644 --- a/management/CHANGELOG.md +++ b/management/CHANGELOG.md @@ -2,7 +2,7 @@ * **Breaking change** `OrganizationsApi.ReadOneOrganizations` changed to `OrganizationsApi.ReadOneOrganization` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) * **Enhancement** Add `limit` parameter to `OrganizationsApi.ReadAllOrganizations` [#102](https://github.com/patrickcping/pingone-go-sdk-v2/pull/102) -* **Enhancement** Add support for Huawei HMS Push service +* **Enhancement** Add support for Huawei HMS Push service [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105) * **Bug fix** - Correct the `EmailDomainTrustedEmail` API model [#103](https://github.com/patrickcping/pingone-go-sdk-v2/pull/103) # v0.14.0 (2023-01-12) diff --git a/mfa/CHANGELOG.md b/mfa/CHANGELOG.md index 4c01c2fc..1ed2b36a 100644 --- a/mfa/CHANGELOG.md +++ b/mfa/CHANGELOG.md @@ -1,7 +1,7 @@ # v0.8.0 (Unreleased) -* **Breaking change** `Key` property removed from the `MFAPushCredential` model object and assigned to `MFAPushCredentialFCM` and `MFAPushCredentialAPNS` individually -* **Enhancement** Add support for Huawei HMS Push service +* **Breaking change** `Key` property removed from the `MFAPushCredential` model object and assigned to `MFAPushCredentialFCM` and `MFAPushCredentialAPNS` individually [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105) +* **Enhancement** Add support for Huawei HMS Push service [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105) # v0.7.2 (2023-01-12)