Skip to content

Commit 418cace

Browse files
authored
fix(iam): move Connection out of GetUserConnectionResponse (scaleway#2464)
1 parent c6de52c commit 418cace

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

api/iam/v1alpha1/iam_sdk.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -875,17 +875,17 @@ func (enum *UserType) UnmarshalJSON(data []byte) error {
875875
return nil
876876
}
877877

878-
// GetUserConnectionsResponseConnectionConnectedOrganization: get user connections response connection connected organization.
879-
type GetUserConnectionsResponseConnectionConnectedOrganization struct {
878+
// ConnectionConnectedOrganization: connection connected organization.
879+
type ConnectionConnectedOrganization struct {
880880
ID string `json:"id"`
881881

882882
Name string `json:"name"`
883883

884884
Locked bool `json:"locked"`
885885
}
886886

887-
// GetUserConnectionsResponseConnectionConnectedUser: get user connections response connection connected user.
888-
type GetUserConnectionsResponseConnectionConnectedUser struct {
887+
// ConnectionConnectedUser: connection connected user.
888+
type ConnectionConnectedUser struct {
889889
ID string `json:"id"`
890890

891891
Username string `json:"username"`
@@ -979,13 +979,13 @@ type CreateUserRequestMember struct {
979979
Password string `json:"password"`
980980
}
981981

982-
// GetUserConnectionsResponseConnection: get user connections response connection.
983-
type GetUserConnectionsResponseConnection struct {
982+
// Connection: connection.
983+
type Connection struct {
984984
// Organization: information about the connected organization.
985-
Organization *GetUserConnectionsResponseConnectionConnectedOrganization `json:"organization"`
985+
Organization *ConnectionConnectedOrganization `json:"organization"`
986986

987987
// User: information about the connected user.
988-
User *GetUserConnectionsResponseConnectionConnectedUser `json:"user"`
988+
User *ConnectionConnectedUser `json:"user"`
989989
}
990990

991991
// APIKey: api key.
@@ -1651,7 +1651,7 @@ type GetUserConnectionsRequest struct {
16511651
// GetUserConnectionsResponse: get user connections response.
16521652
type GetUserConnectionsResponse struct {
16531653
// Connections: list of connections.
1654-
Connections []*GetUserConnectionsResponseConnection `json:"connections"`
1654+
Connections []*Connection `json:"connections"`
16551655
}
16561656

16571657
// GetUserRequest: get user request.

0 commit comments

Comments
 (0)