25 lines
581 B
Go
25 lines
581 B
Go
// Code generated by sdkgen. DO NOT EDIT.
|
|
|
|
package operation
|
|
|
|
import (
|
|
"context"
|
|
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
// Operation provides access to "operation" component of Yandex.Cloud
|
|
type Operation struct {
|
|
getConn func(ctx context.Context) (*grpc.ClientConn, error)
|
|
}
|
|
|
|
// NewOperation creates instance of Operation
|
|
func NewOperation(g func(ctx context.Context) (*grpc.ClientConn, error)) *Operation {
|
|
return &Operation{g}
|
|
}
|
|
|
|
// Operation gets OperationService client
|
|
func (o *Operation) Operation() *OperationServiceClient {
|
|
return &OperationServiceClient{getConn: o.getConn}
|
|
}
|