packer-cn/vendor/github.com/yandex-cloud/go-sdk/gen/iam/useraccount.go

30 lines
735 B
Go
Raw Normal View History

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"
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...)
}