Skip to content

Commit

Permalink
refactor(mnq): make Permissions optional (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Apr 18, 2023
1 parent f7356a6 commit 260c9a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/mnq/v1alpha1/mnq_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 260c9a6

Please sign in to comment.