30 lines
767 B
Go
30 lines
767 B
Go
// Code generated by sdkgen. DO NOT EDIT.
|
|
|
|
package resourcemanager
|
|
|
|
import (
|
|
"context"
|
|
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
// ResourceManager provides access to "resourcemanager" component of Yandex.Cloud
|
|
type ResourceManager struct {
|
|
getConn func(ctx context.Context) (*grpc.ClientConn, error)
|
|
}
|
|
|
|
// NewResourceManager creates instance of ResourceManager
|
|
func NewResourceManager(g func(ctx context.Context) (*grpc.ClientConn, error)) *ResourceManager {
|
|
return &ResourceManager{g}
|
|
}
|
|
|
|
// Folder gets FolderService client
|
|
func (r *ResourceManager) Folder() *FolderServiceClient {
|
|
return &FolderServiceClient{getConn: r.getConn}
|
|
}
|
|
|
|
// Cloud gets CloudService client
|
|
func (r *ResourceManager) Cloud() *CloudServiceClient {
|
|
return &CloudServiceClient{getConn: r.getConn}
|
|
}
|