// Code generated by sdkgen. DO NOT EDIT.

package workflows

import (
	"context"

	"google.golang.org/grpc"
)

// Workflow provides access to "workflows" component of Yandex.Cloud
type Workflow struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// NewWorkflow creates instance of Workflow
func NewWorkflow(g func(ctx context.Context) (*grpc.ClientConn, error)) *Workflow {
	return &Workflow{g}
}

// Execution gets ExecutionService client
func (w *Workflow) Execution() *ExecutionServiceClient {
	return &ExecutionServiceClient{getConn: w.getConn}
}

// Workflow gets WorkflowService client
func (w *Workflow) Workflow() *WorkflowServiceClient {
	return &WorkflowServiceClient{getConn: w.getConn}
}
