ifsrmquotabase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IFsrmQuotaBase interface identifier 1568a795-3924-4118-b74b-68d8f0fa5daf
	QuotaBaseIID = &dcom.IID{Data1: 0x1568a795, Data2: 0x3924, Data3: 0x4118, Data4: []byte{0xb7, 0x4b, 0x68, 0xd8, 0xf0, 0xfa, 0x5d, 0xaf}}
	// Syntax UUID
	QuotaBaseSyntaxUUID = &uuid.UUID{TimeLow: 0x1568a795, TimeMid: 0x3924, TimeHiAndVersion: 0x4118, ClockSeqHiAndReserved: 0xb7, ClockSeqLow: 0x4b, Node: [6]uint8{0x68, 0xd8, 0xf0, 0xfa, 0x5d, 0xaf}}
	// Syntax ID
	QuotaBaseSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: QuotaBaseSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/fsrm"
)

Functions

func NewQuotaBaseServerHandle

func NewQuotaBaseServerHandle(o QuotaBaseServer) dcerpc.ServerHandle

func QuotaBaseServerHandle

func QuotaBaseServerHandle(ctx context.Context, o QuotaBaseServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

func RegisterQuotaBaseServer

func RegisterQuotaBaseServer(conn dcerpc.Conn, o QuotaBaseServer, opts ...dcerpc.Option)

Types

type AddThresholdRequest

type AddThresholdRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// threshold: Contains the value of the threshold to add to the quota object.
	Threshold int32 `idl:"name:threshold" json:"threshold"`
}

AddThresholdRequest structure represents the AddThreshold operation request

func (*AddThresholdRequest) MarshalNDR

func (o *AddThresholdRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AddThresholdRequest) UnmarshalNDR

func (o *AddThresholdRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type AddThresholdResponse

type AddThresholdResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The AddThreshold return value.
	Return int32 `idl:"name:Return" json:"return"`
}

AddThresholdResponse structure represents the AddThreshold operation response

func (*AddThresholdResponse) MarshalNDR

func (o *AddThresholdResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AddThresholdResponse) UnmarshalNDR

func (o *AddThresholdResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type CreateThresholdActionRequest

type CreateThresholdActionRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// threshold: Contains the threshold to create the action for.
	Threshold int32 `idl:"name:threshold" json:"threshold"`
	// actionType: Contains the type of action to be created.
	ActionType fsrm.ActionType `idl:"name:actionType" json:"action_type"`
}

CreateThresholdActionRequest structure represents the CreateThresholdAction operation request

func (*CreateThresholdActionRequest) MarshalNDR

func (*CreateThresholdActionRequest) UnmarshalNDR

func (o *CreateThresholdActionRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type CreateThresholdActionResponse

type CreateThresholdActionResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// action: Pointer to an IFsrmAction interface pointer (section 3.2.4.2.4) that upon
	// completion points to the newly created action. The caller MUST release the object
	// when it is done with it.
	Action *fsrm.Action `idl:"name:action" json:"action"`
	// Return: The CreateThresholdAction return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CreateThresholdActionResponse structure represents the CreateThresholdAction operation response

func (*CreateThresholdActionResponse) MarshalNDR

func (*CreateThresholdActionResponse) UnmarshalNDR

func (o *CreateThresholdActionResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DeleteThresholdRequest

type DeleteThresholdRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// threshold: Contains the value of the threshold to delete from the quota object.
	Threshold int32 `idl:"name:threshold" json:"threshold"`
}

DeleteThresholdRequest structure represents the DeleteThreshold operation request

func (*DeleteThresholdRequest) MarshalNDR

func (o *DeleteThresholdRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DeleteThresholdRequest) UnmarshalNDR

func (o *DeleteThresholdRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DeleteThresholdResponse

type DeleteThresholdResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The DeleteThreshold return value.
	Return int32 `idl:"name:Return" json:"return"`
}

DeleteThresholdResponse structure represents the DeleteThreshold operation response

func (*DeleteThresholdResponse) MarshalNDR

func (o *DeleteThresholdResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DeleteThresholdResponse) UnmarshalNDR

func (o *DeleteThresholdResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type EnumThresholdActionsRequest

type EnumThresholdActionsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// threshold: The threshold for which the associated actions will be enumerated.
	Threshold int32 `idl:"name:threshold" json:"threshold"`
}

EnumThresholdActionsRequest structure represents the EnumThresholdActions operation request

func (*EnumThresholdActionsRequest) MarshalNDR

func (*EnumThresholdActionsRequest) UnmarshalNDR

func (o *EnumThresholdActionsRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type EnumThresholdActionsResponse

type EnumThresholdActionsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// actions: Pointer to an IFsrmCollection interface pointer (section 3.2.4.2.1) that
	// upon completion contains IFsrmAction interface pointers (section 3.2.4.2.4) of all
	// the actions for the specified action. The caller MUST release the collection when
	// it is done with it.
	Actions *fsrm.Collection `idl:"name:actions" json:"actions"`
	// Return: The EnumThresholdActions return value.
	Return int32 `idl:"name:Return" json:"return"`
}

EnumThresholdActionsResponse structure represents the EnumThresholdActions operation response

func (*EnumThresholdActionsResponse) MarshalNDR

func (*EnumThresholdActionsResponse) UnmarshalNDR

func (o *EnumThresholdActionsResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetQuotaFlagsRequest

type GetQuotaFlagsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetQuotaFlagsRequest structure represents the QuotaFlags operation request

func (*GetQuotaFlagsRequest) MarshalNDR

func (o *GetQuotaFlagsRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaFlagsRequest) UnmarshalNDR

func (o *GetQuotaFlagsRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetQuotaFlagsResponse

type GetQuotaFlagsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That       *dcom.ORPCThat `idl:"name:That" json:"that"`
	QuotaFlags int32          `idl:"name:quotaFlags" json:"quota_flags"`
	// Return: The QuotaFlags return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetQuotaFlagsResponse structure represents the QuotaFlags operation response

func (*GetQuotaFlagsResponse) MarshalNDR

func (o *GetQuotaFlagsResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaFlagsResponse) UnmarshalNDR

func (o *GetQuotaFlagsResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetQuotaLimitRequest

type GetQuotaLimitRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetQuotaLimitRequest structure represents the QuotaLimit operation request

func (*GetQuotaLimitRequest) MarshalNDR

func (o *GetQuotaLimitRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaLimitRequest) UnmarshalNDR

func (o *GetQuotaLimitRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetQuotaLimitResponse

type GetQuotaLimitResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That       *dcom.ORPCThat `idl:"name:That" json:"that"`
	QuotaLimit *oaut.Variant  `idl:"name:quotaLimit" json:"quota_limit"`
	// Return: The QuotaLimit return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetQuotaLimitResponse structure represents the QuotaLimit operation response

func (*GetQuotaLimitResponse) MarshalNDR

func (o *GetQuotaLimitResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaLimitResponse) UnmarshalNDR

func (o *GetQuotaLimitResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetThresholdsRequest

type GetThresholdsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetThresholdsRequest structure represents the Thresholds operation request

func (*GetThresholdsRequest) MarshalNDR

func (o *GetThresholdsRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetThresholdsRequest) UnmarshalNDR

func (o *GetThresholdsRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetThresholdsResponse

type GetThresholdsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// thresholds: Pointer to a SAFEARRAY that upon completion contains all the threshold
	// values for the quota object. The caller MUST release the SAFEARRAY when it is done
	// with it.
	Thresholds *oaut.SafeArray `idl:"name:thresholds" json:"thresholds"`
	// Return: The Thresholds return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetThresholdsResponse structure represents the Thresholds operation response

func (*GetThresholdsResponse) MarshalNDR

func (o *GetThresholdsResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetThresholdsResponse) UnmarshalNDR

func (o *GetThresholdsResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ModifyThresholdRequest

type ModifyThresholdRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// threshold: Contains the value of the threshold to modify.
	Threshold int32 `idl:"name:threshold" json:"threshold"`
	// newThreshold: Contains the new value of the threshold.
	NewThreshold int32 `idl:"name:newThreshold" json:"new_threshold"`
}

ModifyThresholdRequest structure represents the ModifyThreshold operation request

func (*ModifyThresholdRequest) MarshalNDR

func (o *ModifyThresholdRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ModifyThresholdRequest) UnmarshalNDR

func (o *ModifyThresholdRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ModifyThresholdResponse

type ModifyThresholdResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The ModifyThreshold return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ModifyThresholdResponse structure represents the ModifyThreshold operation response

func (*ModifyThresholdResponse) MarshalNDR

func (o *ModifyThresholdResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ModifyThresholdResponse) UnmarshalNDR

func (o *ModifyThresholdResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type QuotaBaseClient

type QuotaBaseClient interface {

	// IFsrmObject retrieval method.
	Object() ifsrmobject.ObjectClient

	// QuotaLimit operation.
	GetQuotaLimit(context.Context, *GetQuotaLimitRequest, ...dcerpc.CallOption) (*GetQuotaLimitResponse, error)

	// QuotaLimit operation.
	SetQuotaLimit(context.Context, *SetQuotaLimitRequest, ...dcerpc.CallOption) (*SetQuotaLimitResponse, error)

	// QuotaFlags operation.
	GetQuotaFlags(context.Context, *GetQuotaFlagsRequest, ...dcerpc.CallOption) (*GetQuotaFlagsResponse, error)

	// QuotaFlags operation.
	SetQuotaFlags(context.Context, *SetQuotaFlagsRequest, ...dcerpc.CallOption) (*SetQuotaFlagsResponse, error)

	// The Thresholds (get) method returns the thresholds for the quota object.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+-------------------------+-----------------------------------+
	//	|         RETURN          |                                   |
	//	|       VALUE/CODE        |            DESCRIPTION            |
	//	|                         |                                   |
	//	+-------------------------+-----------------------------------+
	//	+-------------------------+-----------------------------------+
	//	| 0x80070057 E_INVALIDARG | The thresholds parameter is NULL. |
	//	+-------------------------+-----------------------------------+
	GetThresholds(context.Context, *GetThresholdsRequest, ...dcerpc.CallOption) (*GetThresholdsResponse, error)

	// The AddThreshold method adds a threshold to the quota objects list of thresholds.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	|              RETURN              |                                                                            |
	//	|            VALUE/CODE            |                                DESCRIPTION                                 |
	//	|                                  |                                                                            |
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	| 0x80045303 FSRM_E_ALREADY_EXISTS | The object being created already exists.                                   |
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE   | The content of the threshold parameter is less than 1 or greater than 250. |
	//	+----------------------------------+----------------------------------------------------------------------------+
	AddThreshold(context.Context, *AddThresholdRequest, ...dcerpc.CallOption) (*AddThresholdResponse, error)

	// The DeleteThreshold method deletes a threshold from the quota objects list of thresholds.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND    | No threshold was found on the quota object equal to the value specified in the   |
	//	|                                | threshold parameter.                                                             |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE | The content of the threshold parameter is less than 1 or greater than 250.       |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	DeleteThreshold(context.Context, *DeleteThresholdRequest, ...dcerpc.CallOption) (*DeleteThresholdResponse, error)

	// The ModifyThreshold method modifies the disk usage percentage of an existing threshold
	// in the quota object's list of thresholds.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	|              RETURN              |                                                                                  |
	//	|            VALUE/CODE            |                                   DESCRIPTION                                    |
	//	|                                  |                                                                                  |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND      | No threshold was found on the quota object equal to the value specified in the   |
	//	|                                  | threshold parameter.                                                             |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045303 FSRM_E_ALREADY_EXISTS | A threshold equal to the newThreshold parameter already exists for the quota     |
	//	|                                  | object.                                                                          |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE   | The content of the threshold parameter is less than 1 or greater than 250.       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	ModifyThreshold(context.Context, *ModifyThresholdRequest, ...dcerpc.CallOption) (*ModifyThresholdResponse, error)

	// The CreateThresholdAction method creates an action and associates it with the specified
	// threshold.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	|              RETURN              |                                                                                  |
	//	|            VALUE/CODE            |                                   DESCRIPTION                                    |
	//	|                                  |                                                                                  |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND      | An object with the specified threshold could not be found.                       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045303 FSRM_E_ALREADY_EXISTS | An action of the same type as the actionType parameter already exists for the    |
	//	|                                  | threshold.                                                                       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE   | The content of the threshold parameter is less than 1 or greater than 250.       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG          | This code is returned for the following reasons: The action parameter is NULL.   |
	//	|                                  | The actionsType parameter is not a valid type.                                   |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	CreateThresholdAction(context.Context, *CreateThresholdActionRequest, ...dcerpc.CallOption) (*CreateThresholdActionResponse, error)

	// The EnumThresholdActions method enumerates all the actions for the specified threshold.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	|             RETURN             |                                                                            |
	//	|           VALUE/CODE           |                                DESCRIPTION                                 |
	//	|                                |                                                                            |
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND    | An object with the specified threshold could not be found.                 |
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE | The content of the threshold parameter is less than 1 or greater than 250. |
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG        | The actions parameter is NULL.                                             |
	//	+--------------------------------+----------------------------------------------------------------------------+
	EnumThresholdActions(context.Context, *EnumThresholdActionsRequest, ...dcerpc.CallOption) (*EnumThresholdActionsResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) QuotaBaseClient
}

IFsrmQuotaBase interface.

func NewQuotaBaseClient

func NewQuotaBaseClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (QuotaBaseClient, error)

type QuotaBaseServer

type QuotaBaseServer interface {

	// IFsrmObject base class.
	ifsrmobject.ObjectServer

	// QuotaLimit operation.
	GetQuotaLimit(context.Context, *GetQuotaLimitRequest) (*GetQuotaLimitResponse, error)

	// QuotaLimit operation.
	SetQuotaLimit(context.Context, *SetQuotaLimitRequest) (*SetQuotaLimitResponse, error)

	// QuotaFlags operation.
	GetQuotaFlags(context.Context, *GetQuotaFlagsRequest) (*GetQuotaFlagsResponse, error)

	// QuotaFlags operation.
	SetQuotaFlags(context.Context, *SetQuotaFlagsRequest) (*SetQuotaFlagsResponse, error)

	// The Thresholds (get) method returns the thresholds for the quota object.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+-------------------------+-----------------------------------+
	//	|         RETURN          |                                   |
	//	|       VALUE/CODE        |            DESCRIPTION            |
	//	|                         |                                   |
	//	+-------------------------+-----------------------------------+
	//	+-------------------------+-----------------------------------+
	//	| 0x80070057 E_INVALIDARG | The thresholds parameter is NULL. |
	//	+-------------------------+-----------------------------------+
	GetThresholds(context.Context, *GetThresholdsRequest) (*GetThresholdsResponse, error)

	// The AddThreshold method adds a threshold to the quota objects list of thresholds.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	|              RETURN              |                                                                            |
	//	|            VALUE/CODE            |                                DESCRIPTION                                 |
	//	|                                  |                                                                            |
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	| 0x80045303 FSRM_E_ALREADY_EXISTS | The object being created already exists.                                   |
	//	+----------------------------------+----------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE   | The content of the threshold parameter is less than 1 or greater than 250. |
	//	+----------------------------------+----------------------------------------------------------------------------+
	AddThreshold(context.Context, *AddThresholdRequest) (*AddThresholdResponse, error)

	// The DeleteThreshold method deletes a threshold from the quota objects list of thresholds.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND    | No threshold was found on the quota object equal to the value specified in the   |
	//	|                                | threshold parameter.                                                             |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE | The content of the threshold parameter is less than 1 or greater than 250.       |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	DeleteThreshold(context.Context, *DeleteThresholdRequest) (*DeleteThresholdResponse, error)

	// The ModifyThreshold method modifies the disk usage percentage of an existing threshold
	// in the quota object's list of thresholds.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	|              RETURN              |                                                                                  |
	//	|            VALUE/CODE            |                                   DESCRIPTION                                    |
	//	|                                  |                                                                                  |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND      | No threshold was found on the quota object equal to the value specified in the   |
	//	|                                  | threshold parameter.                                                             |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045303 FSRM_E_ALREADY_EXISTS | A threshold equal to the newThreshold parameter already exists for the quota     |
	//	|                                  | object.                                                                          |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE   | The content of the threshold parameter is less than 1 or greater than 250.       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	ModifyThreshold(context.Context, *ModifyThresholdRequest) (*ModifyThresholdResponse, error)

	// The CreateThresholdAction method creates an action and associates it with the specified
	// threshold.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	|              RETURN              |                                                                                  |
	//	|            VALUE/CODE            |                                   DESCRIPTION                                    |
	//	|                                  |                                                                                  |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND      | An object with the specified threshold could not be found.                       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045303 FSRM_E_ALREADY_EXISTS | An action of the same type as the actionType parameter already exists for the    |
	//	|                                  | threshold.                                                                       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE   | The content of the threshold parameter is less than 1 or greater than 250.       |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG          | This code is returned for the following reasons: The action parameter is NULL.   |
	//	|                                  | The actionsType parameter is not a valid type.                                   |
	//	+----------------------------------+----------------------------------------------------------------------------------+
	CreateThresholdAction(context.Context, *CreateThresholdActionRequest) (*CreateThresholdActionResponse, error)

	// The EnumThresholdActions method enumerates all the actions for the specified threshold.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	|             RETURN             |                                                                            |
	//	|           VALUE/CODE           |                                DESCRIPTION                                 |
	//	|                                |                                                                            |
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND    | An object with the specified threshold could not be found.                 |
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE | The content of the threshold parameter is less than 1 or greater than 250. |
	//	+--------------------------------+----------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG        | The actions parameter is NULL.                                             |
	//	+--------------------------------+----------------------------------------------------------------------------+
	EnumThresholdActions(context.Context, *EnumThresholdActionsRequest) (*EnumThresholdActionsResponse, error)
}

IFsrmQuotaBase server interface.

type SetQuotaFlagsRequest

type SetQuotaFlagsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This       *dcom.ORPCThis `idl:"name:This" json:"this"`
	QuotaFlags int32          `idl:"name:quotaFlags" json:"quota_flags"`
}

SetQuotaFlagsRequest structure represents the QuotaFlags operation request

func (*SetQuotaFlagsRequest) MarshalNDR

func (o *SetQuotaFlagsRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetQuotaFlagsRequest) UnmarshalNDR

func (o *SetQuotaFlagsRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetQuotaFlagsResponse

type SetQuotaFlagsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The QuotaFlags return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetQuotaFlagsResponse structure represents the QuotaFlags operation response

func (*SetQuotaFlagsResponse) MarshalNDR

func (o *SetQuotaFlagsResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetQuotaFlagsResponse) UnmarshalNDR

func (o *SetQuotaFlagsResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetQuotaLimitRequest

type SetQuotaLimitRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This       *dcom.ORPCThis `idl:"name:This" json:"this"`
	QuotaLimit *oaut.Variant  `idl:"name:quotaLimit" json:"quota_limit"`
}

SetQuotaLimitRequest structure represents the QuotaLimit operation request

func (*SetQuotaLimitRequest) MarshalNDR

func (o *SetQuotaLimitRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetQuotaLimitRequest) UnmarshalNDR

func (o *SetQuotaLimitRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetQuotaLimitResponse

type SetQuotaLimitResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The QuotaLimit return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetQuotaLimitResponse structure represents the QuotaLimit operation response

func (*SetQuotaLimitResponse) MarshalNDR

func (o *SetQuotaLimitResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetQuotaLimitResponse) UnmarshalNDR

func (o *SetQuotaLimitResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

Jump to

Keyboard shortcuts

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