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

[PLAT-14809]Add Implicit params to SetUniverseKey #21

Merged
merged 3 commits into from
Sep 6, 2024
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
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ docs/EditBackupParams.md
docs/EditBackupScheduleParams.md
docs/EncryptionAtRestApi.md
docs/EncryptionAtRestConfig.md
docs/EncryptionAtRestKeyParams.md
docs/ExtraDependencies.md
docs/FailedSubtasks.md
docs/FinalizeUpgradeInfoResponse.md
Expand Down Expand Up @@ -572,6 +573,7 @@ model_edit_access_key_rotation_schedule_params.go
model_edit_backup_params.go
model_edit_backup_schedule_params.go
model_encryption_at_rest_config.go
model_encryption_at_rest_key_params.go
model_extra_dependencies.go
model_failed_subtasks.go
model_finalize_upgrade_info_response.go
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ Class | Method | HTTP request | Description
- [EditBackupParams](docs/EditBackupParams.md)
- [EditBackupScheduleParams](docs/EditBackupScheduleParams.md)
- [EncryptionAtRestConfig](docs/EncryptionAtRestConfig.md)
- [EncryptionAtRestKeyParams](docs/EncryptionAtRestKeyParams.md)
- [ExtraDependencies](docs/ExtraDependencies.md)
- [FailedSubtasks](docs/FailedSubtasks.md)
- [FinalizeUpgradeInfoResponse](docs/FinalizeUpgradeInfoResponse.md)
Expand Down
12 changes: 11 additions & 1 deletion api_universe_management.go

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

8 changes: 5 additions & 3 deletions docs/UniverseManagementApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ Name | Type | Description | Notes

## SetUniverseKey

> UniverseResp SetUniverseKey(ctx, cUUID, uniUUID).Request(request).Execute()
> UniverseResp SetUniverseKey(ctx, cUUID, uniUUID).SetUniverseKeyRequest(setUniverseKeyRequest).Request(request).Execute()

Set a universe's key

Expand All @@ -643,11 +643,12 @@ import (
func main() {
cUUID := TODO // string |
uniUUID := TODO // string |
setUniverseKeyRequest := *openapiclient.NewEncryptionAtRestConfig() // EncryptionAtRestConfig |
request := TODO // interface{} | (optional)

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UniverseManagementApi.SetUniverseKey(context.Background(), cUUID, uniUUID).Request(request).Execute()
resp, r, err := api_client.UniverseManagementApi.SetUniverseKey(context.Background(), cUUID, uniUUID).SetUniverseKeyRequest(setUniverseKeyRequest).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementApi.SetUniverseKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down Expand Up @@ -675,6 +676,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------


**setUniverseKeyRequest** | [**EncryptionAtRestConfig**](EncryptionAtRestConfig.md) | |
**request** | [**interface{}**](interface{}.md) | |

### Return type
Expand All @@ -687,7 +689,7 @@ Name | Type | Description | Notes

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
Expand Down
Loading