Documentation
¶
Index ¶
- Constants
- func CheckResponse(r *http.Response) error
- func DoRequestWithClient(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
- func Int(v int) *int
- func String(v string) *string
- func Stringify(message interface{}) string
- func UserAgent() string
- type ArgError
- type Client
- type ClientOpt
- type Digicert
- type EnrollmentSecret
- type EnrollmentSecretRequest
- type ErrorResponse
- type EventFilter
- type EventFilterSet
- type GWSConnection
- type GWSConnectionsService
- type GWSConnectionsServiceOp
- func (s *GWSConnectionsServiceOp) GetByID(ctx context.Context, gwsConnectionID string) (*GWSConnection, *Response, error)
- func (s *GWSConnectionsServiceOp) GetByName(ctx context.Context, name string) (*GWSConnection, *Response, error)
- func (s *GWSConnectionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]GWSConnection, *Response, error)
- type GWSGroupTagMapping
- type GWSGroupTagMappingRequest
- type GWSGroupTagMappingsService
- type GWSGroupTagMappingsServiceOp
- func (s *GWSGroupTagMappingsServiceOp) Create(ctx context.Context, createRequest *GWSGroupTagMappingRequest) (*GWSGroupTagMapping, *Response, error)
- func (s *GWSGroupTagMappingsServiceOp) Delete(ctx context.Context, gwsGroupTagMappingID string) (*Response, error)
- func (s *GWSGroupTagMappingsServiceOp) GetByConnectionID(ctx context.Context, connectionID string) ([]GWSGroupTagMapping, *Response, error)
- func (s *GWSGroupTagMappingsServiceOp) GetByGroupEmail(ctx context.Context, groupEmail string) ([]GWSGroupTagMapping, *Response, error)
- func (s *GWSGroupTagMappingsServiceOp) GetByID(ctx context.Context, gwsGroupTagMappingID string) (*GWSGroupTagMapping, *Response, error)
- func (s *GWSGroupTagMappingsServiceOp) List(ctx context.Context, opt *ListOptions) ([]GWSGroupTagMapping, *Response, error)
- func (s *GWSGroupTagMappingsServiceOp) Update(ctx context.Context, gwsGroupTagMappingID string, ...) (*GWSGroupTagMapping, *Response, error)
- type HTTPHeader
- type IDent
- type InventoryFilter
- type JMESPathCheck
- type JMESPathCheckCreateRequest
- type JMESPathCheckUpdateRequest
- type JMESPathChecksService
- type JMESPathChecksServiceOp
- func (s *JMESPathChecksServiceOp) Create(ctx context.Context, createRequest *JMESPathCheckCreateRequest) (*JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) Delete(ctx context.Context, jmespathCheckID int) (*Response, error)
- func (s *JMESPathChecksServiceOp) GetByID(ctx context.Context, jmespathCheckID int) (*JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) GetByName(ctx context.Context, name string) (*JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) Update(ctx context.Context, jmespathCheckID int, ...) (*JMESPathCheck, *Response, error)
- type LDAPConfig
- type ListOptions
- type MDMACMEIssuer
- type MDMACMEIssuerRequest
- type MDMACMEIssuersService
- type MDMACMEIssuersServiceOp
- func (s *MDMACMEIssuersServiceOp) Create(ctx context.Context, createRequest *MDMACMEIssuerRequest) (*MDMACMEIssuer, *Response, error)
- func (s *MDMACMEIssuersServiceOp) Delete(ctx context.Context, maiID string) (*Response, error)
- func (s *MDMACMEIssuersServiceOp) GetByID(ctx context.Context, maiID string) (*MDMACMEIssuer, *Response, error)
- func (s *MDMACMEIssuersServiceOp) GetByName(ctx context.Context, name string) (*MDMACMEIssuer, *Response, error)
- func (s *MDMACMEIssuersServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMACMEIssuer, *Response, error)
- func (s *MDMACMEIssuersServiceOp) Update(ctx context.Context, maiID string, updateRequest *MDMACMEIssuerRequest) (*MDMACMEIssuer, *Response, error)
- type MDMArtifact
- type MDMArtifactRequest
- type MDMArtifactVersion
- type MDMArtifactVersionRequest
- type MDMArtifactsService
- type MDMArtifactsServiceOp
- func (s *MDMArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) Delete(ctx context.Context, maID string) (*Response, error)
- func (s *MDMArtifactsServiceOp) GetByID(ctx context.Context, maID string) (*MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) GetByName(ctx context.Context, name string) (*MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) Update(ctx context.Context, maID string, updateRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
- type MDMBlueprint
- type MDMBlueprintArtifact
- type MDMBlueprintArtifactRequest
- type MDMBlueprintArtifactsService
- type MDMBlueprintArtifactsServiceOp
- func (s *MDMBlueprintArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) Delete(ctx context.Context, mbaID int) (*Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) GetByID(ctx context.Context, mbaID int) (*MDMBlueprintArtifact, *Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprintArtifact, *Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) Update(ctx context.Context, mbaID int, updateRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
- type MDMBlueprintRequest
- type MDMBlueprintsService
- type MDMBlueprintsServiceOp
- func (s *MDMBlueprintsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) Delete(ctx context.Context, mbID int) (*Response, error)
- func (s *MDMBlueprintsServiceOp) GetByID(ctx context.Context, mbID int) (*MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) GetByName(ctx context.Context, name string) (*MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) Update(ctx context.Context, mbID int, updateRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
- type MDMCertAsset
- type MDMCertAssetRDN
- type MDMCertAssetRequest
- type MDMCertAssetSubjectAltName
- type MDMCertAssetsService
- type MDMCertAssetsServiceOp
- func (s *MDMCertAssetsServiceOp) Create(ctx context.Context, createRequest *MDMCertAssetRequest) (*MDMCertAsset, *Response, error)
- func (s *MDMCertAssetsServiceOp) Delete(ctx context.Context, mcaID string) (*Response, error)
- func (s *MDMCertAssetsServiceOp) GetByID(ctx context.Context, mcaID string) (*MDMCertAsset, *Response, error)
- func (s *MDMCertAssetsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMCertAsset, *Response, error)
- func (s *MDMCertAssetsServiceOp) Update(ctx context.Context, mcaID string, updateRequest *MDMCertAssetRequest) (*MDMCertAsset, *Response, error)
- type MDMDEPEnrollment
- type MDMDEPEnrollmentCustomView
- type MDMDEPEnrollmentCustomViewRequest
- type MDMDEPEnrollmentCustomViewsService
- type MDMDEPEnrollmentCustomViewsServiceOp
- func (s *MDMDEPEnrollmentCustomViewsServiceOp) Create(ctx context.Context, createRequest *MDMDEPEnrollmentCustomViewRequest) (*MDMDEPEnrollmentCustomView, *Response, error)
- func (s *MDMDEPEnrollmentCustomViewsServiceOp) Delete(ctx context.Context, depCustomViewID string) (*Response, error)
- func (service *MDMDEPEnrollmentCustomViewsServiceOp) GetByID(ctx context.Context, depEnrollmentID string) (*MDMDEPEnrollmentCustomView, *Response, error)
- func (service *MDMDEPEnrollmentCustomViewsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDEPEnrollmentCustomView, *Response, error)
- func (s *MDMDEPEnrollmentCustomViewsServiceOp) Update(ctx context.Context, depCustomViewID string, ...) (*MDMDEPEnrollmentCustomView, *Response, error)
- type MDMDEPEnrollmentRequest
- type MDMDEPEnrollmentsService
- type MDMDEPEnrollmentsServiceOp
- func (s *MDMDEPEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MDMDEPEnrollmentRequest) (*MDMDEPEnrollment, *Response, error)
- func (s *MDMDEPEnrollmentsServiceOp) Delete(ctx context.Context, enrollmentID int) (*Response, error)
- func (service *MDMDEPEnrollmentsServiceOp) GetByID(ctx context.Context, enrollmentID int) (*MDMDEPEnrollment, *Response, error)
- func (service *MDMDEPEnrollmentsServiceOp) GetByName(ctx context.Context, name string) (*MDMDEPEnrollment, *Response, error)
- func (service *MDMDEPEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDEPEnrollment, *Response, error)
- func (s *MDMDEPEnrollmentsServiceOp) Update(ctx context.Context, enrollmentID int, updateRequest *MDMDEPEnrollmentRequest) (*MDMDEPEnrollment, *Response, error)
- type MDMDEPVirtualServer
- type MDMDEPVirtualServersService
- type MDMDEPVirtualServersServiceOp
- func (service *MDMDEPVirtualServersServiceOp) GetByID(ctx context.Context, virtualServerID int) (*MDMDEPVirtualServer, *Response, error)
- func (service *MDMDEPVirtualServersServiceOp) GetByName(ctx context.Context, name string) ([]MDMDEPVirtualServer, *Response, error)
- func (service *MDMDEPVirtualServersServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDEPVirtualServer, *Response, error)
- type MDMDataAsset
- type MDMDataAssetRequest
- type MDMDataAssetsService
- type MDMDataAssetsServiceOp
- func (s *MDMDataAssetsServiceOp) Create(ctx context.Context, createRequest *MDMDataAssetRequest) (*MDMDataAsset, *Response, error)
- func (s *MDMDataAssetsServiceOp) Delete(ctx context.Context, mdaID string) (*Response, error)
- func (s *MDMDataAssetsServiceOp) GetByID(ctx context.Context, mdaID string) (*MDMDataAsset, *Response, error)
- func (s *MDMDataAssetsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDataAsset, *Response, error)
- func (s *MDMDataAssetsServiceOp) Update(ctx context.Context, mdaID string, updateRequest *MDMDataAssetRequest) (*MDMDataAsset, *Response, error)
- type MDMDeclaration
- type MDMDeclarationRequest
- type MDMDeclarationSource
- type MDMDeclarationsService
- type MDMDeclarationsServiceOp
- func (s *MDMDeclarationsServiceOp) Create(ctx context.Context, createRequest *MDMDeclarationRequest) (*MDMDeclaration, *Response, error)
- func (s *MDMDeclarationsServiceOp) Delete(ctx context.Context, mdID string) (*Response, error)
- func (s *MDMDeclarationsServiceOp) GetByID(ctx context.Context, mdID string) (*MDMDeclaration, *Response, error)
- func (s *MDMDeclarationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDeclaration, *Response, error)
- func (s *MDMDeclarationsServiceOp) Update(ctx context.Context, mdID string, updateRequest *MDMDeclarationRequest) (*MDMDeclaration, *Response, error)
- type MDMEnrollmentCustomView
- type MDMEnrollmentCustomViewRequest
- type MDMEnrollmentCustomViewsService
- type MDMEnrollmentCustomViewsServiceOp
- func (s *MDMEnrollmentCustomViewsServiceOp) Create(ctx context.Context, createRequest *MDMEnrollmentCustomViewRequest) (*MDMEnrollmentCustomView, *Response, error)
- func (s *MDMEnrollmentCustomViewsServiceOp) Delete(ctx context.Context, customViewID string) (*Response, error)
- func (service *MDMEnrollmentCustomViewsServiceOp) GetByID(ctx context.Context, customViewID string) (*MDMEnrollmentCustomView, *Response, error)
- func (service *MDMEnrollmentCustomViewsServiceOp) GetByName(ctx context.Context, name string) (*MDMEnrollmentCustomView, *Response, error)
- func (service *MDMEnrollmentCustomViewsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMEnrollmentCustomView, *Response, error)
- func (s *MDMEnrollmentCustomViewsServiceOp) Update(ctx context.Context, customViewID string, ...) (*MDMEnrollmentCustomView, *Response, error)
- type MDMEnterpriseApp
- type MDMEnterpriseAppRequest
- type MDMEnterpriseAppsService
- type MDMEnterpriseAppsServiceOp
- func (s *MDMEnterpriseAppsServiceOp) Create(ctx context.Context, createRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
- func (s *MDMEnterpriseAppsServiceOp) Delete(ctx context.Context, meaID string) (*Response, error)
- func (s *MDMEnterpriseAppsServiceOp) GetByID(ctx context.Context, meaID string) (*MDMEnterpriseApp, *Response, error)
- func (s *MDMEnterpriseAppsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMEnterpriseApp, *Response, error)
- func (s *MDMEnterpriseAppsServiceOp) Update(ctx context.Context, meaID string, updateRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
- type MDMFileVaultConfig
- type MDMFileVaultConfigRequest
- type MDMFileVaultConfigsService
- type MDMFileVaultConfigsServiceOp
- func (s *MDMFileVaultConfigsServiceOp) Create(ctx context.Context, createRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) Delete(ctx context.Context, mfcID int) (*Response, error)
- func (s *MDMFileVaultConfigsServiceOp) GetByID(ctx context.Context, mfcID int) (*MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) Update(ctx context.Context, mfcID int, updateRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
- type MDMLocation
- type MDMLocationAsset
- type MDMLocationAssetsService
- type MDMLocationAssetsServiceOp
- type MDMLocationsService
- type MDMLocationsServiceOp
- func (s *MDMLocationsServiceOp) GetByID(ctx context.Context, mlID int) (*MDMLocation, *Response, error)
- func (s *MDMLocationsServiceOp) GetByMDMInfoID(ctx context.Context, mii string) (*MDMLocation, *Response, error)
- func (s *MDMLocationsServiceOp) GetByName(ctx context.Context, name string) (*MDMLocation, *Response, error)
- func (s *MDMLocationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMLocation, *Response, error)
- type MDMOTAEnrollment
- type MDMOTAEnrollmentRequest
- type MDMOTAEnrollmentsService
- type MDMOTAEnrollmentsServiceOp
- func (s *MDMOTAEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MDMOTAEnrollmentRequest) (*MDMOTAEnrollment, *Response, error)
- func (s *MDMOTAEnrollmentsServiceOp) Delete(ctx context.Context, moeID int) (*Response, error)
- func (s *MDMOTAEnrollmentsServiceOp) GetByID(ctx context.Context, moeID int) (*MDMOTAEnrollment, *Response, error)
- func (s *MDMOTAEnrollmentsServiceOp) GetByName(ctx context.Context, name string) (*MDMOTAEnrollment, *Response, error)
- func (s *MDMOTAEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMOTAEnrollment, *Response, error)
- func (s *MDMOTAEnrollmentsServiceOp) Update(ctx context.Context, moeID int, updateRequest *MDMOTAEnrollmentRequest) (*MDMOTAEnrollment, *Response, error)
- type MDMProfile
- type MDMProfileRequest
- type MDMProfilesService
- type MDMProfilesServiceOp
- func (s *MDMProfilesServiceOp) Create(ctx context.Context, createRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
- func (s *MDMProfilesServiceOp) Delete(ctx context.Context, mpID string) (*Response, error)
- func (s *MDMProfilesServiceOp) GetByID(ctx context.Context, mpID string) (*MDMProfile, *Response, error)
- func (s *MDMProfilesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMProfile, *Response, error)
- func (s *MDMProfilesServiceOp) Update(ctx context.Context, mpID string, updateRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
- type MDMPushCertificate
- type MDMPushCertificatesService
- type MDMPushCertificatesServiceOp
- func (s *MDMPushCertificatesServiceOp) GetByID(ctx context.Context, mpcID int) (*MDMPushCertificate, *Response, error)
- func (s *MDMPushCertificatesServiceOp) GetByName(ctx context.Context, name string) (*MDMPushCertificate, *Response, error)
- func (s *MDMPushCertificatesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMPushCertificate, *Response, error)
- type MDMRecoveryPasswordConfig
- type MDMRecoveryPasswordConfigRequest
- type MDMRecoveryPasswordConfigsService
- type MDMRecoveryPasswordConfigsServiceOp
- func (s *MDMRecoveryPasswordConfigsServiceOp) Create(ctx context.Context, createRequest *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) Delete(ctx context.Context, mrpcID int) (*Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) GetByID(ctx context.Context, mrpcID int) (*MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) Update(ctx context.Context, mrpcID int, ...) (*MDMRecoveryPasswordConfig, *Response, error)
- type MDMSCEPIssuer
- type MDMSCEPIssuerRequest
- type MDMSCEPIssuersService
- type MDMSCEPIssuersServiceOp
- func (s *MDMSCEPIssuersServiceOp) Create(ctx context.Context, createRequest *MDMSCEPIssuerRequest) (*MDMSCEPIssuer, *Response, error)
- func (s *MDMSCEPIssuersServiceOp) Delete(ctx context.Context, msiID string) (*Response, error)
- func (s *MDMSCEPIssuersServiceOp) GetByID(ctx context.Context, msiID string) (*MDMSCEPIssuer, *Response, error)
- func (s *MDMSCEPIssuersServiceOp) GetByName(ctx context.Context, name string) (*MDMSCEPIssuer, *Response, error)
- func (s *MDMSCEPIssuersServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMSCEPIssuer, *Response, error)
- func (s *MDMSCEPIssuersServiceOp) Update(ctx context.Context, msiID string, updateRequest *MDMSCEPIssuerRequest) (*MDMSCEPIssuer, *Response, error)
- type MDMSoftwareUpdateEnforcement
- type MDMSoftwareUpdateEnforcementRequest
- type MDMSoftwareUpdateEnforcementsService
- type MDMSoftwareUpdateEnforcementsServiceOp
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) Create(ctx context.Context, createRequest *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) Delete(ctx context.Context, msueID int) (*Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByID(ctx context.Context, msueID int) (*MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByName(ctx context.Context, name string) (*MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) Update(ctx context.Context, msueID int, ...) (*MDMSoftwareUpdateEnforcement, *Response, error)
- type MDMStoreApp
- type MDMStoreAppRequest
- type MDMStoreAppsService
- type MDMStoreAppsServiceOp
- func (s *MDMStoreAppsServiceOp) Create(ctx context.Context, createRequest *MDMStoreAppRequest) (*MDMStoreApp, *Response, error)
- func (s *MDMStoreAppsServiceOp) Delete(ctx context.Context, msaID string) (*Response, error)
- func (s *MDMStoreAppsServiceOp) GetByID(ctx context.Context, msaID string) (*MDMStoreApp, *Response, error)
- func (s *MDMStoreAppsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMStoreApp, *Response, error)
- func (s *MDMStoreAppsServiceOp) Update(ctx context.Context, msaID string, updateRequest *MDMStoreAppRequest) (*MDMStoreApp, *Response, error)
- type MetaBusinessUnit
- type MetaBusinessUnitCreateRequest
- type MetaBusinessUnitUpdateRequest
- type MetaBusinessUnitsService
- type MetaBusinessUnitsServiceOp
- func (s *MetaBusinessUnitsServiceOp) Create(ctx context.Context, createRequest *MetaBusinessUnitCreateRequest) (*MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) Delete(ctx context.Context, mbuID int) (*Response, error)
- func (s *MetaBusinessUnitsServiceOp) GetByID(ctx context.Context, mbuID int) (*MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) GetByName(ctx context.Context, name string) (*MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) Update(ctx context.Context, mbuID int, updateRequest *MetaBusinessUnitUpdateRequest) (*MetaBusinessUnit, *Response, error)
- type MetadataFilter
- type MicrosoftCA
- type MonolithAzureBackend
- type MonolithCatalog
- type MonolithCatalogRequest
- type MonolithCatalogsService
- type MonolithCatalogsServiceOp
- func (s *MonolithCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) Delete(ctx context.Context, mcID int) (*Response, error)
- func (s *MonolithCatalogsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
- type MonolithCondition
- type MonolithConditionRequest
- type MonolithConditionsService
- type MonolithConditionsServiceOp
- func (s *MonolithConditionsServiceOp) Create(ctx context.Context, createRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) Delete(ctx context.Context, mcID int) (*Response, error)
- func (s *MonolithConditionsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
- type MonolithEnrollment
- type MonolithEnrollmentRequest
- type MonolithEnrollmentsService
- type MonolithEnrollmentsServiceOp
- func (s *MonolithEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) Delete(ctx context.Context, meID int) (*Response, error)
- func (s *MonolithEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
- type MonolithManifest
- type MonolithManifestCatalog
- type MonolithManifestCatalogRequest
- type MonolithManifestCatalogsService
- type MonolithManifestCatalogsServiceOp
- func (s *MonolithManifestCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) Delete(ctx context.Context, mmcID int) (*Response, error)
- func (s *MonolithManifestCatalogsServiceOp) GetByCatalogID(ctx context.Context, mcID int) ([]MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) GetByID(ctx context.Context, mmcID int) (*MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) GetByManifestID(ctx context.Context, mmID int) ([]MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) Update(ctx context.Context, mmcID int, updateRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
- type MonolithManifestEnrollmentPackage
- type MonolithManifestEnrollmentPackageRequest
- type MonolithManifestEnrollmentPackagesService
- type MonolithManifestEnrollmentPackagesServiceOp
- func (s *MonolithManifestEnrollmentPackagesServiceOp) Create(ctx context.Context, createRequest *MonolithManifestEnrollmentPackageRequest) (*MonolithManifestEnrollmentPackage, *Response, error)
- func (s *MonolithManifestEnrollmentPackagesServiceOp) Delete(ctx context.Context, mmepID int) (*Response, error)
- func (s *MonolithManifestEnrollmentPackagesServiceOp) GetByID(ctx context.Context, mmepID int) (*MonolithManifestEnrollmentPackage, *Response, error)
- func (s *MonolithManifestEnrollmentPackagesServiceOp) GetByManifestID(ctx context.Context, mmID int) ([]MonolithManifestEnrollmentPackage, *Response, error)
- func (s *MonolithManifestEnrollmentPackagesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestEnrollmentPackage, *Response, error)
- func (s *MonolithManifestEnrollmentPackagesServiceOp) Update(ctx context.Context, mmepID int, ...) (*MonolithManifestEnrollmentPackage, *Response, error)
- type MonolithManifestRequest
- type MonolithManifestSubManifest
- type MonolithManifestSubManifestRequest
- type MonolithManifestSubManifestsService
- type MonolithManifestSubManifestsServiceOp
- func (s *MonolithManifestSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) Delete(ctx context.Context, msmID int) (*Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) GetBySubManifestID(ctx context.Context, msmID int) ([]MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) Update(ctx context.Context, msmID int, ...) (*MonolithManifestSubManifest, *Response, error)
- type MonolithManifestsService
- type MonolithManifestsServiceOp
- func (s *MonolithManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) Delete(ctx context.Context, mmID int) (*Response, error)
- func (s *MonolithManifestsServiceOp) GetByID(ctx context.Context, mmID int) (*MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) Update(ctx context.Context, mmID int, updateRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
- type MonolithRepositoriesService
- type MonolithRepositoriesServiceOp
- func (s *MonolithRepositoriesServiceOp) Create(ctx context.Context, createRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) Delete(ctx context.Context, mrID int) (*Response, error)
- func (s *MonolithRepositoriesServiceOp) GetByID(ctx context.Context, mrID int) (*MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) GetByName(ctx context.Context, name string) (*MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) Update(ctx context.Context, mrID int, updateRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
- type MonolithRepository
- type MonolithRepositoryRequest
- type MonolithS3Backend
- type MonolithSubManifest
- type MonolithSubManifestPkgInfo
- type MonolithSubManifestPkgInfoRequest
- type MonolithSubManifestPkgInfosService
- type MonolithSubManifestPkgInfosServiceOp
- func (s *MonolithSubManifestPkgInfosServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) Delete(ctx context.Context, smpiID int) (*Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) GetByID(ctx context.Context, smpiID int) (*MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) GetBySubManifestID(ctx context.Context, smID int) ([]MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) Update(ctx context.Context, smpiID int, ...) (*MonolithSubManifestPkgInfo, *Response, error)
- type MonolithSubManifestRequest
- type MonolithSubManifestsService
- type MonolithSubManifestsServiceOp
- func (s *MonolithSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) Delete(ctx context.Context, msmID int) (*Response, error)
- func (s *MonolithSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) Update(ctx context.Context, msmID int, updateRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
- type MunkiConfiguration
- type MunkiConfigurationRequest
- type MunkiConfigurationsService
- type MunkiConfigurationsServiceOp
- func (s *MunkiConfigurationsServiceOp) Create(ctx context.Context, createRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) Delete(ctx context.Context, mcID int) (*Response, error)
- func (s *MunkiConfigurationsServiceOp) GetByID(ctx context.Context, mcID int) (*MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
- type MunkiEnrollment
- type MunkiEnrollmentRequest
- type MunkiEnrollmentsService
- type MunkiEnrollmentsServiceOp
- func (s *MunkiEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) Delete(ctx context.Context, meID int) (*Response, error)
- func (s *MunkiEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
- type MunkiScriptCheck
- type MunkiScriptCheckRequest
- type MunkiScriptChecksService
- type MunkiScriptChecksServiceOp
- func (s *MunkiScriptChecksServiceOp) Create(ctx context.Context, createRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) Delete(ctx context.Context, mscID int) (*Response, error)
- func (s *MunkiScriptChecksServiceOp) GetByID(ctx context.Context, mscID int) (*MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) GetByName(ctx context.Context, name string) (*MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) Update(ctx context.Context, mscID int, updateRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
- type OpenIDCConfig
- type OsqueryATC
- type OsqueryATCRequest
- type OsqueryATCService
- type OsqueryATCServiceOp
- func (s *OsqueryATCServiceOp) Create(ctx context.Context, createRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) Delete(ctx context.Context, oaID int) (*Response, error)
- func (s *OsqueryATCServiceOp) GetByID(ctx context.Context, oaID int) (*OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) GetByName(ctx context.Context, name string) (*OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) Update(ctx context.Context, oaID int, updateRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
- type OsqueryConfiguration
- type OsqueryConfigurationPack
- type OsqueryConfigurationPackRequest
- type OsqueryConfigurationPacksService
- type OsqueryConfigurationPacksServiceOp
- func (s *OsqueryConfigurationPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) Delete(ctx context.Context, ocpID int) (*Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) GetByConfigurationID(ctx context.Context, cfgID int) ([]OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) GetByID(ctx context.Context, ocpID int) (*OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) Update(ctx context.Context, ocpID int, updateRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
- type OsqueryConfigurationRequest
- type OsqueryConfigurationsService
- type OsqueryConfigurationsServiceOp
- func (s *OsqueryConfigurationsServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) Delete(ctx context.Context, ocID int) (*Response, error)
- func (s *OsqueryConfigurationsServiceOp) GetByID(ctx context.Context, ocID int) (*OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) Update(ctx context.Context, ocID int, updateRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
- type OsqueryEnrollment
- type OsqueryEnrollmentRequest
- type OsqueryEnrollmentsService
- type OsqueryEnrollmentsServiceOp
- func (s *OsqueryEnrollmentsServiceOp) Create(ctx context.Context, createRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) Delete(ctx context.Context, oeID int) (*Response, error)
- func (s *OsqueryEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) GetByID(ctx context.Context, oeID int) (*OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) Update(ctx context.Context, oeID int, updateRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
- type OsqueryFileCategoriesService
- type OsqueryFileCategoriesServiceOp
- func (s *OsqueryFileCategoriesServiceOp) Create(ctx context.Context, createRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) Delete(ctx context.Context, ofcID int) (*Response, error)
- func (s *OsqueryFileCategoriesServiceOp) GetByID(ctx context.Context, ofcID int) (*OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) Update(ctx context.Context, ofcID int, updateRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
- type OsqueryFileCategory
- type OsqueryFileCategoryRequest
- type OsqueryPack
- type OsqueryPackRequest
- type OsqueryPacksService
- type OsqueryPacksServiceOp
- func (s *OsqueryPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) Delete(ctx context.Context, opID int) (*Response, error)
- func (s *OsqueryPacksServiceOp) GetByID(ctx context.Context, opID int) (*OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) GetByName(ctx context.Context, name string) (*OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) Update(ctx context.Context, opID int, updateRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
- type OsqueryQueriesService
- type OsqueryQueriesServiceOp
- func (s *OsqueryQueriesServiceOp) Create(ctx context.Context, createRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) Delete(ctx context.Context, oqID int) (*Response, error)
- func (s *OsqueryQueriesServiceOp) GetByID(ctx context.Context, oqID int) (*OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) Update(ctx context.Context, oqID int, updateRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
- type OsqueryQuery
- type OsqueryQueryRequest
- type OsqueryQueryScheduling
- type OsqueryQuerySchedulingRequest
- type PaginatedResults
- type PayloadFilterItem
- type Probe
- type ProbeAction
- type ProbeActionHTTPPost
- type ProbeActionRequest
- type ProbeActionSlackIncomingWebhook
- type ProbeRequest
- type ProbesActionsService
- type ProbesActionsServiceOp
- func (s *ProbesActionsServiceOp) Create(ctx context.Context, createRequest *ProbeActionRequest) (*ProbeAction, *Response, error)
- func (s *ProbesActionsServiceOp) Delete(ctx context.Context, paID string) (*Response, error)
- func (s *ProbesActionsServiceOp) GetByID(ctx context.Context, paID string) (*ProbeAction, *Response, error)
- func (s *ProbesActionsServiceOp) GetByName(ctx context.Context, name string) (*ProbeAction, *Response, error)
- func (s *ProbesActionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]ProbeAction, *Response, error)
- func (s *ProbesActionsServiceOp) Update(ctx context.Context, paID string, updateRequest *ProbeActionRequest) (*ProbeAction, *Response, error)
- type ProbesService
- type ProbesServiceOp
- func (s *ProbesServiceOp) Create(ctx context.Context, createRequest *ProbeRequest) (*Probe, *Response, error)
- func (s *ProbesServiceOp) Delete(ctx context.Context, pID int) (*Response, error)
- func (s *ProbesServiceOp) GetByID(ctx context.Context, pID int) (*Probe, *Response, error)
- func (s *ProbesServiceOp) GetByName(ctx context.Context, name string) (*Probe, *Response, error)
- func (s *ProbesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Probe, *Response, error)
- func (s *ProbesServiceOp) Update(ctx context.Context, pID int, updateRequest *ProbeRequest) (*Probe, *Response, error)
- type RealmsRealm
- type RealmsRealmsService
- type RealmsRealmsServiceOp
- func (s *RealmsRealmsServiceOp) GetByName(ctx context.Context, name string) (*RealmsRealm, *Response, error)
- func (s *RealmsRealmsServiceOp) GetByUUID(ctx context.Context, rUUID string) (*RealmsRealm, *Response, error)
- func (s *RealmsRealmsServiceOp) List(ctx context.Context, opt *ListOptions) ([]RealmsRealm, *Response, error)
- type Response
- type SAMLConfig
- type SantaConfiguration
- type SantaConfigurationRequest
- type SantaConfigurationsService
- type SantaConfigurationsServiceOp
- func (s *SantaConfigurationsServiceOp) Create(ctx context.Context, createRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) Delete(ctx context.Context, scID int) (*Response, error)
- func (s *SantaConfigurationsServiceOp) GetByID(ctx context.Context, scID int) (*SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) Update(ctx context.Context, scID int, updateRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
- type SantaEnrollment
- type SantaEnrollmentRequest
- type SantaEnrollmentsService
- type SantaEnrollmentsServiceOp
- func (s *SantaEnrollmentsServiceOp) Create(ctx context.Context, createRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) Delete(ctx context.Context, seID int) (*Response, error)
- func (s *SantaEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) GetByID(ctx context.Context, seID int) (*SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) Update(ctx context.Context, seID int, updateRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
- type SantaRule
- type SantaRuleRequest
- type SantaRulesService
- type SantaRulesServiceOp
- func (s *SantaRulesServiceOp) Create(ctx context.Context, createRequest *SantaRuleRequest) (*SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) Delete(ctx context.Context, srID int) (*Response, error)
- func (s *SantaRulesServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) GetByID(ctx context.Context, srID int) (*SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) GetByTargetIdentifier(ctx context.Context, target_identifier string) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) GetByTargetType(ctx context.Context, target_type string) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) Update(ctx context.Context, srID int, updateRequest *SantaRuleRequest) (*SantaRule, *Response, error)
- type StaticChallenge
- type Store
- type StoreHTTP
- type StoreKinesis
- type StorePanther
- type StoreRequest
- type StoreSplunk
- type StoresService
- type StoresServiceOp
- func (s *StoresServiceOp) Create(ctx context.Context, createRequest *StoreRequest) (*Store, *Response, error)
- func (s *StoresServiceOp) Delete(ctx context.Context, sID string) (*Response, error)
- func (s *StoresServiceOp) GetByID(ctx context.Context, sID string) (*Store, *Response, error)
- func (s *StoresServiceOp) GetByName(ctx context.Context, name string) (*Store, *Response, error)
- func (s *StoresServiceOp) List(ctx context.Context, opt *ListOptions) ([]Store, *Response, error)
- func (s *StoresServiceOp) Update(ctx context.Context, sID string, updateRequest *StoreRequest) (*Store, *Response, error)
- type Tag
- type TagCreateRequest
- type TagShard
- type TagUpdateRequest
- type TagsService
- type TagsServiceOp
- func (s *TagsServiceOp) Create(ctx context.Context, createRequest *TagCreateRequest) (*Tag, *Response, error)
- func (s *TagsServiceOp) Delete(ctx context.Context, tagID int) (*Response, error)
- func (s *TagsServiceOp) GetByID(ctx context.Context, tagID int) (*Tag, *Response, error)
- func (s *TagsServiceOp) GetByName(ctx context.Context, name string) (*Tag, *Response, error)
- func (s *TagsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Tag, *Response, error)
- func (s *TagsServiceOp) Update(ctx context.Context, tagID int, updateRequest *TagUpdateRequest) (*Tag, *Response, error)
- type TaxonomiesService
- type TaxonomiesServiceOp
- func (s *TaxonomiesServiceOp) Create(ctx context.Context, createRequest *TaxonomyCreateRequest) (*Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) Delete(ctx context.Context, TaxonomyID int) (*Response, error)
- func (s *TaxonomiesServiceOp) GetByID(ctx context.Context, TaxonomyID int) (*Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) GetByName(ctx context.Context, name string) (*Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) Update(ctx context.Context, TaxonomyID int, updateRequest *TaxonomyUpdateRequest) (*Taxonomy, *Response, error)
- type Taxonomy
- type TaxonomyCreateRequest
- type TaxonomyUpdateRequest
- type Timestamp
Constants ¶
const TaxonomyBasePath = "inventory/taxonomies/"
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. API error responses are expected to have either no response body, or a JSON response body that maps to ErrorResponse. Any other response body will be silently ignored. If the API error response does not include the request ID in its body, the one from its header will be used.
func DoRequestWithClient ¶
func DoRequestWithClient( ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
DoRequestWithClient submits an HTTP request using the specified client.
func Int ¶
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
func String ¶ added in v0.1.13
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
Types ¶
type ArgError ¶
type ArgError struct {
// contains filtered or unexported fields
}
ArgError is an error that represents an error with an input to goztl. It identifies the argument and the cause (if possible).
func NewArgError ¶
NewArgError creates an InputError.
type Client ¶
type Client struct {
// Base URL for API requests.
BaseURL *url.URL
// User agent for client
UserAgent string
// Services used for communicating with the API
// Google Workspace
GWSConnections GWSConnectionsService
GWSGroupTagMappings GWSGroupTagMappingsService
// Inventory
JMESPathChecks JMESPathChecksService
MetaBusinessUnits MetaBusinessUnitsService
Tags TagsService
Taxonomies TaxonomiesService
// MDM
MDMACMEIssuers MDMACMEIssuersService
MDMArtifacts MDMArtifactsService
MDMBlueprints MDMBlueprintsService
MDMBlueprintArtifacts MDMBlueprintArtifactsService
MDMDataAssets MDMDataAssetsService
MDMCertAssets MDMCertAssetsService
MDMDeclarations MDMDeclarationsService
MDMDEPEnrollments MDMDEPEnrollmentsService
MDMDEPEnrollmentCustomViews MDMDEPEnrollmentCustomViewsService
MDMDEPVirtualServers MDMDEPVirtualServersService
MDMEnterpriseApps MDMEnterpriseAppsService
MDMEnrollmentCustomViews MDMEnrollmentCustomViewsService
MDMFileVaultConfigs MDMFileVaultConfigsService
MDMLocations MDMLocationsService
MDMLocationAssets MDMLocationAssetsService
MDMOTAEnrollments MDMOTAEnrollmentsService
MDMProfiles MDMProfilesService
MDMPushCertificates MDMPushCertificatesService
MDMRecoveryPasswordConfigs MDMRecoveryPasswordConfigsService
MDMSCEPIssuers MDMSCEPIssuersService
MDMSoftwareUpdateEnforcements MDMSoftwareUpdateEnforcementsService
MDMStoreApps MDMStoreAppsService
// Monolith
MonolithCatalogs MonolithCatalogsService
MonolithConditions MonolithConditionsService
MonolithEnrollments MonolithEnrollmentsService
MonolithManifests MonolithManifestsService
MonolithManifestCatalogs MonolithManifestCatalogsService
MonolithManifestEnrollmentPackages MonolithManifestEnrollmentPackagesService
MonolithManifestSubManifests MonolithManifestSubManifestsService
MonolithRepositories MonolithRepositoriesService
MonolithSubManifests MonolithSubManifestsService
MonolithSubManifestPkgInfos MonolithSubManifestPkgInfosService
// Munki
MunkiConfigurations MunkiConfigurationsService
MunkiEnrollments MunkiEnrollmentsService
MunkiScriptChecks MunkiScriptChecksService
// Osquery
OsqueryATC OsqueryATCService
OsqueryConfigurations OsqueryConfigurationsService
OsqueryConfigurationPacks OsqueryConfigurationPacksService
OsqueryEnrollments OsqueryEnrollmentsService
OsqueryFileCategories OsqueryFileCategoriesService
OsqueryPacks OsqueryPacksService
OsqueryQueries OsqueryQueriesService
// Probes
Probes ProbesService
ProbesActions ProbesActionsService
// Realms
RealmsRealms RealmsRealmsService
// Santa
SantaConfigurations SantaConfigurationsService
SantaEnrollments SantaEnrollmentsService
SantaRules SantaRulesService
// Stores
Stores StoresService
// contains filtered or unexported fields
}
Client manages communication with Zentral API.
func NewClient ¶
func NewClient(httpClient *http.Client, bu string, token string, opts ...ClientOpt) (*Client, error)
NewClient returns a new Zentral API client with the given base URL and API token.
func (*Client) Do ¶
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.
func (*Client) NewRequest ¶
func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error)
NewRequest creates an API request. A relative URL can be provided in urlStr, which will be resolved to the BaseURL of the Client. Relative URLS should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included in as the request body.
type ClientOpt ¶
ClientOpt are options for New.
func SetRequestHeaders ¶
SetRequestHeaders sets optional HTTP headers on the client that are sent on each HTTP request.
func SetUserAgent ¶
SetUserAgent is a client option for setting the user agent.
type Digicert ¶ added in v0.1.62
type Digicert struct {
APIBaseURL string `json:"api_base_url"`
APIToken string `json:"api_token"`
ProfileGUID string `json:"profile_guid"`
BusinessUnitGUID string `json:"business_unit_guid"`
SeatType string `json:"seat_type"`
SeatIDMapping string `json:"seat_id_mapping"`
DefaultSeatEmail string `json:"default_seat_email"`
}
type EnrollmentSecret ¶ added in v0.1.7
type EnrollmentSecret struct {
ID int `json:"id"`
Secret string `json:"secret"`
MetaBusinessUnitID int `json:"meta_business_unit"`
TagIDs []int `json:"tags"`
SerialNumbers []string `json:"serial_numbers"`
UDIDs []string `json:"udids"`
Quota *int `json:"quota"`
RequestCount int `json:"request_count"`
}
type EnrollmentSecretRequest ¶ added in v0.1.7
type ErrorResponse ¶
type ErrorResponse struct {
// HTTP response that caused this error
Response *http.Response
// Error message
Message string `json:"message"`
}
An ErrorResponse reports the error caused by an API request
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type EventFilter ¶ added in v0.1.57
type EventFilterSet ¶ added in v0.1.57
type EventFilterSet struct {
ExcludedEventFilters []EventFilter `json:"excluded_event_filters,omitempty"`
IncludedEventFilters []EventFilter `json:"included_event_filters,omitempty"`
}
type GWSConnection ¶ added in v0.1.65
type GWSConnection struct {
ID string `json:"id"`
Name string `json:"name"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
GWSConnection represents a Zentral Google Workspace connection
func (GWSConnection) String ¶ added in v0.1.65
func (connection GWSConnection) String() string
type GWSConnectionsService ¶ added in v0.1.65
type GWSConnectionsService interface {
List(context.Context, *ListOptions) ([]GWSConnection, *Response, error)
GetByID(context.Context, string) (*GWSConnection, *Response, error)
GetByName(context.Context, string) (*GWSConnection, *Response, error)
}
GWSCpnnectionsService is an interface for interfacing with the Google Workspace connections endpoints of the Zentral API.
type GWSConnectionsServiceOp ¶ added in v0.1.65
type GWSConnectionsServiceOp struct {
// contains filtered or unexported fields
}
GWSConnectionsServiceOp handles communication with the Google Workspace connections related methods of the Zentral API.
func (*GWSConnectionsServiceOp) GetByID ¶ added in v0.1.65
func (s *GWSConnectionsServiceOp) GetByID(ctx context.Context, gwsConnectionID string) (*GWSConnection, *Response, error)
GetByID retrieves a Zentral Google Workspace connection by id.
func (*GWSConnectionsServiceOp) GetByName ¶ added in v0.1.65
func (s *GWSConnectionsServiceOp) GetByName(ctx context.Context, name string) (*GWSConnection, *Response, error)
GetByName retrieves a Google Workspace connection by name.
func (*GWSConnectionsServiceOp) List ¶ added in v0.1.65
func (s *GWSConnectionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]GWSConnection, *Response, error)
List lists all the Zentral Google Workspace connections.
type GWSGroupTagMapping ¶ added in v0.1.65
type GWSGroupTagMapping struct {
ID string `json:"id"`
GroupEmail string `json:"group_email"`
ConnectionID string `json:"connection"`
TagIDs []int `json:"tags"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
GWSGroupTagMapping represents a Zentral Google Workspace group tag mapping
func (GWSGroupTagMapping) String ¶ added in v0.1.65
func (mapping GWSGroupTagMapping) String() string
type GWSGroupTagMappingRequest ¶ added in v0.1.65
type GWSGroupTagMappingRequest struct {
GroupEmail string `json:"group_email"`
ConnectionID string `json:"connection"`
TagIDs []int `json:"tags"`
}
GWSGroupTagMappingRequest represents a request to create or update a Google Workspace group tag mapping.
type GWSGroupTagMappingsService ¶ added in v0.1.65
type GWSGroupTagMappingsService interface {
List(context.Context, *ListOptions) ([]GWSGroupTagMapping, *Response, error)
GetByID(context.Context, string) (*GWSGroupTagMapping, *Response, error)
GetByConnectionID(context.Context, string) ([]GWSGroupTagMapping, *Response, error)
GetByGroupEmail(context.Context, string) ([]GWSGroupTagMapping, *Response, error)
Create(context.Context, *GWSGroupTagMappingRequest) (*GWSGroupTagMapping, *Response, error)
Update(context.Context, string, *GWSGroupTagMappingRequest) (*GWSGroupTagMapping, *Response, error)
Delete(context.Context, string) (*Response, error)
}
GWSGroupTagMappingsService is an interface for interfacing with the Google Workspace group tag mapping endpoints of the Zentral API.
type GWSGroupTagMappingsServiceOp ¶ added in v0.1.65
type GWSGroupTagMappingsServiceOp struct {
// contains filtered or unexported fields
}
GWSConnectionsServiceOp handles communication with the Google Workspace group tag mapping endpoints of the Zentral API.
func (*GWSGroupTagMappingsServiceOp) Create ¶ added in v0.1.65
func (s *GWSGroupTagMappingsServiceOp) Create(ctx context.Context, createRequest *GWSGroupTagMappingRequest) (*GWSGroupTagMapping, *Response, error)
Create a new Google Workspace group tag mapping.
func (*GWSGroupTagMappingsServiceOp) Delete ¶ added in v0.1.65
func (s *GWSGroupTagMappingsServiceOp) Delete(ctx context.Context, gwsGroupTagMappingID string) (*Response, error)
Delete a Google Workspace group tag mapping.
func (*GWSGroupTagMappingsServiceOp) GetByConnectionID ¶ added in v0.1.65
func (s *GWSGroupTagMappingsServiceOp) GetByConnectionID(ctx context.Context, connectionID string) ([]GWSGroupTagMapping, *Response, error)
GetByConnectionID retrieves Google Workspace group tag mappings by connection.
func (*GWSGroupTagMappingsServiceOp) GetByGroupEmail ¶ added in v0.1.65
func (s *GWSGroupTagMappingsServiceOp) GetByGroupEmail(ctx context.Context, groupEmail string) ([]GWSGroupTagMapping, *Response, error)
GetByGroupEmail retrieves Google Workspace group tag mappings by group email.
func (*GWSGroupTagMappingsServiceOp) GetByID ¶ added in v0.1.65
func (s *GWSGroupTagMappingsServiceOp) GetByID(ctx context.Context, gwsGroupTagMappingID string) (*GWSGroupTagMapping, *Response, error)
GetByID retrieves a Google Workspace group tag mapping by id.
func (*GWSGroupTagMappingsServiceOp) List ¶ added in v0.1.65
func (s *GWSGroupTagMappingsServiceOp) List(ctx context.Context, opt *ListOptions) ([]GWSGroupTagMapping, *Response, error)
List lists all Google Workspace group tag mappings.
func (*GWSGroupTagMappingsServiceOp) Update ¶ added in v0.1.65
func (s *GWSGroupTagMappingsServiceOp) Update(ctx context.Context, gwsGroupTagMappingID string, updateRequest *GWSGroupTagMappingRequest) (*GWSGroupTagMapping, *Response, error)
Update a Google Workspace group tag mapping.
type HTTPHeader ¶ added in v0.1.57
type InventoryFilter ¶ added in v0.1.55
type JMESPathCheck ¶ added in v0.1.3
type JMESPathCheck struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
SourceName string `json:"source_name"`
Platforms []string `json:"platforms"`
TagIDs []int `json:"tags"`
JMESPathExpression string `json:"jmespath_expression"`
Version int `json:"version"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
JMESPathCheck represents a Zentral JMESPath check.
func (JMESPathCheck) String ¶ added in v0.1.3
func (jmespath_check JMESPathCheck) String() string
type JMESPathCheckCreateRequest ¶ added in v0.1.3
type JMESPathCheckCreateRequest struct {
Name string `json:"name"`
Description string `json:"description"`
SourceName string `json:"source_name"`
Platforms []string `json:"platforms"`
TagIDs []int `json:"tags"`
JMESPathExpression string `json:"jmespath_expression"`
}
JMESPathCheckCreateRequest represents a request to create a JMESPath check.
type JMESPathCheckUpdateRequest ¶ added in v0.1.3
type JMESPathCheckUpdateRequest struct {
Name string `json:"name"`
Description string `json:"description"`
SourceName string `json:"source_name"`
Platforms []string `json:"platforms"`
TagIDs []int `json:"tags"`
JMESPathExpression string `json:"jmespath_expression"`
}
JMESPathCheckUpdateRequest represents a request to update a JMESPath check.
type JMESPathChecksService ¶ added in v0.1.3
type JMESPathChecksService interface {
List(context.Context, *ListOptions) ([]JMESPathCheck, *Response, error)
GetByID(context.Context, int) (*JMESPathCheck, *Response, error)
GetByName(context.Context, string) (*JMESPathCheck, *Response, error)
Create(context.Context, *JMESPathCheckCreateRequest) (*JMESPathCheck, *Response, error)
Update(context.Context, int, *JMESPathCheckUpdateRequest) (*JMESPathCheck, *Response, error)
Delete(context.Context, int) (*Response, error)
}
JMESPathChecksService is an interface for interfacing with the JMESPath checks endpoints of the Zentral API.
type JMESPathChecksServiceOp ¶ added in v0.1.3
type JMESPathChecksServiceOp struct {
// contains filtered or unexported fields
}
JMESPathChecksServiceOp handles communication with the jmespath_checks related methods of the Zentral API.
func (*JMESPathChecksServiceOp) Create ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) Create(ctx context.Context, createRequest *JMESPathCheckCreateRequest) (*JMESPathCheck, *Response, error)
Create a new jmespath_check.
func (*JMESPathChecksServiceOp) Delete ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) Delete(ctx context.Context, jmespathCheckID int) (*Response, error)
Delete a jmespath_check.
func (*JMESPathChecksServiceOp) GetByID ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) GetByID(ctx context.Context, jmespathCheckID int) (*JMESPathCheck, *Response, error)
GetByID retrieves a jmespath_check by id.
func (*JMESPathChecksServiceOp) GetByName ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) GetByName(ctx context.Context, name string) (*JMESPathCheck, *Response, error)
GetByName retrieves a jmespath_check by name.
func (*JMESPathChecksServiceOp) List ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]JMESPathCheck, *Response, error)
List lists all the jmespath_checks.
func (*JMESPathChecksServiceOp) Update ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) Update(ctx context.Context, jmespathCheckID int, updateRequest *JMESPathCheckUpdateRequest) (*JMESPathCheck, *Response, error)
Update a jmespath_check.
type LDAPConfig ¶ added in v0.1.51
type LDAPConfig struct {
Host string `json:"host"`
BindDN string `json:"bind_dn"`
BindPassword string `json:"bind_password"`
UsersBaseDN string `json:"users_base_dn"`
}
LDAPConfig represents a Zentral Realm LDAP config
type ListOptions ¶
type ListOptions struct {
// For paginated result sets, maximum number of items to return
Limit int `url:"limit,omitempty"`
// For paginated result sets, starting position of the query in relation
// to the complete set of unpaginated items
Offset int `url:"offset,omitempty"`
}
ListOptions specifies the optional parameters to various List methods that support pagination.
type MDMACMEIssuer ¶ added in v0.1.59
type MDMACMEIssuer struct {
ID string `json:"id"`
ProvisioningUID *string `json:"provisioning_uid"`
Name string `json:"name"`
Description string `json:"description"`
DirectoryURL string `json:"directory_url"`
KeySize int `json:"key_size"`
KeyType string `json:"key_type"`
UsageFlags int `json:"usage_flags"`
ExtendedKeyUsage []string `json:"extended_key_usage"`
HardwareBound bool `json:"hardware_bound"`
Attest bool `json:"attest"`
Backend *string `json:"backend"`
IDent *IDent `json:"ident_kwargs"`
MicrosoftCA *MicrosoftCA `json:"microsoft_ca_kwargs"`
OktaCA *MicrosoftCA `json:"okta_ca_kwargs"`
StaticChallenge *StaticChallenge `json:"static_challenge_kwargs"`
Version int `json:"version"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMACMEIssuer represents a Zentral MDM ACME issuer.
func (MDMACMEIssuer) String ¶ added in v0.1.59
func (mai MDMACMEIssuer) String() string
type MDMACMEIssuerRequest ¶ added in v0.1.59
type MDMACMEIssuerRequest struct {
Name string `json:"name"`
Description string `json:"description"`
DirectoryURL string `json:"directory_url"`
KeySize int `json:"key_size"`
KeyType string `json:"key_type"`
UsageFlags int `json:"usage_flags"`
ExtendedKeyUsage []string `json:"extended_key_usage"`
HardwareBound bool `json:"hardware_bound"`
Attest bool `json:"attest"`
Backend string `json:"backend"`
IDent *IDent `json:"ident_kwargs"`
MicrosoftCA *MicrosoftCA `json:"microsoft_ca_kwargs"`
OktaCA *MicrosoftCA `json:"okta_ca_kwargs"`
StaticChallenge *StaticChallenge `json:"static_challenge_kwargs"`
}
MDMACMEIssuerRequest represents a request to create or update a MDM ACME issuer.
type MDMACMEIssuersService ¶ added in v0.1.59
type MDMACMEIssuersService interface {
List(context.Context, *ListOptions) ([]MDMACMEIssuer, *Response, error)
GetByID(context.Context, string) (*MDMACMEIssuer, *Response, error)
GetByName(context.Context, string) (*MDMACMEIssuer, *Response, error)
Create(context.Context, *MDMACMEIssuerRequest) (*MDMACMEIssuer, *Response, error)
Update(context.Context, string, *MDMACMEIssuerRequest) (*MDMACMEIssuer, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMACMEIssuersService is an interface for interfacing with the MDM ACME issuers endpoints of the Zentral API.
type MDMACMEIssuersServiceOp ¶ added in v0.1.59
type MDMACMEIssuersServiceOp struct {
// contains filtered or unexported fields
}
MDMACMEIssuersServiceOp handles communication with the MDM ACME issuers related methods of the Zentral API.
func (*MDMACMEIssuersServiceOp) Create ¶ added in v0.1.59
func (s *MDMACMEIssuersServiceOp) Create(ctx context.Context, createRequest *MDMACMEIssuerRequest) (*MDMACMEIssuer, *Response, error)
Create a new MDM ACME issuer.
func (*MDMACMEIssuersServiceOp) GetByID ¶ added in v0.1.59
func (s *MDMACMEIssuersServiceOp) GetByID(ctx context.Context, maiID string) (*MDMACMEIssuer, *Response, error)
GetByID retrieves a MDM ACME issuer by id.
func (*MDMACMEIssuersServiceOp) GetByName ¶ added in v0.1.59
func (s *MDMACMEIssuersServiceOp) GetByName(ctx context.Context, name string) (*MDMACMEIssuer, *Response, error)
GetByName retrieves a MDM ACME issuer by name.
func (*MDMACMEIssuersServiceOp) List ¶ added in v0.1.59
func (s *MDMACMEIssuersServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMACMEIssuer, *Response, error)
List lists all the MDM ACME issuers.
func (*MDMACMEIssuersServiceOp) Update ¶ added in v0.1.59
func (s *MDMACMEIssuersServiceOp) Update(ctx context.Context, maiID string, updateRequest *MDMACMEIssuerRequest) (*MDMACMEIssuer, *Response, error)
Update a MDM ACME issuer.
type MDMArtifact ¶ added in v0.1.33
type MDMArtifact struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Channel string `json:"channel"`
Platforms []string `json:"platforms"`
InstallDuringSetupAssistant bool `json:"install_during_setup_assistant"`
AutoUpdate bool `json:"auto_update"`
ReinstallInterval int `json:"reinstall_interval"`
ReinstallOnOSUpdate string `json:"reinstall_on_os_update"`
Requires []string `json:"requires"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMArtifact represents a Zentral MDM artifact
func (MDMArtifact) String ¶ added in v0.1.33
func (ma MDMArtifact) String() string
type MDMArtifactRequest ¶ added in v0.1.33
type MDMArtifactRequest struct {
Name string `json:"name"`
Type string `json:"type"`
Channel string `json:"channel"`
Platforms []string `json:"platforms"`
InstallDuringSetupAssistant bool `json:"install_during_setup_assistant"`
AutoUpdate bool `json:"auto_update"`
ReinstallInterval int `json:"reinstall_interval"`
ReinstallOnOSUpdate string `json:"reinstall_on_os_update"`
Requires []string `json:"requires"`
}
MDMArtifactRequest represents a request to create or update a MDM artifact
type MDMArtifactVersion ¶ added in v0.1.38
type MDMArtifactVersion struct {
ArtifactID string `json:"artifact"`
IOS bool `json:"ios"`
IOSMaxVersion string `json:"ios_max_version"`
IOSMinVersion string `json:"ios_min_version"`
IPadOS bool `json:"ipados"`
IPadOSMaxVersion string `json:"ipados_max_version"`
IPadOSMinVersion string `json:"ipados_min_version"`
MacOS bool `json:"macos"`
MacOSMaxVersion string `json:"macos_max_version"`
MacOSMinVersion string `json:"macos_min_version"`
TVOS bool `json:"tvos"`
TVOSMaxVersion string `json:"tvos_max_version"`
TVOSMinVersion string `json:"tvos_min_version"`
DefaultShard int `json:"default_shard"`
ShardModulo int `json:"shard_modulo"`
ExcludedTagIDs []int `json:"excluded_tags"`
TagShards []TagShard `json:"tag_shards"`
Version int `json:"version"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMArtifactVersion represents a Zentral MDM artifact version
type MDMArtifactVersionRequest ¶ added in v0.1.38
type MDMArtifactVersionRequest struct {
ArtifactID string `json:"artifact"`
IOS bool `json:"ios"`
IOSMaxVersion string `json:"ios_max_version"`
IOSMinVersion string `json:"ios_min_version"`
IPadOS bool `json:"ipados"`
IPadOSMaxVersion string `json:"ipados_max_version"`
IPadOSMinVersion string `json:"ipados_min_version"`
MacOS bool `json:"macos"`
MacOSMaxVersion string `json:"macos_max_version"`
MacOSMinVersion string `json:"macos_min_version"`
TVOS bool `json:"tvos"`
TVOSMaxVersion string `json:"tvos_max_version"`
TVOSMinVersion string `json:"tvos_min_version"`
DefaultShard int `json:"default_shard"`
ShardModulo int `json:"shard_modulo"`
ExcludedTagIDs []int `json:"excluded_tags"`
TagShards []TagShard `json:"tag_shards"`
Version int `json:"version"`
}
MDMArtifactVersionRequest represents a request to create or update a MDM artifact version
type MDMArtifactsService ¶ added in v0.1.33
type MDMArtifactsService interface {
List(context.Context, *ListOptions) ([]MDMArtifact, *Response, error)
GetByID(context.Context, string) (*MDMArtifact, *Response, error)
GetByName(context.Context, string) (*MDMArtifact, *Response, error)
Create(context.Context, *MDMArtifactRequest) (*MDMArtifact, *Response, error)
Update(context.Context, string, *MDMArtifactRequest) (*MDMArtifact, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMArtifactsService is an interface for interfacing with the MDM artifact endpoints of the Zentral API
type MDMArtifactsServiceOp ¶ added in v0.1.33
type MDMArtifactsServiceOp struct {
// contains filtered or unexported fields
}
MDMArtifactsServiceOp handles communication with the MDM artifacts related methods of the Zentral API.
func (*MDMArtifactsServiceOp) Create ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
Create a new MDM artifact.
func (*MDMArtifactsServiceOp) GetByID ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) GetByID(ctx context.Context, maID string) (*MDMArtifact, *Response, error)
GetByID retrieves a MDM artifact by id.
func (*MDMArtifactsServiceOp) GetByName ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) GetByName(ctx context.Context, name string) (*MDMArtifact, *Response, error)
GetByName retrieves a MDM artifact by name.
func (*MDMArtifactsServiceOp) List ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMArtifact, *Response, error)
List lists all the MDM artifacts.
func (*MDMArtifactsServiceOp) Update ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) Update(ctx context.Context, maID string, updateRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
Update a MDM artifact.
type MDMBlueprint ¶ added in v0.1.31
type MDMBlueprint struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
InventoryInterval int `json:"inventory_interval"`
CollectApps int `json:"collect_apps"`
CollectCertificates int `json:"collect_certificates"`
CollectProfiles int `json:"collect_profiles"`
LegacyProfilesViaDDM bool `json:"legacy_profiles_via_ddm"`
DefaultLocationID *int `json:"default_location"`
FileVaultConfigID *int `json:"filevault_config"`
RecoveryPasswordConfigID *int `json:"recovery_password_config"`
SoftwareUpdateEnforcementIDs []int `json:"software_update_enforcements"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMBlueprint represents a Zentral MDM blueprint
func (MDMBlueprint) String ¶ added in v0.1.31
func (mb MDMBlueprint) String() string
type MDMBlueprintArtifact ¶ added in v0.1.35
type MDMBlueprintArtifact struct {
ID int `json:"id"`
BlueprintID int `json:"blueprint"`
ArtifactID string `json:"artifact"`
IOS bool `json:"ios"`
IOSMaxVersion string `json:"ios_max_version"`
IOSMinVersion string `json:"ios_min_version"`
IPadOS bool `json:"ipados"`
IPadOSMaxVersion string `json:"ipados_max_version"`
IPadOSMinVersion string `json:"ipados_min_version"`
MacOS bool `json:"macos"`
MacOSMaxVersion string `json:"macos_max_version"`
MacOSMinVersion string `json:"macos_min_version"`
TVOS bool `json:"tvos"`
TVOSMaxVersion string `json:"tvos_max_version"`
TVOSMinVersion string `json:"tvos_min_version"`
DefaultShard int `json:"default_shard"`
ShardModulo int `json:"shard_modulo"`
ExcludedTagIDs []int `json:"excluded_tags"`
TagShards []TagShard `json:"tag_shards"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMBlueprintArtifact represents a Zentral MDM blueprint artifact
func (MDMBlueprintArtifact) String ¶ added in v0.1.35
func (mba MDMBlueprintArtifact) String() string
type MDMBlueprintArtifactRequest ¶ added in v0.1.35
type MDMBlueprintArtifactRequest struct {
BlueprintID int `json:"blueprint"`
ArtifactID string `json:"artifact"`
IOS bool `json:"ios"`
IOSMaxVersion string `json:"ios_max_version"`
IOSMinVersion string `json:"ios_min_version"`
IPadOS bool `json:"ipados"`
IPadOSMaxVersion string `json:"ipados_max_version"`
IPadOSMinVersion string `json:"ipados_min_version"`
MacOS bool `json:"macos"`
MacOSMaxVersion string `json:"macos_max_version"`
MacOSMinVersion string `json:"macos_min_version"`
TVOS bool `json:"tvos"`
TVOSMaxVersion string `json:"tvos_max_version"`
TVOSMinVersion string `json:"tvos_min_version"`
DefaultShard int `json:"default_shard"`
ShardModulo int `json:"shard_modulo"`
ExcludedTagIDs []int `json:"excluded_tags"`
TagShards []TagShard `json:"tag_shards"`
}
MDMBlueprintArtifactRequest represents a request to create or update a MDM blueprint artifact
type MDMBlueprintArtifactsService ¶ added in v0.1.35
type MDMBlueprintArtifactsService interface {
List(context.Context, *ListOptions) ([]MDMBlueprintArtifact, *Response, error)
GetByID(context.Context, int) (*MDMBlueprintArtifact, *Response, error)
Create(context.Context, *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
Update(context.Context, int, *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MDMBlueprintArtifactsService is an interface for interfacing with the MDM blueprint artifact endpoints of the Zentral API
type MDMBlueprintArtifactsServiceOp ¶ added in v0.1.35
type MDMBlueprintArtifactsServiceOp struct {
// contains filtered or unexported fields
}
MDMBlueprintArtifactsServiceOp handles communication with the MDM blueprint artifacts related methods of the Zentral API.
func (*MDMBlueprintArtifactsServiceOp) Create ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
Create a new MDM blueprint artifact.
func (*MDMBlueprintArtifactsServiceOp) GetByID ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) GetByID(ctx context.Context, mbaID int) (*MDMBlueprintArtifact, *Response, error)
GetByID retrieves a MDM blueprint artifact by id.
func (*MDMBlueprintArtifactsServiceOp) List ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprintArtifact, *Response, error)
List lists all the MDM blueprint artifacts.
func (*MDMBlueprintArtifactsServiceOp) Update ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) Update(ctx context.Context, mbaID int, updateRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
Update a MDM blueprint artifact.
type MDMBlueprintRequest ¶ added in v0.1.31
type MDMBlueprintRequest struct {
Name string `json:"name"`
InventoryInterval int `json:"inventory_interval"`
CollectApps int `json:"collect_apps"`
CollectCertificates int `json:"collect_certificates"`
CollectProfiles int `json:"collect_profiles"`
LegacyProfilesViaDDM bool `json:"legacy_profiles_via_ddm"`
DefaultLocationID *int `json:"default_location"`
FileVaultConfigID *int `json:"filevault_config"`
RecoveryPasswordConfigID *int `json:"recovery_password_config"`
SoftwareUpdateEnforcementIDs []int `json:"software_update_enforcements"`
}
MDMBlueprintRequest represents a request to create or update a MDM blueprint
type MDMBlueprintsService ¶ added in v0.1.31
type MDMBlueprintsService interface {
List(context.Context, *ListOptions) ([]MDMBlueprint, *Response, error)
GetByID(context.Context, int) (*MDMBlueprint, *Response, error)
GetByName(context.Context, string) (*MDMBlueprint, *Response, error)
Create(context.Context, *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
Update(context.Context, int, *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MDMBlueprintsService is an interface for interfacing with the MDM blueprint endpoints of the Zentral API
type MDMBlueprintsServiceOp ¶ added in v0.1.31
type MDMBlueprintsServiceOp struct {
// contains filtered or unexported fields
}
MDMBlueprintsServiceOp handles communication with the MDM blueprints related methods of the Zentral API.
func (*MDMBlueprintsServiceOp) Create ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
Create a new MDM blueprint.
func (*MDMBlueprintsServiceOp) GetByID ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) GetByID(ctx context.Context, mbID int) (*MDMBlueprint, *Response, error)
GetByID retrieves a MDM blueprint by id.
func (*MDMBlueprintsServiceOp) GetByName ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) GetByName(ctx context.Context, name string) (*MDMBlueprint, *Response, error)
GetByName retrieves a MDM blueprint by name.
func (*MDMBlueprintsServiceOp) List ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprint, *Response, error)
List lists all the MDM blueprints.
func (*MDMBlueprintsServiceOp) Update ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) Update(ctx context.Context, mbID int, updateRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
Update a MDM blueprint.
type MDMCertAsset ¶ added in v0.1.60
type MDMCertAsset struct {
ID string `json:"id"`
ACMEIssuerUUID *string `json:"acme_issuer"`
SCEPIssuerUUID *string `json:"scep_issuer"`
Accessible string `json:"accessible"`
Subject []MDMCertAssetRDN `json:"subject"`
SubjectAltName MDMCertAssetSubjectAltName `json:"subject_alt_name"`
MDMArtifactVersion
}
func (MDMCertAsset) String ¶ added in v0.1.60
func (mca MDMCertAsset) String() string
type MDMCertAssetRDN ¶ added in v0.1.60
type MDMCertAssetRequest ¶ added in v0.1.60
type MDMCertAssetRequest struct {
ACMEIssuerUUID *string `json:"acme_issuer"`
SCEPIssuerUUID *string `json:"scep_issuer"`
Accessible string `json:"accessible"`
Subject []MDMCertAssetRDN `json:"subject"`
SubjectAltName MDMCertAssetSubjectAltName `json:"subject_alt_name"`
MDMArtifactVersionRequest
}
MDMCertAssetRequest represents a request to create or update a MDM cert asset
type MDMCertAssetSubjectAltName ¶ added in v0.1.60
type MDMCertAssetsService ¶ added in v0.1.60
type MDMCertAssetsService interface {
List(context.Context, *ListOptions) ([]MDMCertAsset, *Response, error)
GetByID(context.Context, string) (*MDMCertAsset, *Response, error)
Create(context.Context, *MDMCertAssetRequest) (*MDMCertAsset, *Response, error)
Update(context.Context, string, *MDMCertAssetRequest) (*MDMCertAsset, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMCertAssetsService is an interface for interfacing with the MDM cert asset endpoints of the Zentral API
type MDMCertAssetsServiceOp ¶ added in v0.1.60
type MDMCertAssetsServiceOp struct {
// contains filtered or unexported fields
}
MDMCertAssetsServiceOp handles communication with the MDM cert assets related methods of the Zentral API.
func (*MDMCertAssetsServiceOp) Create ¶ added in v0.1.60
func (s *MDMCertAssetsServiceOp) Create(ctx context.Context, createRequest *MDMCertAssetRequest) (*MDMCertAsset, *Response, error)
Create a new MDM cert asset.
func (*MDMCertAssetsServiceOp) GetByID ¶ added in v0.1.60
func (s *MDMCertAssetsServiceOp) GetByID(ctx context.Context, mcaID string) (*MDMCertAsset, *Response, error)
GetByID retrieves a MDM cert asset by id.
func (*MDMCertAssetsServiceOp) List ¶ added in v0.1.60
func (s *MDMCertAssetsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMCertAsset, *Response, error)
List lists all the MDM cert assets.
func (*MDMCertAssetsServiceOp) Update ¶ added in v0.1.60
func (s *MDMCertAssetsServiceOp) Update(ctx context.Context, mcaID string, updateRequest *MDMCertAssetRequest) (*MDMCertAsset, *Response, error)
Update a MDM cert asset.
type MDMDEPEnrollment ¶ added in v0.1.68
type MDMDEPEnrollment struct {
ID int `json:"id"`
Name string `json:"name"`
DisplayName string `json:"display_name"`
Secret EnrollmentSecret `json:"enrollment_secret"`
UseRealmUser bool `json:"use_realm_user"`
UsernamePattern string `json:"username_pattern"`
RealmUserIsAdmin bool `json:"realm_user_is_admin"`
AdminFullName *string `json:"admin_full_name"`
AdminShortName *string `json:"admin_short_name"`
HiddenAdmin bool `json:"hidden_admin"`
AdminPasswordComplexity int `json:"admin_password_complexity"`
AdminPasswordRotationDelay int `json:"admin_password_rotation_delay"`
AllowPairing bool `json:"allow_pairing"`
AutoAdvanceSetup bool `json:"auto_advance_setup"`
AwaitDeviceConfigured bool `json:"await_device_configured"`
Department string `json:"department"`
IsMandatory bool `json:"is_mandatory"`
IsMDMRemovable bool `json:"is_mdm_removable"`
IsMultiUser bool `json:"is_multi_user"`
IsSupervised bool `json:"is_supervised"`
Language string `json:"language"`
OrgMagic string `json:"org_magic"`
Region string `json:"region"`
SkipSetupItems []string `json:"skip_setup_items"`
SupportEmailAddress string `json:"support_email_address"`
SupportPhoneNumber string `json:"support_phone_number"`
IncludeTLSCertificates bool `json:"include_tls_certificates"`
IOSMaxVersion string `json:"ios_max_version"`
IOSMinVersion string `json:"ios_min_version"`
MacOSMaxVersion string `json:"macos_max_version"`
MacOSMinVersion string `json:"macos_min_version"`
PushCertificateID int `json:"push_certificate"`
ACMEIssuerUUID *string `json:"acme_issuer"`
SCEPIssuerUUID string `json:"scep_issuer"`
BlueprintID *int `json:"blueprint"`
RealmUUID *string `json:"realm"`
VirtualServerID int `json:"virtual_server"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMDEPEnrollment represents a Zentral MDM DEPEnrollment
func (MDMDEPEnrollment) String ¶ added in v0.1.68
func (enrollment MDMDEPEnrollment) String() string
type MDMDEPEnrollmentCustomView ¶ added in v0.1.68
type MDMDEPEnrollmentCustomView struct {
ID string `json:"id"`
DEPEnrollmentID int `json:"dep_enrollment"`
CustomViewID string `json:"custom_view"`
Weight int `json:"weight"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMDEPEnrollmentCustomView represents a Zentral MDM DEP enrollment custom view
func (MDMDEPEnrollmentCustomView) String ¶ added in v0.1.68
func (depCustomView MDMDEPEnrollmentCustomView) String() string
type MDMDEPEnrollmentCustomViewRequest ¶ added in v0.1.68
type MDMDEPEnrollmentCustomViewRequest struct {
DEPEnrollmentID int `json:"dep_enrollment"`
CustomViewID string `json:"custom_view"`
Weight int `json:"weight"`
}
MDMDEPEnrollmentCustomViewRequest represents a request to create or update a MDM DEP enrollment custom view
type MDMDEPEnrollmentCustomViewsService ¶ added in v0.1.68
type MDMDEPEnrollmentCustomViewsService interface {
List(context.Context, *ListOptions) ([]MDMDEPEnrollmentCustomView, *Response, error)
GetByID(context.Context, string) (*MDMDEPEnrollmentCustomView, *Response, error)
Create(context.Context, *MDMDEPEnrollmentCustomViewRequest) (*MDMDEPEnrollmentCustomView, *Response, error)
Update(context.Context, string, *MDMDEPEnrollmentCustomViewRequest) (*MDMDEPEnrollmentCustomView, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMDEPEnrollmentCustomViewsService is an interface for interfacing with the MDM dep enrollment custom views endpoints of the Zentral API
type MDMDEPEnrollmentCustomViewsServiceOp ¶ added in v0.1.68
type MDMDEPEnrollmentCustomViewsServiceOp struct {
// contains filtered or unexported fields
}
MDMEnrollmentCustomViewsServiceOp handles communication with the MDM enrollments related moethods of the Zentral API.
func (*MDMDEPEnrollmentCustomViewsServiceOp) Create ¶ added in v0.1.68
func (s *MDMDEPEnrollmentCustomViewsServiceOp) Create(ctx context.Context, createRequest *MDMDEPEnrollmentCustomViewRequest) (*MDMDEPEnrollmentCustomView, *Response, error)
Create a new MDM DEP enrollment custom view.
func (*MDMDEPEnrollmentCustomViewsServiceOp) Delete ¶ added in v0.1.68
func (s *MDMDEPEnrollmentCustomViewsServiceOp) Delete(ctx context.Context, depCustomViewID string) (*Response, error)
Delete a MDM DEP enrollment custom view.
func (*MDMDEPEnrollmentCustomViewsServiceOp) GetByID ¶ added in v0.1.68
func (service *MDMDEPEnrollmentCustomViewsServiceOp) GetByID(ctx context.Context, depEnrollmentID string) (*MDMDEPEnrollmentCustomView, *Response, error)
GetByID retrieves a MDM DEP enrollment custom view by id.
func (*MDMDEPEnrollmentCustomViewsServiceOp) List ¶ added in v0.1.68
func (service *MDMDEPEnrollmentCustomViewsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDEPEnrollmentCustomView, *Response, error)
List lists all the MDM enrollment custom view
func (*MDMDEPEnrollmentCustomViewsServiceOp) Update ¶ added in v0.1.68
func (s *MDMDEPEnrollmentCustomViewsServiceOp) Update(ctx context.Context, depCustomViewID string, updateRequest *MDMDEPEnrollmentCustomViewRequest) (*MDMDEPEnrollmentCustomView, *Response, error)
Update a MDM DEP enrollment custom view.
type MDMDEPEnrollmentRequest ¶ added in v0.1.69
type MDMDEPEnrollmentRequest struct {
Name string `json:"name"`
DisplayName string `json:"display_name"`
Secret EnrollmentSecretRequest `json:"enrollment_secret"`
UseRealmUser bool `json:"use_realm_user"`
UsernamePattern string `json:"username_pattern"`
RealmUserIsAdmin bool `json:"realm_user_is_admin"`
AdminFullName *string `json:"admin_full_name"`
AdminShortName *string `json:"admin_short_name"`
HiddenAdmin bool `json:"hidden_admin"`
AdminPasswordComplexity int `json:"admin_password_complexity"`
AdminPasswordRotationDelay int `json:"admin_password_rotation_delay"`
AllowPairing bool `json:"allow_pairing"`
AutoAdvanceSetup bool `json:"auto_advance_setup"`
AwaitDeviceConfigured bool `json:"await_device_configured"`
Department string `json:"department"`
IsMandatory bool `json:"is_mandatory"`
IsMDMRemovable bool `json:"is_mdm_removable"`
IsMultiUser bool `json:"is_multi_user"`
IsSupervised bool `json:"is_supervised"`
Language string `json:"language"`
OrgMagic string `json:"org_magic"`
Region string `json:"region"`
SkipSetupItems []string `json:"skip_setup_items"`
SupportEmailAddress string `json:"support_email_address"`
SupportPhoneNumber string `json:"support_phone_number"`
IncludeTLSCertificates bool `json:"include_tls_certificates"`
IOSMaxVersion string `json:"ios_max_version"`
IOSMinVersion string `json:"ios_min_version"`
MacOSMaxVersion string `json:"macos_max_version"`
MacOSMinVersion string `json:"macos_min_version"`
PushCertificateID int `json:"push_certificate"`
ACMEIssuerUUID *string `json:"acme_issuer"`
SCEPIssuerUUID string `json:"scep_issuer"`
BlueprintID *int `json:"blueprint"`
RealmUUID *string `json:"realm"`
VirtualServerID int `json:"virtual_server"`
}
MDMDEPEnrollmentRequest represents a request to create or update an MDM DEPEnrollment
type MDMDEPEnrollmentsService ¶ added in v0.1.68
type MDMDEPEnrollmentsService interface {
List(context.Context, *ListOptions) ([]MDMDEPEnrollment, *Response, error)
GetByID(context.Context, int) (*MDMDEPEnrollment, *Response, error)
GetByName(context.Context, string) (*MDMDEPEnrollment, *Response, error)
Create(context.Context, *MDMDEPEnrollmentRequest) (*MDMDEPEnrollment, *Response, error)
Update(context.Context, int, *MDMDEPEnrollmentRequest) (*MDMDEPEnrollment, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MDMDEPEnrollmentsService is an interface for interfacing with the MDM dep enrollments endpoints of the Zentral API
type MDMDEPEnrollmentsServiceOp ¶ added in v0.1.68
type MDMDEPEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
MDMDEPEnrollmentsServiceOp handles communication with the MDM enrollments related moethods of the Zentral API.
func (*MDMDEPEnrollmentsServiceOp) Create ¶ added in v0.1.68
func (s *MDMDEPEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MDMDEPEnrollmentRequest) (*MDMDEPEnrollment, *Response, error)
Create a new MDM DEP enrollment.
func (*MDMDEPEnrollmentsServiceOp) Delete ¶ added in v0.1.68
func (s *MDMDEPEnrollmentsServiceOp) Delete(ctx context.Context, enrollmentID int) (*Response, error)
Delete a MDM DEP enrollment.
func (*MDMDEPEnrollmentsServiceOp) GetByID ¶ added in v0.1.68
func (service *MDMDEPEnrollmentsServiceOp) GetByID(ctx context.Context, enrollmentID int) (*MDMDEPEnrollment, *Response, error)
GetByID retrieves a MDM DEP enrollment by id.
func (*MDMDEPEnrollmentsServiceOp) GetByName ¶ added in v0.1.68
func (service *MDMDEPEnrollmentsServiceOp) GetByName(ctx context.Context, name string) (*MDMDEPEnrollment, *Response, error)
GetByName retrieves a MDM DEP enrollment by name.
func (*MDMDEPEnrollmentsServiceOp) List ¶ added in v0.1.68
func (service *MDMDEPEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDEPEnrollment, *Response, error)
List lists all the MDM DEP enrollments.
func (*MDMDEPEnrollmentsServiceOp) Update ¶ added in v0.1.68
func (s *MDMDEPEnrollmentsServiceOp) Update(ctx context.Context, enrollmentID int, updateRequest *MDMDEPEnrollmentRequest) (*MDMDEPEnrollment, *Response, error)
Update a MDM DEP enrollment.
type MDMDEPVirtualServer ¶ added in v0.1.68
type MDMDEPVirtualServer struct {
ID int `json:"id"`
Name string `json:"name"`
UUID string `json:"uuid"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMDEPVirtualServer represents a Zentral MDM DEP virtual server
func (MDMDEPVirtualServer) String ¶ added in v0.1.68
func (connection MDMDEPVirtualServer) String() string
type MDMDEPVirtualServersService ¶ added in v0.1.68
type MDMDEPVirtualServersService interface {
List(context.Context, *ListOptions) ([]MDMDEPVirtualServer, *Response, error)
GetByID(context.Context, int) (*MDMDEPVirtualServer, *Response, error)
GetByName(context.Context, string) ([]MDMDEPVirtualServer, *Response, error)
}
MDMDEPVirtualServersService is an interface for interfacing with the MDM DEP virtual servers endpoints of the Zentral API
type MDMDEPVirtualServersServiceOp ¶ added in v0.1.68
type MDMDEPVirtualServersServiceOp struct {
// contains filtered or unexported fields
}
MDMDEPVirtualServersServiceOp handles communication with the MDM DEP virtual servers methods of the Zentral API.
func (*MDMDEPVirtualServersServiceOp) GetByID ¶ added in v0.1.68
func (service *MDMDEPVirtualServersServiceOp) GetByID(ctx context.Context, virtualServerID int) (*MDMDEPVirtualServer, *Response, error)
GetByID retrieves a Zentral MDM DEP virtual server by id.
func (*MDMDEPVirtualServersServiceOp) GetByName ¶ added in v0.1.68
func (service *MDMDEPVirtualServersServiceOp) GetByName(ctx context.Context, name string) ([]MDMDEPVirtualServer, *Response, error)
GetByName retrieves a MDM DEP virtual server by name.
func (*MDMDEPVirtualServersServiceOp) List ¶ added in v0.1.68
func (service *MDMDEPVirtualServersServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDEPVirtualServer, *Response, error)
List lists all the Zentral MDM DEP virtual server.
type MDMDataAsset ¶ added in v0.1.53
type MDMDataAsset struct {
ID string `json:"id"`
Type string `json:"type"`
FileURI string `json:"file_uri"`
FileSHA256 string `json:"file_sha256"`
FileSize int64 `json:"file_size"`
Filename string `json:"filename"`
MDMArtifactVersion
}
MDMDataAsset represents a Zentral MDM data asset
func (MDMDataAsset) String ¶ added in v0.1.53
func (mda MDMDataAsset) String() string
type MDMDataAssetRequest ¶ added in v0.1.53
type MDMDataAssetRequest struct {
Type string `json:"type"`
FileURI string `json:"file_uri"`
FileSHA256 string `json:"file_sha256"`
MDMArtifactVersionRequest
}
MDMDataAssetRequest represents a request to create or update a MDM data asset
type MDMDataAssetsService ¶ added in v0.1.53
type MDMDataAssetsService interface {
List(context.Context, *ListOptions) ([]MDMDataAsset, *Response, error)
GetByID(context.Context, string) (*MDMDataAsset, *Response, error)
Create(context.Context, *MDMDataAssetRequest) (*MDMDataAsset, *Response, error)
Update(context.Context, string, *MDMDataAssetRequest) (*MDMDataAsset, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMDataAssetsService is an interface for interfacing with the MDM data asset endpoints of the Zentral API
type MDMDataAssetsServiceOp ¶ added in v0.1.53
type MDMDataAssetsServiceOp struct {
// contains filtered or unexported fields
}
MDMDataAssetsServiceOp handles communication with the MDM data assets related methods of the Zentral API.
func (*MDMDataAssetsServiceOp) Create ¶ added in v0.1.53
func (s *MDMDataAssetsServiceOp) Create(ctx context.Context, createRequest *MDMDataAssetRequest) (*MDMDataAsset, *Response, error)
Create a new MDM data asset.
func (*MDMDataAssetsServiceOp) GetByID ¶ added in v0.1.53
func (s *MDMDataAssetsServiceOp) GetByID(ctx context.Context, mdaID string) (*MDMDataAsset, *Response, error)
GetByID retrieves a MDM data asset by id.
func (*MDMDataAssetsServiceOp) List ¶ added in v0.1.53
func (s *MDMDataAssetsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDataAsset, *Response, error)
List lists all the MDM data assets.
func (*MDMDataAssetsServiceOp) Update ¶ added in v0.1.53
func (s *MDMDataAssetsServiceOp) Update(ctx context.Context, mdaID string, updateRequest *MDMDataAssetRequest) (*MDMDataAsset, *Response, error)
Update a MDM data asset.
type MDMDeclaration ¶ added in v0.1.53
type MDMDeclaration struct {
ID string `json:"id"`
Source MDMDeclarationSource `json:"source"`
MDMArtifactVersion
}
MDMDeclaration represents a Zentral MDM declaration
func (MDMDeclaration) String ¶ added in v0.1.53
func (md MDMDeclaration) String() string
type MDMDeclarationRequest ¶ added in v0.1.53
type MDMDeclarationRequest struct {
Source MDMDeclarationSource `json:"source"`
MDMArtifactVersionRequest
}
MDMDeclarationRequest represents a request to create or update a MDM declaration
type MDMDeclarationSource ¶ added in v0.1.53
type MDMDeclarationSource struct {
Identifier string
Payload map[string]interface{}
ServerToken string
Type string
}
MDMDeclarationSource represents the raw DDM declaration WARNING: the order of the attributes plays a role in the JSON serialization!!!
type MDMDeclarationsService ¶ added in v0.1.53
type MDMDeclarationsService interface {
List(context.Context, *ListOptions) ([]MDMDeclaration, *Response, error)
GetByID(context.Context, string) (*MDMDeclaration, *Response, error)
Create(context.Context, *MDMDeclarationRequest) (*MDMDeclaration, *Response, error)
Update(context.Context, string, *MDMDeclarationRequest) (*MDMDeclaration, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMDeclarationsService is an interface for interfacing with the MDM declaration endpoints of the Zentral API
type MDMDeclarationsServiceOp ¶ added in v0.1.53
type MDMDeclarationsServiceOp struct {
// contains filtered or unexported fields
}
MDMDeclarationsServiceOp handles communication with the MDM declarations related methods of the Zentral API.
func (*MDMDeclarationsServiceOp) Create ¶ added in v0.1.53
func (s *MDMDeclarationsServiceOp) Create(ctx context.Context, createRequest *MDMDeclarationRequest) (*MDMDeclaration, *Response, error)
Create a new MDM declaration.
func (*MDMDeclarationsServiceOp) GetByID ¶ added in v0.1.53
func (s *MDMDeclarationsServiceOp) GetByID(ctx context.Context, mdID string) (*MDMDeclaration, *Response, error)
GetByID retrieves a MDM declaration by id.
func (*MDMDeclarationsServiceOp) List ¶ added in v0.1.53
func (s *MDMDeclarationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMDeclaration, *Response, error)
List lists all the MDM declarations.
func (*MDMDeclarationsServiceOp) Update ¶ added in v0.1.53
func (s *MDMDeclarationsServiceOp) Update(ctx context.Context, mdID string, updateRequest *MDMDeclarationRequest) (*MDMDeclaration, *Response, error)
Update a MDM declaration.
type MDMEnrollmentCustomView ¶ added in v0.1.68
type MDMEnrollmentCustomView struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
HTML string `json:"html"`
RequiresAuthentication bool `json:"requires_authentication"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMEnrollmentCustomView represents a Zentral MDM enrollment custom view
func (MDMEnrollmentCustomView) String ¶ added in v0.1.68
func (customView MDMEnrollmentCustomView) String() string
type MDMEnrollmentCustomViewRequest ¶ added in v0.1.68
type MDMEnrollmentCustomViewRequest struct {
Name string `json:"name"`
Description string `json:"description"`
HTML string `json:"html"`
RequiresAuthentication bool `json:"requires_authentication"`
}
MDMEnrollmentCustomViewRequest represents a request to create or update a MDM enrollment custom view
type MDMEnrollmentCustomViewsService ¶ added in v0.1.68
type MDMEnrollmentCustomViewsService interface {
List(context.Context, *ListOptions) ([]MDMEnrollmentCustomView, *Response, error)
GetByID(context.Context, string) (*MDMEnrollmentCustomView, *Response, error)
GetByName(context.Context, string) (*MDMEnrollmentCustomView, *Response, error)
Create(context.Context, *MDMEnrollmentCustomViewRequest) (*MDMEnrollmentCustomView, *Response, error)
Update(context.Context, string, *MDMEnrollmentCustomViewRequest) (*MDMEnrollmentCustomView, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMEnrollmentCustomViewsService is an interface for interfacing with the MDM enrollment custom views endpoints of the Zentral API
type MDMEnrollmentCustomViewsServiceOp ¶ added in v0.1.68
type MDMEnrollmentCustomViewsServiceOp struct {
// contains filtered or unexported fields
}
MDMEnrollmentCustomViewsServiceOp handles communication with the MDM enrollments related moethods of the Zentral API.
func (*MDMEnrollmentCustomViewsServiceOp) Create ¶ added in v0.1.68
func (s *MDMEnrollmentCustomViewsServiceOp) Create(ctx context.Context, createRequest *MDMEnrollmentCustomViewRequest) (*MDMEnrollmentCustomView, *Response, error)
Create a new MDM enrollment custom view.
func (*MDMEnrollmentCustomViewsServiceOp) Delete ¶ added in v0.1.68
func (s *MDMEnrollmentCustomViewsServiceOp) Delete(ctx context.Context, customViewID string) (*Response, error)
Delete a MDM enrollment custom view.
func (*MDMEnrollmentCustomViewsServiceOp) GetByID ¶ added in v0.1.68
func (service *MDMEnrollmentCustomViewsServiceOp) GetByID(ctx context.Context, customViewID string) (*MDMEnrollmentCustomView, *Response, error)
GetByID retrieves a MDM enrollment custom view by id.
func (*MDMEnrollmentCustomViewsServiceOp) GetByName ¶ added in v0.1.68
func (service *MDMEnrollmentCustomViewsServiceOp) GetByName(ctx context.Context, name string) (*MDMEnrollmentCustomView, *Response, error)
GetByName retrieves a MDM enrollment custom view by name.
func (*MDMEnrollmentCustomViewsServiceOp) List ¶ added in v0.1.68
func (service *MDMEnrollmentCustomViewsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMEnrollmentCustomView, *Response, error)
List lists all the MDM enrollment custom view
func (*MDMEnrollmentCustomViewsServiceOp) Update ¶ added in v0.1.68
func (s *MDMEnrollmentCustomViewsServiceOp) Update(ctx context.Context, customViewID string, updateRequest *MDMEnrollmentCustomViewRequest) (*MDMEnrollmentCustomView, *Response, error)
Update a MDM enrollment custom view.
type MDMEnterpriseApp ¶ added in v0.1.38
type MDMEnterpriseApp struct {
ID string `json:"id"`
PackageURI string `json:"package_uri"`
PackageSHA256 string `json:"package_sha256"`
PackageSize int64 `json:"package_size"`
Filename string `json:"filename"`
ProductID string `json:"product_id"`
ProductVersion string `json:"product_version"`
IOSApp bool `json:"ios_app"`
Configuration *string `json:"configuration"`
InstallAsManaged bool `json:"install_as_managed"`
RemoveOnUnenroll bool `json:"remove_on_unenroll"`
MDMArtifactVersion
}
MDMEnterpriseApp represents a Zentral MDM enterprise app
func (MDMEnterpriseApp) String ¶ added in v0.1.38
func (mea MDMEnterpriseApp) String() string
type MDMEnterpriseAppRequest ¶ added in v0.1.38
type MDMEnterpriseAppRequest struct {
PackageURI string `json:"package_uri"`
PackageSHA256 string `json:"package_sha256"`
IOSApp bool `json:"ios_app"`
Configuration *string `json:"configuration"`
InstallAsManaged bool `json:"installed_as_managed"`
RemoveOnUnenroll bool `json:"remove_on_unenroll"`
MDMArtifactVersionRequest
}
MDMEnterpriseAppRequest represents a request to create or update a MDM enterprise app
type MDMEnterpriseAppsService ¶ added in v0.1.38
type MDMEnterpriseAppsService interface {
List(context.Context, *ListOptions) ([]MDMEnterpriseApp, *Response, error)
GetByID(context.Context, string) (*MDMEnterpriseApp, *Response, error)
Create(context.Context, *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
Update(context.Context, string, *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMEnterpriseAppsService is an interface for interfacing with the MDM enterprise app endpoints of the Zentral API
type MDMEnterpriseAppsServiceOp ¶ added in v0.1.38
type MDMEnterpriseAppsServiceOp struct {
// contains filtered or unexported fields
}
MDMEnterpriseAppsServiceOp handles communication with the MDM enterprise apps related methods of the Zentral API.
func (*MDMEnterpriseAppsServiceOp) Create ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) Create(ctx context.Context, createRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
Create a new MDM enterprise app.
func (*MDMEnterpriseAppsServiceOp) GetByID ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) GetByID(ctx context.Context, meaID string) (*MDMEnterpriseApp, *Response, error)
GetByID retrieves a MDM enterprise app by id.
func (*MDMEnterpriseAppsServiceOp) List ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMEnterpriseApp, *Response, error)
List lists all the MDM enterprise apps.
func (*MDMEnterpriseAppsServiceOp) Update ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) Update(ctx context.Context, meaID string, updateRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
Update a MDM enterprise app.
type MDMFileVaultConfig ¶ added in v0.1.36
type MDMFileVaultConfig struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
EscrowLocationDisplayName string `json:"escrow_location_display_name"`
AtLoginOnly bool `json:"at_login_only"`
BypassAttempts int `json:"bypass_attempts"`
ShowRecoveryKey bool `json:"show_recovery_key"`
DestroyKeyOnStandby bool `json:"destroy_key_on_standby"`
PRKRotationIntervalDays int `json:"prk_rotation_interval_days"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMFileVaultConfig represents a Zentral MDM FileVault configuration
func (MDMFileVaultConfig) String ¶ added in v0.1.36
func (mfc MDMFileVaultConfig) String() string
type MDMFileVaultConfigRequest ¶ added in v0.1.36
type MDMFileVaultConfigRequest struct {
Name string `json:"name"`
EscrowLocationDisplayName string `json:"escrow_location_display_name"`
AtLoginOnly bool `json:"at_login_only"`
BypassAttempts int `json:"bypass_attempts"`
ShowRecoveryKey bool `json:"show_recovery_key"`
DestroyKeyOnStandby bool `json:"destroy_key_on_standby"`
PRKRotationIntervalDays int `json:"prk_rotation_interval_days"`
}
MDMFileVaultConfigRequest represents a request to create or update a MDM FileVault configuration
type MDMFileVaultConfigsService ¶ added in v0.1.36
type MDMFileVaultConfigsService interface {
List(context.Context, *ListOptions) ([]MDMFileVaultConfig, *Response, error)
GetByID(context.Context, int) (*MDMFileVaultConfig, *Response, error)
GetByName(context.Context, string) (*MDMFileVaultConfig, *Response, error)
Create(context.Context, *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
Update(context.Context, int, *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MDMFileVaultConfigsService is an interface for interfacing with the MDM FileVault configuration endpoints of the Zentral API
type MDMFileVaultConfigsServiceOp ¶ added in v0.1.36
type MDMFileVaultConfigsServiceOp struct {
// contains filtered or unexported fields
}
MDMFileVaultConfigsServiceOp handles communication with the MDM FileVault configurations related methods of the Zentral API.
func (*MDMFileVaultConfigsServiceOp) Create ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) Create(ctx context.Context, createRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
Create a new MDM FileVault configuration.
func (*MDMFileVaultConfigsServiceOp) Delete ¶ added in v0.1.36
Delete a MDM FileVault configuration.
func (*MDMFileVaultConfigsServiceOp) GetByID ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) GetByID(ctx context.Context, mfcID int) (*MDMFileVaultConfig, *Response, error)
GetByID retrieves a MDM FileVault configuration by id.
func (*MDMFileVaultConfigsServiceOp) GetByName ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMFileVaultConfig, *Response, error)
GetByName retrieves a MDM FileVault configuration by name.
func (*MDMFileVaultConfigsServiceOp) List ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMFileVaultConfig, *Response, error)
List lists all the MDM FileVault configurations.
func (*MDMFileVaultConfigsServiceOp) Update ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) Update(ctx context.Context, mfcID int, updateRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
Update a MDM FileVault configuration.
type MDMLocation ¶ added in v0.1.61
type MDMLocation struct {
ID int `json:"id"`
OrganizationName string `json:"organization_name"`
Name string `json:"name"`
CountryCode string `json:"country_code"`
LibraryUID string `json:"library_uid"`
MDMInfoID string `json:"mdm_info_id"`
Platform string `json:"platform"`
WebsiteURL string `json:"website_url"`
ServerTokenExpirationDate Timestamp `json:"server_token_expiration_date"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMLocation represents a Zentral MDM location
func (MDMLocation) String ¶ added in v0.1.61
func (ml MDMLocation) String() string
type MDMLocationAsset ¶ added in v0.1.63
type MDMLocationAsset struct {
ID int `json:"id"`
LocationID int `json:"location"`
AssetID int `json:"asset"`
AdamID string `json:"adam_id"`
PricingParam string `json:"pricing_param"`
AssignedCount int `json:"assigned_count"`
AvailableCount int `json:"available_count"`
RetiredCount int `json:"retired_count"`
TotalCount int `json:"total_count"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMLocation represents a Zentral MDM location asset
func (MDMLocationAsset) String ¶ added in v0.1.63
func (mla MDMLocationAsset) String() string
type MDMLocationAssetsService ¶ added in v0.1.63
type MDMLocationAssetsService interface {
List(context.Context, *ListOptions) ([]MDMLocationAsset, *Response, error)
Get(context.Context, int, string, string) (*MDMLocationAsset, *Response, error)
}
MDMLocationAssetsService is an interface for interfacing with the MDM location assets endpoint of the Zentral API
type MDMLocationAssetsServiceOp ¶ added in v0.1.63
type MDMLocationAssetsServiceOp struct {
// contains filtered or unexported fields
}
MDMLocationAssetsServiceOp handles communication with the MDM location assets related methods of the Zentral API.
func (*MDMLocationAssetsServiceOp) Get ¶ added in v0.1.63
func (s *MDMLocationAssetsServiceOp) Get(ctx context.Context, lid int, aid string, pp string) (*MDMLocationAsset, *Response, error)
Get retrieves a MDM location asset by location ID, Adam ID, and pricing param
func (*MDMLocationAssetsServiceOp) List ¶ added in v0.1.63
func (s *MDMLocationAssetsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMLocationAsset, *Response, error)
List lists all the MDM location assets.
type MDMLocationsService ¶ added in v0.1.61
type MDMLocationsService interface {
List(context.Context, *ListOptions) ([]MDMLocation, *Response, error)
GetByID(context.Context, int) (*MDMLocation, *Response, error)
GetByMDMInfoID(context.Context, string) (*MDMLocation, *Response, error)
GetByName(context.Context, string) (*MDMLocation, *Response, error)
}
MDMLocationsService is an interface for interfacing with the MDM location endpoints of the Zentral API
type MDMLocationsServiceOp ¶ added in v0.1.61
type MDMLocationsServiceOp struct {
// contains filtered or unexported fields
}
MDMLocationsServiceOp handles communication with the MDM locations related methods of the Zentral API.
func (*MDMLocationsServiceOp) GetByID ¶ added in v0.1.61
func (s *MDMLocationsServiceOp) GetByID(ctx context.Context, mlID int) (*MDMLocation, *Response, error)
GetByID retrieves a MDM location by id.
func (*MDMLocationsServiceOp) GetByMDMInfoID ¶ added in v0.1.61
func (s *MDMLocationsServiceOp) GetByMDMInfoID(ctx context.Context, mii string) (*MDMLocation, *Response, error)
GetByMDMInfoID retrieves a MDM location by its MDM info ID.
func (*MDMLocationsServiceOp) GetByName ¶ added in v0.1.61
func (s *MDMLocationsServiceOp) GetByName(ctx context.Context, name string) (*MDMLocation, *Response, error)
GetByName retrieves a MDM location by name.
func (*MDMLocationsServiceOp) List ¶ added in v0.1.61
func (s *MDMLocationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMLocation, *Response, error)
List lists all the MDM locations.
type MDMOTAEnrollment ¶ added in v0.1.50
type MDMOTAEnrollment struct {
ID int `json:"id"`
Name string `json:"name"`
DisplayName string `json:"display_name"`
BlueprintID *int `json:"blueprint"`
PushCertificateID int `json:"push_certificate"`
RealmUUID *string `json:"realm"`
ACMEIssuerUUID *string `json:"acme_issuer"`
SCEPIssuerUUID string `json:"scep_issuer"`
Secret EnrollmentSecret `json:"enrollment_secret"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMOTAEnrollment represents a Zentral MDM OTAEnrollment
func (MDMOTAEnrollment) String ¶ added in v0.1.50
func (oe MDMOTAEnrollment) String() string
type MDMOTAEnrollmentRequest ¶ added in v0.1.50
type MDMOTAEnrollmentRequest struct {
Name string `json:"name"`
DisplayName *string `json:"display_name"`
BlueprintID *int `json:"blueprint"`
PushCertificateID int `json:"push_certificate"`
RealmUUID *string `json:"realm"`
ACMEIssuerUUID *string `json:"acme_issuer"`
SCEPIssuerUUID string `json:"scep_issuer"`
Secret EnrollmentSecretRequest `json:"enrollment_secret"`
}
MDMOTAEnrollmentRequest represents a request to create or update a MDM OTA enrollment
type MDMOTAEnrollmentsService ¶ added in v0.1.50
type MDMOTAEnrollmentsService interface {
List(context.Context, *ListOptions) ([]MDMOTAEnrollment, *Response, error)
GetByID(context.Context, int) (*MDMOTAEnrollment, *Response, error)
GetByName(context.Context, string) (*MDMOTAEnrollment, *Response, error)
Create(context.Context, *MDMOTAEnrollmentRequest) (*MDMOTAEnrollment, *Response, error)
Update(context.Context, int, *MDMOTAEnrollmentRequest) (*MDMOTAEnrollment, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MDMOTAEnrollmentsService is an interface for interfacing with the MDM enrollments endpoints of the Zentral API
type MDMOTAEnrollmentsServiceOp ¶ added in v0.1.50
type MDMOTAEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
MDMOTAEnrollmentsServiceOp handles communication with the MDM enrollments related moethods of the Zentral API.
func (*MDMOTAEnrollmentsServiceOp) Create ¶ added in v0.1.50
func (s *MDMOTAEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MDMOTAEnrollmentRequest) (*MDMOTAEnrollment, *Response, error)
Create a new MDM OTA enrollment.
func (*MDMOTAEnrollmentsServiceOp) GetByID ¶ added in v0.1.50
func (s *MDMOTAEnrollmentsServiceOp) GetByID(ctx context.Context, moeID int) (*MDMOTAEnrollment, *Response, error)
GetByID retrieves a MDM OTA enrollment by id.
func (*MDMOTAEnrollmentsServiceOp) GetByName ¶ added in v0.1.50
func (s *MDMOTAEnrollmentsServiceOp) GetByName(ctx context.Context, name string) (*MDMOTAEnrollment, *Response, error)
GetByName retrieves a MDM OTA enrollment by name.
func (*MDMOTAEnrollmentsServiceOp) List ¶ added in v0.1.50
func (s *MDMOTAEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMOTAEnrollment, *Response, error)
List lists all the MDM OTA enrollments.
func (*MDMOTAEnrollmentsServiceOp) Update ¶ added in v0.1.50
func (s *MDMOTAEnrollmentsServiceOp) Update(ctx context.Context, moeID int, updateRequest *MDMOTAEnrollmentRequest) (*MDMOTAEnrollment, *Response, error)
Update a MDM OTA enrollment.
type MDMProfile ¶ added in v0.1.34
type MDMProfile struct {
ID string `json:"id"`
Source string `json:"source"`
MDMArtifactVersion
}
MDMProfile represents a Zentral MDM profile
func (MDMProfile) String ¶ added in v0.1.34
func (mp MDMProfile) String() string
type MDMProfileRequest ¶ added in v0.1.34
type MDMProfileRequest struct {
Source string `json:"source"`
MDMArtifactVersionRequest
}
MDMProfileRequest represents a request to create or update a MDM profile
type MDMProfilesService ¶ added in v0.1.34
type MDMProfilesService interface {
List(context.Context, *ListOptions) ([]MDMProfile, *Response, error)
GetByID(context.Context, string) (*MDMProfile, *Response, error)
Create(context.Context, *MDMProfileRequest) (*MDMProfile, *Response, error)
Update(context.Context, string, *MDMProfileRequest) (*MDMProfile, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMProfilesService is an interface for interfacing with the MDM profile endpoints of the Zentral API
type MDMProfilesServiceOp ¶ added in v0.1.34
type MDMProfilesServiceOp struct {
// contains filtered or unexported fields
}
MDMProfilesServiceOp handles communication with the MDM profiles related methods of the Zentral API.
func (*MDMProfilesServiceOp) Create ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) Create(ctx context.Context, createRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
Create a new MDM profile.
func (*MDMProfilesServiceOp) GetByID ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) GetByID(ctx context.Context, mpID string) (*MDMProfile, *Response, error)
GetByID retrieves a MDM profile by id.
func (*MDMProfilesServiceOp) List ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMProfile, *Response, error)
List lists all the MDM profiles.
func (*MDMProfilesServiceOp) Update ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) Update(ctx context.Context, mpID string, updateRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
Update a MDM profile.
type MDMPushCertificate ¶ added in v0.1.48
type MDMPushCertificate struct {
ID int `json:"id"`
ProvisioningUID *string `json:"provisioning_uid"`
Name string `json:"name"`
Topic *string `json:"topic"`
NotBefore *Timestamp `json:"not_before"`
NotAfter *Timestamp `json:"not_after"`
Certificate *string `json:"certificate"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMPushCertificate represents a Zentral MDM push certificate
func (MDMPushCertificate) String ¶ added in v0.1.48
func (mpc MDMPushCertificate) String() string
type MDMPushCertificatesService ¶ added in v0.1.48
type MDMPushCertificatesService interface {
List(context.Context, *ListOptions) ([]MDMPushCertificate, *Response, error)
GetByID(context.Context, int) (*MDMPushCertificate, *Response, error)
GetByName(context.Context, string) (*MDMPushCertificate, *Response, error)
}
MDMPushCertificatesService is an interface for interfacing with the MDM push certificate endpoints of the Zentral API
type MDMPushCertificatesServiceOp ¶ added in v0.1.48
type MDMPushCertificatesServiceOp struct {
// contains filtered or unexported fields
}
MDMPushCertificatesServiceOp handles communication with the MDM push certificates related methods of the Zentral API.
func (*MDMPushCertificatesServiceOp) GetByID ¶ added in v0.1.48
func (s *MDMPushCertificatesServiceOp) GetByID(ctx context.Context, mpcID int) (*MDMPushCertificate, *Response, error)
GetByID retrieves a MDM push certificate by id.
func (*MDMPushCertificatesServiceOp) GetByName ¶ added in v0.1.48
func (s *MDMPushCertificatesServiceOp) GetByName(ctx context.Context, name string) (*MDMPushCertificate, *Response, error)
GetByName retrieves a MDM push certificate by name.
func (*MDMPushCertificatesServiceOp) List ¶ added in v0.1.48
func (s *MDMPushCertificatesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMPushCertificate, *Response, error)
List lists all the MDM push certificates.
type MDMRecoveryPasswordConfig ¶ added in v0.1.37
type MDMRecoveryPasswordConfig struct {
ID int `json:"id"`
Name string `json:"name"`
DynamicPassword bool `json:"dynamic_password"`
StaticPassword *string `json:"static_password"`
RotationIntervalDays int `json:"rotation_interval_days"`
RotateFirmwarePassword bool `json:"rotate_firmware_password"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMRecoveryPasswordConfig represents a Zentral MDM recovery password configuration
func (MDMRecoveryPasswordConfig) String ¶ added in v0.1.37
func (mrpc MDMRecoveryPasswordConfig) String() string
type MDMRecoveryPasswordConfigRequest ¶ added in v0.1.37
type MDMRecoveryPasswordConfigRequest struct {
Name string `json:"name"`
DynamicPassword bool `json:"dynamic_password"`
StaticPassword *string `json:"static_password"`
RotationIntervalDays int `json:"rotation_interval_days"`
RotateFirmwarePassword bool `json:"rotate_firmware_password"`
}
MDMRecoveryPasswordConfigRequest represents a request to create or update a MDM recovery password configuration
type MDMRecoveryPasswordConfigsService ¶ added in v0.1.37
type MDMRecoveryPasswordConfigsService interface {
List(context.Context, *ListOptions) ([]MDMRecoveryPasswordConfig, *Response, error)
GetByID(context.Context, int) (*MDMRecoveryPasswordConfig, *Response, error)
GetByName(context.Context, string) (*MDMRecoveryPasswordConfig, *Response, error)
Create(context.Context, *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
Update(context.Context, int, *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MDMRecoveryPasswordConfigsService is an interface for interfacing with the MDM recovery password configuration endpoints of the Zentral API
type MDMRecoveryPasswordConfigsServiceOp ¶ added in v0.1.37
type MDMRecoveryPasswordConfigsServiceOp struct {
// contains filtered or unexported fields
}
MDMRecoveryPasswordConfigsServiceOp handles communication with the MDM recovery password configurations related methods of the Zentral API.
func (*MDMRecoveryPasswordConfigsServiceOp) Create ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) Create(ctx context.Context, createRequest *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
Create a new MDM recovery password configuration.
func (*MDMRecoveryPasswordConfigsServiceOp) Delete ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) Delete(ctx context.Context, mrpcID int) (*Response, error)
Delete a MDM recovery password configuration.
func (*MDMRecoveryPasswordConfigsServiceOp) GetByID ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) GetByID(ctx context.Context, mrpcID int) (*MDMRecoveryPasswordConfig, *Response, error)
GetByID retrieves a MDM recovery password configuration by id.
func (*MDMRecoveryPasswordConfigsServiceOp) GetByName ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMRecoveryPasswordConfig, *Response, error)
GetByName retrieves a MDM recovery password configuration by name.
func (*MDMRecoveryPasswordConfigsServiceOp) List ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMRecoveryPasswordConfig, *Response, error)
List lists all the MDM recovery password configurations.
func (*MDMRecoveryPasswordConfigsServiceOp) Update ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) Update(ctx context.Context, mrpcID int, updateRequest *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
Update a MDM recovery password configuration.
type MDMSCEPIssuer ¶ added in v0.1.59
type MDMSCEPIssuer struct {
ID string `json:"id"`
ProvisioningUID *string `json:"provisioning_uid"`
Name string `json:"name"`
Description string `json:"description"`
URL string `json:"url"`
KeySize int `json:"key_size"`
KeyUsage int `json:"key_usage"`
Backend *string `json:"backend"`
Digicert *Digicert `json:"digicert_kwargs"`
IDent *IDent `json:"ident_kwargs"`
MicrosoftCA *MicrosoftCA `json:"microsoft_ca_kwargs"`
OktaCA *MicrosoftCA `json:"okta_ca_kwargs"`
StaticChallenge *StaticChallenge `json:"static_challenge_kwargs"`
Version int `json:"version"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MDMSCEPIssuer represents a Zentral MDM SCEP issuer.
func (MDMSCEPIssuer) String ¶ added in v0.1.59
func (msi MDMSCEPIssuer) String() string
type MDMSCEPIssuerRequest ¶ added in v0.1.59
type MDMSCEPIssuerRequest struct {
Name string `json:"name"`
Description string `json:"description"`
URL string `json:"url"`
KeySize int `json:"key_size"`
KeyUsage int `json:"key_usage"`
Backend string `json:"backend"`
Digicert *Digicert `json:"digicert_kwargs"`
IDent *IDent `json:"ident_kwargs"`
MicrosoftCA *MicrosoftCA `json:"microsoft_ca_kwargs"`
OktaCA *MicrosoftCA `json:"okta_ca_kwargs"`
StaticChallenge *StaticChallenge `json:"static_challenge_kwargs"`
}
MDMSCEPIssuerRequest represents a request to create or update a MDM SCEP issuer.
type MDMSCEPIssuersService ¶ added in v0.1.59
type MDMSCEPIssuersService interface {
List(context.Context, *ListOptions) ([]MDMSCEPIssuer, *Response, error)
GetByID(context.Context, string) (*MDMSCEPIssuer, *Response, error)
GetByName(context.Context, string) (*MDMSCEPIssuer, *Response, error)
Create(context.Context, *MDMSCEPIssuerRequest) (*MDMSCEPIssuer, *Response, error)
Update(context.Context, string, *MDMSCEPIssuerRequest) (*MDMSCEPIssuer, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMSCEPIssuersService is an interface for interfacing with the MDM SCEP issuers endpoints of the Zentral API.
type MDMSCEPIssuersServiceOp ¶ added in v0.1.59
type MDMSCEPIssuersServiceOp struct {
// contains filtered or unexported fields
}
MDMSCEPIssuersServiceOp handles communication with the MDM SCEP issuers related methods of the Zentral API.
func (*MDMSCEPIssuersServiceOp) Create ¶ added in v0.1.59
func (s *MDMSCEPIssuersServiceOp) Create(ctx context.Context, createRequest *MDMSCEPIssuerRequest) (*MDMSCEPIssuer, *Response, error)
Create a new MDM SCEP issuer.
func (*MDMSCEPIssuersServiceOp) GetByID ¶ added in v0.1.59
func (s *MDMSCEPIssuersServiceOp) GetByID(ctx context.Context, msiID string) (*MDMSCEPIssuer, *Response, error)
GetByID retrieves a MDM SCEP issuer by id.
func (*MDMSCEPIssuersServiceOp) GetByName ¶ added in v0.1.59
func (s *MDMSCEPIssuersServiceOp) GetByName(ctx context.Context, name string) (*MDMSCEPIssuer, *Response, error)
GetByName retrieves a MDM SCEP issuer by name.
func (*MDMSCEPIssuersServiceOp) List ¶ added in v0.1.59
func (s *MDMSCEPIssuersServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMSCEPIssuer, *Response, error)
List lists all the MDM SCEP issuers.
func (*MDMSCEPIssuersServiceOp) Update ¶ added in v0.1.59
func (s *MDMSCEPIssuersServiceOp) Update(ctx context.Context, msiID string, updateRequest *MDMSCEPIssuerRequest) (*MDMSCEPIssuer, *Response, error)
Update a MDM SCEP issuer.
type MDMSoftwareUpdateEnforcement ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcement struct {
ID int `json:"id"`
Name string `json:"name"`
DetailsURL string `json:"details_url"`
Platforms []string `json:"platforms"`
TagIDs []int `json:"tags"`
OSVersion string `json:"os_version"`
BuildVersion string `json:"build_version"`
LocalDateTime *string `json:"local_datetime"`
MaxOSVersion string `json:"max_os_version"`
DelayDays *int `json:"delay_days"`
LocalTime *string `json:"local_time"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MDMSoftwareUpdateEnforcement represents a Zentral MDM software update enforcement
func (MDMSoftwareUpdateEnforcement) String ¶ added in v0.1.43
func (msue MDMSoftwareUpdateEnforcement) String() string
type MDMSoftwareUpdateEnforcementRequest ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcementRequest struct {
Name string `json:"name"`
DetailsURL string `json:"details_url"`
Platforms []string `json:"platforms"`
TagIDs []int `json:"tags"`
OSVersion string `json:"os_version"`
BuildVersion string `json:"build_version"`
LocalDateTime *string `json:"local_datetime"`
MaxOSVersion string `json:"max_os_version"`
DelayDays *int `json:"delay_days"`
LocalTime *string `json:"local_time"`
}
MDMSoftwareUpdateEnforcementRequest represents a request to create or update a MDM software update enforcement
type MDMSoftwareUpdateEnforcementsService ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcementsService interface {
List(context.Context, *ListOptions) ([]MDMSoftwareUpdateEnforcement, *Response, error)
GetByID(context.Context, int) (*MDMSoftwareUpdateEnforcement, *Response, error)
GetByName(context.Context, string) (*MDMSoftwareUpdateEnforcement, *Response, error)
Create(context.Context, *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
Update(context.Context, int, *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MDMSoftwareUpdateEnforcementsService is an interface for interfacing with the MDM software update enforcement endpoints of the Zentral API
type MDMSoftwareUpdateEnforcementsServiceOp ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcementsServiceOp struct {
// contains filtered or unexported fields
}
MDMSoftwareUpdateEnforcementsServiceOp handles communication with the MDM software update enforcements related methods of the Zentral API.
func (*MDMSoftwareUpdateEnforcementsServiceOp) Create ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) Create(ctx context.Context, createRequest *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
Create a new MDM software update enforcement.
func (*MDMSoftwareUpdateEnforcementsServiceOp) Delete ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) Delete(ctx context.Context, msueID int) (*Response, error)
Delete a MDM software update enforcement.
func (*MDMSoftwareUpdateEnforcementsServiceOp) GetByID ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByID(ctx context.Context, msueID int) (*MDMSoftwareUpdateEnforcement, *Response, error)
GetByID retrieves a MDM software update enforcement by id.
func (*MDMSoftwareUpdateEnforcementsServiceOp) GetByName ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByName(ctx context.Context, name string) (*MDMSoftwareUpdateEnforcement, *Response, error)
GetByName retrieves a MDM software update enforcement by name.
func (*MDMSoftwareUpdateEnforcementsServiceOp) List ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMSoftwareUpdateEnforcement, *Response, error)
List lists all the MDM software update enforcements.
func (*MDMSoftwareUpdateEnforcementsServiceOp) Update ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) Update(ctx context.Context, msueID int, updateRequest *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
Update a MDM software update enforcement.
type MDMStoreApp ¶ added in v0.1.63
type MDMStoreApp struct {
ID string `json:"id"`
LocationAssetID int `json:"location_asset"`
AssociatedDomains []string `json:"associated_domains"`
AssociatedDomainsEnableDirectDownloads bool `json:"associated_domains_enable_direct_downloads"`
Configuration *string `json:"configuration"`
ContentFilterUUID *string `json:"content_filter_uuid"`
DNSProxyUUID *string `json:"dns_proxy_uuid"`
VPNUUID *string `json:"vpn_uuid"`
PreventBackup bool `json:"prevent_backup"`
Removable bool `json:"removable"`
RemoveOnUnenroll bool `json:"remove_on_unenroll"`
MDMArtifactVersion
}
MDMStoreApp represents a Zentral MDM store app
func (MDMStoreApp) String ¶ added in v0.1.63
func (msa MDMStoreApp) String() string
type MDMStoreAppRequest ¶ added in v0.1.63
type MDMStoreAppRequest struct {
LocationAssetID int `json:"location_asset"`
AssociatedDomains []string `json:"associated_domains"`
AssociatedDomainsEnableDirectDownloads bool `json:"associated_domains_enable_direct_downloads"`
Configuration *string `json:"configuration"`
ContentFilterUUID *string `json:"content_filter_uuid"`
DNSProxyUUID *string `json:"dns_proxy_uuid"`
VPNUUID *string `json:"vpn_uuid"`
PreventBackup bool `json:"prevent_backup"`
Removable bool `json:"removable"`
RemoveOnUnenroll bool `json:"remove_on_unenroll"`
MDMArtifactVersionRequest
}
MDMStoreAppRequest represents a request to create or update a MDM store app
type MDMStoreAppsService ¶ added in v0.1.63
type MDMStoreAppsService interface {
List(context.Context, *ListOptions) ([]MDMStoreApp, *Response, error)
GetByID(context.Context, string) (*MDMStoreApp, *Response, error)
Create(context.Context, *MDMStoreAppRequest) (*MDMStoreApp, *Response, error)
Update(context.Context, string, *MDMStoreAppRequest) (*MDMStoreApp, *Response, error)
Delete(context.Context, string) (*Response, error)
}
MDMStoreAppsService is an interface for interfacing with the MDM store app endpoints of the Zentral API
type MDMStoreAppsServiceOp ¶ added in v0.1.63
type MDMStoreAppsServiceOp struct {
// contains filtered or unexported fields
}
MDMStoreAppsServiceOp handles communication with the MDM store apps related methods of the Zentral API.
func (*MDMStoreAppsServiceOp) Create ¶ added in v0.1.63
func (s *MDMStoreAppsServiceOp) Create(ctx context.Context, createRequest *MDMStoreAppRequest) (*MDMStoreApp, *Response, error)
Create a new MDM store app.
func (*MDMStoreAppsServiceOp) GetByID ¶ added in v0.1.63
func (s *MDMStoreAppsServiceOp) GetByID(ctx context.Context, msaID string) (*MDMStoreApp, *Response, error)
GetByID retrieves a MDM store app by id.
func (*MDMStoreAppsServiceOp) List ¶ added in v0.1.63
func (s *MDMStoreAppsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMStoreApp, *Response, error)
List lists all the MDM store apps.
func (*MDMStoreAppsServiceOp) Update ¶ added in v0.1.63
func (s *MDMStoreAppsServiceOp) Update(ctx context.Context, msaID string, updateRequest *MDMStoreAppRequest) (*MDMStoreApp, *Response, error)
Update a MDM store app.
type MetaBusinessUnit ¶
type MetaBusinessUnit struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
APIEnrollmentEnabled bool `json:"api_enrollment_enabled"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MetaBusinessUnit represents a Zentral MetaBusinessUnit
func (MetaBusinessUnit) String ¶
func (mbu MetaBusinessUnit) String() string
type MetaBusinessUnitCreateRequest ¶
type MetaBusinessUnitCreateRequest struct {
Name string `json:"name"`
// Boolean to enable API enrollments.
APIEnrollmentEnabled bool `json:"api_enrollment_enabled"`
}
MetaBusinessUnitCreateRequest represents a request to create a meta business unit.
type MetaBusinessUnitUpdateRequest ¶
type MetaBusinessUnitUpdateRequest struct {
Name string `json:"name"`
// Boolean to enable API enrollments.
// If set, it cannot be unset.
APIEnrollmentEnabled bool `json:"api_enrollment_enabled"`
}
MetaBusinessUnitUpdateRequest represents a request to update a meta business unit.
type MetaBusinessUnitsService ¶
type MetaBusinessUnitsService interface {
List(context.Context, *ListOptions) ([]MetaBusinessUnit, *Response, error)
GetByID(context.Context, int) (*MetaBusinessUnit, *Response, error)
GetByName(context.Context, string) (*MetaBusinessUnit, *Response, error)
Create(context.Context, *MetaBusinessUnitCreateRequest) (*MetaBusinessUnit, *Response, error)
Update(context.Context, int, *MetaBusinessUnitUpdateRequest) (*MetaBusinessUnit, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MetaBusinessUnitsService is an interface for interfacing with the meta business units endpoints of the Zentral API
type MetaBusinessUnitsServiceOp ¶
type MetaBusinessUnitsServiceOp struct {
// contains filtered or unexported fields
}
MetaBusinessUnitsServiceOp handles communication with the meta business units related methods of the Zentral API.
func (*MetaBusinessUnitsServiceOp) Create ¶
func (s *MetaBusinessUnitsServiceOp) Create(ctx context.Context, createRequest *MetaBusinessUnitCreateRequest) (*MetaBusinessUnit, *Response, error)
Create a new meta business unit.
func (*MetaBusinessUnitsServiceOp) GetByID ¶
func (s *MetaBusinessUnitsServiceOp) GetByID(ctx context.Context, mbuID int) (*MetaBusinessUnit, *Response, error)
GetByID retrieves a meta business unit by id.
func (*MetaBusinessUnitsServiceOp) GetByName ¶
func (s *MetaBusinessUnitsServiceOp) GetByName(ctx context.Context, name string) (*MetaBusinessUnit, *Response, error)
GetByName retrieves a meta business unit by name.
func (*MetaBusinessUnitsServiceOp) List ¶
func (s *MetaBusinessUnitsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MetaBusinessUnit, *Response, error)
List lists all the meta business units.
func (*MetaBusinessUnitsServiceOp) Update ¶
func (s *MetaBusinessUnitsServiceOp) Update(ctx context.Context, mbuID int, updateRequest *MetaBusinessUnitUpdateRequest) (*MetaBusinessUnit, *Response, error)
Update a meta business unit.
type MetadataFilter ¶ added in v0.1.55
type MicrosoftCA ¶ added in v0.1.59
type MonolithAzureBackend ¶ added in v0.1.52
type MonolithCatalog ¶ added in v0.1.21
type MonolithCatalog struct {
ID int `json:"id"`
RepositoryID int `json:"repository"`
Name string `json:"name"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
ArchivedAt *Timestamp `json:"archived_at"`
}
MonolithCatalog represents a Zentral MonolithCatalog
func (MonolithCatalog) String ¶ added in v0.1.21
func (se MonolithCatalog) String() string
type MonolithCatalogRequest ¶ added in v0.1.21
type MonolithCatalogRequest struct {
Name string `json:"name"`
RepositoryID int `json:"repository"`
}
MonolithCatalogRequest represents a request to create or update a Monolith catalog
type MonolithCatalogsService ¶ added in v0.1.21
type MonolithCatalogsService interface {
List(context.Context, *ListOptions) ([]MonolithCatalog, *Response, error)
GetByID(context.Context, int) (*MonolithCatalog, *Response, error)
GetByName(context.Context, string) (*MonolithCatalog, *Response, error)
Create(context.Context, *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
Update(context.Context, int, *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithCatalogsService is an interface for interfacing with the Monolith catalogs endpoints of the Zentral API
type MonolithCatalogsServiceOp ¶ added in v0.1.21
type MonolithCatalogsServiceOp struct {
// contains filtered or unexported fields
}
MonolithCatalogsServiceOp handles comcunication with the Monolith catalogs related methods of the Zentral API.
func (*MonolithCatalogsServiceOp) Create ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
Create a new Monolith catalog.
func (*MonolithCatalogsServiceOp) GetByID ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCatalog, *Response, error)
GetByID retrieves a Monolith catalog by id.
func (*MonolithCatalogsServiceOp) GetByName ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCatalog, *Response, error)
GetByName retrieves a Monolith catalog by name.
func (*MonolithCatalogsServiceOp) List ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCatalog, *Response, error)
List lists all the Monolith catalogs.
func (*MonolithCatalogsServiceOp) Update ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
Update a Monolith catalog.
type MonolithCondition ¶ added in v0.1.26
type MonolithCondition struct {
ID int `json:"id"`
Name string `json:"name"`
Predicate string `json:"predicate"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MonolithCondition represents a Zentral MonolithCondition
func (MonolithCondition) String ¶ added in v0.1.26
func (se MonolithCondition) String() string
type MonolithConditionRequest ¶ added in v0.1.26
type MonolithConditionRequest struct {
Name string `json:"name"`
Predicate string `json:"predicate"`
}
MonolithConditionRequest represents a request to create or update a Monolith condition
type MonolithConditionsService ¶ added in v0.1.26
type MonolithConditionsService interface {
List(context.Context, *ListOptions) ([]MonolithCondition, *Response, error)
GetByID(context.Context, int) (*MonolithCondition, *Response, error)
GetByName(context.Context, string) (*MonolithCondition, *Response, error)
Create(context.Context, *MonolithConditionRequest) (*MonolithCondition, *Response, error)
Update(context.Context, int, *MonolithConditionRequest) (*MonolithCondition, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithConditionsService is an interface for interfacing with the Monolith conditions endpoints of the Zentral API
type MonolithConditionsServiceOp ¶ added in v0.1.26
type MonolithConditionsServiceOp struct {
// contains filtered or unexported fields
}
MonolithConditionsServiceOp handles comcunication with the Monolith conditions related methods of the Zentral API.
func (*MonolithConditionsServiceOp) Create ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) Create(ctx context.Context, createRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
Create a new Monolith condition.
func (*MonolithConditionsServiceOp) GetByID ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCondition, *Response, error)
GetByID retrieves a Monolith condition by id.
func (*MonolithConditionsServiceOp) GetByName ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCondition, *Response, error)
GetByName retrieves a Monolith condition by name.
func (*MonolithConditionsServiceOp) List ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCondition, *Response, error)
List lists all the Monolith conditions.
func (*MonolithConditionsServiceOp) Update ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
Update a Monolith condition.
type MonolithEnrollment ¶ added in v0.1.27
type MonolithEnrollment struct {
ID int `json:"id"`
ManifestID int `json:"manifest"`
EnrolledMachinesCount int `json:"enrolled_machines_count"`
Secret EnrollmentSecret `json:"secret"`
Version int `json:"version"`
ConfigProfileURL string `json:"configuration_profile_download_url"`
PlistURL string `json:"plist_download_url"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MonolithEnrollment represents a Zentral MonolithEnrollment
func (MonolithEnrollment) String ¶ added in v0.1.27
func (se MonolithEnrollment) String() string
type MonolithEnrollmentRequest ¶ added in v0.1.27
type MonolithEnrollmentRequest struct {
ManifestID int `json:"manifest"`
Secret EnrollmentSecretRequest `json:"secret"`
}
MonolithEnrollmentRequest represents a request to create or update a Monolith enrollment
type MonolithEnrollmentsService ¶ added in v0.1.27
type MonolithEnrollmentsService interface {
List(context.Context, *ListOptions) ([]MonolithEnrollment, *Response, error)
GetByID(context.Context, int) (*MonolithEnrollment, *Response, error)
GetByManifestID(context.Context, int) ([]MonolithEnrollment, *Response, error)
Create(context.Context, *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
Update(context.Context, int, *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithEnrollmentsService is an interface for interfacing with the Monolith enrollments endpoints of the Zentral API
type MonolithEnrollmentsServiceOp ¶ added in v0.1.27
type MonolithEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
MonolithEnrollmentsServiceOp handles communication with the Monolith enrollments related methods of the Zentral API.
func (*MonolithEnrollmentsServiceOp) Create ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
Create a new Monolith enrollment.
func (*MonolithEnrollmentsServiceOp) GetByID ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MonolithEnrollment, *Response, error)
GetByID retrieves a Monolith enrollment by id.
func (*MonolithEnrollmentsServiceOp) GetByManifestID ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithEnrollment, *Response, error)
GetByManifestID retrieves the Monolith enrollments for a given manifest.
func (*MonolithEnrollmentsServiceOp) List ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithEnrollment, *Response, error)
List lists all the Monolith enrollments.
func (*MonolithEnrollmentsServiceOp) Update ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
Update a Monolith enrollment.
type MonolithManifest ¶ added in v0.1.20
type MonolithManifest struct {
ID int `json:"id"`
Name string `json:"name"`
MetaBusinessUnitID int `json:"meta_business_unit"`
Version int `json:"version"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MonolithManifest represents a Zentral MonolithManifest
func (MonolithManifest) String ¶ added in v0.1.20
func (se MonolithManifest) String() string
type MonolithManifestCatalog ¶ added in v0.1.22
type MonolithManifestCatalog struct {
ID int `json:"id"`
ManifestID int `json:"manifest"`
CatalogID int `json:"catalog"`
TagIDs []int `json:"tags"`
}
MonolithManifestCatalog represents a Zentral manifest catalog.
func (MonolithManifestCatalog) String ¶ added in v0.1.22
func (se MonolithManifestCatalog) String() string
type MonolithManifestCatalogRequest ¶ added in v0.1.22
type MonolithManifestCatalogRequest struct {
ManifestID int `json:"manifest"`
CatalogID int `json:"catalog"`
TagIDs []int `json:"tags"`
}
MonolithManifestCatalogRequest represents a request to create or update a Monolith manifest catalog.
type MonolithManifestCatalogsService ¶ added in v0.1.22
type MonolithManifestCatalogsService interface {
List(context.Context, *ListOptions) ([]MonolithManifestCatalog, *Response, error)
GetByID(context.Context, int) (*MonolithManifestCatalog, *Response, error)
GetByCatalogID(context.Context, int) ([]MonolithManifestCatalog, *Response, error)
GetByManifestID(context.Context, int) ([]MonolithManifestCatalog, *Response, error)
Create(context.Context, *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
Update(context.Context, int, *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithManifestCatalogsService is an interface for interfacing with the Monolith manifest catalogs endpoints of the Zentral API
type MonolithManifestCatalogsServiceOp ¶ added in v0.1.22
type MonolithManifestCatalogsServiceOp struct {
// contains filtered or unexported fields
}
MonolithManifestCatalogsServiceOp handles commcunication with the Monolith manifest catalogs related methods of the Zentral API.
func (*MonolithManifestCatalogsServiceOp) Create ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
Create a new Monolith manifest catalog.
func (*MonolithManifestCatalogsServiceOp) Delete ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) Delete(ctx context.Context, mmcID int) (*Response, error)
Delete a Monolith manifest catalog.
func (*MonolithManifestCatalogsServiceOp) GetByCatalogID ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) GetByCatalogID(ctx context.Context, mcID int) ([]MonolithManifestCatalog, *Response, error)
GetByCatalogID retrieves Monolith manifest catalogs by catalog ID.
func (*MonolithManifestCatalogsServiceOp) GetByID ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) GetByID(ctx context.Context, mmcID int) (*MonolithManifestCatalog, *Response, error)
GetByID retrieves a Monolith manifest catalog by id.
func (*MonolithManifestCatalogsServiceOp) GetByManifestID ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) GetByManifestID(ctx context.Context, mmID int) ([]MonolithManifestCatalog, *Response, error)
GetByManifestID retrieves Monolith manifest catalogs by manifest ID.
func (*MonolithManifestCatalogsServiceOp) List ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestCatalog, *Response, error)
List lists all the Monolith manifest catalogs.
func (*MonolithManifestCatalogsServiceOp) Update ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) Update(ctx context.Context, mmcID int, updateRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
Update a Monolith manifest catalog.
type MonolithManifestEnrollmentPackage ¶ added in v0.1.47
type MonolithManifestEnrollmentPackage struct {
ID int `json:"id"`
ManifestID int `json:"manifest"`
Builder string `json:"builder"`
EnrollmentID int `json:"enrollment_pk"`
Version int `json:"version"`
TagIDs []int `json:"tags"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MonolithManifestEnrollmentPackage represents a Zentral manifest enrollment package.
func (MonolithManifestEnrollmentPackage) String ¶ added in v0.1.47
func (se MonolithManifestEnrollmentPackage) String() string
type MonolithManifestEnrollmentPackageRequest ¶ added in v0.1.47
type MonolithManifestEnrollmentPackageRequest struct {
ManifestID int `json:"manifest"`
Builder string `json:"builder"`
EnrollmentID int `json:"enrollment_pk"`
TagIDs []int `json:"tags"`
}
MonolithManifestEnrollmentPackageRequest represents a request to create or update a Monolith manifest enrollment package.
type MonolithManifestEnrollmentPackagesService ¶ added in v0.1.47
type MonolithManifestEnrollmentPackagesService interface {
List(context.Context, *ListOptions) ([]MonolithManifestEnrollmentPackage, *Response, error)
GetByID(context.Context, int) (*MonolithManifestEnrollmentPackage, *Response, error)
GetByManifestID(context.Context, int) ([]MonolithManifestEnrollmentPackage, *Response, error)
Create(context.Context, *MonolithManifestEnrollmentPackageRequest) (*MonolithManifestEnrollmentPackage, *Response, error)
Update(context.Context, int, *MonolithManifestEnrollmentPackageRequest) (*MonolithManifestEnrollmentPackage, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithManifestEnrollmentPackagesService is an interface for interfacing with the Monolith manifest enrollment packages endpoints of the Zentral API
type MonolithManifestEnrollmentPackagesServiceOp ¶ added in v0.1.47
type MonolithManifestEnrollmentPackagesServiceOp struct {
// contains filtered or unexported fields
}
MonolithManifestEnrollmentPackagesServiceOp handles commepunication with the Monolith manifest enrollment packages related methods of the Zentral API.
func (*MonolithManifestEnrollmentPackagesServiceOp) Create ¶ added in v0.1.47
func (s *MonolithManifestEnrollmentPackagesServiceOp) Create(ctx context.Context, createRequest *MonolithManifestEnrollmentPackageRequest) (*MonolithManifestEnrollmentPackage, *Response, error)
Create a new Monolith manifest enrollment package.
func (*MonolithManifestEnrollmentPackagesServiceOp) Delete ¶ added in v0.1.47
func (s *MonolithManifestEnrollmentPackagesServiceOp) Delete(ctx context.Context, mmepID int) (*Response, error)
Delete a Monolith manifest enrollment package.
func (*MonolithManifestEnrollmentPackagesServiceOp) GetByID ¶ added in v0.1.47
func (s *MonolithManifestEnrollmentPackagesServiceOp) GetByID(ctx context.Context, mmepID int) (*MonolithManifestEnrollmentPackage, *Response, error)
GetByID retrieves a Monolith manifest enrollment package by id.
func (*MonolithManifestEnrollmentPackagesServiceOp) GetByManifestID ¶ added in v0.1.47
func (s *MonolithManifestEnrollmentPackagesServiceOp) GetByManifestID(ctx context.Context, mmID int) ([]MonolithManifestEnrollmentPackage, *Response, error)
GetByManifestID retrieves Monolith manifest enrollment packages by manifest ID.
func (*MonolithManifestEnrollmentPackagesServiceOp) List ¶ added in v0.1.47
func (s *MonolithManifestEnrollmentPackagesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestEnrollmentPackage, *Response, error)
List lists all the Monolith manifest enrollment packages.
func (*MonolithManifestEnrollmentPackagesServiceOp) Update ¶ added in v0.1.47
func (s *MonolithManifestEnrollmentPackagesServiceOp) Update(ctx context.Context, mmepID int, updateRequest *MonolithManifestEnrollmentPackageRequest) (*MonolithManifestEnrollmentPackage, *Response, error)
Update a Monolith manifest enrollment package.
type MonolithManifestRequest ¶ added in v0.1.20
type MonolithManifestRequest struct {
Name string `json:"name"`
MetaBusinessUnitID int `json:"meta_business_unit"`
}
MonolithManifestRequest represents a request to create or update a Monolith manifest
type MonolithManifestSubManifest ¶ added in v0.1.24
type MonolithManifestSubManifest struct {
ID int `json:"id"`
ManifestID int `json:"manifest"`
SubManifestID int `json:"sub_manifest"`
TagIDs []int `json:"tags"`
}
MonolithManifestSubManifest represents a Zentral manifest sub manifest.
func (MonolithManifestSubManifest) String ¶ added in v0.1.24
func (se MonolithManifestSubManifest) String() string
type MonolithManifestSubManifestRequest ¶ added in v0.1.24
type MonolithManifestSubManifestRequest struct {
ManifestID int `json:"manifest"`
SubManifestID int `json:"sub_manifest"`
TagIDs []int `json:"tags"`
}
MonolithManifestSubManifestRequest represents a request to create or update a Monolith manifest sub manifest.
type MonolithManifestSubManifestsService ¶ added in v0.1.24
type MonolithManifestSubManifestsService interface {
List(context.Context, *ListOptions) ([]MonolithManifestSubManifest, *Response, error)
GetByID(context.Context, int) (*MonolithManifestSubManifest, *Response, error)
GetByManifestID(context.Context, int) ([]MonolithManifestSubManifest, *Response, error)
GetBySubManifestID(context.Context, int) ([]MonolithManifestSubManifest, *Response, error)
Create(context.Context, *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
Update(context.Context, int, *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithManifestSubManifestsService is an interface for interfacing with the Monolith manifest sub manifests endpoints of the Zentral API
type MonolithManifestSubManifestsServiceOp ¶ added in v0.1.24
type MonolithManifestSubManifestsServiceOp struct {
// contains filtered or unexported fields
}
MonolithManifestSubManifestsServiceOp handles comsmunication with the Monolith manifest sub manifests related methods of the Zentral API.
func (*MonolithManifestSubManifestsServiceOp) Create ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
Create a new Monolith manifest sub manifest.
func (*MonolithManifestSubManifestsServiceOp) Delete ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) Delete(ctx context.Context, msmID int) (*Response, error)
Delete a Monolith manifest sub manifest.
func (*MonolithManifestSubManifestsServiceOp) GetByID ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithManifestSubManifest, *Response, error)
GetByID retrieves a Monolith manifest sub manifest by id.
func (*MonolithManifestSubManifestsServiceOp) GetByManifestID ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithManifestSubManifest, *Response, error)
GetByManifestID retrieves Monolith manifest sub manifests by manifest ID.
func (*MonolithManifestSubManifestsServiceOp) GetBySubManifestID ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) GetBySubManifestID(ctx context.Context, msmID int) ([]MonolithManifestSubManifest, *Response, error)
GetBySubManifestID retrieves Monolith manifest sub manifests by sub manifest ID.
func (*MonolithManifestSubManifestsServiceOp) List ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestSubManifest, *Response, error)
List lists all the Monolith manifest sub manifests.
func (*MonolithManifestSubManifestsServiceOp) Update ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) Update(ctx context.Context, msmID int, updateRequest *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
Update a Monolith manifest sub manifest.
type MonolithManifestsService ¶ added in v0.1.20
type MonolithManifestsService interface {
List(context.Context, *ListOptions) ([]MonolithManifest, *Response, error)
GetByID(context.Context, int) (*MonolithManifest, *Response, error)
GetByName(context.Context, string) (*MonolithManifest, *Response, error)
Create(context.Context, *MonolithManifestRequest) (*MonolithManifest, *Response, error)
Update(context.Context, int, *MonolithManifestRequest) (*MonolithManifest, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithManifestsService is an interface for interfacing with the Monolith manifests endpoints of the Zentral API
type MonolithManifestsServiceOp ¶ added in v0.1.20
type MonolithManifestsServiceOp struct {
// contains filtered or unexported fields
}
MonolithManifestsServiceOp handles communication with the Monolith manifests related methods of the Zentral API.
func (*MonolithManifestsServiceOp) Create ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
Create a new Monolith manifest.
func (*MonolithManifestsServiceOp) GetByID ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) GetByID(ctx context.Context, mmID int) (*MonolithManifest, *Response, error)
GetByID retrieves a Monolith manifest by id.
func (*MonolithManifestsServiceOp) GetByName ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithManifest, *Response, error)
GetByName retrieves a Monolith manifest by name.
func (*MonolithManifestsServiceOp) List ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifest, *Response, error)
List lists all the Monolith manifests.
func (*MonolithManifestsServiceOp) Update ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) Update(ctx context.Context, mmID int, updateRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
Update a Monolith manifest.
type MonolithRepositoriesService ¶ added in v0.1.46
type MonolithRepositoriesService interface {
List(context.Context, *ListOptions) ([]MonolithRepository, *Response, error)
GetByID(context.Context, int) (*MonolithRepository, *Response, error)
GetByName(context.Context, string) (*MonolithRepository, *Response, error)
Create(context.Context, *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
Update(context.Context, int, *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithRepositoriesService is an interface for interfacing with the Monolith manifests endpoints of the Zentral API
type MonolithRepositoriesServiceOp ¶ added in v0.1.46
type MonolithRepositoriesServiceOp struct {
// contains filtered or unexported fields
}
MonolithRepositoriesServiceOp handles comrunication with the Monolith manifests related methods of the Zentral API.
func (*MonolithRepositoriesServiceOp) Create ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) Create(ctx context.Context, createRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
Create a new Monolith manifest.
func (*MonolithRepositoriesServiceOp) GetByID ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) GetByID(ctx context.Context, mrID int) (*MonolithRepository, *Response, error)
GetByID retrieves a Monolith manifest by id.
func (*MonolithRepositoriesServiceOp) GetByName ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) GetByName(ctx context.Context, name string) (*MonolithRepository, *Response, error)
GetByName retrieves a Monolith manifest by name.
func (*MonolithRepositoriesServiceOp) List ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithRepository, *Response, error)
List lists all the Monolith manifests.
func (*MonolithRepositoriesServiceOp) Update ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) Update(ctx context.Context, mrID int, updateRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
Update a Monolith manifest.
type MonolithRepository ¶ added in v0.1.46
type MonolithRepository struct {
ID int `json:"id"`
Name string `json:"name"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
Backend string `json:"backend"`
Azure *MonolithAzureBackend `json:"azure_kwargs"`
S3 *MonolithS3Backend `json:"s3_kwargs"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
func (MonolithRepository) String ¶ added in v0.1.46
func (mr MonolithRepository) String() string
type MonolithRepositoryRequest ¶ added in v0.1.46
type MonolithRepositoryRequest struct {
Name string `json:"name"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
Backend string `json:"backend"`
Azure *MonolithAzureBackend `json:"azure_kwargs,omitempty"`
S3 *MonolithS3Backend `json:"s3_kwargs,omitempty"`
}
MonolithRepositoryRequest represents a request to create or update a Monolith manifest
type MonolithS3Backend ¶ added in v0.1.46
type MonolithS3Backend struct {
Bucket string `json:"bucket"`
RegionName string `json:"region_name"`
Prefix string `json:"prefix"`
AccessKeyID string `json:"access_key_id"`
SecretAccessKey string `json:"secret_access_key"`
AssumeRoleARN string `json:"assume_role_arn"`
SignatureVersion string `json:"signature_version"`
EndpointURL string `json:"endpoint_url"`
CloudfrontDomain string `json:"cloudfront_domain"`
CloudfrontKeyID string `json:"cloudfront_key_id"`
CloudfrontPrivkeyPEM string `json:"cloudfront_privkey_pem"`
}
type MonolithSubManifest ¶ added in v0.1.23
type MonolithSubManifest struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MonolithSubManifest represents a Zentral MonolithSubManifest
func (MonolithSubManifest) String ¶ added in v0.1.23
func (se MonolithSubManifest) String() string
type MonolithSubManifestPkgInfo ¶ added in v0.1.25
type MonolithSubManifestPkgInfo struct {
ID int `json:"id"`
SubManifestID int `json:"sub_manifest"`
Key string `json:"key"`
PkgInfoName string `json:"pkg_info_name"`
FeaturedItem bool `json:"featured_item"`
ConditionID *int `json:"condition"`
ShardModulo int `json:"shard_modulo"`
DefaultShard int `json:"default_shard"`
ExcludedTagIDs []int `json:"excluded_tags"`
TagShards []TagShard `json:"tag_shards"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MonolithSubManifestPkgInfo represents a Zentral MonolithSubManifestPkgInfo
func (MonolithSubManifestPkgInfo) String ¶ added in v0.1.25
func (se MonolithSubManifestPkgInfo) String() string
type MonolithSubManifestPkgInfoRequest ¶ added in v0.1.25
type MonolithSubManifestPkgInfoRequest struct {
SubManifestID int `json:"sub_manifest"`
Key string `json:"key"`
PkgInfoName string `json:"pkg_info_name"`
FeaturedItem bool `json:"featured_item"`
ConditionID *int `json:"condition"`
ShardModulo int `json:"shard_modulo"`
DefaultShard int `json:"default_shard"`
ExcludedTagIDs []int `json:"excluded_tags"`
TagShards []TagShard `json:"tag_shards"`
}
MonolithSubManifestPkgInfoRequest represents a request to create or update a Monolith sub manifest pkg info
type MonolithSubManifestPkgInfosService ¶ added in v0.1.25
type MonolithSubManifestPkgInfosService interface {
List(context.Context, *ListOptions) ([]MonolithSubManifestPkgInfo, *Response, error)
GetByID(context.Context, int) (*MonolithSubManifestPkgInfo, *Response, error)
GetBySubManifestID(context.Context, int) ([]MonolithSubManifestPkgInfo, *Response, error)
Create(context.Context, *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
Update(context.Context, int, *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithSubManifestPkgInfosService is an interface for interfacing with the Monolith sub manifest pkg infos endpoints of the Zentral API
type MonolithSubManifestPkgInfosServiceOp ¶ added in v0.1.25
type MonolithSubManifestPkgInfosServiceOp struct {
// contains filtered or unexported fields
}
MonolithSubManifestPkgInfosServiceOp handles cosmpiunication with the Monolith sub manifest pkg infos related methods of the Zentral API.
func (*MonolithSubManifestPkgInfosServiceOp) Create ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
Create a new Monolith sub manifest pkg info.
func (*MonolithSubManifestPkgInfosServiceOp) Delete ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) Delete(ctx context.Context, smpiID int) (*Response, error)
Delete a Monolith sub manifest pkg info.
func (*MonolithSubManifestPkgInfosServiceOp) GetByID ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) GetByID(ctx context.Context, smpiID int) (*MonolithSubManifestPkgInfo, *Response, error)
GetByID retrieves a Monolith sub manifest pkg info by id.
func (*MonolithSubManifestPkgInfosServiceOp) GetBySubManifestID ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) GetBySubManifestID(ctx context.Context, smID int) ([]MonolithSubManifestPkgInfo, *Response, error)
GetBySubManifestID retrieves Monolith sub manifest pkg infos by sub manifest ID.
func (*MonolithSubManifestPkgInfosServiceOp) List ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifestPkgInfo, *Response, error)
List lists all the Monolith sub manifest pkg infos.
func (*MonolithSubManifestPkgInfosServiceOp) Update ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) Update(ctx context.Context, smpiID int, updateRequest *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
Update a Monolith sub manifest pkg info.
type MonolithSubManifestRequest ¶ added in v0.1.23
type MonolithSubManifestRequest struct {
Name string `json:"name"`
Description string `json:"description"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
}
MonolithSubManifestRequest represents a request to create or update a Monolith sub manifest
type MonolithSubManifestsService ¶ added in v0.1.23
type MonolithSubManifestsService interface {
List(context.Context, *ListOptions) ([]MonolithSubManifest, *Response, error)
GetByID(context.Context, int) (*MonolithSubManifest, *Response, error)
GetByName(context.Context, string) (*MonolithSubManifest, *Response, error)
Create(context.Context, *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
Update(context.Context, int, *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MonolithSubManifestsService is an interface for interfacing with the Monolith sub manifests endpoints of the Zentral API
type MonolithSubManifestsServiceOp ¶ added in v0.1.23
type MonolithSubManifestsServiceOp struct {
// contains filtered or unexported fields
}
MonolithSubManifestsServiceOp handles comsmunication with the Monolith sub manifests related methods of the Zentral API.
func (*MonolithSubManifestsServiceOp) Create ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
Create a new Monolith sub manifest.
func (*MonolithSubManifestsServiceOp) GetByID ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithSubManifest, *Response, error)
GetByID retrieves a Monolith sub manifest by id.
func (*MonolithSubManifestsServiceOp) GetByName ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithSubManifest, *Response, error)
GetByName retrieves a Monolith sub manifest by name.
func (*MonolithSubManifestsServiceOp) List ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifest, *Response, error)
List lists all the Monolith sub manifests.
func (*MonolithSubManifestsServiceOp) Update ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) Update(ctx context.Context, msmID int, updateRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
Update a Monolith sub manifest.
type MunkiConfiguration ¶ added in v0.1.28
type MunkiConfiguration struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description"`
InventoryAppsFullInfoShard int `json:"inventory_apps_full_info_shard"`
PrincipalUserDetectionSources []string `json:"principal_user_detection_sources"`
PrincipalUserDetectionDomains []string `json:"principal_user_detection_domains"`
CollectedConditionKeys []string `json:"collected_condition_keys"`
ManagedInstallsSyncIntervalDays int `json:"managed_installs_sync_interval_days"`
ScriptChecksRunIntervalSeconds int `json:"script_checks_run_interval_seconds"`
AutoReinstallIncidents bool `json:"auto_reinstall_incidents"`
AutoFailedInstallIncidents bool `json:"auto_failed_install_incidents"`
Version int `json:"version"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MunkiConfiguration represents a Zentral MunkiConfiguration
func (MunkiConfiguration) String ¶ added in v0.1.28
func (mc MunkiConfiguration) String() string
type MunkiConfigurationRequest ¶ added in v0.1.28
type MunkiConfigurationRequest struct {
Name string `json:"name"`
Description string `json:"description"`
InventoryAppsFullInfoShard int `json:"inventory_apps_full_info_shard"`
PrincipalUserDetectionSources []string `json:"principal_user_detection_sources"`
PrincipalUserDetectionDomains []string `json:"principal_user_detection_domains"`
CollectedConditionKeys []string `json:"collected_condition_keys"`
ManagedInstallsSyncIntervalDays int `json:"managed_installs_sync_interval_days"`
ScriptChecksRunIntervalSeconds int `json:"script_checks_run_interval_seconds"`
AutoReinstallIncidents bool `json:"auto_reinstall_incidents"`
AutoFailedInstallIncidents bool `json:"auto_failed_install_incidents"`
}
MunkiConfigurationRequest represents a request to create or update a Munki configuration
type MunkiConfigurationsService ¶ added in v0.1.28
type MunkiConfigurationsService interface {
List(context.Context, *ListOptions) ([]MunkiConfiguration, *Response, error)
GetByID(context.Context, int) (*MunkiConfiguration, *Response, error)
GetByName(context.Context, string) (*MunkiConfiguration, *Response, error)
Create(context.Context, *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
Update(context.Context, int, *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MunkiConfigurationsService is an interface for interfacing with the Munki configurations endpoints of the Zentral API
type MunkiConfigurationsServiceOp ¶ added in v0.1.28
type MunkiConfigurationsServiceOp struct {
// contains filtered or unexported fields
}
MunkiConfigurationsServiceOp handles communication with the Munki configurations related methods of the Zentral API.
func (*MunkiConfigurationsServiceOp) Create ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) Create(ctx context.Context, createRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
Create a new Munki configuration.
func (*MunkiConfigurationsServiceOp) GetByID ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) GetByID(ctx context.Context, mcID int) (*MunkiConfiguration, *Response, error)
GetByID retrieves a Munki configuration by id.
func (*MunkiConfigurationsServiceOp) GetByName ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*MunkiConfiguration, *Response, error)
GetByName retrieves a Munki configuration by name.
func (*MunkiConfigurationsServiceOp) List ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiConfiguration, *Response, error)
List lists all the Munki configurations.
func (*MunkiConfigurationsServiceOp) Update ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
Update a Munki configuration.
type MunkiEnrollment ¶ added in v0.1.29
type MunkiEnrollment struct {
ID int `json:"id"`
ConfigurationID int `json:"configuration"`
EnrolledMachinesCount int `json:"enrolled_machines_count"`
Secret EnrollmentSecret `json:"secret"`
PackageURL string `json:"package_download_url"`
Version int `json:"version"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
MunkiEnrollment represents a Zentral MunkiEnrollment
func (MunkiEnrollment) String ¶ added in v0.1.29
func (se MunkiEnrollment) String() string
type MunkiEnrollmentRequest ¶ added in v0.1.29
type MunkiEnrollmentRequest struct {
ConfigurationID int `json:"configuration"`
Secret EnrollmentSecretRequest `json:"secret"`
}
MunkiEnrollmentRequest represents a request to create or update a Munki enrollment
type MunkiEnrollmentsService ¶ added in v0.1.29
type MunkiEnrollmentsService interface {
List(context.Context, *ListOptions) ([]MunkiEnrollment, *Response, error)
GetByID(context.Context, int) (*MunkiEnrollment, *Response, error)
GetByConfigurationID(context.Context, int) ([]MunkiEnrollment, *Response, error)
Create(context.Context, *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
Update(context.Context, int, *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MunkiEnrollmentsService is an interface for interfacing with the Munki enrollments endpoints of the Zentral API
type MunkiEnrollmentsServiceOp ¶ added in v0.1.29
type MunkiEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
MunkiEnrollmentsServiceOp handles communication with the Munki enrollments related methods of the Zentral API.
func (*MunkiEnrollmentsServiceOp) Create ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
Create a new Munki enrollment.
func (*MunkiEnrollmentsServiceOp) GetByConfigurationID ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]MunkiEnrollment, *Response, error)
GetByConfigurationID retrieves the Munki enrollments for a given configuration.
func (*MunkiEnrollmentsServiceOp) GetByID ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MunkiEnrollment, *Response, error)
GetByID retrieves a Munki enrollment by id.
func (*MunkiEnrollmentsServiceOp) List ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiEnrollment, *Response, error)
List lists all the Munki enrollments.
func (*MunkiEnrollmentsServiceOp) Update ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
Update a Munki enrollment.
type MunkiScriptCheck ¶ added in v0.1.42
type MunkiScriptCheck struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Source string `json:"source"`
ExpectedResult string `json:"expected_result"`
ArchAMD64 bool `json:"arch_amd64"`
ArchARM64 bool `json:"arch_arm64"`
MinOSVersion string `json:"min_os_version"`
MaxOSVersion string `json:"max_os_version"`
TagIDs []int `json:"tags"`
ExcludedTagIDs []int `json:"excluded_tags"`
Version int `json:"version"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
MunkiScriptCheck represents a Zentral Munki script check.
func (MunkiScriptCheck) String ¶ added in v0.1.42
func (msc MunkiScriptCheck) String() string
type MunkiScriptCheckRequest ¶ added in v0.1.42
type MunkiScriptCheckRequest struct {
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Source string `json:"source"`
ExpectedResult string `json:"expected_result"`
ArchAMD64 bool `json:"arch_amd64"`
ArchARM64 bool `json:"arch_arm64"`
MinOSVersion string `json:"min_os_version"`
MaxOSVersion string `json:"max_os_version"`
TagIDs []int `json:"tags"`
ExcludedTagIDs []int `json:"excluded_tags"`
}
MunkiScriptCheckRequest represents a request to create or update a Munki script check.
type MunkiScriptChecksService ¶ added in v0.1.42
type MunkiScriptChecksService interface {
List(context.Context, *ListOptions) ([]MunkiScriptCheck, *Response, error)
GetByID(context.Context, int) (*MunkiScriptCheck, *Response, error)
GetByName(context.Context, string) (*MunkiScriptCheck, *Response, error)
Create(context.Context, *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
Update(context.Context, int, *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
Delete(context.Context, int) (*Response, error)
}
MunkiScriptChecksService is an interface for interfacing with the Munki script checks endpoints of the Zentral API.
type MunkiScriptChecksServiceOp ¶ added in v0.1.42
type MunkiScriptChecksServiceOp struct {
// contains filtered or unexported fields
}
MunkiScriptChecksServiceOp handles communication with the Munki script checks related methods of the Zentral API.
func (*MunkiScriptChecksServiceOp) Create ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) Create(ctx context.Context, createRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
Create a new Munki script check.
func (*MunkiScriptChecksServiceOp) GetByID ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) GetByID(ctx context.Context, mscID int) (*MunkiScriptCheck, *Response, error)
GetByID retrieves a Munki script check by id.
func (*MunkiScriptChecksServiceOp) GetByName ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) GetByName(ctx context.Context, name string) (*MunkiScriptCheck, *Response, error)
GetByName retrieves a Munki script check by name.
func (*MunkiScriptChecksServiceOp) List ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiScriptCheck, *Response, error)
List lists all the Munki script checks.
func (*MunkiScriptChecksServiceOp) Update ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) Update(ctx context.Context, mscID int, updateRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
Update a Munki script check.
type OpenIDCConfig ¶ added in v0.1.51
type OpenIDCConfig struct {
DiscoveryURL string `json:"discovery_url"`
ClientID string `json:"client_id"`
ClientSecret *string `json:"client_secret"`
ExtraScopes []string `json:"extra_scopes"`
}
OpenIDCConfig represents a Zentral Realm OpenIDC config
type OsqueryATC ¶ added in v0.1.10
type OsqueryATC struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description"`
TableName string `json:"table_name"`
Query string `json:"query"`
Path string `json:"path"`
Columns []string `json:"columns"`
Platforms []string `json:"platforms"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
OsqueryATC represents a Zentral Osquery ATC
func (OsqueryATC) String ¶ added in v0.1.10
func (oa OsqueryATC) String() string
type OsqueryATCRequest ¶ added in v0.1.10
type OsqueryATCRequest struct {
Name string `json:"name"`
Description string `json:"description"`
TableName string `json:"table_name"`
Query string `json:"query"`
Path string `json:"path"`
Columns []string `json:"columns"`
Platforms []string `json:"platforms"`
}
OsqueryATCRequest represents a request to create or update a Osquery ATC
type OsqueryATCService ¶ added in v0.1.10
type OsqueryATCService interface {
List(context.Context, *ListOptions) ([]OsqueryATC, *Response, error)
GetByID(context.Context, int) (*OsqueryATC, *Response, error)
GetByName(context.Context, string) (*OsqueryATC, *Response, error)
Create(context.Context, *OsqueryATCRequest) (*OsqueryATC, *Response, error)
Update(context.Context, int, *OsqueryATCRequest) (*OsqueryATC, *Response, error)
Delete(context.Context, int) (*Response, error)
}
OsqueryATCService is an interface for interfacing with the Osquery automatic table construction endpoints of the Zentral API
type OsqueryATCServiceOp ¶ added in v0.1.10
type OsqueryATCServiceOp struct {
// contains filtered or unexported fields
}
OsqueryATCServiceOp handles communication with the Osquery automatic table construction related methods of the Zentral API.
func (*OsqueryATCServiceOp) Create ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) Create(ctx context.Context, createRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
Create a new Osquery ATC.
func (*OsqueryATCServiceOp) GetByID ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) GetByID(ctx context.Context, oaID int) (*OsqueryATC, *Response, error)
GetByID retrieves a Osquery ATC by id.
func (*OsqueryATCServiceOp) GetByName ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) GetByName(ctx context.Context, name string) (*OsqueryATC, *Response, error)
GetByName retrieves a Osquery ATC by name.
func (*OsqueryATCServiceOp) List ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryATC, *Response, error)
List lists all the Osquery ATC.
func (*OsqueryATCServiceOp) Update ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) Update(ctx context.Context, oaID int, updateRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
Update a Osquery ATC.
type OsqueryConfiguration ¶ added in v0.1.9
type OsqueryConfiguration struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description"`
Inventory bool `json:"inventory"`
InventoryApps bool `json:"inventory_apps"`
InventoryEC2 bool `json:"inventory_ec2"`
InventoryInterval int `json:"inventory_interval"`
Options map[string]interface{} `json:"options"`
ATCIDs []int `json:"automatic_table_constructions"`
FileCategoryIDs []int `json:"file_categories"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
OsqueryConfiguration represents a Zentral Osquery configuration
func (OsqueryConfiguration) String ¶ added in v0.1.9
func (oc OsqueryConfiguration) String() string
type OsqueryConfigurationPack ¶ added in v0.1.18
type OsqueryConfigurationPack struct {
ID int `json:"id"`
ConfigurationID int `json:"configuration"`
PackID int `json:"pack"`
TagIDs []int `json:"tags"`
ExcludedTagIDs []int `json:"excluded_tags"`
}
OsqueryConfigurationPack represents a Zentral Osquery configuration pack
func (OsqueryConfigurationPack) String ¶ added in v0.1.18
func (ocp OsqueryConfigurationPack) String() string
type OsqueryConfigurationPackRequest ¶ added in v0.1.18
type OsqueryConfigurationPackRequest struct {
ConfigurationID int `json:"configuration"`
PackID int `json:"pack"`
TagIDs []int `json:"tags"`
ExcludedTagIDs []int `json:"excluded_tags"`
}
OsqueryConfigurationPackRequest represents a request to create or update a Osquery configuration pack
type OsqueryConfigurationPacksService ¶ added in v0.1.18
type OsqueryConfigurationPacksService interface {
List(context.Context, *ListOptions) ([]OsqueryConfigurationPack, *Response, error)
GetByID(context.Context, int) (*OsqueryConfigurationPack, *Response, error)
GetByConfigurationID(context.Context, int) ([]OsqueryConfigurationPack, *Response, error)
GetByPackID(context.Context, int) ([]OsqueryConfigurationPack, *Response, error)
Create(context.Context, *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
Update(context.Context, int, *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
Delete(context.Context, int) (*Response, error)
}
OsqueryConfigurationPacksService is an interface for interfacing with the Osquery configuration packs endpoints of the Zentral API
type OsqueryConfigurationPacksServiceOp ¶ added in v0.1.18
type OsqueryConfigurationPacksServiceOp struct {
// contains filtered or unexported fields
}
OsqueryConfigurationPacksServiceOp handles communication with the Osquery configuration packs related methods of the Zentral API.
func (*OsqueryConfigurationPacksServiceOp) Create ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
Create a new Osquery configuration pack.
func (*OsqueryConfigurationPacksServiceOp) Delete ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) Delete(ctx context.Context, ocpID int) (*Response, error)
Delete a Osquery configuration pack.
func (*OsqueryConfigurationPacksServiceOp) GetByConfigurationID ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) GetByConfigurationID(ctx context.Context, cfgID int) ([]OsqueryConfigurationPack, *Response, error)
GetByConfigurationID retrieves Osquery configuration packs by configuration ID.
func (*OsqueryConfigurationPacksServiceOp) GetByID ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) GetByID(ctx context.Context, ocpID int) (*OsqueryConfigurationPack, *Response, error)
GetByID retrieves a Osquery configuration pack by id.
func (*OsqueryConfigurationPacksServiceOp) GetByPackID ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryConfigurationPack, *Response, error)
GetByPackID retrieves Osquery configuration packs by pack ID.
func (*OsqueryConfigurationPacksServiceOp) List ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfigurationPack, *Response, error)
List lists all the Osquery configuration packs.
func (*OsqueryConfigurationPacksServiceOp) Update ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) Update(ctx context.Context, ocpID int, updateRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
Update a Osquery configuration pack.
type OsqueryConfigurationRequest ¶ added in v0.1.9
type OsqueryConfigurationRequest struct {
Name string `json:"name"`
Description string `json:"description"`
Inventory bool `json:"inventory"`
InventoryApps bool `json:"inventory_apps"`
InventoryEC2 bool `json:"inventory_ec2"`
InventoryInterval int `json:"inventory_interval"`
Options map[string]interface{} `json:"options"`
ATCIDs []int `json:"automatic_table_constructions"`
FileCategoryIDs []int `json:"file_categories"`
}
OsqueryConfigurationRequest represents a request to create or update a Osquery configuration
type OsqueryConfigurationsService ¶ added in v0.1.9
type OsqueryConfigurationsService interface {
List(context.Context, *ListOptions) ([]OsqueryConfiguration, *Response, error)
GetByID(context.Context, int) (*OsqueryConfiguration, *Response, error)
GetByName(context.Context, string) (*OsqueryConfiguration, *Response, error)
Create(context.Context, *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
Update(context.Context, int, *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
Delete(context.Context, int) (*Response, error)
}
OsqueryConfigurationsService is an interface for interfacing with the Osquery configurations endpoints of the Zentral API
type OsqueryConfigurationsServiceOp ¶ added in v0.1.9
type OsqueryConfigurationsServiceOp struct {
// contains filtered or unexported fields
}
OsqueryConfigurationsServiceOp handles communication with the Osquery configurations related methods of the Zentral API.
func (*OsqueryConfigurationsServiceOp) Create ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
Create a new Osquery configuration.
func (*OsqueryConfigurationsServiceOp) GetByID ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) GetByID(ctx context.Context, ocID int) (*OsqueryConfiguration, *Response, error)
GetByID retrieves a Osquery configuration by id.
func (*OsqueryConfigurationsServiceOp) GetByName ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*OsqueryConfiguration, *Response, error)
GetByName retrieves a Osquery configuration by name.
func (*OsqueryConfigurationsServiceOp) List ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfiguration, *Response, error)
List lists all the Osquery configurations.
func (*OsqueryConfigurationsServiceOp) Update ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) Update(ctx context.Context, ocID int, updateRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
Update a Osquery configuration.
type OsqueryEnrollment ¶ added in v0.1.19
type OsqueryEnrollment struct {
ID int `json:"id"`
ConfigurationID int `json:"configuration"`
OsqueryRelease string `json:"osquery_release"`
EnrolledMachinesCount int `json:"enrolled_machines_count"`
Secret EnrollmentSecret `json:"secret"`
PackageURL string `json:"package_download_url"`
ScriptURL string `json:"script_download_url"`
PowershellScriptURL string `json:"powershell_script_download_url"`
Version int `json:"version"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
OsqueryEnrollment represents a Zentral OsqueryEnrollment
func (OsqueryEnrollment) String ¶ added in v0.1.19
func (se OsqueryEnrollment) String() string
type OsqueryEnrollmentRequest ¶ added in v0.1.19
type OsqueryEnrollmentRequest struct {
ConfigurationID int `json:"configuration"`
OsqueryRelease string `json:"osquery_release"`
Secret EnrollmentSecretRequest `json:"secret"`
}
OsqueryEnrollmentRequest represents a request to create or update a Osquery enrollment
type OsqueryEnrollmentsService ¶ added in v0.1.19
type OsqueryEnrollmentsService interface {
List(context.Context, *ListOptions) ([]OsqueryEnrollment, *Response, error)
GetByID(context.Context, int) (*OsqueryEnrollment, *Response, error)
GetByConfigurationID(context.Context, int) ([]OsqueryEnrollment, *Response, error)
Create(context.Context, *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
Update(context.Context, int, *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
Delete(context.Context, int) (*Response, error)
}
OsqueryEnrollmentsService is an interface for interfacing with the Osquery enrollments endpoints of the Zentral API
type OsqueryEnrollmentsServiceOp ¶ added in v0.1.19
type OsqueryEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
OsqueryEnrollmentsServiceOp handles communication with the Osquery enrollments related methods of the Zentral API.
func (*OsqueryEnrollmentsServiceOp) Create ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) Create(ctx context.Context, createRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
Create a new Osquery enrollment.
func (*OsqueryEnrollmentsServiceOp) GetByConfigurationID ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]OsqueryEnrollment, *Response, error)
GetByConfigurationID retrieves the Osquery enrollments for a given configuration.
func (*OsqueryEnrollmentsServiceOp) GetByID ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) GetByID(ctx context.Context, oeID int) (*OsqueryEnrollment, *Response, error)
GetByID retrieves a Osquery enrollment by id.
func (*OsqueryEnrollmentsServiceOp) List ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryEnrollment, *Response, error)
List lists all the Osquery enrollments.
func (*OsqueryEnrollmentsServiceOp) Update ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) Update(ctx context.Context, oeID int, updateRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
Update a Osquery enrollment.
type OsqueryFileCategoriesService ¶ added in v0.1.11
type OsqueryFileCategoriesService interface {
List(context.Context, *ListOptions) ([]OsqueryFileCategory, *Response, error)
GetByID(context.Context, int) (*OsqueryFileCategory, *Response, error)
GetByName(context.Context, string) (*OsqueryFileCategory, *Response, error)
Create(context.Context, *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
Update(context.Context, int, *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
Delete(context.Context, int) (*Response, error)
}
OsqueryFileCategoriesService is an interface for interfacing with the Osquery file categories endpoints of the Zentral API
type OsqueryFileCategoriesServiceOp ¶ added in v0.1.11
type OsqueryFileCategoriesServiceOp struct {
// contains filtered or unexported fields
}
OsqueryFileCategoriesServiceOp handles communication with the Osquery file categories related methods of the Zentral API.
func (*OsqueryFileCategoriesServiceOp) Create ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) Create(ctx context.Context, createRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
Create a new Osquery file category.
func (*OsqueryFileCategoriesServiceOp) GetByID ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) GetByID(ctx context.Context, ofcID int) (*OsqueryFileCategory, *Response, error)
GetByID retrieves a Osquery file category by id.
func (*OsqueryFileCategoriesServiceOp) GetByName ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryFileCategory, *Response, error)
GetByName retrieves a Osquery file category by name.
func (*OsqueryFileCategoriesServiceOp) List ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryFileCategory, *Response, error)
List lists all the Osquery file categories.
func (*OsqueryFileCategoriesServiceOp) Update ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) Update(ctx context.Context, ofcID int, updateRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
Update a Osquery file category.
type OsqueryFileCategory ¶ added in v0.1.11
type OsqueryFileCategory struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
FilePaths []string `json:"file_paths"`
ExcludePaths []string `json:"exclude_paths"`
FilePathsQueries []string `json:"file_paths_queries"`
AccessMonitoring bool `json:"access_monitoring"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
OsqueryFileCategory represents a Zentral Osquery file category
func (OsqueryFileCategory) String ¶ added in v0.1.11
func (ofc OsqueryFileCategory) String() string
type OsqueryFileCategoryRequest ¶ added in v0.1.11
type OsqueryFileCategoryRequest struct {
Name string `json:"name"`
Description string `json:"description"`
FilePaths []string `json:"file_paths"`
ExcludePaths []string `json:"exclude_paths"`
FilePathsQueries []string `json:"file_paths_queries"`
AccessMonitoring bool `json:"access_monitoring"`
}
OsqueryFileCategoryRequest represents a request to create or update a Osquery file category
type OsqueryPack ¶ added in v0.1.14
type OsqueryPack struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
DiscoveryQueries []string `json:"discovery_queries"`
Shard *int `json:"shard"`
EventRoutingKey string `json:"event_routing_key"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
OsqueryPack represents a Zentral Osquery pack
func (OsqueryPack) String ¶ added in v0.1.14
func (op OsqueryPack) String() string
type OsqueryPackRequest ¶ added in v0.1.14
type OsqueryPackRequest struct {
Name string `json:"name"`
Description string `json:"description"`
DiscoveryQueries []string `json:"discovery_queries"`
Shard *int `json:"shard"`
EventRoutingKey string `json:"event_routing_key"`
}
OsqueryPackRequest represents a request to create or update a Osquery pack
type OsqueryPacksService ¶ added in v0.1.14
type OsqueryPacksService interface {
List(context.Context, *ListOptions) ([]OsqueryPack, *Response, error)
GetByID(context.Context, int) (*OsqueryPack, *Response, error)
GetByName(context.Context, string) (*OsqueryPack, *Response, error)
Create(context.Context, *OsqueryPackRequest) (*OsqueryPack, *Response, error)
Update(context.Context, int, *OsqueryPackRequest) (*OsqueryPack, *Response, error)
Delete(context.Context, int) (*Response, error)
}
OsqueryPacksService is an interface for interfacing with the Osquery packs endpoints of the Zentral API
type OsqueryPacksServiceOp ¶ added in v0.1.14
type OsqueryPacksServiceOp struct {
// contains filtered or unexported fields
}
OsqueryPacksServiceOp handles communication with the Osquery packs related methods of the Zentral API.
func (*OsqueryPacksServiceOp) Create ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
Create a new Osquery pack.
func (*OsqueryPacksServiceOp) GetByID ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) GetByID(ctx context.Context, opID int) (*OsqueryPack, *Response, error)
GetByID retrieves a Osquery pack by id.
func (*OsqueryPacksServiceOp) GetByName ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) GetByName(ctx context.Context, name string) (*OsqueryPack, *Response, error)
GetByName retrieves a Osquery pack by name.
func (*OsqueryPacksServiceOp) List ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryPack, *Response, error)
List lists all the Osquery packs.
func (*OsqueryPacksServiceOp) Update ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) Update(ctx context.Context, opID int, updateRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
Update a Osquery pack.
type OsqueryQueriesService ¶ added in v0.1.13
type OsqueryQueriesService interface {
List(context.Context, *ListOptions) ([]OsqueryQuery, *Response, error)
GetByID(context.Context, int) (*OsqueryQuery, *Response, error)
GetByName(context.Context, string) (*OsqueryQuery, *Response, error)
GetByPackID(context.Context, int) ([]OsqueryQuery, *Response, error)
Create(context.Context, *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
Update(context.Context, int, *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
Delete(context.Context, int) (*Response, error)
}
OsqueryQueriesService is an interface for interfacing with the Osquery queries endpoints of the Zentral API
type OsqueryQueriesServiceOp ¶ added in v0.1.13
type OsqueryQueriesServiceOp struct {
// contains filtered or unexported fields
}
OsqueryQueriesServiceOp handles communication with the Osquery queries related methods of the Zentral API.
func (*OsqueryQueriesServiceOp) Create ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) Create(ctx context.Context, createRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
Create a new Osquery query.
func (*OsqueryQueriesServiceOp) GetByID ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) GetByID(ctx context.Context, oqID int) (*OsqueryQuery, *Response, error)
GetByID retrieves a Osquery query by id.
func (*OsqueryQueriesServiceOp) GetByName ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryQuery, *Response, error)
GetByName retrieves a Osquery query by name.
func (*OsqueryQueriesServiceOp) GetByPackID ¶ added in v0.1.30
func (s *OsqueryQueriesServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryQuery, *Response, error)
GetByPackID retrieves Osquery queries by pack ID.
func (*OsqueryQueriesServiceOp) List ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryQuery, *Response, error)
List lists all the Osquery queries.
func (*OsqueryQueriesServiceOp) Update ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) Update(ctx context.Context, oqID int, updateRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
Update a Osquery query.
type OsqueryQuery ¶ added in v0.1.13
type OsqueryQuery struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
SQL string `json:"sql"`
Platforms []string `json:"platforms"`
MinOsqueryVersion *string `json:"minimum_osquery_version"`
Description string `json:"description"`
Value string `json:"value"`
Version int `json:"version"`
ComplianceCheckEnabled bool `json:"compliance_check_enabled"`
TagID *int `json:"tag"`
Scheduling *OsqueryQueryScheduling `json:"scheduling"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
OsqueryQuery represents a Zentral Osquery query
func (OsqueryQuery) String ¶ added in v0.1.13
func (oq OsqueryQuery) String() string
type OsqueryQueryRequest ¶ added in v0.1.13
type OsqueryQueryRequest struct {
Name string `json:"name"`
SQL string `json:"sql"`
Platforms []string `json:"platforms"`
MinOsqueryVersion *string `json:"minimum_osquery_version"`
Description string `json:"description"`
Value string `json:"value"`
ComplianceCheckEnabled bool `json:"compliance_check_enabled"`
TagID *int `json:"tag"`
Scheduling *OsqueryQuerySchedulingRequest `json:"scheduling"`
}
OsqueryQueryRequest represents a request to create or update a Osquery query
type OsqueryQueryScheduling ¶ added in v0.1.30
type OsqueryQueryScheduling struct {
PackID int `json:"pack"`
Interval int `json:"interval"`
LogRemovedActions bool `json:"log_removed_actions"`
SnapshotMode bool `json:"snapshot_mode"`
Shard *int `json:"shard"`
CanBeDenyListed bool `json:"can_be_denylisted"`
}
OsqueryQueryScheduling represents the scheduling information of a Zentral Osquery query
type OsqueryQuerySchedulingRequest ¶ added in v0.1.30
type OsqueryQuerySchedulingRequest struct {
PackID int `json:"pack"`
Interval int `json:"interval"`
LogRemovedActions bool `json:"log_removed_actions"`
SnapshotMode bool `json:"snapshot_mode"`
Shard *int `json:"shard"`
CanBeDenyListed bool `json:"can_be_denylisted"`
}
OsqueryQuerySchedulingRequest represents a request to create or update a Osquery pack query scheduling
type PaginatedResults ¶ added in v0.1.68
type PaginatedResults[T any] struct { Count int `json:"count"` Next *string `json:"next,omitempty"` Previous *string `json:"previous,omitempty"` Results []T `json:"results"` }
PaginatedResults for pagination payloads.
type PayloadFilterItem ¶ added in v0.1.55
type Probe ¶ added in v0.1.55
type Probe struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
InventoryFilters []InventoryFilter `json:"inventory_filters"`
MetadataFilters []MetadataFilter `json:"metadata_filters"`
PayloadFilters [][]PayloadFilterItem `json:"payload_filters"`
IncidentSeverity *int `json:"incident_severity"`
ActionIDs []string `json:"actions"`
Active bool `json:"active"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
type ProbeAction ¶ added in v0.1.54
type ProbeAction struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Backend string `json:"backend"`
HTTPPost *ProbeActionHTTPPost `json:"http_post_kwargs"`
SlackIncomingWebhook *ProbeActionSlackIncomingWebhook `json:"slack_incoming_webhook_kwargs"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
func (ProbeAction) String ¶ added in v0.1.54
func (pa ProbeAction) String() string
type ProbeActionHTTPPost ¶ added in v0.1.54
type ProbeActionHTTPPost struct {
URL string `json:"url"`
Username *string `json:"username"`
Password *string `json:"password"`
Headers []HTTPHeader `json:"headers"`
}
type ProbeActionRequest ¶ added in v0.1.54
type ProbeActionRequest struct {
Name string `json:"name"`
Description string `json:"description"`
Backend string `json:"backend"`
HTTPPost *ProbeActionHTTPPost `json:"http_post_kwargs"`
SlackIncomingWebhook *ProbeActionSlackIncomingWebhook `json:"slack_incoming_webhook_kwargs"`
}
ProbeActionRequest represents a request to create or update a probe action
type ProbeActionSlackIncomingWebhook ¶ added in v0.1.54
type ProbeActionSlackIncomingWebhook struct {
URL string `json:"url"`
}
type ProbeRequest ¶ added in v0.1.55
type ProbeRequest struct {
Name string `json:"name"`
Description string `json:"description"`
InventoryFilters []InventoryFilter `json:"inventory_filters"`
MetadataFilters []MetadataFilter `json:"metadata_filters"`
PayloadFilters [][]PayloadFilterItem `json:"payload_filters"`
IncidentSeverity *int `json:"incident_severity"`
ActionIDs []string `json:"actions"`
Active bool `json:"active"`
}
ProbeRequest represents a request to create or update a probe
type ProbesActionsService ¶ added in v0.1.54
type ProbesActionsService interface {
List(context.Context, *ListOptions) ([]ProbeAction, *Response, error)
GetByID(context.Context, string) (*ProbeAction, *Response, error)
GetByName(context.Context, string) (*ProbeAction, *Response, error)
Create(context.Context, *ProbeActionRequest) (*ProbeAction, *Response, error)
Update(context.Context, string, *ProbeActionRequest) (*ProbeAction, *Response, error)
Delete(context.Context, string) (*Response, error)
}
ProbesActionsService is an interface for interfacing with the Monolith manifests endpoints of the Zentral API
type ProbesActionsServiceOp ¶ added in v0.1.54
type ProbesActionsServiceOp struct {
// contains filtered or unexported fields
}
ProbesActionsServiceOp handles communication with the probes actions related methods of the Zentral API.
func (*ProbesActionsServiceOp) Create ¶ added in v0.1.54
func (s *ProbesActionsServiceOp) Create(ctx context.Context, createRequest *ProbeActionRequest) (*ProbeAction, *Response, error)
Create a new probe action
func (*ProbesActionsServiceOp) GetByID ¶ added in v0.1.54
func (s *ProbesActionsServiceOp) GetByID(ctx context.Context, paID string) (*ProbeAction, *Response, error)
GetByID retrieves a probe action by id
func (*ProbesActionsServiceOp) GetByName ¶ added in v0.1.54
func (s *ProbesActionsServiceOp) GetByName(ctx context.Context, name string) (*ProbeAction, *Response, error)
GetByName retrieves a probe action by name
func (*ProbesActionsServiceOp) List ¶ added in v0.1.54
func (s *ProbesActionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]ProbeAction, *Response, error)
List lists all the probe actions
func (*ProbesActionsServiceOp) Update ¶ added in v0.1.54
func (s *ProbesActionsServiceOp) Update(ctx context.Context, paID string, updateRequest *ProbeActionRequest) (*ProbeAction, *Response, error)
Update a probe action
type ProbesService ¶ added in v0.1.55
type ProbesService interface {
List(context.Context, *ListOptions) ([]Probe, *Response, error)
GetByID(context.Context, int) (*Probe, *Response, error)
GetByName(context.Context, string) (*Probe, *Response, error)
Create(context.Context, *ProbeRequest) (*Probe, *Response, error)
Update(context.Context, int, *ProbeRequest) (*Probe, *Response, error)
Delete(context.Context, int) (*Response, error)
}
ProbesService is an interface for interfacing with the probes endpoints of the Zentral API
type ProbesServiceOp ¶ added in v0.1.55
type ProbesServiceOp struct {
// contains filtered or unexported fields
}
ProbesServiceOp handles communication with the probes related methods of the Zentral API.
func (*ProbesServiceOp) Create ¶ added in v0.1.55
func (s *ProbesServiceOp) Create(ctx context.Context, createRequest *ProbeRequest) (*Probe, *Response, error)
Create a new probe
func (*ProbesServiceOp) List ¶ added in v0.1.55
func (s *ProbesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Probe, *Response, error)
List lists all the probes
func (*ProbesServiceOp) Update ¶ added in v0.1.55
func (s *ProbesServiceOp) Update(ctx context.Context, pID int, updateRequest *ProbeRequest) (*Probe, *Response, error)
Update a probe
type RealmsRealm ¶ added in v0.1.51
type RealmsRealm struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Backend string `json:"backend"`
LDAPConfig *LDAPConfig `json:"ldap_config"`
OpenIDCConfig *OpenIDCConfig `json:"openidc_config"`
SAMLConfig *SAMLConfig `json:"saml_config"`
EnabledForLogin bool `json:"enabled_for_login"`
LoginSessionExpiry int `json:"login_session_expiry"`
UsernameClaim string `json:"username_claim"`
EmailClaim string `json:"email_claim"`
FirstNameClaim string `json:"first_name_claim"`
LastNameClaim string `json:"last_name_claim"`
FullNameClaim string `json:"full_name_claim"`
CustomAttr1Claim string `json:"custom_attr_1_claim"`
CustomAttr2Claim string `json:"custom_attr_2_claim"`
SCIMEnabled bool `json:"scim_enabled"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
RealmsRealm represents a Zentral realm
func (RealmsRealm) String ¶ added in v0.1.51
func (r RealmsRealm) String() string
type RealmsRealmsService ¶ added in v0.1.51
type RealmsRealmsService interface {
List(context.Context, *ListOptions) ([]RealmsRealm, *Response, error)
GetByUUID(context.Context, string) (*RealmsRealm, *Response, error)
GetByName(context.Context, string) (*RealmsRealm, *Response, error)
}
RealmsRealmsService is an interface for interfacing with the realms endpoints of the Zentral API
type RealmsRealmsServiceOp ¶ added in v0.1.51
type RealmsRealmsServiceOp struct {
// contains filtered or unexported fields
}
RealmsRealmsServiceOp handles communication with the realms related methods of the Zentral API.
func (*RealmsRealmsServiceOp) GetByName ¶ added in v0.1.51
func (s *RealmsRealmsServiceOp) GetByName(ctx context.Context, name string) (*RealmsRealm, *Response, error)
GetByName retrieves a Realms realm by name.
func (*RealmsRealmsServiceOp) GetByUUID ¶ added in v0.1.51
func (s *RealmsRealmsServiceOp) GetByUUID(ctx context.Context, rUUID string) (*RealmsRealm, *Response, error)
GetByID retrieves a Realms realm by id.
func (*RealmsRealmsServiceOp) List ¶ added in v0.1.51
func (s *RealmsRealmsServiceOp) List(ctx context.Context, opt *ListOptions) ([]RealmsRealm, *Response, error)
List lists all the Realms realms.
type Response ¶
Response is a Zentral response. This wraps the standard http.Response returned from Zentral.
type SAMLConfig ¶ added in v0.1.51
type SAMLConfig struct {
DefaultRelayState string `json:"default_relay_state"`
IDPMetadata string `json:"idp_metadata"`
}
SAMLConfig represents a Zentral Realm SAML config
type SantaConfiguration ¶ added in v0.1.4
type SantaConfiguration struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
ClientMode int `json:"client_mode"`
ClientCertificateAuth bool `json:"client_certificate_auth"`
BatchSize int `json:"batch_size"`
FullSyncInterval int `json:"full_sync_interval"`
EnableBundles bool `json:"enable_bundles"`
EnableTransitiveRules bool `json:"enable_transitive_rules"`
AllowedPathRegex string `json:"allowed_path_regex"`
BlockedPathRegex string `json:"blocked_path_regex"`
BlockUSBMount bool `json:"block_usb_mount"`
RemountUSBMode []string `json:"remount_usb_mode"`
AllowUnknownShard int `json:"allow_unknown_shard"`
EnableAllEventUploadShard int `json:"enable_all_event_upload_shard"`
SyncIncidentSeverity int `json:"sync_incident_severity"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
SantaConfiguration represents a Zentral SantaConfiguration
func (SantaConfiguration) String ¶ added in v0.1.4
func (sc SantaConfiguration) String() string
type SantaConfigurationRequest ¶ added in v0.1.4
type SantaConfigurationRequest struct {
Name string `json:"name"`
ClientMode int `json:"client_mode"`
ClientCertificateAuth bool `json:"client_certificate_auth"`
BatchSize int `json:"batch_size"`
FullSyncInterval int `json:"full_sync_interval"`
EnableBundles bool `json:"enable_bundles"`
EnableTransitiveRules bool `json:"enable_transitive_rules"`
AllowedPathRegex string `json:"allowed_path_regex"`
BlockedPathRegex string `json:"blocked_path_regex"`
BlockUSBMount bool `json:"block_usb_mount"`
RemountUSBMode []string `json:"remount_usb_mode"`
AllowUnknownShard int `json:"allow_unknown_shard"`
EnableAllEventUploadShard int `json:"enable_all_event_upload_shard"`
SyncIncidentSeverity int `json:"sync_incident_severity"`
}
SantaConfigurationRequest represents a request to create or update a Santa configuration
type SantaConfigurationsService ¶ added in v0.1.4
type SantaConfigurationsService interface {
List(context.Context, *ListOptions) ([]SantaConfiguration, *Response, error)
GetByID(context.Context, int) (*SantaConfiguration, *Response, error)
GetByName(context.Context, string) (*SantaConfiguration, *Response, error)
Create(context.Context, *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
Update(context.Context, int, *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
Delete(context.Context, int) (*Response, error)
}
SantaConfigurationsService is an interface for interfacing with the Santa configurations endpoints of the Zentral API
type SantaConfigurationsServiceOp ¶ added in v0.1.4
type SantaConfigurationsServiceOp struct {
// contains filtered or unexported fields
}
SantaConfigurationsServiceOp handles communication with the Santa configurations related methods of the Zentral API.
func (*SantaConfigurationsServiceOp) Create ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) Create(ctx context.Context, createRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
Create a new Santa configuration.
func (*SantaConfigurationsServiceOp) GetByID ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) GetByID(ctx context.Context, scID int) (*SantaConfiguration, *Response, error)
GetByID retrieves a Santa configuration by id.
func (*SantaConfigurationsServiceOp) GetByName ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*SantaConfiguration, *Response, error)
GetByName retrieves a Santa configuration by name.
func (*SantaConfigurationsServiceOp) List ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaConfiguration, *Response, error)
List lists all the Santa configurations.
func (*SantaConfigurationsServiceOp) Update ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) Update(ctx context.Context, scID int, updateRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
Update a Santa configuration.
type SantaEnrollment ¶ added in v0.1.7
type SantaEnrollment struct {
ID int `json:"id"`
ConfigurationID int `json:"configuration"`
EnrolledMachinesCount int `json:"enrolled_machines_count"`
Secret EnrollmentSecret `json:"secret"`
ConfigProfileURL string `json:"configuration_profile_download_url"`
PlistURL string `json:"plist_download_url"`
Version int `json:"version"`
Created Timestamp `json:"created_at,omitempty"`
Updated Timestamp `json:"updated_at,omitempty"`
}
SantaEnrollment represents a Zentral SantaEnrollment
func (SantaEnrollment) String ¶ added in v0.1.7
func (se SantaEnrollment) String() string
type SantaEnrollmentRequest ¶ added in v0.1.7
type SantaEnrollmentRequest struct {
ConfigurationID int `json:"configuration"`
Secret EnrollmentSecretRequest `json:"secret"`
}
SantaEnrollmentRequest represents a request to create or update a Santa enrollment
type SantaEnrollmentsService ¶ added in v0.1.7
type SantaEnrollmentsService interface {
List(context.Context, *ListOptions) ([]SantaEnrollment, *Response, error)
GetByID(context.Context, int) (*SantaEnrollment, *Response, error)
GetByConfigurationID(context.Context, int) ([]SantaEnrollment, *Response, error)
Create(context.Context, *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
Update(context.Context, int, *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
Delete(context.Context, int) (*Response, error)
}
SantaEnrollmentsService is an interface for interfacing with the Santa enrollments endpoints of the Zentral API
type SantaEnrollmentsServiceOp ¶ added in v0.1.7
type SantaEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
SantaEnrollmentsServiceOp handles communication with the Santa enrollments related methods of the Zentral API.
func (*SantaEnrollmentsServiceOp) Create ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) Create(ctx context.Context, createRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
Create a new Santa enrollment.
func (*SantaEnrollmentsServiceOp) GetByConfigurationID ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaEnrollment, *Response, error)
GetByConfigurationID retrieves the Santa enrollments for a given configuration.
func (*SantaEnrollmentsServiceOp) GetByID ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) GetByID(ctx context.Context, seID int) (*SantaEnrollment, *Response, error)
GetByID retrieves a Santa enrollment by id.
func (*SantaEnrollmentsServiceOp) List ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaEnrollment, *Response, error)
List lists all the Santa enrollments.
func (*SantaEnrollmentsServiceOp) Update ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) Update(ctx context.Context, seID int, updateRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
Update a Santa enrollment.
type SantaRule ¶ added in v0.1.8
type SantaRule struct {
ID int `json:"id"`
ConfigurationID int `json:"configuration"`
Policy int `json:"policy"`
CELExpr string `json:"cel_expr"`
TargetType string `json:"target_type"`
TargetIdentifier string `json:"target_identifier"`
Description string `json:"description"`
CustomMessage string `json:"custom_msg"`
RulesetID *int `json:"ruleset"`
PrimaryUsers []string `json:"primary_users"`
ExcludedPrimaryUsers []string `json:"excluded_primary_users"`
SerialNumbers []string `json:"serial_numbers"`
ExcludedSerialNumbers []string `json:"excluded_serial_numbers"`
TagIDs []int `json:"tags"`
ExcludedTagIDs []int `json:"excluded_tags"`
Version int `json:"version"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
SantaRule represents a Zentral SantaRule
type SantaRuleRequest ¶ added in v0.1.8
type SantaRuleRequest struct {
ConfigurationID int `json:"configuration"`
Policy int `json:"policy"`
CELExpr string `json:"cel_expr"`
TargetType string `json:"target_type"`
TargetIdentifier string `json:"target_identifier"`
Description string `json:"description"`
CustomMessage string `json:"custom_msg"`
PrimaryUsers []string `json:"primary_users"`
ExcludedPrimaryUsers []string `json:"excluded_primary_users"`
SerialNumbers []string `json:"serial_numbers"`
ExcludedSerialNumbers []string `json:"excluded_serial_numbers"`
TagIDs []int `json:"tags"`
ExcludedTagIDs []int `json:"excluded_tags"`
}
SantaRuleRequest represents a request to create or update a Santa rule
type SantaRulesService ¶ added in v0.1.8
type SantaRulesService interface {
List(context.Context, *ListOptions) ([]SantaRule, *Response, error)
GetByID(context.Context, int) (*SantaRule, *Response, error)
GetByConfigurationID(context.Context, int) ([]SantaRule, *Response, error)
GetByTargetIdentifier(context.Context, string) ([]SantaRule, *Response, error)
GetByTargetType(context.Context, string) ([]SantaRule, *Response, error)
Create(context.Context, *SantaRuleRequest) (*SantaRule, *Response, error)
Update(context.Context, int, *SantaRuleRequest) (*SantaRule, *Response, error)
Delete(context.Context, int) (*Response, error)
}
SantaRulesService is an interface for interfacing with the Santa rules endpoints of the Zentral API
type SantaRulesServiceOp ¶ added in v0.1.8
type SantaRulesServiceOp struct {
// contains filtered or unexported fields
}
SantaRulesServiceOp handles communication with the Santa enrollments related methods of the Zentral API.
func (*SantaRulesServiceOp) Create ¶ added in v0.1.8
func (s *SantaRulesServiceOp) Create(ctx context.Context, createRequest *SantaRuleRequest) (*SantaRule, *Response, error)
Create a new Santa rule
func (*SantaRulesServiceOp) GetByConfigurationID ¶ added in v0.1.8
func (s *SantaRulesServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaRule, *Response, error)
GetByConfigurationID retrieves the Santa rules for a given configuration.
func (*SantaRulesServiceOp) GetByTargetIdentifier ¶ added in v0.1.8
func (s *SantaRulesServiceOp) GetByTargetIdentifier(ctx context.Context, target_identifier string) ([]SantaRule, *Response, error)
GetByTargetIdentifier retrieves the Santa rules for a given target identifier
func (*SantaRulesServiceOp) GetByTargetType ¶ added in v0.1.8
func (s *SantaRulesServiceOp) GetByTargetType(ctx context.Context, target_type string) ([]SantaRule, *Response, error)
GetByTargetType retrieves the Santa rules for a given target type
func (*SantaRulesServiceOp) List ¶ added in v0.1.8
func (s *SantaRulesServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaRule, *Response, error)
List lists all the Santa rules.
func (*SantaRulesServiceOp) Update ¶ added in v0.1.8
func (s *SantaRulesServiceOp) Update(ctx context.Context, srID int, updateRequest *SantaRuleRequest) (*SantaRule, *Response, error)
Update a Santa rule
type StaticChallenge ¶ added in v0.1.59
type StaticChallenge struct {
Challenge string `json:"challenge"`
}
type Store ¶ added in v0.1.57
type Store struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
AdminConsole bool `json:"admin_console"`
EventsURLAuthorizedRoleIDs []int `json:"events_url_authorized_roles"`
EventFilters *EventFilterSet `json:"event_filters"`
Backend string `json:"backend"`
HTTP *StoreHTTP `json:"http_kwargs"`
Kinesis *StoreKinesis `json:"kinesis_kwargs"`
Panther *StorePanther `json:"panther_kwargs"`
Splunk *StoreSplunk `json:"splunk_kwargs"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
type StoreHTTP ¶ added in v0.1.57
type StoreHTTP struct {
EndpointURL string `json:"endpoint_url"`
VerifyTLS bool `json:"verify_tls"`
Username *string `json:"username"`
Password *string `json:"password"`
Headers []HTTPHeader `json:"headers"`
Concurrency int `json:"concurrency"`
RequestTimeout int `json:"request_timeout"`
MaxRetries int `json:"max_retries"`
}
type StoreKinesis ¶ added in v0.1.64
type StoreKinesis struct {
RegionName string `json:"region_name"`
AWSAccessKeyID *string `json:"aws_access_key_id"`
AWSSecretAccessKey *string `json:"aws_secret_access_key"`
AssumeRoleARN *string `json:"assume_role_arn"`
Stream string `json:"stream"`
BatchSize int `json:"batch_size"`
SerializationFormat string `json:"serialization_format"`
}
type StorePanther ¶ added in v0.1.67
type StoreRequest ¶ added in v0.1.57
type StoreRequest struct {
Name string `json:"name"`
Description string `json:"description"`
AdminConsole bool `json:"admin_console"`
EventsURLAuthorizedRoleIDs []int `json:"events_url_authorized_roles"`
EventFilters *EventFilterSet `json:"event_filters"`
Backend string `json:"backend"`
HTTP *StoreHTTP `json:"http_kwargs"`
Kinesis *StoreKinesis `json:"kinesis_kwargs"`
Panther *StorePanther `json:"panther_kwargs"`
Splunk *StoreSplunk `json:"splunk_kwargs"`
}
StoreRequest represents a request to create or update a store
type StoreSplunk ¶ added in v0.1.57
type StoreSplunk struct {
// HEC
HECURL string `json:"hec_url"`
HECToken string `json:"hec_token"`
HECExtraHeaders []HTTPHeader `json:"hec_extra_headers"`
HECRequestTimeout int `json:"hec_request_timeout"`
HECIndex *string `json:"hec_index"`
HECSource *string `json:"hec_source"`
ComputerNameAsHostSources []string `json:"computer_name_as_host_sources"`
CustomHostField *string `json:"custom_host_field"`
SerialNumberField string `json:"serial_number_field"`
BatchSize int `json:"batch_size"`
// Events URLs
SearchAppURL *string `json:"search_app_url"`
// Events search
SearchURL *string `json:"search_url"`
SearchToken *string `json:"search_token"`
SearchExtraHeaders []HTTPHeader `json:"search_extra_headers"`
SearchRequestTimeout int `json:"search_request_timeout"`
SearchIndex *string `json:"search_index"`
SearchSource *string `json:"search_source"`
// Common
VerifyTLS bool `json:"verify_tls"`
}
type StoresService ¶ added in v0.1.57
type StoresService interface {
List(context.Context, *ListOptions) ([]Store, *Response, error)
GetByID(context.Context, string) (*Store, *Response, error)
GetByName(context.Context, string) (*Store, *Response, error)
Create(context.Context, *StoreRequest) (*Store, *Response, error)
Update(context.Context, string, *StoreRequest) (*Store, *Response, error)
Delete(context.Context, string) (*Response, error)
}
StoresService is an interface for interfacing with the stores endpoints of the Zentral API
type StoresServiceOp ¶ added in v0.1.57
type StoresServiceOp struct {
// contains filtered or unexported fields
}
StoresServiceOp handles communication with the stores related methods of the Zentral API.
func (*StoresServiceOp) Create ¶ added in v0.1.57
func (s *StoresServiceOp) Create(ctx context.Context, createRequest *StoreRequest) (*Store, *Response, error)
Create a new store
func (*StoresServiceOp) List ¶ added in v0.1.57
func (s *StoresServiceOp) List(ctx context.Context, opt *ListOptions) ([]Store, *Response, error)
List lists all the stores
func (*StoresServiceOp) Update ¶ added in v0.1.57
func (s *StoresServiceOp) Update(ctx context.Context, sID string, updateRequest *StoreRequest) (*Store, *Response, error)
Update a store
type Tag ¶
type Tag struct {
ID int `json:"id"`
TaxonomyID *int `json:"taxonomy,omitempty"`
MetaBusinessUnitID *int `json:"meta_business_unit,omitempty"`
Name string `json:"name"`
Slug string `json:"slug"`
Color string `json:"color"`
}
Tag represents a Zentral Tag
type TagCreateRequest ¶
type TagCreateRequest struct {
Name string `json:"name"`
TaxonomyID *int `json:"taxonomy"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
Color string `json:"color,omitempty"`
}
TagCreateRequest represents a request to create a tag.
type TagUpdateRequest ¶
type TagUpdateRequest struct {
Name string `json:"name"`
TaxonomyID *int `json:"taxonomy"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
Color string `json:"color,omitempty"`
}
TagUpdateRequest represents a request to update a tag.
type TagsService ¶
type TagsService interface {
List(context.Context, *ListOptions) ([]Tag, *Response, error)
GetByID(context.Context, int) (*Tag, *Response, error)
GetByName(context.Context, string) (*Tag, *Response, error)
Create(context.Context, *TagCreateRequest) (*Tag, *Response, error)
Update(context.Context, int, *TagUpdateRequest) (*Tag, *Response, error)
Delete(context.Context, int) (*Response, error)
}
TagsService is an interface for interfacing with the tags endpoints of the Zentral API
type TagsServiceOp ¶
type TagsServiceOp struct {
// contains filtered or unexported fields
}
TagsServiceOp handles communication with the tags related methods of the Zentral API.
func (*TagsServiceOp) Create ¶
func (s *TagsServiceOp) Create(ctx context.Context, createRequest *TagCreateRequest) (*Tag, *Response, error)
Create a new tag.
func (*TagsServiceOp) List ¶
func (s *TagsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Tag, *Response, error)
List lists all the tags.
func (*TagsServiceOp) Update ¶
func (s *TagsServiceOp) Update(ctx context.Context, tagID int, updateRequest *TagUpdateRequest) (*Tag, *Response, error)
Update a tag.
type TaxonomiesService ¶
type TaxonomiesService interface {
List(context.Context, *ListOptions) ([]Taxonomy, *Response, error)
GetByID(context.Context, int) (*Taxonomy, *Response, error)
GetByName(context.Context, string) (*Taxonomy, *Response, error)
Create(context.Context, *TaxonomyCreateRequest) (*Taxonomy, *Response, error)
Update(context.Context, int, *TaxonomyUpdateRequest) (*Taxonomy, *Response, error)
Delete(context.Context, int) (*Response, error)
}
TaxonomiesService is an interface for interfacing with the Taxonomies endpoints of the Zentral API
type TaxonomiesServiceOp ¶
type TaxonomiesServiceOp struct {
// contains filtered or unexported fields
}
TaxonomiesServiceOp handles communication with the Taxonomies related methods of the Zentral API.
func (*TaxonomiesServiceOp) Create ¶
func (s *TaxonomiesServiceOp) Create(ctx context.Context, createRequest *TaxonomyCreateRequest) (*Taxonomy, *Response, error)
Create a new Taxonomy.
func (*TaxonomiesServiceOp) GetByID ¶
func (s *TaxonomiesServiceOp) GetByID(ctx context.Context, TaxonomyID int) (*Taxonomy, *Response, error)
GetByID retrieves a Taxonomy by id.
func (*TaxonomiesServiceOp) GetByName ¶
func (s *TaxonomiesServiceOp) GetByName(ctx context.Context, name string) (*Taxonomy, *Response, error)
GetByName retrieves a Taxonomy by name.
func (*TaxonomiesServiceOp) List ¶
func (s *TaxonomiesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Taxonomy, *Response, error)
List lists all the Taxonomies.
func (*TaxonomiesServiceOp) Update ¶
func (s *TaxonomiesServiceOp) Update(ctx context.Context, TaxonomyID int, updateRequest *TaxonomyUpdateRequest) (*Taxonomy, *Response, error)
Update a Taxonomy.
type Taxonomy ¶
type Taxonomy struct {
ID int `json:"id"`
MetaBusinessUnitID *int `json:"meta_business_unit,omitempty"`
Name string `json:"name"`
Created Timestamp `json:"created_at"`
Updated Timestamp `json:"updated_at"`
}
Taxonomy represents a Zentral Taxonomy
type TaxonomyCreateRequest ¶
type TaxonomyCreateRequest struct {
Name string `json:"name"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
}
TaxonomyCreateRequest represents a request to create a Taxonomy.
type TaxonomyUpdateRequest ¶
type TaxonomyUpdateRequest struct {
Name string `json:"name"`
MetaBusinessUnitID *int `json:"meta_business_unit"`
}
TaxonomyUpdateRequest represents a request to update a Taxonomy.
type Timestamp ¶
Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an ISO8601 or Unix timestamp. All exported methods of time.Time can be called on Timestamp.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. Time is expected in ISO8611 or Unix format.
Source Files
¶
- common.go
- enrollment_secret.go
- errors.go
- goztl.go
- gws_connections.go
- gws_group_tag_mappings.go
- jmespath_checks.go
- mdm_acme_issuers.go
- mdm_artifact_versions.go
- mdm_artifacts.go
- mdm_blueprint_artifacts.go
- mdm_blueprints.go
- mdm_cert_assets.go
- mdm_cert_issuers.go
- mdm_data_assets.go
- mdm_declarations.go
- mdm_dep_custom_views.go
- mdm_dep_enrollments.go
- mdm_dep_virtual_servers.go
- mdm_enrollment_custom_views.go
- mdm_enterprise_apps.go
- mdm_filevault_configs.go
- mdm_location_assets.go
- mdm_locations.go
- mdm_ota_enrollments.go
- mdm_profiles.go
- mdm_push_certificates.go
- mdm_recovery_password_configs.go
- mdm_scep_issuers.go
- mdm_software_update_enforcements.go
- mdm_store_apps.go
- meta_business_units.go
- monolith_catalogs.go
- monolith_conditions.go
- monolith_enrollments.go
- monolith_manifest_catalogs.go
- monolith_manifest_enrollment_packages.go
- monolith_manifest_sub_manifests.go
- monolith_manifests.go
- monolith_repositories.go
- monolith_sub_manifest_pkg_infos.go
- monolith_sub_manifests.go
- munki_configurations.go
- munki_enrollments.go
- munki_script_checks.go
- osquery_atc.go
- osquery_configuration_packs.go
- osquery_configurations.go
- osquery_enrollments.go
- osquery_file_categories.go
- osquery_packs.go
- osquery_queries.go
- probes.go
- probes_actions.go
- realms_realms.go
- santa_configurations.go
- santa_enrollments.go
- santa_rules.go
- stores.go
- strings.go
- tags.go
- taxonomies.go
- timestamp.go