sdk

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

README

Workspace ONE UEM Go SDK

Go Reference Go Report Card CI

Typed Go client for the Workspace ONE UEM REST API.

Badge URLs reference github.com/euc-oss/terraform-sdk-uem and euc-oss/terraform-sdk-uem placeholders that are substituted at sync time before this README ships in the public repository.

What this is

This is a Go SDK that wraps the Workspace ONE UEM REST API with authentication, retry, rate limiting, and platform-aware endpoint routing. It is designed to be used directly from Go applications and as the underlying client for the Workspace ONE UEM Terraform provider.

This is not a Terraform provider. The Terraform provider lives in a separate repository and consumes this SDK.

This SDK is maintained by Omnissa.

Status

The SDK is pre-1.0. The public API may change between minor versions until v1.0 ships. See CHANGELOG.md for release history.

  • Go version: 1.25 or later
  • Workspace ONE UEM: cloud and on-premises deployments are both supported
  • API versions covered: v1, v2, and v4 (depending on resource — see docs/reference/platform-support.md)

Installation

go get github.com/euc-oss/terraform-sdk-uem

Add an import:

import wsone "github.com/euc-oss/terraform-sdk-uem"

Quickstart

The example below authenticates with OAuth2, creates a client, and lists all profiles. wsone.ListProfiles returns a flat []*models.Profile slice; use wsone.ListOptions to paginate.

package main

import (
    "context"
    "fmt"
    "log"
    "os"
    "time"

    wsone "github.com/euc-oss/terraform-sdk-uem"
)

func main() {
    auth, err := wsone.NewOAuth2Auth(wsone.OAuth2Config{
        ClientID:     os.Getenv("WSONE_CLIENT_ID"),
        ClientSecret: os.Getenv("WSONE_CLIENT_SECRET"),
        TokenURL:     os.Getenv("WSONE_TOKEN_URL"),
    })
    if err != nil {
        log.Fatalf("auth: %v", err)
    }

    client, err := wsone.NewClient(wsone.Config{
        BaseURL:    os.Getenv("WSONE_API_URL"),
        Auth:       auth,
        TenantCode: os.Getenv("WSONE_TENANT_CODE"),
    })
    if err != nil {
        log.Fatalf("client: %v", err)
    }

    ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
    defer cancel()

    profiles, err := wsone.ListProfiles(ctx, client, nil)
    if err != nil {
        log.Fatalf("list profiles: %v", err)
    }

    for _, p := range profiles {
        fmt.Printf("%d  %s  (%s)\n", p.GetProfileID(), p.GetName(), p.Platform)
    }
}

A runnable version of this snippet is in examples/quickstart.

Authentication

The SDK supports two authentication providers:

  • OAuth2 (recommended) — works for both cloud and on-premises deployments. Cloud deployments use a separate auth host (https://na.uemauth.workspaceone.com/connect/token); on-prem deployments typically use the deployment host (https://<host>/oauth/token). The SDK auto-detects when given a base URL alone, but you can pass an explicit TokenURL for fully-qualified setups.
  • Basic auth — username + password. Available for legacy deployments where OAuth2 is not configured.

The tenant code (aw-tenant-code header) is always wired through wsone.Config.TenantCode, not through the auth constructor. This applies to both OAuth2 and Basic auth.

OAuth2:

auth, _ := wsone.NewOAuth2Auth(wsone.OAuth2Config{
    ClientID:     id,
    ClientSecret: secret,
    TokenURL:     "https://na.uemauth.workspaceone.com/connect/token",
})

client, _ := wsone.NewClient(wsone.Config{
    BaseURL:    apiURL,
    Auth:       auth,
    TenantCode: tenantCode, // ← tenant code goes here for both auth methods
})

Basic auth:

auth := wsone.NewBasicAuth(user, pass)

client, _ := wsone.NewClient(wsone.Config{
    BaseURL:    apiURL,
    Auth:       auth,
    TenantCode: tenantCode,
})

See docs/authentication.md for the full guide.

Supported resources

Current
Resource Operations Platforms / notes
Profiles CRUD iOS, macOS, Android, Windows 10, Windows Rugged, Linux
Smart Groups Search All platforms
Sensors Read Read-only at v0
Apps (MAM) Read Internal apps; categories
Roadmap
Resource Planned work
Smart Groups Full CRUD (planned)
Sensors Write support (planned)
Org Groups Read (planned)

See issues for tracking planned work. The full coverage matrix lives at docs/reference/platform-support.md.

Configuration

The client supports several configuration knobs. See docs/configuration.md for the complete list. Common ones:

  • Custom HTTP client — pass your own *http.Client to inject proxies, custom TLS, or mock transports
  • Retry policy — built on hashicorp/go-retryablehttp; configurable backoff and retry budget
  • Rate limiting — token-bucket limiter (golang.org/x/time/rate) configurable per-client
  • Context cancellation — every API call accepts context.Context; pass timeouts and cancellation through normally

Error handling

API errors are returned as *wsone.APIError, which exposes the HTTP status code, an error message parsed from the response, and a structured error code where available:

profiles, err := wsone.ListProfiles(ctx, client, nil)
if err != nil {
    var apiErr *wsone.APIError
    if errors.As(err, &apiErr) {
        if apiErr.IsRetryable() {
            // The SDK already retried automatically; reaching here means
            // the retry budget was exhausted. Retryable codes are:
            // 429 (rate limit), 500, 502, 503, 504.
        }
        log.Printf("API error %d: %s", apiErr.StatusCode, apiErr.Message)
    }
    return err
}

See docs/error-handling.md for full details.

Documentation

API reference: pkg.go.dev/github.com/euc-oss/terraform-sdk-uem.

Examples

Each directory in examples/ is a runnable program demonstrating one feature:

Run any example:

cd examples/quickstart
WSONE_CLIENT_ID=... WSONE_CLIENT_SECRET=... WSONE_TOKEN_URL=... WSONE_API_URL=... go run .

Testing your integration

The SDK ships with an in-process mock server (internal/mockserver) and a collection of JSON fixtures in testdata/. These exist to support the SDK's own test suite and the Example godoc functions.

Note: The bundled mock server lives under internal/mockserver/ and is not directly importable from consumer packages (Go's internal rule). It exists for the SDK's own tests and Example godoc functions. Consumers who want a similar testing setup should use Go's httptest package with their own response fixtures; see examples/error-handling for a starting point on wiring a custom HTTP transport.

The JSON fixtures under testdata/mock-responses/ are a useful reference for the exact request and response shapes the API expects. The mock server itself is stateful for profile CRUD — it accepts creates, tracks IDs in memory, and returns 404 on reads after a delete — which mirrors real API behavior without network access.

Versioning

This project follows Semantic Versioning. While at v0.x, breaking changes can occur in any minor release; pin a specific minor version in your go.mod to avoid surprises. Once v1.0 ships, the public API will be stable per semver guarantees.

v0.0.2 is the next coordinated release and introduces a cleaner public API surface: wsone.Config{BaseURL, Auth, TenantCode, HTTPClient}, wsone.NewClient, wsone.NewOAuth2Auth, wsone.ListProfiles, and apiErr.IsRetryable(). v0.0.1 had a different, lower-level surface; v0.0.2 is a coordinated breaking change while still pre-1.0.

See CHANGELOG.md for release history.

Reporting issues

Two channels:

  • GitHub issues — bugs, feature requests, and questions about the SDK itself. See the issue templates.
  • Omnissa Customer Connect — production support questions about Workspace ONE UEM or about using this SDK in production.

Security

Please do not file public GitHub issues for security vulnerabilities. See SECURITY.md for the disclosure process.

Contributing

This SDK is currently maintained by the internal Omnissa team. GitHub issues are very welcome. We are not actively soliciting external pull requests at this time, but we evaluate any that arrive — see CONTRIBUTING.md for the attribution model and DCO sign-off requirement.

License

This SDK is licensed under the Apache License, Version 2.0. For Omnissa licensing terms generally, see the Omnissa Legal Center and the Open Source Notices page.

Copyright © Omnissa, LLC. All rights reserved. This product is protected by copyright and intellectual property laws in the United States and other countries as well as by international treaties. Omnissa products are covered by one or more patents listed at: https://www.omnissa.com/omnissa-patent-information/. Omnissa products are also covered by general and offering-specific legal terms, as well as the privacy and open-source software notices hosted on the Omnissa Legal Center at: https://www.omnissa.com/legal-center/.

Omnissa, the Omnissa Logo, and Workspace ONE are registered trademarks or trademarks of Omnissa in the United States and other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. "Omnissa" refers to Omnissa, LLC, Omnissa International Unlimited Company, and/or their subsidiaries.

This SDK is provided by Omnissa. It is not affiliated with HashiCorp.

Documentation

Overview

Package sdk provides a clean, idiomatic public API for the Workspace ONE UEM SDK. This file is hand-written and must NOT carry a "Code generated. DO NOT EDIT." header.

Index

Constants

View Source
const (
	PlatformAndroid       = "Android"
	PlatformAppleiOS      = "Apple iOS"
	PlatformAppleOsX      = "AppleOsX"
	PlatformWindows10     = "Windows 10"
	PlatformWindowsRugged = "Windows_Rugged"
	PlatformLinux         = "To do"
)

Platform constants — exact values returned by the UEM API in General.Platform fields.

Variables

View Source
var NewAppBookmarksV2Service = mamv2.NewAppBookmarksV2Service
View Source
var NewAppRemovalProtectionLogsV2Service = mamv2.NewAppRemovalProtectionLogsV2Service
View Source
var NewAppsV2Service = mamv2.NewAppsV2Service
View Source
var NewBasicAuth = client.NewBasicAuth
View Source
var NewBlobsV1Service = mamv1.NewBlobsV1Service
View Source
var NewBlobsV2Service = mamv2.NewBlobsV2Service
View Source
var NewDeviceSensorsV1Service = mdmv1.NewDeviceSensorsV1Service
View Source
var NewEnterpriseAppRepositoryV2Service = mamv2.NewEnterpriseAppRepositoryV2Service
View Source
var NewInternalAppsV1Service = mamv1.NewInternalAppsV1Service
View Source
var NewInternalAppsV2Service = mamv2.NewInternalAppsV2Service
View Source
var NewMacOsAppsV1Service = mamv1.NewMacOsAppsV1Service
View Source
var NewProfilesV1Service = mdmv1.NewProfilesV1Service
View Source
var NewProfilesV2Service = mdmv2.NewProfilesV2Service
View Source
var NewProfilesV4Service = mdmv4.NewProfilesV4Service
View Source
var NewPurchasedAppsV2Service = mamv2.NewPurchasedAppsV2Service
View Source
var NewSmartGroupsService = mdmv1.NewSmartGroupsService
View Source
var ParseLocationID = client.ParseLocationID

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to the given bool value.

func CreateProfile added in v0.0.2

func CreateProfile(ctx context.Context, c *client.Client, platform string, request *models.ProfileCreateRequest) (*models.Profile, error)

CreateProfile creates a new profile for the given platform.

platform must be one of the wsone.Platform* constants. The request body shape is platform-specific; see models.ProfileCreateRequest for the field set.

func DeleteProfile added in v0.0.2

func DeleteProfile(ctx context.Context, c *client.Client, profileID int) error

DeleteProfile deletes the profile with the given ID.

Unlike Get, Create, and Update, the Delete endpoint is not platform-specific — the API derives the platform from the stored profile metadata.

func Float32Ptr

func Float32Ptr(f float32) *float32

Float32Ptr returns a pointer to the given float32 value.

func Float64Ptr

func Float64Ptr(f float64) *float64

Float64Ptr returns a pointer to the given float64 value.

func GetProfile added in v0.0.2

func GetProfile(ctx context.Context, c *client.Client, profileID int, platform string) (*models.Profile, error)

GetProfile fetches a profile by ID and platform.

platform must be one of the wsone.Platform* constants (PlatformAppleiOS, PlatformAppleOsX, PlatformAndroid, PlatformWindows10, PlatformWindowsRugged, PlatformLinux). The platform is required because the API endpoint is platform-specific.

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to the given int64 value.

func IntPtr

func IntPtr(i int) *int

IntPtr returns a pointer to the given int value.

func ListProfiles added in v0.0.2

func ListProfiles(ctx context.Context, c *client.Client, opts *ListOptions) ([]*models.Profile, error)

ListProfiles returns profiles as a flat slice, using the supplied pagination options. Pass nil to use defaults (page 0, page size 500).

func NewClient

func NewClient(cfg Config) (*client.Client, error)

NewClient constructs a new SDK client from a public Config. This is the recommended entry point; it wraps the lower-level client.NewClient with a cleaner, ergonomic surface.

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the given string value.

func UpdateProfile added in v0.0.2

func UpdateProfile(ctx context.Context, c *client.Client, platform string, profileID int, request *models.ProfileUpdateRequest) (*models.Profile, error)

UpdateProfile updates an existing profile.

platform must be one of the wsone.Platform* constants. profileID identifies the existing profile; request carries the new payload. Note: Windows updates use HTTP PUT; all other platforms use POST. This is handled internally — callers do not need to choose.

Types

type APIError

type APIError = client.APIError

type AllowRuleV2

type AllowRuleV2 = mdmv2.AllowRuleV2

type AndroidApplicationControlPayloadV2Entity

type AndroidApplicationControlPayloadV2Entity = mdmv2.AndroidApplicationControlPayloadV2Entity

type AndroidApplicationV2Entity

type AndroidApplicationV2Entity = mdmv2.AndroidApplicationV2Entity

type AndroidBookmarkSettingsPayloadV2Entity

type AndroidBookmarkSettingsPayloadV2Entity = mdmv2.AndroidBookmarkSettingsPayloadV2Entity

type AndroidConatinerVPNMocanaSettingsV2

type AndroidConatinerVPNMocanaSettingsV2 = mdmv2.AndroidConatinerVPNMocanaSettingsV2

type AndroidConatinerVPNPayloadV2Entity

type AndroidConatinerVPNPayloadV2Entity = mdmv2.AndroidConatinerVPNPayloadV2Entity

type AndroidConatinerVPNPulseSecureSettingsV2

type AndroidConatinerVPNPulseSecureSettingsV2 = mdmv2.AndroidConatinerVPNPulseSecureSettingsV2

type AndroidContainerBookmarkPayloadV2Entity

type AndroidContainerBookmarkPayloadV2Entity = mdmv2.AndroidContainerBookmarkPayloadV2Entity

type AndroidContainerBrowserPayloadV2Entity

type AndroidContainerBrowserPayloadV2Entity = mdmv2.AndroidContainerBrowserPayloadV2Entity

type AndroidContainerEasPayloadV2Entity

type AndroidContainerEasPayloadV2Entity = mdmv2.AndroidContainerEasPayloadV2Entity

type AndroidContainerEmailPayloadV2Entity

type AndroidContainerEmailPayloadV2Entity = mdmv2.AndroidContainerEmailPayloadV2Entity

type AndroidContainerPasscodePayloadV2Entity

type AndroidContainerPasscodePayloadV2Entity = mdmv2.AndroidContainerPasscodePayloadV2Entity

type AndroidContainerSmartCardPayloadV2Entity

type AndroidContainerSmartCardPayloadV2Entity = mdmv2.AndroidContainerSmartCardPayloadV2Entity

type AndroidContainerVpnNetMotionSettingsV2

type AndroidContainerVpnNetMotionSettingsV2 = mdmv2.AndroidContainerVpnNetMotionSettingsV2

type AndroidCredentialsPayloadV2Entity

type AndroidCredentialsPayloadV2Entity = mdmv2.AndroidCredentialsPayloadV2Entity

type AndroidCustomSettingsPayloadV2Entity

type AndroidCustomSettingsPayloadV2Entity = mdmv2.AndroidCustomSettingsPayloadV2Entity

type AndroidDateTimePayloadV2Entity

type AndroidDateTimePayloadV2Entity = mdmv2.AndroidDateTimePayloadV2Entity

type AndroidDeviceProfileV2Entity

type AndroidDeviceProfileV2Entity = mdmv2.AndroidDeviceProfileV2Entity

type AndroidEASPayloadV2Entity

type AndroidEASPayloadV2Entity = mdmv2.AndroidEASPayloadV2Entity

type AndroidEmailPayloadV2Entity

type AndroidEmailPayloadV2Entity = mdmv2.AndroidEmailPayloadV2Entity

type AndroidForWorkAppPasscodePayloadV2Entity

type AndroidForWorkAppPasscodePayloadV2Entity = mdmv2.AndroidForWorkAppPasscodePayloadV2Entity

type AndroidForWorkAppPermissionsV2Entity

type AndroidForWorkAppPermissionsV2Entity = mdmv2.AndroidForWorkAppPermissionsV2Entity

type AndroidForWorkAutoUpdatePayloadV2Entity

type AndroidForWorkAutoUpdatePayloadV2Entity = mdmv2.AndroidForWorkAutoUpdatePayloadV2Entity

type AndroidForWorkCredentialsPayloadV2Entity

type AndroidForWorkCredentialsPayloadV2Entity = mdmv2.AndroidForWorkCredentialsPayloadV2Entity

type AndroidForWorkEASAirWatchInboxSettingsV2

type AndroidForWorkEASAirWatchInboxSettingsV2 = mdmv2.AndroidForWorkEASAirWatchInboxSettingsV2

type AndroidForWorkEASPayloadV2Entity

type AndroidForWorkEASPayloadV2Entity = mdmv2.AndroidForWorkEASPayloadV2Entity

type AndroidForWorkEASWorkManageSettingsV2

type AndroidForWorkEASWorkManageSettingsV2 = mdmv2.AndroidForWorkEASWorkManageSettingsV2

type AndroidForWorkKioskPayloadV2Entity

type AndroidForWorkKioskPayloadV2Entity = mdmv2.AndroidForWorkKioskPayloadV2Entity

type AndroidForWorkOemDateTimePayloadV2Entity

type AndroidForWorkOemDateTimePayloadV2Entity = mdmv2.AndroidForWorkOemDateTimePayloadV2Entity

type AndroidForWorkOemDisplayPayloadV2Entity

type AndroidForWorkOemDisplayPayloadV2Entity = mdmv2.AndroidForWorkOemDisplayPayloadV2Entity

type AndroidForWorkOemSoundPayloadV2Entity

type AndroidForWorkOemSoundPayloadV2Entity = mdmv2.AndroidForWorkOemSoundPayloadV2Entity

type AndroidForWorkOemWifiPayloadV2Enity

type AndroidForWorkOemWifiPayloadV2Enity = mdmv2.AndroidForWorkOemWifiPayloadV2Enity

type AndroidForWorkPasscodePayloadV2Entity

type AndroidForWorkPasscodePayloadV2Entity = mdmv2.AndroidForWorkPasscodePayloadV2Entity

type AndroidForWorkPermissionsPayloadV2Entity

type AndroidForWorkPermissionsPayloadV2Entity = mdmv2.AndroidForWorkPermissionsPayloadV2Entity

type AndroidForWorkProxyPayloadV2Entity

type AndroidForWorkProxyPayloadV2Entity = mdmv2.AndroidForWorkProxyPayloadV2Entity

type AndroidForWorkSamsungAPNPayloadV2Entity

type AndroidForWorkSamsungAPNPayloadV2Entity = mdmv2.AndroidForWorkSamsungAPNPayloadV2Entity

type AndroidForWorkSingleAppEntityV2

type AndroidForWorkSingleAppEntityV2 = mdmv2.AndroidForWorkSingleAppEntityV2

type AndroidForWorkSystemUpdatesV2Entity

type AndroidForWorkSystemUpdatesV2Entity = mdmv2.AndroidForWorkSystemUpdatesV2Entity

type AndroidForWorkVPNPayloadV2Entity

type AndroidForWorkVPNPayloadV2Entity = mdmv2.AndroidForWorkVPNPayloadV2Entity

type AndroidForWorkWifiPayloadV2Entity

type AndroidForWorkWifiPayloadV2Entity = mdmv2.AndroidForWorkWifiPayloadV2Entity

type AndroidForWorkZebraMxPayloadV2Entity

type AndroidForWorkZebraMxPayloadV2Entity = mdmv2.AndroidForWorkZebraMxPayloadV2Entity

type AndroidKioskPayloadV2Entity

type AndroidKioskPayloadV2Entity = mdmv2.AndroidKioskPayloadV2Entity

type AndroidMaxDataUsageEntityV2

type AndroidMaxDataUsageEntityV2 = mdmv2.AndroidMaxDataUsageEntityV2

type AndroidPasscodePayloadV2Entity

type AndroidPasscodePayloadV2Entity = mdmv2.AndroidPasscodePayloadV2Entity

type AndroidRestrictionsPayloadV2Entity

type AndroidRestrictionsPayloadV2Entity = mdmv2.AndroidRestrictionsPayloadV2Entity

type AndroidSystemUpdateApiFreezePeriodV2

type AndroidSystemUpdateApiFreezePeriodV2 = mdmv2.AndroidSystemUpdateApiFreezePeriodV2

type AndroidVpnPayloadV2Entity

type AndroidVpnPayloadV2Entity = mdmv2.AndroidVpnPayloadV2Entity

type AndroidWifiPayloadV2Entity

type AndroidWifiPayloadV2Entity = mdmv2.AndroidWifiPayloadV2Entity

type AppAssignmentBspV1ModelV2

type AppAssignmentBspV1ModelV2 = mamv2.AppAssignmentBspV1ModelV2

type AppAssignmentDistributionV2Model

type AppAssignmentDistributionV2Model = mamv2.AppAssignmentDistributionV2Model

type AppAssignmentRestrictionV1ModelV2

type AppAssignmentRestrictionV1ModelV2 = mamv2.AppAssignmentRestrictionV1ModelV2

type AppAssignmentRuleDeviceV1ModelV2

type AppAssignmentRuleDeviceV1ModelV2 = mamv2.AppAssignmentRuleDeviceV1ModelV2

type AppAssignmentRuleDevicesV1ModelListV2

type AppAssignmentRuleDevicesV1ModelListV2 = mamv2.AppAssignmentRuleDevicesV1ModelListV2

type AppAssignmentRuleV2Model

type AppAssignmentRuleV2Model = mamv2.AppAssignmentRuleV2Model

type AppAssignmentTunnelV1ModelV2

type AppAssignmentTunnelV1ModelV2 = mamv2.AppAssignmentTunnelV1ModelV2

type AppAssignmentV2Model

type AppAssignmentV2Model = mamv2.AppAssignmentV2Model

type AppAssignmentVppV1ModelV2

type AppAssignmentVppV1ModelV2 = mamv2.AppAssignmentVppV1ModelV2

type AppBookmarksV2GetBookmarkListOptions

type AppBookmarksV2GetBookmarkListOptions = mamv2.AppBookmarksV2GetBookmarkListOptions

type AppBookmarksV2Service

type AppBookmarksV2Service = mamv2.AppBookmarksV2Service

AppBookmarksV2Service service

type AppConfigTemplateV2Model

type AppConfigTemplateV2Model = mamv2.AppConfigTemplateV2Model

type AppConfigurationV1ModelV2

type AppConfigurationV1ModelV2 = mamv2.AppConfigurationV1ModelV2

type AppCriteriaApiModelV1

type AppCriteriaApiModelV1 = mamv1.AppCriteriaApiModelV1

type AppCriteriaApiModelV2

type AppCriteriaApiModelV2 = mamv2.AppCriteriaApiModelV2

type AppDependencyModelV1

type AppDependencyModelV1 = mamv1.AppDependencyModelV1

type AppDependencyModelV2

type AppDependencyModelV2 = mamv2.AppDependencyModelV2

type AppDeploymentOptionsModelV1

type AppDeploymentOptionsModelV1 = mamv1.AppDeploymentOptionsModelV1

type AppDeploymentOptionsModelV2

type AppDeploymentOptionsModelV2 = mamv2.AppDeploymentOptionsModelV2

type AppFilesOptionsModelV1

type AppFilesOptionsModelV1 = mamv1.AppFilesOptionsModelV1

type AppFilesOptionsModelV2

type AppFilesOptionsModelV2 = mamv2.AppFilesOptionsModelV2

type AppListUsingProvisioningProfileModelV2

type AppListUsingProvisioningProfileModelV2 = mamv2.AppListUsingProvisioningProfileModelV2

type AppNotificationV2Entity

type AppNotificationV2Entity = mdmv2.AppNotificationV2Entity

type AppPatchModelV1

type AppPatchModelV1 = mamv1.AppPatchModelV1

type AppPatchModelV2

type AppPatchModelV2 = mamv2.AppPatchModelV2

type AppRemovalDeviceResponseV2Model

type AppRemovalDeviceResponseV2Model = mamv2.AppRemovalDeviceResponseV2Model

type AppRemovalDeviceV2Model

type AppRemovalDeviceV2Model = mamv2.AppRemovalDeviceV2Model

type AppRemovalDevicesReportRequestModelV2

type AppRemovalDevicesReportRequestModelV2 = mamv2.AppRemovalDevicesReportRequestModelV2

type AppRemovalLogReportRequestModelV2

type AppRemovalLogReportRequestModelV2 = mamv2.AppRemovalLogReportRequestModelV2

type AppRemovalLogRequestModelV2

type AppRemovalLogRequestModelV2 = mamv2.AppRemovalLogRequestModelV2

type AppRemovalProtectionLogResponseV2Model

type AppRemovalProtectionLogResponseV2Model = mamv2.AppRemovalProtectionLogResponseV2Model

type AppRemovalProtectionLogV2Model

type AppRemovalProtectionLogV2Model = mamv2.AppRemovalProtectionLogV2Model

type AppRemovalProtectionLogsV2Service

type AppRemovalProtectionLogsV2Service = mamv2.AppRemovalProtectionLogsV2Service

AppRemovalProtectionLogsV2Service service

type AppRemovalThresholdDetailV2Model

type AppRemovalThresholdDetailV2Model = mamv2.AppRemovalThresholdDetailV2Model

type AppTrackV2

type AppTrackV2 = mamv2.AppTrackV2

type AppTransformModelV1

type AppTransformModelV1 = mamv1.AppTransformModelV1

type AppTransformModelV2

type AppTransformModelV2 = mamv2.AppTransformModelV2

type AppUnInstallProcessModelV1

type AppUnInstallProcessModelV1 = mamv1.AppUnInstallProcessModelV1

type AppUnInstallProcessModelV2

type AppUnInstallProcessModelV2 = mamv2.AppUnInstallProcessModelV2

type AppleAppLockPayloadV2Entity

type AppleAppLockPayloadV2Entity = mdmv2.AppleAppLockPayloadV2Entity

type AppleCredentialsPayloadV2Entity

type AppleCredentialsPayloadV2Entity = mdmv2.AppleCredentialsPayloadV2Entity

type AppleCustomSettingsPayloadV2Entity

type AppleCustomSettingsPayloadV2Entity = mdmv2.AppleCustomSettingsPayloadV2Entity

type AppleDeviceProfileV2Entity

type AppleDeviceProfileV2Entity = mdmv2.AppleDeviceProfileV2Entity

type AppleDomainsPayloadV2Entity

type AppleDomainsPayloadV2Entity = mdmv2.AppleDomainsPayloadV2Entity

type AppleEASAWMailClientPayloadV2Entity

type AppleEASAWMailClientPayloadV2Entity = mdmv2.AppleEASAWMailClientPayloadV2Entity

type AppleEASAWMailCredentialPayloadV2Entity

type AppleEASAWMailCredentialPayloadV2Entity = mdmv2.AppleEASAWMailCredentialPayloadV2Entity

type AppleEASNativeMailClientPayloadV2Entity

type AppleEASNativeMailClientPayloadV2Entity = mdmv2.AppleEASNativeMailClientPayloadV2Entity

type AppleEmailPayloadV2Entity

type AppleEmailPayloadV2Entity = mdmv2.AppleEmailPayloadV2Entity

type AppleEventV2

type AppleEventV2 = mdmv2.AppleEventV2

type AppleGoogleAccountPayloadV2Entity

type AppleGoogleAccountPayloadV2Entity = mdmv2.AppleGoogleAccountPayloadV2Entity

type AppleHomeScreenPayloadV2Entity

type AppleHomeScreenPayloadV2Entity = mdmv2.AppleHomeScreenPayloadV2Entity

type AppleNotificationPayloadV2Entity

type AppleNotificationPayloadV2Entity = mdmv2.AppleNotificationPayloadV2Entity

type AppleOsXCredentialPayloadEntityV2

type AppleOsXCredentialPayloadEntityV2 = mdmv2.AppleOsXCredentialPayloadEntityV2

type AppleOsXCustomSettingsPayloadEntityV2

type AppleOsXCustomSettingsPayloadEntityV2 = mdmv2.AppleOsXCustomSettingsPayloadEntityV2

type AppleOsXDeviceProfileEntityV2

type AppleOsXDeviceProfileEntityV2 = mdmv2.AppleOsXDeviceProfileEntityV2

type AppleOsXDiskEncryptionMCXPayloadEntityV2

type AppleOsXDiskEncryptionMCXPayloadEntityV2 = mdmv2.AppleOsXDiskEncryptionMCXPayloadEntityV2

type AppleOsXDiskEncryptionPayloadEntityV2

type AppleOsXDiskEncryptionPayloadEntityV2 = mdmv2.AppleOsXDiskEncryptionPayloadEntityV2

type AppleOsXEmailPayloadEntityV2

type AppleOsXEmailPayloadEntityV2 = mdmv2.AppleOsXEmailPayloadEntityV2

type AppleOsXMediaAccessEntityV2

type AppleOsXMediaAccessEntityV2 = mdmv2.AppleOsXMediaAccessEntityV2

type AppleOsXNetworkPayloadEntityV2

type AppleOsXNetworkPayloadEntityV2 = mdmv2.AppleOsXNetworkPayloadEntityV2

type AppleOsXPasscodePayloadEntityV2

type AppleOsXPasscodePayloadEntityV2 = mdmv2.AppleOsXPasscodePayloadEntityV2

type AppleOsXRestrictionCameraPayloadEntityV2

type AppleOsXRestrictionCameraPayloadEntityV2 = mdmv2.AppleOsXRestrictionCameraPayloadEntityV2

type AppleOsXRestrictionICloudPayloadEntityV2

type AppleOsXRestrictionICloudPayloadEntityV2 = mdmv2.AppleOsXRestrictionICloudPayloadEntityV2

type AppleOsXRestrictionMediaPayloadEntityV2

type AppleOsXRestrictionMediaPayloadEntityV2 = mdmv2.AppleOsXRestrictionMediaPayloadEntityV2

type AppleOsXRestrictionSafariPayloadEntityV2

type AppleOsXRestrictionSafariPayloadEntityV2 = mdmv2.AppleOsXRestrictionSafariPayloadEntityV2

type AppleOsXRestrictionWidgetPayloadEntityV2

type AppleOsXRestrictionWidgetPayloadEntityV2 = mdmv2.AppleOsXRestrictionWidgetPayloadEntityV2

type AppleOsXRestrictionsPayloadEntityV2

type AppleOsXRestrictionsPayloadEntityV2 = mdmv2.AppleOsXRestrictionsPayloadEntityV2

type AppleOsXScepPayloadEntityV2

type AppleOsXScepPayloadEntityV2 = mdmv2.AppleOsXScepPayloadEntityV2

type AppleOsXVpnOnDemandEntityV2

type AppleOsXVpnOnDemandEntityV2 = mdmv2.AppleOsXVpnOnDemandEntityV2

type AppleOsXVpnPayloadEntityV2

type AppleOsXVpnPayloadEntityV2 = mdmv2.AppleOsXVpnPayloadEntityV2

type ApplePasscodePayloadV2Entity

type ApplePasscodePayloadV2Entity = mdmv2.ApplePasscodePayloadV2Entity

type AppleRestrictionsPayloadV2Entity

type AppleRestrictionsPayloadV2Entity = mdmv2.AppleRestrictionsPayloadV2Entity

type AppleScepPayloadV2Entity

type AppleScepPayloadV2Entity = mdmv2.AppleScepPayloadV2Entity

type AppleSetupAssistantPayloadEntityV2

type AppleSetupAssistantPayloadEntityV2 = mdmv2.AppleSetupAssistantPayloadEntityV2

type AppleSharedDevicePayloadV2Entity

type AppleSharedDevicePayloadV2Entity = mdmv2.AppleSharedDevicePayloadV2Entity

type AppleSingleSignOnPayloadV2Entity

type AppleSingleSignOnPayloadV2Entity = mdmv2.AppleSingleSignOnPayloadV2Entity

type AppleSsoExtensionPayloadV2Entity

type AppleSsoExtensionPayloadV2Entity = mdmv2.AppleSsoExtensionPayloadV2Entity

type AppleVpnOnDemandEntityV2

type AppleVpnOnDemandEntityV2 = mdmv2.AppleVpnOnDemandEntityV2

type AppleVpnPayloadV2Entity

type AppleVpnPayloadV2Entity = mdmv2.AppleVpnPayloadV2Entity

type AppleWebClipPayloadV2Entity

type AppleWebClipPayloadV2Entity = mdmv2.AppleWebClipPayloadV2Entity

type AppleWifiPayloadV2Entity

type AppleWifiPayloadV2Entity = mdmv2.AppleWifiPayloadV2Entity

type ApplicationAssignmentModelV1

type ApplicationAssignmentModelV1 = mamv1.ApplicationAssignmentModelV1

type ApplicationAssignmentModelV2

type ApplicationAssignmentModelV2 = mamv2.ApplicationAssignmentModelV2

type ApplicationAssignmentsModelV1

type ApplicationAssignmentsModelV1 = mamv1.ApplicationAssignmentsModelV1

type ApplicationBranchCacheStatisticsModelV2

type ApplicationBranchCacheStatisticsModelV2 = mamv2.ApplicationBranchCacheStatisticsModelV2

type ApplicationCategoriesModelV1

type ApplicationCategoriesModelV1 = mamv1.ApplicationCategoriesModelV1

type ApplicationCategoriesModelV2

type ApplicationCategoriesModelV2 = mamv2.ApplicationCategoriesModelV2

type ApplicationCategoriesResultV2

type ApplicationCategoriesResultV2 = mamv2.ApplicationCategoriesResultV2

type ApplicationCategoriesV2Model

type ApplicationCategoriesV2Model = mamv2.ApplicationCategoriesV2Model

type ApplicationCategoryDetailsV2

type ApplicationCategoryDetailsV2 = mamv2.ApplicationCategoryDetailsV2

type ApplicationCategoryV2Model

type ApplicationCategoryV2Model = mamv2.ApplicationCategoryV2Model

type ApplicationConfigurationModelV1

type ApplicationConfigurationModelV1 = mamv1.ApplicationConfigurationModelV1

type ApplicationConfigurationModelV2

type ApplicationConfigurationModelV2 = mamv2.ApplicationConfigurationModelV2

type ApplicationConfigurationV2Model

type ApplicationConfigurationV2Model = mamv2.ApplicationConfigurationV2Model

type ApplicationDeploymentParametersModelV1

type ApplicationDeploymentParametersModelV1 = mamv1.ApplicationDeploymentParametersModelV1

type ApplicationDeploymentProfileMapV1ModelV2

type ApplicationDeploymentProfileMapV1ModelV2 = mamv2.ApplicationDeploymentProfileMapV1ModelV2

type ApplicationFilesOptionsV2Model

type ApplicationFilesOptionsV2Model = mamv2.ApplicationFilesOptionsV2Model

type ApplicationFiltersModelV2

type ApplicationFiltersModelV2 = mamv2.ApplicationFiltersModelV2

type ApplicationListEntityV2

type ApplicationListEntityV2 = mdmv2.ApplicationListEntityV2

type ApplicationPolicyV1ModelV2

type ApplicationPolicyV1ModelV2 = mamv2.ApplicationPolicyV1ModelV2

type ApplicationRequestV2Model

type ApplicationRequestV2Model = mamv2.ApplicationRequestV2Model

type ApplicationSearchV2Model

type ApplicationSearchV2Model = mamv2.ApplicationSearchV2Model

type ApplicationSupportedModelV2Model

type ApplicationSupportedModelV2Model = mamv2.ApplicationSupportedModelV2Model

type ApplicationSupportedModelsModelV1

type ApplicationSupportedModelsModelV1 = mamv1.ApplicationSupportedModelsModelV1

type ApplicationSupportedModelsModelV2

type ApplicationSupportedModelsModelV2 = mamv2.ApplicationSupportedModelsModelV2

type ApplicationSupportedModelsV2Model

type ApplicationSupportedModelsV2Model = mamv2.ApplicationSupportedModelsV2Model

type ApplicationTransformV2Model

type ApplicationTransformV2Model = mamv2.ApplicationTransformV2Model

type ApplicationUuidV2

type ApplicationUuidV2 = mamv2.ApplicationUuidV2

type ApplicationV2Model

type ApplicationV2Model = mamv2.ApplicationV2Model

type ApplicationsProvisionProfileModelV2

type ApplicationsProvisionProfileModelV2 = mamv2.ApplicationsProvisionProfileModelV2

type AppsV2GetAppConfigTemplateAsyncOptions

type AppsV2GetAppConfigTemplateAsyncOptions = mamv2.AppsV2GetAppConfigTemplateAsyncOptions

type AppsV2GetCategoriesForApplicationOptions

type AppsV2GetCategoriesForApplicationOptions = mamv2.AppsV2GetCategoriesForApplicationOptions

type AppsV2GetListOfDevicesOptions

type AppsV2GetListOfDevicesOptions = mamv2.AppsV2GetListOfDevicesOptions

type AppsV2SearchOptions

type AppsV2SearchOptions = mamv2.AppsV2SearchOptions

type AppsV2Service

type AppsV2Service = mamv2.AppsV2Service

AppsV2Service service

type AssignmentLicenseUsageV1ModelV2

type AssignmentLicenseUsageV1ModelV2 = mamv2.AssignmentLicenseUsageV1ModelV2

type AuthProvider

type AuthProvider = client.AuthProvider

func NewOAuth2Auth

func NewOAuth2Auth(cfg OAuth2Config) (AuthProvider, error)

NewOAuth2Auth constructs an OAuth2 auth provider from an OAuth2Config. Returns an error if any required field is empty.

type BasicAuth

type BasicAuth = client.BasicAuth

type BlobsV1Service

type BlobsV1Service = mamv1.BlobsV1Service

BlobsV1Service service

type BlobsV1UploadBlobAsyncOptions

type BlobsV1UploadBlobAsyncOptions = mamv1.BlobsV1UploadBlobAsyncOptions

type BlobsV2Service

type BlobsV2Service = mamv2.BlobsV2Service

BlobsV2Service service

type BlobsV2UploadBlobAsyncOptions

type BlobsV2UploadBlobAsyncOptions = mamv2.BlobsV2UploadBlobAsyncOptions

type BookV2Model

type BookV2Model = mamv2.BookV2Model

type BranchCacheStatisticsSummaryModelV2

type BranchCacheStatisticsSummaryModelV2 = mamv2.BranchCacheStatisticsSummaryModelV2

type BulkSearchRequestV2Model

type BulkSearchRequestV2Model = mamv2.BulkSearchRequestV2Model

type BulkSearchResponseV2Model

type BulkSearchResponseV2Model = mamv2.BulkSearchResponseV2Model

type CertificateMetadataModel1V2

type CertificateMetadataModel1V2 = mdmv2.CertificateMetadataModel1V2

type CertificateMetadataModel1V4

type CertificateMetadataModel1V4 = mdmv4.CertificateMetadataModel1V4

type CertificateMetadataModelV2

type CertificateMetadataModelV2 = mdmv2.CertificateMetadataModelV2

type CertificateV1

type CertificateV1 = mdmv1.CertificateV1

type Client

type Client = client.Client

Client re-exports

type Config

type Config struct {
	// BaseURL is the base URL of the Workspace ONE UEM instance
	// (e.g., "https://your-instance.awmdm.com").
	BaseURL string

	// Auth is the authentication provider. Construct one with
	// NewOAuth2Auth or sdk.NewBasicAuth.
	Auth AuthProvider

	// TenantCode is the aw-tenant-code header value required on all requests.
	TenantCode string

	// HTTPClient is an optional custom *http.Client to use as the inner
	// transport. When nil, a default client with sensible timeouts is used.
	HTTPClient *http.Client

	// MaxRetries is the maximum number of retry attempts for transient errors.
	// Zero means use the SDK default (3 retries).
	MaxRetries int

	// RateLimit is the maximum number of requests per minute. Zero means use
	// the SDK default (1000 requests per minute).
	RateLimit int

	// Timeout is the per-request HTTP timeout. Zero means use the SDK default
	// (30 seconds).
	Timeout time.Duration
}

Config is the ergonomic public-surface configuration for the SDK client. It maps cleanly to the lower-level client configuration without exposing internal auth-method strings. Use with NewClient to create a *client.Client.

type CustomDataEntityV2

type CustomDataEntityV2 = mdmv2.CustomDataEntityV2

type CustomDataV2

type CustomDataV2 = mdmv2.CustomDataV2

type CustomScriptApiModelV1

type CustomScriptApiModelV1 = mamv1.CustomScriptApiModelV1

type CustomScriptApiModelV2

type CustomScriptApiModelV2 = mamv2.CustomScriptApiModelV2

type DenyRuleV2

type DenyRuleV2 = mdmv2.DenyRuleV2

type DependencyInfoV2Model

type DependencyInfoV2Model = mamv2.DependencyInfoV2Model

type DeploymentByCriteriaApiModelV1

type DeploymentByCriteriaApiModelV1 = mamv1.DeploymentByCriteriaApiModelV1

type DeploymentByCriteriaApiModelV2

type DeploymentByCriteriaApiModelV2 = mamv2.DeploymentByCriteriaApiModelV2

type DeploymentByCustomScriptApiModelV1

type DeploymentByCustomScriptApiModelV1 = mamv1.DeploymentByCustomScriptApiModelV1

type DeploymentByCustomScriptApiModelV2

type DeploymentByCustomScriptApiModelV2 = mamv2.DeploymentByCustomScriptApiModelV2

type DeviceBranchCacheStatisticsModelV2

type DeviceBranchCacheStatisticsModelV2 = mamv2.DeviceBranchCacheStatisticsModelV2

type DeviceInformationV2Model

type DeviceInformationV2Model = mamv2.DeviceInformationV2Model

type DeviceProfileV2Entity

type DeviceProfileV2Entity = mdmv2.DeviceProfileV2Entity

type DeviceSensorAssignedSmartGroupV1Model

type DeviceSensorAssignedSmartGroupV1Model = mdmv1.DeviceSensorAssignedSmartGroupV1Model

type DeviceSensorListResponseV1Model

type DeviceSensorListResponseV1Model = mdmv1.DeviceSensorListResponseV1Model

type DeviceSensorRequestV1Model

type DeviceSensorRequestV1Model = mdmv1.DeviceSensorRequestV1Model

type DeviceSensorResponseV1Model

type DeviceSensorResponseV1Model = mdmv1.DeviceSensorResponseV1Model

type DeviceSensorUpdateV1Model

type DeviceSensorUpdateV1Model = mdmv1.DeviceSensorUpdateV1Model

type DeviceSensorsBulkDeleteRequestV1Model

type DeviceSensorsBulkDeleteRequestV1Model = mdmv1.DeviceSensorsBulkDeleteRequestV1Model

type DeviceSensorsV1GetDeviceSensorsOptions

type DeviceSensorsV1GetDeviceSensorsOptions = mdmv1.DeviceSensorsV1GetDeviceSensorsOptions

type DeviceSensorsV1Service

type DeviceSensorsV1Service = mdmv1.DeviceSensorsV1Service

DeviceSensorsV1Service service

type EnterpriseAppListResponseV2Model

type EnterpriseAppListResponseV2Model = mamv2.EnterpriseAppListResponseV2Model

type EnterpriseAppPackageResponseV2Model

type EnterpriseAppPackageResponseV2Model = mamv2.EnterpriseAppPackageResponseV2Model

type EnterpriseAppRepositoryV2Service

type EnterpriseAppRepositoryV2Service = mamv2.EnterpriseAppRepositoryV2Service

EnterpriseAppRepositoryV2Service service

type EnterpriseApplicationV2Model

type EnterpriseApplicationV2Model = mamv2.EnterpriseApplicationV2Model

type EntityIdV1

type EntityIdV1 = mdmv1.EntityIdV1

type EntityIdV2

type EntityIdV2 = mamv2.EntityIdV2

type EntityV1Model

type EntityV1Model = mamv1.EntityV1Model

type EntityV1ModelV2

type EntityV1ModelV2 = mamv2.EntityV1ModelV2

type FileCriteriaApiModelV1

type FileCriteriaApiModelV1 = mamv1.FileCriteriaApiModelV1

type FileCriteriaApiModelV2

type FileCriteriaApiModelV2 = mamv2.FileCriteriaApiModelV2

type FirewallRuleV2

type FirewallRuleV2 = mdmv2.FirewallRuleV2

type GeneralPayloadV2Entity

type GeneralPayloadV2Entity = mdmv2.GeneralPayloadV2Entity

type GeneralPayloadV4Entity

type GeneralPayloadV4Entity = mdmv4.GeneralPayloadV4Entity

type HomeScreenLayoutFolderV2Entity

type HomeScreenLayoutFolderV2Entity = mdmv2.HomeScreenLayoutFolderV2Entity

type HomeScreenLayoutPageV2Entity

type HomeScreenLayoutPageV2Entity = mdmv2.HomeScreenLayoutPageV2Entity

type HowToInstallApiModelV1

type HowToInstallApiModelV1 = mamv1.HowToInstallApiModelV1

type HowToInstallApiModelV2

type HowToInstallApiModelV2 = mamv2.HowToInstallApiModelV2

type HypermediaModelV2

type HypermediaModelV2 = mdmv2.HypermediaModelV2

type ImportPackageRequestV2Model

type ImportPackageRequestV2Model = mamv2.ImportPackageRequestV2Model

type ImportPackageResponseV2Model

type ImportPackageResponseV2Model = mamv2.ImportPackageResponseV2Model

type InstallerInfoV2Model

type InstallerInfoV2Model = mamv2.InstallerInfoV2Model

type InstallerSwitchesV2Model

type InstallerSwitchesV2Model = mamv2.InstallerSwitchesV2Model

type InternalAppModelV1

type InternalAppModelV1 = mamv1.InternalAppModelV1

type InternalAppModelV2

type InternalAppModelV2 = mamv2.InternalAppModelV2

type InternalAppsV1Service

type InternalAppsV1Service = mamv1.InternalAppsV1Service

InternalAppsV1Service service

type InternalAppsV2Service

type InternalAppsV2Service = mamv2.InternalAppsV2Service

InternalAppsV2Service service

type KioskBookmarkResponseV2Model

type KioskBookmarkResponseV2Model = mamv2.KioskBookmarkResponseV2Model

type LatestAppPackageInstallerInfoModelV2

type LatestAppPackageInstallerInfoModelV2 = mamv2.LatestAppPackageInstallerInfoModelV2

type LatestVersionAppPackageModelV2

type LatestVersionAppPackageModelV2 = mamv2.LatestVersionAppPackageModelV2

type LicensesSummaryV2Model

type LicensesSummaryV2Model = mamv2.LicensesSummaryV2Model

type LinkV2

type LinkV2 = mdmv2.LinkV2

type LinuxCredentialsPayloadEntityV4

type LinuxCredentialsPayloadEntityV4 = mdmv4.LinuxCredentialsPayloadEntityV4

type LinuxCustomConfigurationPayloadEntityV4

type LinuxCustomConfigurationPayloadEntityV4 = mdmv4.LinuxCustomConfigurationPayloadEntityV4

type LinuxDeviceProfileEntity1V4

type LinuxDeviceProfileEntity1V4 = mdmv4.LinuxDeviceProfileEntity1V4

type LinuxWifiPayloadEntityV4

type LinuxWifiPayloadEntityV4 = mdmv4.LinuxWifiPayloadEntityV4

type ListOptions added in v0.0.2

type ListOptions struct {
	// Page is the zero-based page number (default: 0).
	Page int
	// PageSize is the number of results per page (default: 500).
	PageSize int
}

ListOptions controls pagination for list calls.

type MacOsAllowedKernelExtensionsEntityV2

type MacOsAllowedKernelExtensionsEntityV2 = mdmv2.MacOsAllowedKernelExtensionsEntityV2

type MacOsAllowedSystemExtensionTypesV2Model

type MacOsAllowedSystemExtensionTypesV2Model = mdmv2.MacOsAllowedSystemExtensionTypesV2Model

type MacOsAllowedSystemExtensionV2Model

type MacOsAllowedSystemExtensionV2Model = mdmv2.MacOsAllowedSystemExtensionV2Model

type MacOsAppsV1Service

type MacOsAppsV1Service = mamv1.MacOsAppsV1Service

MacOsAppsV1Service service

type MacOsAssociatedDomainsPayloadV2Model

type MacOsAssociatedDomainsPayloadV2Model = mdmv2.MacOsAssociatedDomainsPayloadV2Model

type MacOsCreateApplicationRequestV1Model

type MacOsCreateApplicationRequestV1Model = mamv1.MacOsCreateApplicationRequestV1Model

type MacOsCustomAttributePayloadV2Model

type MacOsCustomAttributePayloadV2Model = mdmv2.MacOsCustomAttributePayloadV2Model

type MacOsGatekeeperPayloadV2Entity

type MacOsGatekeeperPayloadV2Entity = mdmv2.MacOsGatekeeperPayloadV2Entity

type MacOsKernelExtensionPayloadV2Entity

type MacOsKernelExtensionPayloadV2Entity = mdmv2.MacOsKernelExtensionPayloadV2Entity

type MacOsPrivacyPreferencesPayloadV2Model

type MacOsPrivacyPreferencesPayloadV2Model = mdmv2.MacOsPrivacyPreferencesPayloadV2Model

type MacOsPrivacyPreferencesV2Model

type MacOsPrivacyPreferencesV2Model = mdmv2.MacOsPrivacyPreferencesV2Model

type MacOsSetupAssistantPayloadEntityV2

type MacOsSetupAssistantPayloadEntityV2 = mdmv2.MacOsSetupAssistantPayloadEntityV2

type MacOsSmartCardPayloadV2Model

type MacOsSmartCardPayloadV2Model = mdmv2.MacOsSmartCardPayloadV2Model

type MacOsSoftwareDeploymentSummaryModelV1

type MacOsSoftwareDeploymentSummaryModelV1 = mamv1.MacOsSoftwareDeploymentSummaryModelV1

type MacOsSoftwareDeploymentSummaryModelV2

type MacOsSoftwareDeploymentSummaryModelV2 = mamv2.MacOsSoftwareDeploymentSummaryModelV2

type MacOsSsoExtensionPayloadV2Entity

type MacOsSsoExtensionPayloadV2Entity = mdmv2.MacOsSsoExtensionPayloadV2Entity

type MacOsSystemExtensionsPayloadV2Model

type MacOsSystemExtensionsPayloadV2Model = mdmv2.MacOsSystemExtensionsPayloadV2Model

type MacOsWebClipsPayloadV2Entity

type MacOsWebClipsPayloadV2Entity = mdmv2.MacOsWebClipsPayloadV2Entity

type MsiDeploymentOptionsV1ModelV2

type MsiDeploymentOptionsV1ModelV2 = mamv2.MsiDeploymentOptionsV1ModelV2

type MsiDeploymentParameterModelV1

type MsiDeploymentParameterModelV1 = mamv1.MsiDeploymentParameterModelV1

type MsiDeploymentParameterModelV2

type MsiDeploymentParameterModelV2 = mamv2.MsiDeploymentParameterModelV2

type MsiDeploymentParametersV2Model

type MsiDeploymentParametersV2Model = mamv2.MsiDeploymentParametersV2Model

type OAuth2Auth

type OAuth2Auth = client.OAuth2Auth

type OAuth2Config added in v0.0.2

type OAuth2Config struct {
	ClientID     string
	ClientSecret string
	TokenURL     string
}

OAuth2Config holds the fields needed to create an OAuth2 auth provider. Pass to NewOAuth2Auth to obtain an AuthProvider.

type PackageDependencyV2Model

type PackageDependencyV2Model = mamv2.PackageDependencyV2Model

type ProfileDetailsV2Entity

type ProfileDetailsV2Entity = mdmv2.ProfileDetailsV2Entity

type ProfileEntry

type ProfileEntry = services.ProfileEntry

type ProfileResult

type ProfileResult = services.ProfileResult

type ProfileSearchResultV2Entity

type ProfileSearchResultV2Entity = mdmv2.ProfileSearchResultV2Entity

type ProfileService

type ProfileService = services.ProfileService

func NewProfileService

func NewProfileService(ctx context.Context, c *Client) (*ProfileService, error)

NewProfileService creates a new ProfileService with eager discovery.

func NewProfileServiceWithoutDiscovery

func NewProfileServiceWithoutDiscovery(c *Client) *ProfileService

NewProfileServiceWithoutDiscovery creates a ProfileService with an empty registry, skipping the eager search call. Pair with (ProfileService).RegisterEntry to seed known (id, platform) pairs.

type ProfileSmartGroupV2Entity

type ProfileSmartGroupV2Entity = mdmv2.ProfileSmartGroupV2Entity

type ProfilesV1SearchOptions

type ProfilesV1SearchOptions = mdmv1.ProfilesV1SearchOptions

type ProfilesV1Service

type ProfilesV1Service = mdmv1.ProfilesV1Service

ProfilesV1Service service

type ProfilesV2SearchProfilesOptions

type ProfilesV2SearchProfilesOptions = mdmv2.ProfilesV2SearchProfilesOptions

type ProfilesV2Service

type ProfilesV2Service = mdmv2.ProfilesV2Service

ProfilesV2Service service

type ProfilesV4Service

type ProfilesV4Service = mdmv4.ProfilesV4Service

ProfilesV4Service service

type PurchasedApplicationV2Model

type PurchasedApplicationV2Model = mamv2.PurchasedApplicationV2Model

type PurchasedAppsV2Service

type PurchasedAppsV2Service = mamv2.PurchasedAppsV2Service

PurchasedAppsV2Service service

type QnxCustomAttributePayloadEntityV2

type QnxCustomAttributePayloadEntityV2 = mdmv2.QnxCustomAttributePayloadEntityV2

type QnxDeviceProfileEntityV2

type QnxDeviceProfileEntityV2 = mdmv2.QnxDeviceProfileEntityV2

type QnxProfileCustomAttributeEntityV2

type QnxProfileCustomAttributeEntityV2 = mdmv2.QnxProfileCustomAttributeEntityV2

type RedirectRuleV2

type RedirectRuleV2 = mdmv2.RedirectRuleV2

type RegistryCriteriaApiModelV1

type RegistryCriteriaApiModelV1 = mamv1.RegistryCriteriaApiModelV1

type RegistryCriteriaApiModelV2

type RegistryCriteriaApiModelV2 = mamv2.RegistryCriteriaApiModelV2

type RerouteRuleV2

type RerouteRuleV2 = mdmv2.RerouteRuleV2

type RuntimeApplicationPermissionV2

type RuntimeApplicationPermissionV2 = mamv2.RuntimeApplicationPermissionV2

type SmartGroupApplicationMapV2Model

type SmartGroupApplicationMapV2Model = mamv2.SmartGroupApplicationMapV2Model

type SmartGroupEntity1V4

type SmartGroupEntity1V4 = mdmv4.SmartGroupEntity1V4

type SmartGroupEntityV2

type SmartGroupEntityV2 = mdmv2.SmartGroupEntityV2

type SmartGroupSearchModelV1

type SmartGroupSearchModelV1 = mdmv1.SmartGroupSearchModelV1

type SmartGroupSearchResultV1

type SmartGroupSearchResultV1 = mdmv1.SmartGroupSearchResultV1

type SmartGroupsSearchOptions

type SmartGroupsSearchOptions = mdmv1.SmartGroupsSearchOptions

type SmartGroupsService

type SmartGroupsService = mdmv1.SmartGroupsService

SmartGroupsService service

type SystemUpdateApiMonthDayV2

type SystemUpdateApiMonthDayV2 = mdmv2.SystemUpdateApiMonthDayV2

type VppAssignmentV2Model

type VppAssignmentV2Model = mamv2.VppAssignmentV2Model

type VppDeploymentParametersV2Model

type VppDeploymentParametersV2Model = mamv2.VppDeploymentParametersV2Model

type WhenToCallInstallCompleteApiModelV1

type WhenToCallInstallCompleteApiModelV1 = mamv1.WhenToCallInstallCompleteApiModelV1

type WhenToCallInstallCompleteApiModelV2

type WhenToCallInstallCompleteApiModelV2 = mamv2.WhenToCallInstallCompleteApiModelV2

type WhenToInstallApiModelV1

type WhenToInstallApiModelV1 = mamv1.WhenToInstallApiModelV1

type WhenToInstallApiModelV2

type WhenToInstallApiModelV2 = mamv2.WhenToInstallApiModelV2

type WinRTDeviceProfileV2Entity

type WinRTDeviceProfileV2Entity = mdmv2.WinRTDeviceProfileV2Entity

type WinRTIntelCloudPayloadModelV2

type WinRTIntelCloudPayloadModelV2 = mdmv2.WinRTIntelCloudPayloadModelV2

type WinRTKeepAppsPayloadModelV2

type WinRTKeepAppsPayloadModelV2 = mdmv2.WinRTKeepAppsPayloadModelV2

type WindowsDesktopAntivirusPayloadEntityV2

type WindowsDesktopAntivirusPayloadEntityV2 = mdmv2.WindowsDesktopAntivirusPayloadEntityV2

type WindowsDesktopBiosPayloadEntityV2

type WindowsDesktopBiosPayloadEntityV2 = mdmv2.WindowsDesktopBiosPayloadEntityV2

type WindowsDesktopCredentialsPayloadEntityV2

type WindowsDesktopCredentialsPayloadEntityV2 = mdmv2.WindowsDesktopCredentialsPayloadEntityV2

type WindowsDesktopDemPayloadModelV2

type WindowsDesktopDemPayloadModelV2 = mdmv2.WindowsDesktopDemPayloadModelV2

type WindowsDesktopEASPayloadEntityV2

type WindowsDesktopEASPayloadEntityV2 = mdmv2.WindowsDesktopEASPayloadEntityV2

type WindowsDesktopEdpPayloadEntityV2

type WindowsDesktopEdpPayloadEntityV2 = mdmv2.WindowsDesktopEdpPayloadEntityV2

type WindowsDesktopEncryptionPayloadEntityV2

type WindowsDesktopEncryptionPayloadEntityV2 = mdmv2.WindowsDesktopEncryptionPayloadEntityV2

type WindowsDesktopFirewallPayloadEntityV2

type WindowsDesktopFirewallPayloadEntityV2 = mdmv2.WindowsDesktopFirewallPayloadEntityV2

type WindowsDesktopFirewallV2PayloadEntity

type WindowsDesktopFirewallV2PayloadEntity = mdmv2.WindowsDesktopFirewallV2PayloadEntity

type WindowsDesktopKioskPayloadEntityV2

type WindowsDesktopKioskPayloadEntityV2 = mdmv2.WindowsDesktopKioskPayloadEntityV2

type WindowsDesktopLicensingPayloadEntityV2

type WindowsDesktopLicensingPayloadEntityV2 = mdmv2.WindowsDesktopLicensingPayloadEntityV2

type WindowsDesktopOemUpdatePayloadEntityV2

type WindowsDesktopOemUpdatePayloadEntityV2 = mdmv2.WindowsDesktopOemUpdatePayloadEntityV2

type WindowsDesktopPasscodePayloadEntityV2

type WindowsDesktopPasscodePayloadEntityV2 = mdmv2.WindowsDesktopPasscodePayloadEntityV2

type WindowsDesktopPassportPayloadEntityV2

type WindowsDesktopPassportPayloadEntityV2 = mdmv2.WindowsDesktopPassportPayloadEntityV2

type WindowsDesktopProxyPayloadEntityV2

type WindowsDesktopProxyPayloadEntityV2 = mdmv2.WindowsDesktopProxyPayloadEntityV2

type WindowsDesktopScepPayloadEntityV2

type WindowsDesktopScepPayloadEntityV2 = mdmv2.WindowsDesktopScepPayloadEntityV2

type WindowsDesktopUpdatesPayloadEntityV2

type WindowsDesktopUpdatesPayloadEntityV2 = mdmv2.WindowsDesktopUpdatesPayloadEntityV2

type WindowsDesktopUpdatesV2PayloadEntity

type WindowsDesktopUpdatesV2PayloadEntity = mdmv2.WindowsDesktopUpdatesV2PayloadEntity

type WindowsDesktopVpnPayloadEntityV2

type WindowsDesktopVpnPayloadEntityV2 = mdmv2.WindowsDesktopVpnPayloadEntityV2

type WindowsDesktopWebClipsPayloadEntityV2

type WindowsDesktopWebClipsPayloadEntityV2 = mdmv2.WindowsDesktopWebClipsPayloadEntityV2

type WindowsDesktopWifiPayloadEntityV2

type WindowsDesktopWifiPayloadEntityV2 = mdmv2.WindowsDesktopWifiPayloadEntityV2

Directories

Path Synopsis
Package client provides the HTTP client for the Workspace ONE UEM API.
Package client provides the HTTP client for the Workspace ONE UEM API.
examples
auth-basic command
auth-basic demonstrates Basic authentication.
auth-basic demonstrates Basic authentication.
auth-oauth2 command
auth-oauth2 demonstrates OAuth2 authentication for both cloud and on-premises Workspace ONE UEM deployments.
auth-oauth2 demonstrates OAuth2 authentication for both cloud and on-premises Workspace ONE UEM deployments.
custom-http-client command
custom-http-client demonstrates injecting a custom *http.Client.
custom-http-client demonstrates injecting a custom *http.Client.
error-handling command
error-handling demonstrates how to inspect SDK errors.
error-handling demonstrates how to inspect SDK errors.
pagination command
pagination shows how to iterate through paginated list responses.
pagination shows how to iterate through paginated list responses.
profile-crud command
profile-crud walks Create → Read → Update → Delete on a macOS profile.
profile-crud walks Create → Read → Update → Delete on a macOS profile.
quickstart command
Quickstart shows the minimal path from credentials to a paginated profile listing.
Quickstart shows the minimal path from credentials to a paginated profile listing.
smart-groups command
smart-groups lists smart groups available in the tenant.
smart-groups lists smart groups available in the tenant.
generated
services
Code generated by terraform-sdk-uem codegen.
Code generated by terraform-sdk-uem codegen.
internal
services
Code generated.
Code generated.

Jump to

Keyboard shortcuts

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