2019-03-26 08:48:37 -04:00
|
|
|
// Code generated by sdkgen. DO NOT EDIT.
|
|
|
|
|
2019-04-11 18:29:34 -04:00
|
|
|
//nolint
|
2019-03-26 08:48:37 -04:00
|
|
|
package iam
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
|
2020-06-09 09:50:34 -04:00
|
|
|
iam "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1"
|
2019-03-26 08:48:37 -04:00
|
|
|
)
|
|
|
|
|
2019-04-11 18:29:34 -04:00
|
|
|
//revive:disable
|
|
|
|
|
2019-03-26 08:48:37 -04:00
|
|
|
// UserAccountServiceClient is a iam.UserAccountServiceClient with
|
|
|
|
// lazy GRPC connection initialization.
|
|
|
|
type UserAccountServiceClient struct {
|
|
|
|
getConn func(ctx context.Context) (*grpc.ClientConn, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get implements iam.UserAccountServiceClient
|
|
|
|
func (c *UserAccountServiceClient) Get(ctx context.Context, in *iam.GetUserAccountRequest, opts ...grpc.CallOption) (*iam.UserAccount, error) {
|
|
|
|
conn, err := c.getConn(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return iam.NewUserAccountServiceClient(conn).Get(ctx, in, opts...)
|
|
|
|
}
|