object

package
v3.0.8-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectInterface

type ObjectInterface interface {
	// graphic
	SelectObjectTopoGraphics(ctx context.Context, scopeType string, scopeID string, h util.Headers) (resp *api.BKAPIRsp, err error)
	UpdateObjectTopoGraphics(ctx context.Context, scopeType string, scopeID string, h util.Headers) (resp *api.BKAPIRsp, err error)

	// object
	CreateObjectBatch(ctx context.Context, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	SearchObjectBatch(ctx context.Context, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	CreateObject(ctx context.Context, h util.Headers, obj sencapi.ObjectDes) (resp *api.BKAPIRsp, err error)
	SelectObjectWithParams(ctx context.Context, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	SelectObjectTopo(ctx context.Context, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	UpdateObject(ctx context.Context, objID string, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	DeleteObject(ctx context.Context, objID string, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)

	// attribute
	CreateObjectAtt(ctx context.Context, h util.Headers, obj *obj.ObjAttDes) (resp *api.BKAPIRsp, err error)
	SelectObjectAttWithParams(ctx context.Context, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	UpdateObjectAtt(ctx context.Context, objID string, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	DeleteObjectAtt(ctx context.Context, objID string, h util.Headers) (resp *api.BKAPIRsp, err error)

	// class
	CreateClassification(ctx context.Context, h util.Headers, obj *sencapi.ObjectClsDes) (resp *api.BKAPIRsp, err error)
	SelectClassificationWithObjects(ctx context.Context, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	SelectClassificationWithParams(ctx context.Context, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	UpdateClassification(ctx context.Context, classID string, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
	DeleteClassification(ctx context.Context, classID string, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)

	// action
	CreateModel(ctx context.Context, h util.Headers, model *actobj.MainLineObject) (resp *api.BKAPIRsp, err error)
	DeleteModel(ctx context.Context, objID string, h util.Headers) (resp *api.BKAPIRsp, err error)
	SelectModel(ctx context.Context, h util.Headers) (resp *api.BKAPIRsp, err error)
	SelectModelByClsID(ctx context.Context, clsID string, objID string, h util.Headers) (resp *api.BKAPIRsp, err error)
	SelectInst(ctx context.Context, appID string, h util.Headers) (resp *api.BKAPIRsp, err error)
	SelectInstChild(ctx context.Context, objID string, appID string, instID string, h util.Headers) (resp *api.BKAPIRsp, err error)

	// group
	CreatePropertyGroup(ctx context.Context, h util.Headers, dat obj.ObjAttGroupDes) (resp *api.BKAPIRsp, err error)
	UpdatePropertyGroup(ctx context.Context, h util.Headers, cond *metadata.PropertyGroupCondition) (resp *api.BKAPIRsp, err error)
	DeletePropertyGroup(ctx context.Context, groupID string, h util.Headers) (resp *api.BKAPIRsp, err error)
	UpdatePropertyGroupObjectAtt(ctx context.Context, h util.Headers, data metadata.PropertyGroupObjectAtt) (resp *api.BKAPIRsp, err error)
	DeletePropertyGroupObjectAtt(ctx context.Context, objID string, propertyID string, groupID string, h util.Headers) (resp *api.BKAPIRsp, err error)
	SelectPropertyGroupByObjectID(ctx context.Context, objID string, h util.Headers, data map[string]interface{}) (resp *api.BKAPIRsp, err error)
}

func NewObjectInterface

func NewObjectInterface(client rest.ClientInterface) ObjectInterface

Jump to

Keyboard shortcuts

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