autoscalev1connect

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AutoscaleServiceCreateAutoScalePolicyProcedure is the fully-qualified name of the
	// AutoscaleService's CreateAutoScalePolicy RPC.
	AutoscaleServiceCreateAutoScalePolicyProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/CreateAutoScalePolicy"
	// AutoscaleServiceCreateAutoScaleVmGroupProcedure is the fully-qualified name of the
	// AutoscaleService's CreateAutoScaleVmGroup RPC.
	AutoscaleServiceCreateAutoScaleVmGroupProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/CreateAutoScaleVmGroup"
	// AutoscaleServiceCreateAutoScaleVmProfileProcedure is the fully-qualified name of the
	// AutoscaleService's CreateAutoScaleVmProfile RPC.
	AutoscaleServiceCreateAutoScaleVmProfileProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/CreateAutoScaleVmProfile"
	// AutoscaleServiceCreateConditionProcedure is the fully-qualified name of the AutoscaleService's
	// CreateCondition RPC.
	AutoscaleServiceCreateConditionProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/CreateCondition"
	// AutoscaleServiceCreateCounterProcedure is the fully-qualified name of the AutoscaleService's
	// CreateCounter RPC.
	AutoscaleServiceCreateCounterProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/CreateCounter"
	// AutoscaleServiceDeleteAutoScalePolicyProcedure is the fully-qualified name of the
	// AutoscaleService's DeleteAutoScalePolicy RPC.
	AutoscaleServiceDeleteAutoScalePolicyProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/DeleteAutoScalePolicy"
	// AutoscaleServiceDeleteAutoScaleVmGroupProcedure is the fully-qualified name of the
	// AutoscaleService's DeleteAutoScaleVmGroup RPC.
	AutoscaleServiceDeleteAutoScaleVmGroupProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/DeleteAutoScaleVmGroup"
	// AutoscaleServiceDeleteAutoScaleVmProfileProcedure is the fully-qualified name of the
	// AutoscaleService's DeleteAutoScaleVmProfile RPC.
	AutoscaleServiceDeleteAutoScaleVmProfileProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/DeleteAutoScaleVmProfile"
	// AutoscaleServiceDeleteConditionProcedure is the fully-qualified name of the AutoscaleService's
	// DeleteCondition RPC.
	AutoscaleServiceDeleteConditionProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/DeleteCondition"
	// AutoscaleServiceDeleteCounterProcedure is the fully-qualified name of the AutoscaleService's
	// DeleteCounter RPC.
	AutoscaleServiceDeleteCounterProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/DeleteCounter"
	// AutoscaleServiceDisableAutoScaleVmGroupProcedure is the fully-qualified name of the
	// AutoscaleService's DisableAutoScaleVmGroup RPC.
	AutoscaleServiceDisableAutoScaleVmGroupProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/DisableAutoScaleVmGroup"
	// AutoscaleServiceEnableAutoScaleVmGroupProcedure is the fully-qualified name of the
	// AutoscaleService's EnableAutoScaleVmGroup RPC.
	AutoscaleServiceEnableAutoScaleVmGroupProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/EnableAutoScaleVmGroup"
	// AutoscaleServiceListAutoScalePoliciesProcedure is the fully-qualified name of the
	// AutoscaleService's ListAutoScalePolicies RPC.
	AutoscaleServiceListAutoScalePoliciesProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/ListAutoScalePolicies"
	// AutoscaleServiceListAutoScaleVmGroupsProcedure is the fully-qualified name of the
	// AutoscaleService's ListAutoScaleVmGroups RPC.
	AutoscaleServiceListAutoScaleVmGroupsProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/ListAutoScaleVmGroups"
	// AutoscaleServiceListAutoScaleVmProfilesProcedure is the fully-qualified name of the
	// AutoscaleService's ListAutoScaleVmProfiles RPC.
	AutoscaleServiceListAutoScaleVmProfilesProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/ListAutoScaleVmProfiles"
	// AutoscaleServiceListConditionsProcedure is the fully-qualified name of the AutoscaleService's
	// ListConditions RPC.
	AutoscaleServiceListConditionsProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/ListConditions"
	// AutoscaleServiceListCountersProcedure is the fully-qualified name of the AutoscaleService's
	// ListCounters RPC.
	AutoscaleServiceListCountersProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/ListCounters"
	// AutoscaleServiceUpdateAutoScalePolicyProcedure is the fully-qualified name of the
	// AutoscaleService's UpdateAutoScalePolicy RPC.
	AutoscaleServiceUpdateAutoScalePolicyProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/UpdateAutoScalePolicy"
	// AutoscaleServiceUpdateAutoScaleVmGroupProcedure is the fully-qualified name of the
	// AutoscaleService's UpdateAutoScaleVmGroup RPC.
	AutoscaleServiceUpdateAutoScaleVmGroupProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/UpdateAutoScaleVmGroup"
	// AutoscaleServiceUpdateAutoScaleVmProfileProcedure is the fully-qualified name of the
	// AutoscaleService's UpdateAutoScaleVmProfile RPC.
	AutoscaleServiceUpdateAutoScaleVmProfileProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/UpdateAutoScaleVmProfile"
	// AutoscaleServiceUpdateConditionProcedure is the fully-qualified name of the AutoscaleService's
	// UpdateCondition RPC.
	AutoscaleServiceUpdateConditionProcedure = "/cloudstack.management.autoscale.v1.AutoscaleService/UpdateCondition"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AutoscaleServiceName is the fully-qualified name of the AutoscaleService service.
	AutoscaleServiceName = "cloudstack.management.autoscale.v1.AutoscaleService"
)

Variables

This section is empty.

Functions

func NewAutoscaleServiceHandler

func NewAutoscaleServiceHandler(svc AutoscaleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAutoscaleServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AutoscaleServiceClient

type AutoscaleServiceClient interface {
	// CreateAutoScalePolicy Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale vm group.
	CreateAutoScalePolicy(context.Context, *connect.Request[v1.CreateAutoScalePolicyRequest]) (*connect.Response[v1.CreateAutoScalePolicyResponse], error)
	// CreateAutoScaleVmGroup Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
	CreateAutoScaleVmGroup(context.Context, *connect.Request[v1.CreateAutoScaleVmGroupRequest]) (*connect.Response[v1.CreateAutoScaleVmGroupResponse], error)
	// CreateAutoScaleVmProfile Creates a profile that contains information about the virtual machine which will be provisioned automatically by autoscale feature.
	CreateAutoScaleVmProfile(context.Context, *connect.Request[v1.CreateAutoScaleVmProfileRequest]) (*connect.Response[v1.CreateAutoScaleVmProfileResponse], error)
	// CreateCondition Creates a condition for VM auto scaling
	CreateCondition(context.Context, *connect.Request[v1.CreateConditionRequest]) (*connect.Response[v1.CreateConditionResponse], error)
	// CreateCounter Adds metric counter for VM auto scaling
	CreateCounter(context.Context, *connect.Request[v1.CreateCounterRequest]) (*connect.Response[v1.CreateCounterResponse], error)
	// DeleteAutoScalePolicy Deletes a autoscale policy.
	DeleteAutoScalePolicy(context.Context, *connect.Request[v1.DeleteAutoScalePolicyRequest]) (*connect.Response[v1.DeleteAutoScalePolicyResponse], error)
	// DeleteAutoScaleVmGroup Deletes a autoscale vm group.
	DeleteAutoScaleVmGroup(context.Context, *connect.Request[v1.DeleteAutoScaleVmGroupRequest]) (*connect.Response[v1.DeleteAutoScaleVmGroupResponse], error)
	// DeleteAutoScaleVmProfile Deletes a autoscale vm profile.
	DeleteAutoScaleVmProfile(context.Context, *connect.Request[v1.DeleteAutoScaleVmProfileRequest]) (*connect.Response[v1.DeleteAutoScaleVmProfileResponse], error)
	// DeleteCondition Removes a condition for VM auto scaling
	DeleteCondition(context.Context, *connect.Request[v1.DeleteConditionRequest]) (*connect.Response[v1.DeleteConditionResponse], error)
	// DeleteCounter Deletes a counter for VM auto scaling
	DeleteCounter(context.Context, *connect.Request[v1.DeleteCounterRequest]) (*connect.Response[v1.DeleteCounterResponse], error)
	// DisableAutoScaleVmGroup Disables an AutoScale Vm Group
	DisableAutoScaleVmGroup(context.Context, *connect.Request[v1.DisableAutoScaleVmGroupRequest]) (*connect.Response[v1.DisableAutoScaleVmGroupResponse], error)
	// EnableAutoScaleVmGroup Enables an AutoScale Vm Group
	EnableAutoScaleVmGroup(context.Context, *connect.Request[v1.EnableAutoScaleVmGroupRequest]) (*connect.Response[v1.EnableAutoScaleVmGroupResponse], error)
	// ListAutoScalePolicies Lists autoscale policies.
	ListAutoScalePolicies(context.Context, *connect.Request[v1.ListAutoScalePoliciesRequest]) (*connect.Response[v1.ListAutoScalePoliciesResponse], error)
	// ListAutoScaleVmGroups Lists autoscale vm groups.
	ListAutoScaleVmGroups(context.Context, *connect.Request[v1.ListAutoScaleVmGroupsRequest]) (*connect.Response[v1.ListAutoScaleVmGroupsResponse], error)
	// ListAutoScaleVmProfiles Lists autoscale vm profiles.
	ListAutoScaleVmProfiles(context.Context, *connect.Request[v1.ListAutoScaleVmProfilesRequest]) (*connect.Response[v1.ListAutoScaleVmProfilesResponse], error)
	// ListConditions List Conditions for VM auto scaling
	ListConditions(context.Context, *connect.Request[v1.ListConditionsRequest]) (*connect.Response[v1.ListConditionsResponse], error)
	// ListCounters List the counters for VM auto scaling
	ListCounters(context.Context, *connect.Request[v1.ListCountersRequest]) (*connect.Response[v1.ListCountersResponse], error)
	// UpdateAutoScalePolicy Updates an existing autoscale policy.
	UpdateAutoScalePolicy(context.Context, *connect.Request[v1.UpdateAutoScalePolicyRequest]) (*connect.Response[v1.UpdateAutoScalePolicyResponse], error)
	// UpdateAutoScaleVmGroup Updates an existing autoscale vm group.
	UpdateAutoScaleVmGroup(context.Context, *connect.Request[v1.UpdateAutoScaleVmGroupRequest]) (*connect.Response[v1.UpdateAutoScaleVmGroupResponse], error)
	// UpdateAutoScaleVmProfile Updates an existing autoscale vm profile.
	UpdateAutoScaleVmProfile(context.Context, *connect.Request[v1.UpdateAutoScaleVmProfileRequest]) (*connect.Response[v1.UpdateAutoScaleVmProfileResponse], error)
	// UpdateCondition Updates a condition for VM auto scaling
	UpdateCondition(context.Context, *connect.Request[v1.UpdateConditionRequest]) (*connect.Response[v1.UpdateConditionResponse], error)
}

AutoscaleServiceClient is a client for the cloudstack.management.autoscale.v1.AutoscaleService service.

func NewAutoscaleServiceClient

func NewAutoscaleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AutoscaleServiceClient

NewAutoscaleServiceClient constructs a client for the cloudstack.management.autoscale.v1.AutoscaleService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AutoscaleServiceHandler

type AutoscaleServiceHandler interface {
	// CreateAutoScalePolicy Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale vm group.
	CreateAutoScalePolicy(context.Context, *connect.Request[v1.CreateAutoScalePolicyRequest]) (*connect.Response[v1.CreateAutoScalePolicyResponse], error)
	// CreateAutoScaleVmGroup Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
	CreateAutoScaleVmGroup(context.Context, *connect.Request[v1.CreateAutoScaleVmGroupRequest]) (*connect.Response[v1.CreateAutoScaleVmGroupResponse], error)
	// CreateAutoScaleVmProfile Creates a profile that contains information about the virtual machine which will be provisioned automatically by autoscale feature.
	CreateAutoScaleVmProfile(context.Context, *connect.Request[v1.CreateAutoScaleVmProfileRequest]) (*connect.Response[v1.CreateAutoScaleVmProfileResponse], error)
	// CreateCondition Creates a condition for VM auto scaling
	CreateCondition(context.Context, *connect.Request[v1.CreateConditionRequest]) (*connect.Response[v1.CreateConditionResponse], error)
	// CreateCounter Adds metric counter for VM auto scaling
	CreateCounter(context.Context, *connect.Request[v1.CreateCounterRequest]) (*connect.Response[v1.CreateCounterResponse], error)
	// DeleteAutoScalePolicy Deletes a autoscale policy.
	DeleteAutoScalePolicy(context.Context, *connect.Request[v1.DeleteAutoScalePolicyRequest]) (*connect.Response[v1.DeleteAutoScalePolicyResponse], error)
	// DeleteAutoScaleVmGroup Deletes a autoscale vm group.
	DeleteAutoScaleVmGroup(context.Context, *connect.Request[v1.DeleteAutoScaleVmGroupRequest]) (*connect.Response[v1.DeleteAutoScaleVmGroupResponse], error)
	// DeleteAutoScaleVmProfile Deletes a autoscale vm profile.
	DeleteAutoScaleVmProfile(context.Context, *connect.Request[v1.DeleteAutoScaleVmProfileRequest]) (*connect.Response[v1.DeleteAutoScaleVmProfileResponse], error)
	// DeleteCondition Removes a condition for VM auto scaling
	DeleteCondition(context.Context, *connect.Request[v1.DeleteConditionRequest]) (*connect.Response[v1.DeleteConditionResponse], error)
	// DeleteCounter Deletes a counter for VM auto scaling
	DeleteCounter(context.Context, *connect.Request[v1.DeleteCounterRequest]) (*connect.Response[v1.DeleteCounterResponse], error)
	// DisableAutoScaleVmGroup Disables an AutoScale Vm Group
	DisableAutoScaleVmGroup(context.Context, *connect.Request[v1.DisableAutoScaleVmGroupRequest]) (*connect.Response[v1.DisableAutoScaleVmGroupResponse], error)
	// EnableAutoScaleVmGroup Enables an AutoScale Vm Group
	EnableAutoScaleVmGroup(context.Context, *connect.Request[v1.EnableAutoScaleVmGroupRequest]) (*connect.Response[v1.EnableAutoScaleVmGroupResponse], error)
	// ListAutoScalePolicies Lists autoscale policies.
	ListAutoScalePolicies(context.Context, *connect.Request[v1.ListAutoScalePoliciesRequest]) (*connect.Response[v1.ListAutoScalePoliciesResponse], error)
	// ListAutoScaleVmGroups Lists autoscale vm groups.
	ListAutoScaleVmGroups(context.Context, *connect.Request[v1.ListAutoScaleVmGroupsRequest]) (*connect.Response[v1.ListAutoScaleVmGroupsResponse], error)
	// ListAutoScaleVmProfiles Lists autoscale vm profiles.
	ListAutoScaleVmProfiles(context.Context, *connect.Request[v1.ListAutoScaleVmProfilesRequest]) (*connect.Response[v1.ListAutoScaleVmProfilesResponse], error)
	// ListConditions List Conditions for VM auto scaling
	ListConditions(context.Context, *connect.Request[v1.ListConditionsRequest]) (*connect.Response[v1.ListConditionsResponse], error)
	// ListCounters List the counters for VM auto scaling
	ListCounters(context.Context, *connect.Request[v1.ListCountersRequest]) (*connect.Response[v1.ListCountersResponse], error)
	// UpdateAutoScalePolicy Updates an existing autoscale policy.
	UpdateAutoScalePolicy(context.Context, *connect.Request[v1.UpdateAutoScalePolicyRequest]) (*connect.Response[v1.UpdateAutoScalePolicyResponse], error)
	// UpdateAutoScaleVmGroup Updates an existing autoscale vm group.
	UpdateAutoScaleVmGroup(context.Context, *connect.Request[v1.UpdateAutoScaleVmGroupRequest]) (*connect.Response[v1.UpdateAutoScaleVmGroupResponse], error)
	// UpdateAutoScaleVmProfile Updates an existing autoscale vm profile.
	UpdateAutoScaleVmProfile(context.Context, *connect.Request[v1.UpdateAutoScaleVmProfileRequest]) (*connect.Response[v1.UpdateAutoScaleVmProfileResponse], error)
	// UpdateCondition Updates a condition for VM auto scaling
	UpdateCondition(context.Context, *connect.Request[v1.UpdateConditionRequest]) (*connect.Response[v1.UpdateConditionResponse], error)
}

AutoscaleServiceHandler is an implementation of the cloudstack.management.autoscale.v1.AutoscaleService service.

type UnimplementedAutoscaleServiceHandler

type UnimplementedAutoscaleServiceHandler struct{}

UnimplementedAutoscaleServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL