packer-cn/vendor/github.com/yandex-cloud/go-sdk/gen/compute/compute_group.go

50 lines
1.2 KiB
Go

// Code generated by sdkgen. DO NOT EDIT.
package compute
import (
"context"
"google.golang.org/grpc"
)
// Compute provides access to "compute" component of Yandex.Cloud
type Compute struct {
getConn func(ctx context.Context) (*grpc.ClientConn, error)
}
// NewCompute creates instance of Compute
func NewCompute(g func(ctx context.Context) (*grpc.ClientConn, error)) *Compute {
return &Compute{g}
}
// Disk gets DiskService client
func (c *Compute) Disk() *DiskServiceClient {
return &DiskServiceClient{getConn: c.getConn}
}
// DiskType gets DiskTypeService client
func (c *Compute) DiskType() *DiskTypeServiceClient {
return &DiskTypeServiceClient{getConn: c.getConn}
}
// Image gets ImageService client
func (c *Compute) Image() *ImageServiceClient {
return &ImageServiceClient{getConn: c.getConn}
}
// Instance gets InstanceService client
func (c *Compute) Instance() *InstanceServiceClient {
return &InstanceServiceClient{getConn: c.getConn}
}
// Snapshot gets SnapshotService client
func (c *Compute) Snapshot() *SnapshotServiceClient {
return &SnapshotServiceClient{getConn: c.getConn}
}
// Zone gets ZoneService client
func (c *Compute) Zone() *ZoneServiceClient {
return &ZoneServiceClient{getConn: c.getConn}
}