// Code generated by sdkgen. DO NOT EDIT.

package workload

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// FederatedCredential gets FederatedCredentialService client
func (w *Workload) FederatedCredential() *FederatedCredentialServiceClient {
	return &FederatedCredentialServiceClient{getConn: w.getConn}
}
