diff --git a/api/accounts/account.gen.go b/api/accounts/account.gen.go index 9e91c1de1..3b8b16d36 100644 --- a/api/accounts/account.gen.go +++ b/api/accounts/account.gen.go @@ -156,7 +156,7 @@ func (c *Client) Create(ctx context.Context, authMethodId string, opt ...Option) func (c *Client) Read(ctx context.Context, accountId string, opt ...Option) (*AccountReadResult, *api.Error, error) { if accountId == "" { - return nil, nil, fmt.Errorf("empty accountId value passed into Read request") + return nil, nil, fmt.Errorf("empty accountId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/authmethods/authmethods.gen.go b/api/authmethods/authmethods.gen.go index 8a8258257..8d071ce9e 100644 --- a/api/authmethods/authmethods.gen.go +++ b/api/authmethods/authmethods.gen.go @@ -161,7 +161,7 @@ func (c *Client) Create(ctx context.Context, resourceType string, scopeId string func (c *Client) Read(ctx context.Context, authMethodId string, opt ...Option) (*AuthMethodReadResult, *api.Error, error) { if authMethodId == "" { - return nil, nil, fmt.Errorf("empty authMethodId value passed into Read request") + return nil, nil, fmt.Errorf("empty authMethodId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/authtokens/authtokens.gen.go b/api/authtokens/authtokens.gen.go index 8337f2682..37010e789 100644 --- a/api/authtokens/authtokens.gen.go +++ b/api/authtokens/authtokens.gen.go @@ -109,7 +109,7 @@ func (c *Client) ApiClient() *api.Client { func (c *Client) Read(ctx context.Context, authTokenId string, opt ...Option) (*AuthTokenReadResult, *api.Error, error) { if authTokenId == "" { - return nil, nil, fmt.Errorf("empty authTokenId value passed into Read request") + return nil, nil, fmt.Errorf("empty authTokenId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/groups/group.gen.go b/api/groups/group.gen.go index dae88902b..c6f0fe2aa 100644 --- a/api/groups/group.gen.go +++ b/api/groups/group.gen.go @@ -156,7 +156,7 @@ func (c *Client) Create(ctx context.Context, scopeId string, opt ...Option) (*Gr func (c *Client) Read(ctx context.Context, groupId string, opt ...Option) (*GroupReadResult, *api.Error, error) { if groupId == "" { - return nil, nil, fmt.Errorf("empty groupId value passed into Read request") + return nil, nil, fmt.Errorf("empty groupId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/hostcatalogs/host_catalog.gen.go b/api/hostcatalogs/host_catalog.gen.go index 43cb89b34..d343875fe 100644 --- a/api/hostcatalogs/host_catalog.gen.go +++ b/api/hostcatalogs/host_catalog.gen.go @@ -161,7 +161,7 @@ func (c *Client) Create(ctx context.Context, resourceType string, scopeId string func (c *Client) Read(ctx context.Context, hostCatalogId string, opt ...Option) (*HostCatalogReadResult, *api.Error, error) { if hostCatalogId == "" { - return nil, nil, fmt.Errorf("empty hostCatalogId value passed into Read request") + return nil, nil, fmt.Errorf("empty hostCatalogId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/hosts/host.gen.go b/api/hosts/host.gen.go index fd917e2b3..c0324d37b 100644 --- a/api/hosts/host.gen.go +++ b/api/hosts/host.gen.go @@ -157,7 +157,7 @@ func (c *Client) Create(ctx context.Context, hostCatalogId string, opt ...Option func (c *Client) Read(ctx context.Context, hostId string, opt ...Option) (*HostReadResult, *api.Error, error) { if hostId == "" { - return nil, nil, fmt.Errorf("empty hostId value passed into Read request") + return nil, nil, fmt.Errorf("empty hostId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/hostsets/host_set.gen.go b/api/hostsets/host_set.gen.go index d14c42c19..78a3e5acf 100644 --- a/api/hostsets/host_set.gen.go +++ b/api/hostsets/host_set.gen.go @@ -157,7 +157,7 @@ func (c *Client) Create(ctx context.Context, hostCatalogId string, opt ...Option func (c *Client) Read(ctx context.Context, hostSetId string, opt ...Option) (*HostSetReadResult, *api.Error, error) { if hostSetId == "" { - return nil, nil, fmt.Errorf("empty hostSetId value passed into Read request") + return nil, nil, fmt.Errorf("empty hostSetId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/internal/genapi/templates.go b/api/internal/genapi/templates.go index a7352c591..486a3c9a7 100644 --- a/api/internal/genapi/templates.go +++ b/api/internal/genapi/templates.go @@ -255,7 +255,7 @@ func (c *Client) List(ctx context.Context, {{ .CollectionFunctionArg }} string, var readTemplate = template.Must(template.New("").Parse(` func (c *Client) Read(ctx context.Context, {{ .ResourceFunctionArg }} string, opt... Option) (*{{ .Name }}ReadResult, *api.Error, error) { if {{ .ResourceFunctionArg }} == "" { - return nil, nil, fmt.Errorf("empty {{ .ResourceFunctionArg }} value passed into Read request") + return nil, nil, fmt.Errorf("empty {{ .ResourceFunctionArg }} value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/roles/role.gen.go b/api/roles/role.gen.go index 20aead538..1701e3df5 100644 --- a/api/roles/role.gen.go +++ b/api/roles/role.gen.go @@ -159,7 +159,7 @@ func (c *Client) Create(ctx context.Context, scopeId string, opt ...Option) (*Ro func (c *Client) Read(ctx context.Context, roleId string, opt ...Option) (*RoleReadResult, *api.Error, error) { if roleId == "" { - return nil, nil, fmt.Errorf("empty roleId value passed into Read request") + return nil, nil, fmt.Errorf("empty roleId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/scopes/scope.gen.go b/api/scopes/scope.gen.go index be1ea16b4..8f6766595 100644 --- a/api/scopes/scope.gen.go +++ b/api/scopes/scope.gen.go @@ -154,7 +154,7 @@ func (c *Client) Create(ctx context.Context, scopeId string, opt ...Option) (*Sc func (c *Client) Read(ctx context.Context, scopeId string, opt ...Option) (*ScopeReadResult, *api.Error, error) { if scopeId == "" { - return nil, nil, fmt.Errorf("empty scopeId value passed into Read request") + return nil, nil, fmt.Errorf("empty scopeId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/targets/target.gen.go b/api/targets/target.gen.go index 840501072..499beb73c 100644 --- a/api/targets/target.gen.go +++ b/api/targets/target.gen.go @@ -163,7 +163,7 @@ func (c *Client) Create(ctx context.Context, resourceType string, scopeId string func (c *Client) Read(ctx context.Context, targetId string, opt ...Option) (*TargetReadResult, *api.Error, error) { if targetId == "" { - return nil, nil, fmt.Errorf("empty targetId value passed into Read request") + return nil, nil, fmt.Errorf("empty targetId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client") diff --git a/api/users/user.gen.go b/api/users/user.gen.go index 647706ffb..24cff52cd 100644 --- a/api/users/user.gen.go +++ b/api/users/user.gen.go @@ -154,7 +154,7 @@ func (c *Client) Create(ctx context.Context, scopeId string, opt ...Option) (*Us func (c *Client) Read(ctx context.Context, userId string, opt ...Option) (*UserReadResult, *api.Error, error) { if userId == "" { - return nil, nil, fmt.Errorf("empty userId value passed into Read request") + return nil, nil, fmt.Errorf("empty userId value passed into Read request") } if c.client == nil { return nil, nil, fmt.Errorf("nil client")