Skip to content

Commit

Permalink
Correct the "UPDATE Notifications Policy" function name (fix the oper…
Browse files Browse the repository at this point in the history
…ation ID) (#108)

* correct the update notification policy operation

* changelog
  • Loading branch information
patrickcping authored Feb 21, 2023
1 parent 5bfb20c commit 355c42c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* **Enhancement** Add support for Huawei HMS Push service [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105)
* **Enhancement** Add support for RADIUS gateways [#107](https://github.com/patrickcping/pingone-go-sdk-v2/pull/107)
* **Bug fix** - Correct the `EmailDomainTrustedEmail` API model [#103](https://github.com/patrickcping/pingone-go-sdk-v2/pull/103)
* **Bug fix** - Correct the "UPDATE Notifications Policy" function name (fix the operation ID) [#108](https://github.com/patrickcping/pingone-go-sdk-v2/pull/108)
* `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)
Expand Down
1 change: 1 addition & 0 deletions management/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* **Enhancement** Add support for Huawei HMS Push service [#105](https://github.com/patrickcping/pingone-go-sdk-v2/pull/105)
* **Enhancement** Add support for RADIUS gateways [#107](https://github.com/patrickcping/pingone-go-sdk-v2/pull/107)
* **Bug fix** - Correct the `EmailDomainTrustedEmail` API model [#103](https://github.com/patrickcping/pingone-go-sdk-v2/pull/103)
* **Bug fix** - Correct the "UPDATE Notifications Policy" function name (fix the operation ID) [#108](https://github.com/patrickcping/pingone-go-sdk-v2/pull/108)

# v0.14.0 (2023-01-12)

Expand Down
2 changes: 1 addition & 1 deletion management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Class | Method | HTTP request | Description
*NotificationsPoliciesApi* | [**DeleteNotificationsPolicy**](docs/NotificationsPoliciesApi.md#deletenotificationspolicy) | **Delete** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | DELETE Notifications Policy
*NotificationsPoliciesApi* | [**ReadAllNotificationsPolicies**](docs/NotificationsPoliciesApi.md#readallnotificationspolicies) | **Get** /v1/environments/{environmentID}/notificationsPolicies | READ All Notifications Policies
*NotificationsPoliciesApi* | [**ReadOneNotificationsPolicy**](docs/NotificationsPoliciesApi.md#readonenotificationspolicy) | **Get** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | READ One Notifications Policy
*NotificationsPoliciesApi* | [**V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut**](docs/NotificationsPoliciesApi.md#v1environmentsenvironmentidnotificationspoliciesnotificationspolicyidput) | **Put** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | UPDATE Notifications Policy
*NotificationsPoliciesApi* | [**UpdateNotificationsPolicy**](docs/NotificationsPoliciesApi.md#updatenotificationspolicy) | **Put** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | UPDATE Notifications Policy
*NotificationsSettingsApi* | [**DeleteNotificationsSettings**](docs/NotificationsSettingsApi.md#deletenotificationssettings) | **Delete** /v1/environments/{environmentID}/notificationsSettings | DELETE Notifications Settings
*NotificationsSettingsApi* | [**ReadNotificationsSettings**](docs/NotificationsSettingsApi.md#readnotificationssettings) | **Get** /v1/environments/{environmentID}/notificationsSettings | READ Notifications Settings
*NotificationsSettingsApi* | [**UpdateNotificationsSettings**](docs/NotificationsSettingsApi.md#updatenotificationssettings) | **Put** /v1/environments/{environmentID}/notificationsSettings | UPDATE Notifications Settings
Expand Down
1 change: 1 addition & 0 deletions management/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13953,6 +13953,7 @@ paths:
tags:
- Notifications Policies
put:
operationId: updateNotificationsPolicy
parameters:
- explode: false
in: path
Expand Down
20 changes: 10 additions & 10 deletions management/api_notifications_policies.go

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

16 changes: 8 additions & 8 deletions management/docs/NotificationsPoliciesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Method | HTTP request | Description
[**DeleteNotificationsPolicy**](NotificationsPoliciesApi.md#DeleteNotificationsPolicy) | **Delete** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | DELETE Notifications Policy
[**ReadAllNotificationsPolicies**](NotificationsPoliciesApi.md#ReadAllNotificationsPolicies) | **Get** /v1/environments/{environmentID}/notificationsPolicies | READ All Notifications Policies
[**ReadOneNotificationsPolicy**](NotificationsPoliciesApi.md#ReadOneNotificationsPolicy) | **Get** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | READ One Notifications Policy
[**V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut**](NotificationsPoliciesApi.md#V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut) | **Put** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | UPDATE Notifications Policy
[**UpdateNotificationsPolicy**](NotificationsPoliciesApi.md#UpdateNotificationsPolicy) | **Put** /v1/environments/{environmentID}/notificationsPolicies/{notificationsPolicyID} | UPDATE Notifications Policy



Expand Down Expand Up @@ -290,9 +290,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut
## UpdateNotificationsPolicy

> NotificationsPolicy V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut(ctx, environmentID, notificationsPolicyID).NotificationsPolicy(notificationsPolicy).Execute()
> NotificationsPolicy UpdateNotificationsPolicy(ctx, environmentID, notificationsPolicyID).NotificationsPolicy(notificationsPolicy).Execute()
UPDATE Notifications Policy

Expand All @@ -315,13 +315,13 @@ func main() {

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NotificationsPoliciesApi.V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut(context.Background(), environmentID, notificationsPolicyID).NotificationsPolicy(notificationsPolicy).Execute()
resp, r, err := apiClient.NotificationsPoliciesApi.UpdateNotificationsPolicy(context.Background(), environmentID, notificationsPolicyID).NotificationsPolicy(notificationsPolicy).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NotificationsPoliciesApi.V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `NotificationsPoliciesApi.UpdateNotificationsPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut`: NotificationsPolicy
fmt.Fprintf(os.Stdout, "Response from `NotificationsPoliciesApi.V1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPut`: %v\n", resp)
// response from `UpdateNotificationsPolicy`: NotificationsPolicy
fmt.Fprintf(os.Stdout, "Response from `NotificationsPoliciesApi.UpdateNotificationsPolicy`: %v\n", resp)
}
```

Expand All @@ -336,7 +336,7 @@ Name | Type | Description | Notes

### Other Parameters

Other parameters are passed through a pointer to a apiV1EnvironmentsEnvironmentIDNotificationsPoliciesNotificationsPolicyIDPutRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiUpdateNotificationsPolicyRequest struct via the builder pattern


Name | Type | Description | Notes
Expand Down
1 change: 1 addition & 0 deletions pingone-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17771,6 +17771,7 @@ paths:
tags:
- Notifications Policies
summary: UPDATE Notifications Policy
operationId: updateNotificationsPolicy
requestBody:
content:
application/json:
Expand Down

0 comments on commit 355c42c

Please sign in to comment.