affinitygroupv1

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AffinitygroupService_CreateAffinityGroup_FullMethodName             = "/cloudstack.management.affinitygroup.v1.AffinitygroupService/CreateAffinityGroup"
	AffinitygroupService_DeleteAffinityGroup_FullMethodName             = "/cloudstack.management.affinitygroup.v1.AffinitygroupService/DeleteAffinityGroup"
	AffinitygroupService_ListAffinityGroupTypes_FullMethodName          = "/cloudstack.management.affinitygroup.v1.AffinitygroupService/ListAffinityGroupTypes"
	AffinitygroupService_ListAffinityGroups_FullMethodName              = "/cloudstack.management.affinitygroup.v1.AffinitygroupService/ListAffinityGroups"
	AffinitygroupService_UpdateVMAffinityGroup_FullMethodName           = "/cloudstack.management.affinitygroup.v1.AffinitygroupService/UpdateVMAffinityGroup"
	AffinitygroupService_UpdateVMAffinityGroupCmdByAdmin_FullMethodName = "/cloudstack.management.affinitygroup.v1.AffinitygroupService/UpdateVMAffinityGroupCmdByAdmin"
)

Variables

View Source
var AffinitygroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.affinitygroup.v1.AffinitygroupService",
	HandlerType: (*AffinitygroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAffinityGroup",
			Handler:    _AffinitygroupService_CreateAffinityGroup_Handler,
		},
		{
			MethodName: "DeleteAffinityGroup",
			Handler:    _AffinitygroupService_DeleteAffinityGroup_Handler,
		},
		{
			MethodName: "ListAffinityGroupTypes",
			Handler:    _AffinitygroupService_ListAffinityGroupTypes_Handler,
		},
		{
			MethodName: "ListAffinityGroups",
			Handler:    _AffinitygroupService_ListAffinityGroups_Handler,
		},
		{
			MethodName: "UpdateVMAffinityGroup",
			Handler:    _AffinitygroupService_UpdateVMAffinityGroup_Handler,
		},
		{
			MethodName: "UpdateVMAffinityGroupCmdByAdmin",
			Handler:    _AffinitygroupService_UpdateVMAffinityGroupCmdByAdmin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/affinitygroup/v1/affinitygroup.gen.proto",
}

AffinitygroupService_ServiceDesc is the grpc.ServiceDesc for AffinitygroupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_cloudstack_management_affinitygroup_v1_affinitygroup_gen_proto protoreflect.FileDescriptor

Functions

func RegisterAffinitygroupServiceServer

func RegisterAffinitygroupServiceServer(s grpc.ServiceRegistrar, srv AffinitygroupServiceServer)

Types

type AffinityGroup

type AffinityGroup struct {

	// The ID of the AffinityGroup
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the AffinityGroup
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the AffinityGroup
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the AffinityGroup
	Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// The date this entity was created
	Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"`
	// contains filtered or unexported fields
}

AffinityGroup represents a AffinityGroup Item

func (*AffinityGroup) Descriptor deprecated

func (*AffinityGroup) Descriptor() ([]byte, []int)

Deprecated: Use AffinityGroup.ProtoReflect.Descriptor instead.

func (*AffinityGroup) GetCreated

func (x *AffinityGroup) GetCreated() string

func (*AffinityGroup) GetDescription

func (x *AffinityGroup) GetDescription() string

func (*AffinityGroup) GetDisplayName

func (x *AffinityGroup) GetDisplayName() string

func (*AffinityGroup) GetId

func (x *AffinityGroup) GetId() string

func (*AffinityGroup) GetName

func (x *AffinityGroup) GetName() string

func (*AffinityGroup) ProtoMessage

func (*AffinityGroup) ProtoMessage()

func (*AffinityGroup) ProtoReflect

func (x *AffinityGroup) ProtoReflect() protoreflect.Message

func (*AffinityGroup) Reset

func (x *AffinityGroup) Reset()

func (*AffinityGroup) String

func (x *AffinityGroup) String() string

type AffinityGroupType

type AffinityGroupType struct {

	// The ID of the AffinityGroupType
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the AffinityGroupType
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the AffinityGroupType
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the AffinityGroupType
	Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// The date this entity was created
	Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"`
	// contains filtered or unexported fields
}

AffinityGroupType represents a AffinityGroupType Item

func (*AffinityGroupType) Descriptor deprecated

func (*AffinityGroupType) Descriptor() ([]byte, []int)

Deprecated: Use AffinityGroupType.ProtoReflect.Descriptor instead.

func (*AffinityGroupType) GetCreated

func (x *AffinityGroupType) GetCreated() string

func (*AffinityGroupType) GetDescription

func (x *AffinityGroupType) GetDescription() string

func (*AffinityGroupType) GetDisplayName

func (x *AffinityGroupType) GetDisplayName() string

func (*AffinityGroupType) GetId

func (x *AffinityGroupType) GetId() string

func (*AffinityGroupType) GetName

func (x *AffinityGroupType) GetName() string

func (*AffinityGroupType) ProtoMessage

func (*AffinityGroupType) ProtoMessage()

func (*AffinityGroupType) ProtoReflect

func (x *AffinityGroupType) ProtoReflect() protoreflect.Message

func (*AffinityGroupType) Reset

func (x *AffinityGroupType) Reset()

func (*AffinityGroupType) String

func (x *AffinityGroupType) String() string

type AffinitygroupServiceClient

type AffinitygroupServiceClient interface {
	// CreateAffinityGroup Creates an affinity/anti-affinity group
	CreateAffinityGroup(ctx context.Context, in *CreateAffinityGroupRequest, opts ...grpc.CallOption) (*CreateAffinityGroupResponse, error)
	// DeleteAffinityGroup Deletes affinity group
	DeleteAffinityGroup(ctx context.Context, in *DeleteAffinityGroupRequest, opts ...grpc.CallOption) (*DeleteAffinityGroupResponse, error)
	// ListAffinityGroupTypes Lists affinity group types available
	ListAffinityGroupTypes(ctx context.Context, in *ListAffinityGroupTypesRequest, opts ...grpc.CallOption) (*ListAffinityGroupTypesResponse, error)
	// ListAffinityGroups Lists affinity groups
	ListAffinityGroups(ctx context.Context, in *ListAffinityGroupsRequest, opts ...grpc.CallOption) (*ListAffinityGroupsResponse, error)
	// UpdateVMAffinityGroup Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
	UpdateVMAffinityGroup(ctx context.Context, in *UpdateVMAffinityGroupRequest, opts ...grpc.CallOption) (*UpdateVMAffinityGroupResponse, error)
	// UpdateVMAffinityGroupCmdByAdmin Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
	UpdateVMAffinityGroupCmdByAdmin(ctx context.Context, in *UpdateVMAffinityGroupCmdByAdminRequest, opts ...grpc.CallOption) (*UpdateVMAffinityGroupCmdByAdminResponse, error)
}

AffinitygroupServiceClient is the client API for AffinitygroupService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

AffinitygroupService provides operations for managing Affinitygroups

type AffinitygroupServiceServer

type AffinitygroupServiceServer interface {
	// CreateAffinityGroup Creates an affinity/anti-affinity group
	CreateAffinityGroup(context.Context, *CreateAffinityGroupRequest) (*CreateAffinityGroupResponse, error)
	// DeleteAffinityGroup Deletes affinity group
	DeleteAffinityGroup(context.Context, *DeleteAffinityGroupRequest) (*DeleteAffinityGroupResponse, error)
	// ListAffinityGroupTypes Lists affinity group types available
	ListAffinityGroupTypes(context.Context, *ListAffinityGroupTypesRequest) (*ListAffinityGroupTypesResponse, error)
	// ListAffinityGroups Lists affinity groups
	ListAffinityGroups(context.Context, *ListAffinityGroupsRequest) (*ListAffinityGroupsResponse, error)
	// UpdateVMAffinityGroup Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
	UpdateVMAffinityGroup(context.Context, *UpdateVMAffinityGroupRequest) (*UpdateVMAffinityGroupResponse, error)
	// UpdateVMAffinityGroupCmdByAdmin Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
	UpdateVMAffinityGroupCmdByAdmin(context.Context, *UpdateVMAffinityGroupCmdByAdminRequest) (*UpdateVMAffinityGroupCmdByAdminResponse, error)
	// contains filtered or unexported methods
}

AffinitygroupServiceServer is the server API for AffinitygroupService service. All implementations must embed UnimplementedAffinitygroupServiceServer for forward compatibility.

AffinitygroupService provides operations for managing Affinitygroups

type CreateAffinityGroupRequest

type CreateAffinityGroupRequest struct {

	// an account for the affinity group. Must be used with domainId.
	AccountName *string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
	// domainId of the account owning the affinity group
	DomainId *int64 `protobuf:"varint,2,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
	// create affinity group for project
	ProjectId *int64 `protobuf:"varint,3,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// optional description of the affinity group
	Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// name of the affinity group
	AffinityGroupName *string `protobuf:"bytes,5,opt,name=affinity_group_name,json=affinityGroupName" json:"affinity_group_name,omitempty"`
	// Type of the affinity group from the available affinity/anti-affinity group types
	AffinityGroupType *string `protobuf:"bytes,6,opt,name=affinity_group_type,json=affinityGroupType" json:"affinity_group_type,omitempty"`
	StartEventId      *int64  `protobuf:"varint,7,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId     *string `protobuf:"bytes,8,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType      *string `protobuf:"bytes,9,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

CreateAffinityGroupRequest represents the parameters for creates an affinity/anti-affinity group

func (*CreateAffinityGroupRequest) Descriptor deprecated

func (*CreateAffinityGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAffinityGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateAffinityGroupRequest) GetAccountName

func (x *CreateAffinityGroupRequest) GetAccountName() string

func (*CreateAffinityGroupRequest) GetAffinityGroupName

func (x *CreateAffinityGroupRequest) GetAffinityGroupName() string

func (*CreateAffinityGroupRequest) GetAffinityGroupType

func (x *CreateAffinityGroupRequest) GetAffinityGroupType() string

func (*CreateAffinityGroupRequest) GetDescription

func (x *CreateAffinityGroupRequest) GetDescription() string

func (*CreateAffinityGroupRequest) GetDomainId

func (x *CreateAffinityGroupRequest) GetDomainId() int64

func (*CreateAffinityGroupRequest) GetInjectedJobId

func (x *CreateAffinityGroupRequest) GetInjectedJobId() string

func (*CreateAffinityGroupRequest) GetProjectId

func (x *CreateAffinityGroupRequest) GetProjectId() int64

func (*CreateAffinityGroupRequest) GetResponseType

func (x *CreateAffinityGroupRequest) GetResponseType() string

func (*CreateAffinityGroupRequest) GetStartEventId

func (x *CreateAffinityGroupRequest) GetStartEventId() int64

func (*CreateAffinityGroupRequest) ProtoMessage

func (*CreateAffinityGroupRequest) ProtoMessage()

func (*CreateAffinityGroupRequest) ProtoReflect

func (*CreateAffinityGroupRequest) Reset

func (x *CreateAffinityGroupRequest) Reset()

func (*CreateAffinityGroupRequest) String

func (x *CreateAffinityGroupRequest) String() string

type CreateAffinityGroupResponse

type CreateAffinityGroupResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

CreateAffinityGroupResponse represents the response from creates an affinity/anti-affinity group

func (*CreateAffinityGroupResponse) Descriptor deprecated

func (*CreateAffinityGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAffinityGroupResponse.ProtoReflect.Descriptor instead.

func (*CreateAffinityGroupResponse) GetResult

func (x *CreateAffinityGroupResponse) GetResult() *Result

func (*CreateAffinityGroupResponse) ProtoMessage

func (*CreateAffinityGroupResponse) ProtoMessage()

func (*CreateAffinityGroupResponse) ProtoReflect

func (*CreateAffinityGroupResponse) Reset

func (x *CreateAffinityGroupResponse) Reset()

func (*CreateAffinityGroupResponse) String

func (x *CreateAffinityGroupResponse) String() string

type DeleteAffinityGroupRequest

type DeleteAffinityGroupRequest struct {

	// the account of the affinity group. Must be specified with domain ID
	AccountName *string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
	// the domain ID of account owning the affinity group
	DomainId *int64 `protobuf:"varint,2,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
	// The ID of the affinity group. Mutually exclusive with name parameter
	Id *int64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
	// The name of the affinity group. Mutually exclusive with ID parameter
	Name *string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
	// the project of the affinity group
	ProjectId     *int64  `protobuf:"varint,5,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,6,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,7,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

DeleteAffinityGroupRequest represents the parameters for deletes affinity group

func (*DeleteAffinityGroupRequest) Descriptor deprecated

func (*DeleteAffinityGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAffinityGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteAffinityGroupRequest) GetAccountName

func (x *DeleteAffinityGroupRequest) GetAccountName() string

func (*DeleteAffinityGroupRequest) GetDomainId

func (x *DeleteAffinityGroupRequest) GetDomainId() int64

func (*DeleteAffinityGroupRequest) GetId

func (x *DeleteAffinityGroupRequest) GetId() int64

func (*DeleteAffinityGroupRequest) GetInjectedJobId

func (x *DeleteAffinityGroupRequest) GetInjectedJobId() string

func (*DeleteAffinityGroupRequest) GetName

func (x *DeleteAffinityGroupRequest) GetName() string

func (*DeleteAffinityGroupRequest) GetProjectId

func (x *DeleteAffinityGroupRequest) GetProjectId() int64

func (*DeleteAffinityGroupRequest) GetResponseType

func (x *DeleteAffinityGroupRequest) GetResponseType() string

func (*DeleteAffinityGroupRequest) GetStartEventId

func (x *DeleteAffinityGroupRequest) GetStartEventId() int64

func (*DeleteAffinityGroupRequest) ProtoMessage

func (*DeleteAffinityGroupRequest) ProtoMessage()

func (*DeleteAffinityGroupRequest) ProtoReflect

func (*DeleteAffinityGroupRequest) Reset

func (x *DeleteAffinityGroupRequest) Reset()

func (*DeleteAffinityGroupRequest) String

func (x *DeleteAffinityGroupRequest) String() string

type DeleteAffinityGroupResponse

type DeleteAffinityGroupResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

DeleteAffinityGroupResponse represents the response from deletes affinity group

func (*DeleteAffinityGroupResponse) Descriptor deprecated

func (*DeleteAffinityGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAffinityGroupResponse.ProtoReflect.Descriptor instead.

func (*DeleteAffinityGroupResponse) GetResult

func (x *DeleteAffinityGroupResponse) GetResult() *Result

func (*DeleteAffinityGroupResponse) ProtoMessage

func (*DeleteAffinityGroupResponse) ProtoMessage()

func (*DeleteAffinityGroupResponse) ProtoReflect

func (*DeleteAffinityGroupResponse) Reset

func (x *DeleteAffinityGroupResponse) Reset()

func (*DeleteAffinityGroupResponse) String

func (x *DeleteAffinityGroupResponse) String() string

type ListAffinityGroupTypesRequest

type ListAffinityGroupTypesRequest struct {

	// List by keyword
	Keyword      *string `protobuf:"bytes,1,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,2,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListAffinityGroupTypesRequest represents the parameters for lists affinity group types available

func (*ListAffinityGroupTypesRequest) Descriptor deprecated

func (*ListAffinityGroupTypesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAffinityGroupTypesRequest.ProtoReflect.Descriptor instead.

func (*ListAffinityGroupTypesRequest) GetKeyword

func (x *ListAffinityGroupTypesRequest) GetKeyword() string

func (*ListAffinityGroupTypesRequest) GetPage

func (x *ListAffinityGroupTypesRequest) GetPage() int32

func (*ListAffinityGroupTypesRequest) GetPageSize

func (x *ListAffinityGroupTypesRequest) GetPageSize() int32

func (*ListAffinityGroupTypesRequest) GetResponseType

func (x *ListAffinityGroupTypesRequest) GetResponseType() string

func (*ListAffinityGroupTypesRequest) ProtoMessage

func (*ListAffinityGroupTypesRequest) ProtoMessage()

func (*ListAffinityGroupTypesRequest) ProtoReflect

func (*ListAffinityGroupTypesRequest) Reset

func (x *ListAffinityGroupTypesRequest) Reset()

func (*ListAffinityGroupTypesRequest) String

type ListAffinityGroupTypesResponse

type ListAffinityGroupTypesResponse struct {

	// The list of AffinityGroupTypes
	Items []*AffinityGroupType `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
	// The total count of AffinityGroupTypes
	TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

ListAffinityGroupTypesResponse represents the response from lists affinity group types available

func (*ListAffinityGroupTypesResponse) Descriptor deprecated

func (*ListAffinityGroupTypesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAffinityGroupTypesResponse.ProtoReflect.Descriptor instead.

func (*ListAffinityGroupTypesResponse) GetItems

func (*ListAffinityGroupTypesResponse) GetTotalCount

func (x *ListAffinityGroupTypesResponse) GetTotalCount() int32

func (*ListAffinityGroupTypesResponse) ProtoMessage

func (*ListAffinityGroupTypesResponse) ProtoMessage()

func (*ListAffinityGroupTypesResponse) ProtoReflect

func (*ListAffinityGroupTypesResponse) Reset

func (x *ListAffinityGroupTypesResponse) Reset()

func (*ListAffinityGroupTypesResponse) String

type ListAffinityGroupsRequest

type ListAffinityGroupsRequest struct {

	// lists affinity groups by name
	AffinityGroupName *string `protobuf:"bytes,1,opt,name=affinity_group_name,json=affinityGroupName" json:"affinity_group_name,omitempty"`
	// lists affinity groups by virtual machine ID
	VirtualMachineId *int64 `protobuf:"varint,2,opt,name=virtual_machine_id,json=virtualMachineId" json:"virtual_machine_id,omitempty"`
	// list the affinity group by the ID provided
	Id *int64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
	// lists affinity groups by type
	AffinityGroupType *string `protobuf:"bytes,4,opt,name=affinity_group_type,json=affinityGroupType" json:"affinity_group_type,omitempty"`
	// list objects by project; if projectid=-1 lists All VMs
	ProjectId *int64 `protobuf:"varint,5,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// list resources by account. Must be used with the domainId parameter.
	AccountName *string `protobuf:"bytes,6,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
	// If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false. Resources dedicated to a project are listed only if using the projectid parameter.
	ListAll *bool `protobuf:"varint,7,opt,name=list_all,json=listAll" json:"list_all,omitempty"`
	// list only resources belonging to the domain specified
	DomainId *int64 `protobuf:"varint,8,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
	// defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.
	Recursive *bool `protobuf:"varint,9,opt,name=recursive" json:"recursive,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,10,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,11,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,12,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,13,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListAffinityGroupsRequest represents the parameters for lists affinity groups

func (*ListAffinityGroupsRequest) Descriptor deprecated

func (*ListAffinityGroupsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAffinityGroupsRequest.ProtoReflect.Descriptor instead.

func (*ListAffinityGroupsRequest) GetAccountName

func (x *ListAffinityGroupsRequest) GetAccountName() string

func (*ListAffinityGroupsRequest) GetAffinityGroupName

func (x *ListAffinityGroupsRequest) GetAffinityGroupName() string

func (*ListAffinityGroupsRequest) GetAffinityGroupType

func (x *ListAffinityGroupsRequest) GetAffinityGroupType() string

func (*ListAffinityGroupsRequest) GetDomainId

func (x *ListAffinityGroupsRequest) GetDomainId() int64

func (*ListAffinityGroupsRequest) GetId

func (x *ListAffinityGroupsRequest) GetId() int64

func (*ListAffinityGroupsRequest) GetKeyword

func (x *ListAffinityGroupsRequest) GetKeyword() string

func (*ListAffinityGroupsRequest) GetListAll

func (x *ListAffinityGroupsRequest) GetListAll() bool

func (*ListAffinityGroupsRequest) GetPage

func (x *ListAffinityGroupsRequest) GetPage() int32

func (*ListAffinityGroupsRequest) GetPageSize

func (x *ListAffinityGroupsRequest) GetPageSize() int32

func (*ListAffinityGroupsRequest) GetProjectId

func (x *ListAffinityGroupsRequest) GetProjectId() int64

func (*ListAffinityGroupsRequest) GetRecursive

func (x *ListAffinityGroupsRequest) GetRecursive() bool

func (*ListAffinityGroupsRequest) GetResponseType

func (x *ListAffinityGroupsRequest) GetResponseType() string

func (*ListAffinityGroupsRequest) GetVirtualMachineId

func (x *ListAffinityGroupsRequest) GetVirtualMachineId() int64

func (*ListAffinityGroupsRequest) ProtoMessage

func (*ListAffinityGroupsRequest) ProtoMessage()

func (*ListAffinityGroupsRequest) ProtoReflect

func (*ListAffinityGroupsRequest) Reset

func (x *ListAffinityGroupsRequest) Reset()

func (*ListAffinityGroupsRequest) String

func (x *ListAffinityGroupsRequest) String() string

type ListAffinityGroupsResponse

type ListAffinityGroupsResponse struct {

	// The list of AffinityGroups
	Items []*AffinityGroup `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
	// The total count of AffinityGroups
	TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

ListAffinityGroupsResponse represents the response from lists affinity groups

func (*ListAffinityGroupsResponse) Descriptor deprecated

func (*ListAffinityGroupsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAffinityGroupsResponse.ProtoReflect.Descriptor instead.

func (*ListAffinityGroupsResponse) GetItems

func (x *ListAffinityGroupsResponse) GetItems() []*AffinityGroup

func (*ListAffinityGroupsResponse) GetTotalCount

func (x *ListAffinityGroupsResponse) GetTotalCount() int32

func (*ListAffinityGroupsResponse) ProtoMessage

func (*ListAffinityGroupsResponse) ProtoMessage()

func (*ListAffinityGroupsResponse) ProtoReflect

func (*ListAffinityGroupsResponse) Reset

func (x *ListAffinityGroupsResponse) Reset()

func (*ListAffinityGroupsResponse) String

func (x *ListAffinityGroupsResponse) String() string

type Result

type Result struct {

	// Whether the operation was successful
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// Any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// The ID of the resource affected by the operation
	Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
	// The job ID for an async operation
	JobId *string `protobuf:"bytes,4,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
	// The status of the job
	JobStatus *string `protobuf:"bytes,5,opt,name=job_status,json=jobStatus" json:"job_status,omitempty"`
	// contains filtered or unexported fields
}

Result represents a generic operation result

func (*Result) Descriptor deprecated

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetDisplayText

func (x *Result) GetDisplayText() string

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) GetJobId

func (x *Result) GetJobId() string

func (*Result) GetJobStatus

func (x *Result) GetJobStatus() string

func (*Result) GetSuccess

func (x *Result) GetSuccess() bool

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Success

type Success struct {

	// true if operation is executed successfully
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// contains filtered or unexported fields
}

Success represents a Success Operation Response

func (*Success) Descriptor deprecated

func (*Success) Descriptor() ([]byte, []int)

Deprecated: Use Success.ProtoReflect.Descriptor instead.

func (*Success) GetDisplayText

func (x *Success) GetDisplayText() string

func (*Success) GetSuccess

func (x *Success) GetSuccess() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) ProtoReflect

func (x *Success) ProtoReflect() protoreflect.Message

func (*Success) Reset

func (x *Success) Reset()

func (*Success) String

func (x *Success) String() string

type UnimplementedAffinitygroupServiceServer

type UnimplementedAffinitygroupServiceServer struct{}

UnimplementedAffinitygroupServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAffinitygroupServiceServer) CreateAffinityGroup

func (UnimplementedAffinitygroupServiceServer) DeleteAffinityGroup

func (UnimplementedAffinitygroupServiceServer) ListAffinityGroups

func (UnimplementedAffinitygroupServiceServer) UpdateVMAffinityGroup

type UnsafeAffinitygroupServiceServer

type UnsafeAffinitygroupServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAffinitygroupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AffinitygroupServiceServer will result in compilation errors.

type UpdateVMAffinityGroupCmdByAdminRequest

type UpdateVMAffinityGroupCmdByAdminRequest struct {

	// The ID of the virtual machine
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// comma separated list of affinity groups id that are going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupnames parameter
	AffinityGroupIdList []string `protobuf:"bytes,2,rep,name=affinity_group_id_list,json=affinityGroupIdList" json:"affinity_group_id_list,omitempty"`
	// comma separated list of affinity groups names that are going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupids parameter
	AffinityGroupNameList []string `protobuf:"bytes,3,rep,name=affinity_group_name_list,json=affinityGroupNameList" json:"affinity_group_name_list,omitempty"`
	StartEventId          *int64   `protobuf:"varint,4,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId         *string  `protobuf:"bytes,5,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType          *string  `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

UpdateVMAffinityGroupCmdByAdminRequest represents the parameters for updates the affinity/anti-affinity group associations of a virtual machine. the vm has to be stopped and restarted for the new properties to take effect.

func (*UpdateVMAffinityGroupCmdByAdminRequest) Descriptor deprecated

func (*UpdateVMAffinityGroupCmdByAdminRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVMAffinityGroupCmdByAdminRequest.ProtoReflect.Descriptor instead.

func (*UpdateVMAffinityGroupCmdByAdminRequest) GetAffinityGroupIdList

func (x *UpdateVMAffinityGroupCmdByAdminRequest) GetAffinityGroupIdList() []string

func (*UpdateVMAffinityGroupCmdByAdminRequest) GetAffinityGroupNameList

func (x *UpdateVMAffinityGroupCmdByAdminRequest) GetAffinityGroupNameList() []string

func (*UpdateVMAffinityGroupCmdByAdminRequest) GetId

func (*UpdateVMAffinityGroupCmdByAdminRequest) GetInjectedJobId

func (x *UpdateVMAffinityGroupCmdByAdminRequest) GetInjectedJobId() string

func (*UpdateVMAffinityGroupCmdByAdminRequest) GetResponseType

func (x *UpdateVMAffinityGroupCmdByAdminRequest) GetResponseType() string

func (*UpdateVMAffinityGroupCmdByAdminRequest) GetStartEventId

func (x *UpdateVMAffinityGroupCmdByAdminRequest) GetStartEventId() int64

func (*UpdateVMAffinityGroupCmdByAdminRequest) ProtoMessage

func (*UpdateVMAffinityGroupCmdByAdminRequest) ProtoReflect

func (*UpdateVMAffinityGroupCmdByAdminRequest) Reset

func (*UpdateVMAffinityGroupCmdByAdminRequest) String

type UpdateVMAffinityGroupCmdByAdminResponse

type UpdateVMAffinityGroupCmdByAdminResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

UpdateVMAffinityGroupCmdByAdminResponse represents the response from updates the affinity/anti-affinity group associations of a virtual machine. the vm has to be stopped and restarted for the new properties to take effect.

func (*UpdateVMAffinityGroupCmdByAdminResponse) Descriptor deprecated

func (*UpdateVMAffinityGroupCmdByAdminResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVMAffinityGroupCmdByAdminResponse.ProtoReflect.Descriptor instead.

func (*UpdateVMAffinityGroupCmdByAdminResponse) GetResult

func (*UpdateVMAffinityGroupCmdByAdminResponse) ProtoMessage

func (*UpdateVMAffinityGroupCmdByAdminResponse) ProtoReflect

func (*UpdateVMAffinityGroupCmdByAdminResponse) Reset

func (*UpdateVMAffinityGroupCmdByAdminResponse) String

type UpdateVMAffinityGroupRequest

type UpdateVMAffinityGroupRequest struct {

	// Whether to run this operation as an administrator
	RunAsAdmin *bool `protobuf:"varint,1,opt,name=run_as_admin,json=runAsAdmin" json:"run_as_admin,omitempty"`
	// The ID of the virtual machine
	Id *int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
	// comma separated list of affinity groups id that are going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupnames parameter
	AffinityGroupIdList []string `protobuf:"bytes,3,rep,name=affinity_group_id_list,json=affinityGroupIdList" json:"affinity_group_id_list,omitempty"`
	// comma separated list of affinity groups names that are going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupids parameter
	AffinityGroupNameList []string `protobuf:"bytes,4,rep,name=affinity_group_name_list,json=affinityGroupNameList" json:"affinity_group_name_list,omitempty"`
	StartEventId          *int64   `protobuf:"varint,5,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId         *string  `protobuf:"bytes,6,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType          *string  `protobuf:"bytes,7,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

UpdateVMAffinityGroupRequest represents the parameters for updates the affinity/anti-affinity group associations of a virtual machine. the vm has to be stopped and restarted for the new properties to take effect.

func (*UpdateVMAffinityGroupRequest) Descriptor deprecated

func (*UpdateVMAffinityGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVMAffinityGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateVMAffinityGroupRequest) GetAffinityGroupIdList

func (x *UpdateVMAffinityGroupRequest) GetAffinityGroupIdList() []string

func (*UpdateVMAffinityGroupRequest) GetAffinityGroupNameList

func (x *UpdateVMAffinityGroupRequest) GetAffinityGroupNameList() []string

func (*UpdateVMAffinityGroupRequest) GetId

func (*UpdateVMAffinityGroupRequest) GetInjectedJobId

func (x *UpdateVMAffinityGroupRequest) GetInjectedJobId() string

func (*UpdateVMAffinityGroupRequest) GetResponseType

func (x *UpdateVMAffinityGroupRequest) GetResponseType() string

func (*UpdateVMAffinityGroupRequest) GetRunAsAdmin

func (x *UpdateVMAffinityGroupRequest) GetRunAsAdmin() bool

func (*UpdateVMAffinityGroupRequest) GetStartEventId

func (x *UpdateVMAffinityGroupRequest) GetStartEventId() int64

func (*UpdateVMAffinityGroupRequest) ProtoMessage

func (*UpdateVMAffinityGroupRequest) ProtoMessage()

func (*UpdateVMAffinityGroupRequest) ProtoReflect

func (*UpdateVMAffinityGroupRequest) Reset

func (x *UpdateVMAffinityGroupRequest) Reset()

func (*UpdateVMAffinityGroupRequest) String

type UpdateVMAffinityGroupResponse

type UpdateVMAffinityGroupResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

UpdateVMAffinityGroupResponse represents the response from updates the affinity/anti-affinity group associations of a virtual machine. the vm has to be stopped and restarted for the new properties to take effect.

func (*UpdateVMAffinityGroupResponse) Descriptor deprecated

func (*UpdateVMAffinityGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVMAffinityGroupResponse.ProtoReflect.Descriptor instead.

func (*UpdateVMAffinityGroupResponse) GetResult

func (x *UpdateVMAffinityGroupResponse) GetResult() *Result

func (*UpdateVMAffinityGroupResponse) ProtoMessage

func (*UpdateVMAffinityGroupResponse) ProtoMessage()

func (*UpdateVMAffinityGroupResponse) ProtoReflect

func (*UpdateVMAffinityGroupResponse) Reset

func (x *UpdateVMAffinityGroupResponse) Reset()

func (*UpdateVMAffinityGroupResponse) String

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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