Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support for Huawei HMS push notification configuration #105

Merged
merged 4 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [#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 [#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)

Expand Down
1 change: 1 addition & 0 deletions management/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [#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)
Expand Down
12 changes: 12 additions & 0 deletions management/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
52 changes: 52 additions & 0 deletions management/docs/ApplicationOIDCAllOfMobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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`
Expand Down
74 changes: 74 additions & 0 deletions management/model_application_oidc_all_of_mobile.go

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

8 changes: 8 additions & 0 deletions mfa/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mfa/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.2
0.8.0
5 changes: 5 additions & 0 deletions mfa/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 [#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)

* **Breaking change** Device selection `Authentication` model no longer required for the `MFASettings` model [#98](https://github.com/patrickcping/pingone-go-sdk-v2/pull/98)
Expand Down
6 changes: 5 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.7.2
- Package version: 0.8.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -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)
Expand Down
55 changes: 47 additions & 8 deletions mfa/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -2994,20 +2999,21 @@ 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:
allOf:
- $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
Expand Down Expand Up @@ -3105,6 +3111,7 @@ components:
oneOf:
- $ref: '#/components/schemas/MFAPushCredentialAPNS'
- $ref: '#/components/schemas/MFAPushCredentialFCM'
- $ref: '#/components/schemas/MFAPushCredentialHMS'
updateMFAPushCredential_request:
example:
type: APNS
Expand All @@ -3117,6 +3124,7 @@ components:
oneOf:
- $ref: '#/components/schemas/MFAPushCredentialAPNS'
- $ref: '#/components/schemas/MFAPushCredentialFCM'
- $ref: '#/components/schemas/MFAPushCredentialHMS'
DeviceAuthenticationPolicyOfflineDevice_otp_lifeTime:
example:
duration: 0
Expand Down Expand Up @@ -3434,6 +3442,7 @@ components:
anyOf:
- $ref: '#/components/schemas/MFAPushCredentialAPNS'
- $ref: '#/components/schemas/MFAPushCredentialFCM'
- $ref: '#/components/schemas/MFAPushCredentialHMS'
EntityArray__embedded:
example:
fidoDevicesMetadata:
Expand Down Expand Up @@ -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
Expand All @@ -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.
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.

Loading