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

Correct the "UPDATE Notifications Policy" function name (fix the operation ID) #108

Merged
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
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