From ff8ef25438403a4c3d4397799a6460d402bf0dc7 Mon Sep 17 00:00:00 2001 From: Ekaterina Lebedeva Date: Tue, 10 Dec 2024 12:18:06 +0300 Subject: [PATCH] [#291] container: Rename field Account to OwnerID in PrmContainerList Renaming this field so that it matches PrmContainerListStream. Signed-off-by: Ekaterina Lebedeva --- client/container_list.go | 8 ++++---- pool/pool.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/container_list.go b/client/container_list.go index d094cdb..17236f7 100644 --- a/client/container_list.go +++ b/client/container_list.go @@ -20,7 +20,7 @@ import ( type PrmContainerList struct { XHeaders []string - Account user.ID + OwnerID user.ID Session *session.Container } @@ -30,16 +30,16 @@ type PrmContainerList struct { // // Deprecated: Use PrmContainerList.Account instead. func (x *PrmContainerList) SetAccount(id user.ID) { - x.Account = id + x.OwnerID = id } func (x *PrmContainerList) buildRequest(c *Client) (*v2container.ListRequest, error) { - if x.Account.IsEmpty() { + if x.OwnerID.IsEmpty() { return nil, errorAccountNotSet } var ownerV2 refs.OwnerID - x.Account.WriteToV2(&ownerV2) + x.OwnerID.WriteToV2(&ownerV2) reqBody := new(v2container.ListRequestBody) reqBody.SetOwnerID(&ownerV2) diff --git a/pool/pool.go b/pool/pool.go index c9c2240..a30ae27 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -515,7 +515,7 @@ func (c *clientWrapper) containerList(ctx context.Context, prm PrmContainerList) } cliPrm := sdkClient.PrmContainerList{ - Account: prm.OwnerID, + OwnerID: prm.OwnerID, Session: prm.Session, }