jamfproapi

package
v0.0.0-...-347f27f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIAuthenticationService

type APIAuthenticationService service

func (*APIAuthenticationService) Token

func (s *APIAuthenticationService) Token(ctx context.Context, username string, password string) (*AuthToken, *jamf.Response, error)

type AuthToken

type AuthToken struct {
	Token   *string `json:"token,omitempty"`
	Expires *string `json:"expires,omitempty"`
}

type Authorizer

type Authorizer struct {
	BaseURL  *url.URL
	Username string
	Password string
}

type CategoriesService

type CategoriesService service

func (*CategoriesService) Create

func (s *CategoriesService) Create(ctx context.Context, category *Category) (*string, *jamf.Response, error)

func (*CategoriesService) Delete

func (s *CategoriesService) Delete(ctx context.Context, categoryID string) (*jamf.Response, error)

func (*CategoriesService) DeleteMultiple

func (s *CategoriesService) DeleteMultiple(ctx context.Context, categoryIDs []string) (*jamf.Response, error)

func (*CategoriesService) Get

func (s *CategoriesService) Get(ctx context.Context, categoryID string) (*Category, *jamf.Response, error)

func (*CategoriesService) List

func (*CategoriesService) Update

func (s *CategoriesService) Update(ctx context.Context, category *Category) (*Category, *jamf.Response, error)

type Category

type Category struct {
	ID       *string `json:"id,omitempty"`
	Name     *string `json:"name,omitempty"`
	Priority *int32  `json:"priority,omitempty"`
}

type Client

type Client struct {
	*jamf.BaseClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(serverURL string) (*Client, error)

type Icon

type Icon struct {
	ID   *int    `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	URL  *string `json:"url,omitempty"`
}

type IconContentOptions

type IconContentOptions struct {
	Res   *IconContentOptionsRes `url:"res,omitempty"`
	Scale *string                `url:"scale,omitempty"`
}

type IconContentOptionsRes

type IconContentOptionsRes string
const (
	IconContentOptionsResOriginal IconContentOptionsRes = "original"
	IconContentOptionsRes300      IconContentOptionsRes = "300"
	IconContentOptionsRes512      IconContentOptionsRes = "512"
)

type IconService

type IconService service

func (*IconService) Download

func (s *IconService) Download(ctx context.Context, iconID int, options IconContentOptions) (*jamf.Response, error)

func (*IconService) Get

func (s *IconService) Get(ctx context.Context, iconID int) (*Icon, *jamf.Response, error)

func (*IconService) Upload

func (s *IconService) Upload(ctx context.Context, iconName string, src io.Reader) (*Icon, *jamf.Response, error)

type ListCategory

type ListCategory struct {
	TotalCount *int        `json:"totalCount,omitempty"`
	Categories *[]Category `json:"results,omitempty"`
}

type ListOptions

type ListOptions struct {
	Page     *int      `url:"page,omitempty"`
	PageSize *int      `url:"page-size,omitempty"`
	Sort     *[]string `url:"sort,omitempty" del:","`
	Filter   *string   `url:"filter,omitempty"`
}

type ListScript

type ListScript struct {
	TotalCount *int      `json:"totalCount,omitempty"`
	Scripts    *[]Script `json:"results,omitempty"`
}

type SSOFailover

type SSOFailover struct {
	FailoverURL    *string `json:"failoverUrl,omitempty"`
	GenerationTime *int64  `json:"generationTime,omitempty"`
}

type SSOFailoverService

type SSOFailoverService service

func (*SSOFailoverService) Generate

func (*SSOFailoverService) Get

type Script

type Script struct {
	ID             *string         `json:"id,omitempty"`
	Name           *string         `json:"name,omitempty"`
	Info           *string         `json:"info,omitempty"`
	Notes          *string         `json:"notes,omitempty"`
	Priority       *ScriptPriority `json:"priority,omitempty"`
	CategoryID     *string         `json:"categoryId,omitempty"`
	CategoryName   *string         `json:"categoryName,omitempty"`
	Parameter4     *string         `json:"parameter4,omitempty"`
	Parameter5     *string         `json:"parameter5,omitempty"`
	Parameter6     *string         `json:"parameter6,omitempty"`
	Parameter7     *string         `json:"parameter7,omitempty"`
	Parameter8     *string         `json:"parameter8,omitempty"`
	Parameter9     *string         `json:"parameter9,omitempty"`
	Parameter10    *string         `json:"parameter10,omitempty"`
	Parameter11    *string         `json:"parameter11,omitempty"`
	OSRequirements *string         `json:"osRequirements,omitempty"`
	ScriptContents *string         `json:"scriptContents,omitempty"`
}

type ScriptPriority

type ScriptPriority string
const (
	ScriptPriorityBefore   ScriptPriority = "BEFORE"
	ScriptPriorityAfter    ScriptPriority = "AFTER"
	ScriptPriorityAtReboot ScriptPriority = "AT_REBOOT"
)

type ScriptsService

type ScriptsService service

func (*ScriptsService) Create

func (s *ScriptsService) Create(ctx context.Context, script *Script) (*string, *jamf.Response, error)

func (*ScriptsService) Delete

func (s *ScriptsService) Delete(ctx context.Context, scriptID string) (*jamf.Response, error)

func (*ScriptsService) Get

func (s *ScriptsService) Get(ctx context.Context, scriptID string) (*Script, *jamf.Response, error)

func (*ScriptsService) List

func (s *ScriptsService) List(ctx context.Context, options ListOptions) (*ListScript, *jamf.Response, error)

func (*ScriptsService) Update

func (s *ScriptsService) Update(ctx context.Context, script *Script) (*Script, *jamf.Response, error)

Jump to

Keyboard shortcuts

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