From 260c9a627ea0886d8624f303f3815826a0975dca Mon Sep 17 00:00:00 2001 From: Scaleway Bot Date: Tue, 18 Apr 2023 17:39:46 +0200 Subject: [PATCH] refactor(mnq): make Permissions optional (#1649) --- api/mnq/v1alpha1/mnq_sdk.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/mnq/v1alpha1/mnq_sdk.go b/api/mnq/v1alpha1/mnq_sdk.go index 49e701a3c..98595c58b 100644 --- a/api/mnq/v1alpha1/mnq_sdk.go +++ b/api/mnq/v1alpha1/mnq_sdk.go @@ -508,8 +508,7 @@ type CreateCredentialRequest struct { // Name: name of the credentials. Name string `json:"name"` // Permissions: permissions associated with these credentials. - // Precisely one of Permissions must be set. - Permissions *Permissions `json:"permissions,omitempty"` + Permissions *Permissions `json:"permissions"` } // CreateCredential: create credentials. @@ -651,8 +650,7 @@ type UpdateCredentialRequest struct { // Name: name of the credentials. Name *string `json:"name"` // Permissions: permissions associated with these credentials. - // Precisely one of Permissions must be set. - Permissions *Permissions `json:"permissions,omitempty"` + Permissions *Permissions `json:"permissions"` } // UpdateCredential: update credentials.