Skip to content

Commit 260c9a6

Browse files
authored
refactor(mnq): make Permissions optional (#1649)
1 parent f7356a6 commit 260c9a6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

api/mnq/v1alpha1/mnq_sdk.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ type CreateCredentialRequest struct {
508508
// Name: name of the credentials.
509509
Name string `json:"name"`
510510
// Permissions: permissions associated with these credentials.
511-
// Precisely one of Permissions must be set.
512-
Permissions *Permissions `json:"permissions,omitempty"`
511+
Permissions *Permissions `json:"permissions"`
513512
}
514513

515514
// CreateCredential: create credentials.
@@ -651,8 +650,7 @@ type UpdateCredentialRequest struct {
651650
// Name: name of the credentials.
652651
Name *string `json:"name"`
653652
// Permissions: permissions associated with these credentials.
654-
// Precisely one of Permissions must be set.
655-
Permissions *Permissions `json:"permissions,omitempty"`
653+
Permissions *Permissions `json:"permissions"`
656654
}
657655

658656
// UpdateCredential: update credentials.

0 commit comments

Comments
 (0)