Documentation
¶
Index ¶
- Constants
- type Assignment
- type AssignmentDeviceManagementScript
- type AssignmentTarget
- type Client
- func (c *Client) CreateCopyOfDeviceManagementConfigurationPolicyByID(sourcePolicyId string, copyDisplayName string, copyDescription string) (*ResourceDeviceManagementConfigurationPolicy, error)
- func (c *Client) CreateCopyOfDeviceManagementConfigurationPolicyByName(sourcePolicyName string, copyDisplayName string, copyDescription string) (*ResourceDeviceManagementConfigurationPolicy, error)
- func (c *Client) CreateDeviceCategory(request *ResourceDeviceCategory) (*ResourceDeviceCategory, error)
- func (c *Client) CreateDeviceComplianceScript(request *ResourceDeviceComplianceScript) (*ResponseDeviceComplianceScript, error)
- func (c *Client) CreateDeviceManagementConfigurationPolicy(request *ResourceDeviceManagementConfigurationPolicy) (*ResourceDeviceManagementConfigurationPolicy, error)
- func (c *Client) CreateDeviceManagementScript(request *ResourceDeviceManagementScript) (*ResponseDeviceManagementScript, error)
- func (c *Client) CreateDeviceManagementScriptAssignment(scriptID string, assignment *AssignmentDeviceManagementScript) (*ResourceDeviceManagementScriptGroupAssignment, error)
- func (c *Client) CreateDeviceManagementScriptWithAssignment(request *ResourceDeviceManagementScript, ...) (*ResponseDeviceManagementScript, error)
- func (c *Client) CreateDeviceShellScript(request *ResourceDeviceShellScript) (*ResponseDeviceShellScript, error)
- func (c *Client) CreateDeviceShellScriptAssignment(scriptID string, assignment *AssignmentDeviceManagementScript) (*ResourceDeviceManagementScriptGroupAssignment, error)
- func (c *Client) CreateDeviceShellScriptWithAssignment(request *ResourceDeviceShellScript, ...) (*ResponseDeviceShellScript, error)
- func (c *Client) CreateProactiveRemediation(request *ResourceProactiveRemediation) (*ResponseProactiveRemediation, error)
- func (c *Client) DeleteDeviceCategoryByDisplayName(categoryName string) error
- func (c *Client) DeleteDeviceCategoryByID(deviceCategoryId string) error
- func (c *Client) DeleteDeviceComplianceScriptByDisplayName(displayName string) error
- func (c *Client) DeleteDeviceComplianceScriptByID(scriptID string) error
- func (c *Client) DeleteDeviceManagementConfigurationPolicyByID(policyId string) error
- func (c *Client) DeleteDeviceManagementConfigurationPolicyByName(policyName string) error
- func (c *Client) DeleteDeviceManagementScriptByDisplayName(displayName string) error
- func (c *Client) DeleteDeviceManagementScriptByID(id string) error
- func (c *Client) DeleteDeviceShellScriptByDisplayName(displayName string) error
- func (c *Client) DeleteDeviceShellScriptByID(scriptID string) error
- func (c *Client) DeleteProactiveRemediationByDisplayName(displayName string) error
- func (c *Client) DeleteProactiveRemediationByID(scriptID string) error
- func (c *Client) GetDeviceCategories() (*ResponseDeviceCategoriesList, error)
- func (c *Client) GetDeviceCategoryByDisplayName(categoryDisplayName string) (*ResourceDeviceCategory, error)
- func (c *Client) GetDeviceCategoryByID(deviceCategoryId string) (*ResourceDeviceCategory, error)
- func (c *Client) GetDeviceComplianceScriptByDisplayName(displayName string) (*ResponseDeviceComplianceScript, error)
- func (c *Client) GetDeviceComplianceScriptByID(id string) (*ResponseDeviceComplianceScript, error)
- func (c *Client) GetDeviceComplianceScripts() (*ResponseDeviceComplianceScriptsList, error)
- func (c *Client) GetDeviceEnrollmentConfigurationAssignmentsByDeviceEnrollmentConfigurationID(configId string) (*ResourceDeviceEnrollmentConfigurationAssignmentsList, error)
- func (c *Client) GetDeviceEnrollmentConfigurationByDisplayName(displayName string) (*ResourceDeviceEnrollmentConfiguration, error)
- func (c *Client) GetDeviceEnrollmentConfigurationByID(id string) (*ResourceDeviceEnrollmentConfiguration, error)
- func (c *Client) GetDeviceEnrollmentConfigurations() (*ResourceDeviceEnrollmentConfigurationsList, error)
- func (c *Client) GetDeviceManagementConfigurationPolicies() (*ResponseDeviceManagementConfigurationPoliciesList, error)
- func (c *Client) GetDeviceManagementConfigurationPolicyByID(policyId string) (*ResourceDeviceManagementConfigurationPolicy, error)
- func (c *Client) GetDeviceManagementConfigurationPolicyByName(policyName string) (*ResourceDeviceManagementConfigurationPolicy, error)
- func (c *Client) GetDeviceManagementGroupPolicyConfigurationByID(policyConfigurationId string) (*ResourceDeviceManagementGroupPolicyConfiguration, error)
- func (c *Client) GetDeviceManagementGroupPolicyConfigurationByName(policyConfigurationName string) (*ResourceDeviceManagementGroupPolicyConfiguration, error)
- func (c *Client) GetDeviceManagementGroupPolicyConfigurations() (*ResponseDeviceManagementGroupPolicyConfigurationsList, error)
- func (c *Client) GetDeviceManagementReusablePolicySettingByID(policySettingId string) (*ResourceDeviceManagementReusablePolicySetting, error)
- func (c *Client) GetDeviceManagementScriptAssignmentByID(resourceTypeURI, resourceID string) (*AssignmentDeviceManagementScript, error)
- func (c *Client) GetDeviceManagementScriptByDisplayName(displayName string) (*ResponseDeviceManagementScript, error)
- func (c *Client) GetDeviceManagementScriptByID(id string) (*ResponseDeviceManagementScript, error)
- func (c *Client) GetDeviceManagementScripts() (*ResponseDeviceManagementScriptsList, error)
- func (c *Client) GetDeviceShellScriptByDisplayName(displayName string) (*ResponseDeviceShellScript, error)
- func (c *Client) GetDeviceShellScriptByID(id string) (*ResponseDeviceShellScript, error)
- func (c *Client) GetDeviceShellScripts() (*ResponseDeviceShellScriptsList, error)
- func (c *Client) GetProactiveRemediationByDisplayName(displayName string) (*ResponseProactiveRemediation, error)
- func (c *Client) GetProactiveRemediationByID(id string) (*ResponseProactiveRemediation, error)
- func (c *Client) GetProactiveRemediations() (*ResponseProactiveRemediationsList, error)
- func (c *Client) GetResourceDeviceManagementReusablePolicySettings() ([]ResourceDeviceManagementReusablePolicySetting, error)
- func (c *Client) ReorderDeviceManagementConfigurationPolicyByID(policyId string, newPriority int) (*ResourceDeviceManagementConfigurationPolicy, error)
- func (c *Client) UpdateDeviceCategoryByDisplayName(categoryName string, updateRequest *ResourceDeviceCategory) (*ResourceDeviceCategory, error)
- func (c *Client) UpdateDeviceCategoryByID(deviceCategoryId string, updateRequest *ResourceDeviceCategory) (*ResourceDeviceCategory, error)
- func (c *Client) UpdateDeviceComplianceScriptByDisplayName(displayName string, updateRequest *ResourceDeviceComplianceScript) (*ResponseDeviceComplianceScript, error)
- func (c *Client) UpdateDeviceComplianceScriptByID(scriptID string, request *ResourceDeviceComplianceScript) (*ResponseDeviceComplianceScript, error)
- func (c *Client) UpdateDeviceManagementConfigurationPolicyByID(policyId string, request *ResourceDeviceManagementConfigurationPolicy) (*ResourceDeviceManagementConfigurationPolicy, error)
- func (c *Client) UpdateDeviceManagementScriptByDisplayName(displayName string, updateRequest *ResourceDeviceManagementScript) (*ResponseDeviceManagementScript, error)
- func (c *Client) UpdateDeviceManagementScriptByID(scriptID string, request *ResourceDeviceManagementScript) (*ResponseDeviceManagementScript, error)
- func (c *Client) UpdateDeviceShellScriptByDisplayName(displayName string, updateRequest *ResourceDeviceShellScript) (*ResponseDeviceShellScript, error)
- func (c *Client) UpdateDeviceShellScriptByID(scriptID string, request *ResourceDeviceShellScript) (*ResponseDeviceShellScript, error)
- func (c *Client) UpdateProactiveRemediationByDisplayName(displayName string, updateRequest *ResourceProactiveRemediation) (*ResponseProactiveRemediation, error)
- func (c *Client) UpdateProactiveRemediationByID(scriptID string, request *ResourceProactiveRemediation) (*ResponseProactiveRemediation, error)
- type DeviceComplianceAssignment
- type DeviceComplianceAssignmentTarget
- type DeviceComplianceScriptRunSchedule
- type DeviceHealthScriptParameter
- type DeviceManagementConfigurationChoiceSettingInstance
- type DeviceManagementConfigurationChoiceSettingValue
- type DeviceManagementConfigurationPolicySubsetTemplateReference
- type DeviceManagementConfigurationSettingInstanceTemplateReference
- type DeviceManagementConfigurationSettingValueTemplateReference
- type DeviceManagementConfigurationSubsetChoiceSettingValue
- type DeviceManagementConfigurationSubsetSetting
- type DeviceManagementConfigurationSubsetSettingInstance
- type DeviceManagementConfigurationSubsetSettingInstanceReference
- type DeviceManagementConfigurationSubsetSimpleSettingValue
- type DeviceManagementSettingValueTemplateReference
- type DeviceManagementSubsetPriorityMetaData
- type DynamicValue
- type EnrollmentAssignmentTarget
- type EnrollmentConfigurationAssignment
- type GroupPolicyDefinition
- type GroupPolicyDefinitionValue
- type GroupPolicyPresentation
- type GroupPolicyPresentationValue
- type PresentationItem
- type ResourceDeviceCategory
- type ResourceDeviceComplianceScript
- type ResourceDeviceEnrollmentConfiguration
- type ResourceDeviceEnrollmentConfigurationAssignmentsList
- type ResourceDeviceEnrollmentConfigurationsList
- type ResourceDeviceManagementConfigurationPolicy
- type ResourceDeviceManagementGroupPolicyConfiguration
- type ResourceDeviceManagementReusablePolicySetting
- type ResourceDeviceManagementScript
- type ResourceDeviceManagementScriptAssignment
- type ResourceDeviceManagementScriptGroupAssignment
- type ResourceDeviceShellScript
- type ResourceProactiveRemediation
- type ResponseAssignmentsList
- type ResponseDeviceCategoriesList
- type ResponseDeviceComplianceScript
- type ResponseDeviceComplianceScriptsList
- type ResponseDeviceComplianceScriptsListAssignment
- type ResponseDeviceComplianceScriptsListItem
- type ResponseDeviceComplianceScriptsListRunSchedule
- type ResponseDeviceComplianceScriptsListTarget
- type ResponseDeviceManagementConfigurationPoliciesList
- type ResponseDeviceManagementGroupPolicyConfigurationsList
- type ResponseDeviceManagementReusablePolicySettingsList
- type ResponseDeviceManagementScript
- type ResponseDeviceManagementScriptAssignment
- type ResponseDeviceManagementScriptListAssignment
- type ResponseDeviceManagementScriptListItem
- type ResponseDeviceManagementScriptListTarget
- type ResponseDeviceManagementScriptTarget
- type ResponseDeviceManagementScriptsList
- type ResponseDeviceShellScript
- type ResponseDeviceShellScriptAssignment
- type ResponseDeviceShellScriptListAssignment
- type ResponseDeviceShellScriptListItem
- type ResponseDeviceShellScriptListTarget
- type ResponseDeviceShellScriptTarget
- type ResponseDeviceShellScriptsList
- type ResponseGroupPolicyDefinitionValuesList
- type ResponsePresentationValuesList
- type ResponseProactiveRemediatioAssignment
- type ResponseProactiveRemediation
- type ResponseProactiveRemediationAssignment
- type ResponseProactiveRemediationGroupAssignmentTarget
- type ResponseProactiveRemediationListItem
- type ResponseProactiveRemediationListRunSchedule
- type ResponseProactiveRemediationListTarget
- type ResponseProactiveRemediationRunSchedule
- type ResponseProactiveRemediationsList
Constants ¶
const ( ODataTypeDeviceComplianceScript = "#microsoft.graph.deviceComplianceScript" ODataTypeDeviceComplianceScriptStringParameter = "microsoft.graph.deviceHealthScriptStringParameter" ODataTypeDeviceComplianceScriptAssignment = "#microsoft.graph.deviceHealthScriptAssignment" ODataTypeDeviceComplianceScriptDailySchedule = "microsoft.graph.deviceHealthScriptDailySchedule" ODataTypeDeviceComplianceScriptAssignmentTarget = "microsoft.graph.groupAssignmentTarget" )
const ( ODataTypeDeviceHealthScript = "#microsoft.graph.deviceHealthScript" ODataTypeDeviceHealthScriptStringParameter = "microsoft.graph.deviceHealthScriptStringParameter" ODataTypeDeviceHealthScriptAssignment = "#microsoft.graph.deviceHealthScriptAssignment" ODataTypeConfigurationManagerCollectionTarget = "microsoft.graph.configurationManagerCollectionAssignmentTarget" ODataTypeDeviceHealthScriptDailySchedule = "microsoft.graph.deviceHealthScriptDailySchedule" ODataTypeGroupAssignmentTarget = "microsoft.graph.groupAssignmentTarget" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct {
ID string `json:"id"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
Target AssignmentTarget `json:"target"`
}
Assignment represents an assignment of a Group Policy Configuration to a target, such as a user or a group.
type AssignmentDeviceManagementScript ¶
type AssignmentDeviceManagementScript struct {
ResourceDeviceManagementScriptGroupAssignments []ResourceDeviceManagementScriptGroupAssignment `json:"deviceManagementScriptGroupAssignments,omitempty"`
ResourceDeviceManagementScriptAssignments []ResourceDeviceManagementScriptAssignment `json:"deviceManagementScriptAssignments,omitempty"`
}
AssignmentDeviceManagementScript represents the request of a script assignment
type AssignmentTarget ¶
type AssignmentTarget struct {
ID string `json:"id"`
Type string `json:"@odata.type"` // e.g., "#microsoft.graph.groupTarget", etc.
DeviceAndAppManagementAssignmentFilterId string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
CollectionId string `json:"collectionId"`
}
AssignmentTarget represents the target of an Assignment, detailing the type and identifiers for the assignment target.
type Client ¶
type Client struct {
HTTP *http_client.Client
}
func (*Client) CreateCopyOfDeviceManagementConfigurationPolicyByID ¶
func (c *Client) CreateCopyOfDeviceManagementConfigurationPolicyByID(sourcePolicyId string, copyDisplayName string, copyDescription string) (*ResourceDeviceManagementConfigurationPolicy, error)
CreateCopyOfDeviceManagementConfigurationPolicyByID creates a copy of an existing device management configuration policy.
func (*Client) CreateCopyOfDeviceManagementConfigurationPolicyByName ¶
func (c *Client) CreateCopyOfDeviceManagementConfigurationPolicyByName(sourcePolicyName string, copyDisplayName string, copyDescription string) (*ResourceDeviceManagementConfigurationPolicy, error)
CreateCopyOfDeviceManagementConfigurationPolicyByName creates a copy of an existing device management configuration policy by its name.
func (*Client) CreateDeviceCategory ¶
func (c *Client) CreateDeviceCategory(request *ResourceDeviceCategory) (*ResourceDeviceCategory, error)
CreateDeviceCategory creates a new Device Category in Microsoft Graph API.
func (*Client) CreateDeviceComplianceScript ¶
func (c *Client) CreateDeviceComplianceScript(request *ResourceDeviceComplianceScript) (*ResponseDeviceComplianceScript, error)
CreateDeviceComplianceScript creates a new device compliance script in Microsoft Graph API.
func (*Client) CreateDeviceManagementConfigurationPolicy ¶
func (c *Client) CreateDeviceManagementConfigurationPolicy(request *ResourceDeviceManagementConfigurationPolicy) (*ResourceDeviceManagementConfigurationPolicy, error)
CreateDeviceManagementConfigurationPolicy creates a new device management configuration policy.
func (*Client) CreateDeviceManagementScript ¶
func (c *Client) CreateDeviceManagementScript(request *ResourceDeviceManagementScript) (*ResponseDeviceManagementScript, error)
CreateDeviceManagementScript creates a new device management script.
func (*Client) CreateDeviceManagementScriptAssignment ¶
func (c *Client) CreateDeviceManagementScriptAssignment(scriptID string, assignment *AssignmentDeviceManagementScript) (*ResourceDeviceManagementScriptGroupAssignment, error)
CreateDeviceManagementScriptAssignment creates a new device management script assignment.
func (*Client) CreateDeviceManagementScriptWithAssignment ¶
func (c *Client) CreateDeviceManagementScriptWithAssignment(request *ResourceDeviceManagementScript, assignment *AssignmentDeviceManagementScript) (*ResponseDeviceManagementScript, error)
CreateDeviceManagementScriptWithAssignment creates a new device management script and assigns it.
func (*Client) CreateDeviceShellScript ¶
func (c *Client) CreateDeviceShellScript(request *ResourceDeviceShellScript) (*ResponseDeviceShellScript, error)
CreateDeviceShellScript creates a new device management script.
func (*Client) CreateDeviceShellScriptAssignment ¶
func (c *Client) CreateDeviceShellScriptAssignment(scriptID string, assignment *AssignmentDeviceManagementScript) (*ResourceDeviceManagementScriptGroupAssignment, error)
CreateDeviceShellScriptAssignment creates a new device management script assignment.
func (*Client) CreateDeviceShellScriptWithAssignment ¶
func (c *Client) CreateDeviceShellScriptWithAssignment(request *ResourceDeviceShellScript, assignment *AssignmentDeviceManagementScript) (*ResponseDeviceShellScript, error)
CreateDeviceShellScriptWithAssignment creates a new device management script and assigns it.
func (*Client) CreateProactiveRemediation ¶
func (c *Client) CreateProactiveRemediation(request *ResourceProactiveRemediation) (*ResponseProactiveRemediation, error)
CreateProactiveRemediation creates a new Device Health Script in Microsoft Graph API.
func (*Client) DeleteDeviceCategoryByDisplayName ¶
DeleteDeviceCategoryByDisplayName deletes a specific Device Category identified by its name.
func (*Client) DeleteDeviceCategoryByID ¶
DeleteDeviceCategoryByID deletes a specific Device Category identified by its ID.
func (*Client) DeleteDeviceComplianceScriptByDisplayName ¶
DeleteDeviceComplianceScriptByDisplayName deletes an existing device Shell script by its display name.
func (*Client) DeleteDeviceComplianceScriptByID ¶
DeleteDeviceComplianceScriptByID deletes an existing device compliance script by its ID.
func (*Client) DeleteDeviceManagementConfigurationPolicyByID ¶
DeleteDeviceManagementConfigurationPolicyByID deletes a device management configuration policy by its ID.
func (*Client) DeleteDeviceManagementConfigurationPolicyByName ¶
DeleteDeviceManagementConfigurationPolicyByName deletes a device management configuration policy by its name.
func (*Client) DeleteDeviceManagementScriptByDisplayName ¶
DeleteDeviceManagementScriptByDisplayName deletes an existing device management script by its display name.
func (*Client) DeleteDeviceManagementScriptByID ¶
DeleteDeviceManagementScriptByID deletes an existing device management script by its ID.
func (*Client) DeleteDeviceShellScriptByDisplayName ¶
DeleteDeviceShellScriptByDisplayName deletes an existing device Shell script by its display name.
func (*Client) DeleteDeviceShellScriptByID ¶
DeleteDeviceShellScriptByID deletes an existing device shell script by its ID.
func (*Client) DeleteProactiveRemediationByDisplayName ¶
DeleteProactiveRemediationByDisplayName deletes an existing device Shell script by its display name.
func (*Client) DeleteProactiveRemediationByID ¶
DeleteDeviceShellScriptByID deletes an existing proactive remediation by its ID.
func (*Client) GetDeviceCategories ¶
func (c *Client) GetDeviceCategories() (*ResponseDeviceCategoriesList, error)
GetDeviceCategories retrieves a list of Intune Device Categories from Microsoft Graph API.
func (*Client) GetDeviceCategoryByDisplayName ¶
func (c *Client) GetDeviceCategoryByDisplayName(categoryDisplayName string) (*ResourceDeviceCategory, error)
GetDeviceCategoryByDisplayName retrieves a specific Device Category by its name from Microsoft Graph API.
func (*Client) GetDeviceCategoryByID ¶
func (c *Client) GetDeviceCategoryByID(deviceCategoryId string) (*ResourceDeviceCategory, error)
GetDeviceCategoryByID retrieves a specific Device Category by its ID from Microsoft Graph API.
func (*Client) GetDeviceComplianceScriptByDisplayName ¶
func (c *Client) GetDeviceComplianceScriptByDisplayName(displayName string) (*ResponseDeviceComplianceScript, error)
GetProactiveRemediationByDisplayName retrieves a specific Proactive Remediation by its name along with its assignments.
func (*Client) GetDeviceComplianceScriptByID ¶
func (c *Client) GetDeviceComplianceScriptByID(id string) (*ResponseDeviceComplianceScript, error)
GetDeviceComplianceScriptByID retrieves a Device Compliance Script by its ID.
func (*Client) GetDeviceComplianceScripts ¶
func (c *Client) GetDeviceComplianceScripts() (*ResponseDeviceComplianceScriptsList, error)
GetDeviceComplianceScripts retrieves a list of device compliance scripts from Microsoft Graph API.
func (*Client) GetDeviceEnrollmentConfigurationAssignmentsByDeviceEnrollmentConfigurationID ¶
func (c *Client) GetDeviceEnrollmentConfigurationAssignmentsByDeviceEnrollmentConfigurationID(configId string) (*ResourceDeviceEnrollmentConfigurationAssignmentsList, error)
GetDeviceEnrollmentConfigurationAssignmentsByDeviceEnrollmentConfigurationID retrieves all assignments for a device enrollment configuration by its ID.
func (*Client) GetDeviceEnrollmentConfigurationByDisplayName ¶
func (c *Client) GetDeviceEnrollmentConfigurationByDisplayName(displayName string) (*ResourceDeviceEnrollmentConfiguration, error)
GetDeviceEnrollmentConfigurationByDisplayName retrieves a device management script by its display name.
func (*Client) GetDeviceEnrollmentConfigurationByID ¶
func (c *Client) GetDeviceEnrollmentConfigurationByID(id string) (*ResourceDeviceEnrollmentConfiguration, error)
GetDeviceEnrollmentConfigurationByID retrieves a specific device enrollment configuration by its ID.
func (*Client) GetDeviceEnrollmentConfigurations ¶
func (c *Client) GetDeviceEnrollmentConfigurations() (*ResourceDeviceEnrollmentConfigurationsList, error)
GetDeviceEnrollmentConfigurations retrieves a list of all device enrollment configurations.
func (*Client) GetDeviceManagementConfigurationPolicies ¶
func (c *Client) GetDeviceManagementConfigurationPolicies() (*ResponseDeviceManagementConfigurationPoliciesList, error)
GetDeviceManagementConfigurationPolicies retrieves a list of all device management configuration policies.
func (*Client) GetDeviceManagementConfigurationPolicyByID ¶
func (c *Client) GetDeviceManagementConfigurationPolicyByID(policyId string) (*ResourceDeviceManagementConfigurationPolicy, error)
GetDeviceManagementConfigurationPolicyByID retrieves a specific device management configuration policy by its ID.
func (*Client) GetDeviceManagementConfigurationPolicyByName ¶
func (c *Client) GetDeviceManagementConfigurationPolicyByName(policyName string) (*ResourceDeviceManagementConfigurationPolicy, error)
GetDeviceManagementConfigurationPolicyByName retrieves a specific device management configuration policy by its name.
func (*Client) GetDeviceManagementGroupPolicyConfigurationByID ¶
func (c *Client) GetDeviceManagementGroupPolicyConfigurationByID(policyConfigurationId string) (*ResourceDeviceManagementGroupPolicyConfiguration, error)
GetDeviceManagementGroupPolicyConfigurationByID retrieves a specific Group Policy Configuration by its ID with expanded details.
func (*Client) GetDeviceManagementGroupPolicyConfigurationByName ¶
func (c *Client) GetDeviceManagementGroupPolicyConfigurationByName(policyConfigurationName string) (*ResourceDeviceManagementGroupPolicyConfiguration, error)
GetDeviceManagementGroupPolicyConfigurationByName retrieves a specific Group Policy Configuration by its name.
func (*Client) GetDeviceManagementGroupPolicyConfigurations ¶
func (c *Client) GetDeviceManagementGroupPolicyConfigurations() (*ResponseDeviceManagementGroupPolicyConfigurationsList, error)
Function to get the list of Group Policy Configurations
func (*Client) GetDeviceManagementReusablePolicySettingByID ¶
func (c *Client) GetDeviceManagementReusablePolicySettingByID(policySettingId string) (*ResourceDeviceManagementReusablePolicySetting, error)
GetDeviceManagementReusablePolicySettingByID retrieves a specific device management Reusable Policy Setting by its ID.
func (*Client) GetDeviceManagementScriptAssignmentByID ¶
func (c *Client) GetDeviceManagementScriptAssignmentByID(resourceTypeURI, resourceID string) (*AssignmentDeviceManagementScript, error)
GetDeviceManagementScriptAssignmentByID retrieves all group assignments for a specified resource.
func (*Client) GetDeviceManagementScriptByDisplayName ¶
func (c *Client) GetDeviceManagementScriptByDisplayName(displayName string) (*ResponseDeviceManagementScript, error)
GetDeviceManagementScriptByDisplayName retrieves a device management script by its display name.
func (*Client) GetDeviceManagementScriptByID ¶
func (c *Client) GetDeviceManagementScriptByID(id string) (*ResponseDeviceManagementScript, error)
GetDeviceManagementScriptByID retrieves a Device Management Script by its ID.
func (*Client) GetDeviceManagementScripts ¶
func (c *Client) GetDeviceManagementScripts() (*ResponseDeviceManagementScriptsList, error)
GetDeviceManagementScripts gets a list of all Intune Device Management Scripts with expanded information on assignments.
func (*Client) GetDeviceShellScriptByDisplayName ¶
func (c *Client) GetDeviceShellScriptByDisplayName(displayName string) (*ResponseDeviceShellScript, error)
GetDeviceShellScriptByDisplayName retrieves a device shell script by its display name.
func (*Client) GetDeviceShellScriptByID ¶
func (c *Client) GetDeviceShellScriptByID(id string) (*ResponseDeviceShellScript, error)
GetDeviceShellScriptByID retrieves a Device Shell Script by its ID.
func (*Client) GetDeviceShellScripts ¶
func (c *Client) GetDeviceShellScripts() (*ResponseDeviceShellScriptsList, error)
GetDeviceShellScripts gets a list of all Intune Device Shell Scripts with expanded information on assignments.
func (*Client) GetProactiveRemediationByDisplayName ¶
func (c *Client) GetProactiveRemediationByDisplayName(displayName string) (*ResponseProactiveRemediation, error)
GetProactiveRemediationByDisplayName retrieves a specific Proactive Remediation by its name along with its assignments.
func (*Client) GetProactiveRemediationByID ¶
func (c *Client) GetProactiveRemediationByID(id string) (*ResponseProactiveRemediation, error)
GetProactiveRemediationByID retrieves a Device Shell Script by its ID.
func (*Client) GetProactiveRemediations ¶
func (c *Client) GetProactiveRemediations() (*ResponseProactiveRemediationsList, error)
GetProactiveRemediations retrieves a list of Proactive Remediations (Device Health Scripts) from Microsoft Graph API.
func (*Client) GetResourceDeviceManagementReusablePolicySettings ¶
func (c *Client) GetResourceDeviceManagementReusablePolicySettings() ([]ResourceDeviceManagementReusablePolicySetting, error)
GetResourceDeviceManagementReusablePolicySettings retrieves a list of all device management reusable policy settings.
func (*Client) ReorderDeviceManagementConfigurationPolicyByID ¶
func (c *Client) ReorderDeviceManagementConfigurationPolicyByID(policyId string, newPriority int) (*ResourceDeviceManagementConfigurationPolicy, error)
ReorderDeviceManagementConfigurationPolicyByID updates the priority of a device management configuration policy.
func (*Client) UpdateDeviceCategoryByDisplayName ¶
func (c *Client) UpdateDeviceCategoryByDisplayName(categoryName string, updateRequest *ResourceDeviceCategory) (*ResourceDeviceCategory, error)
UpdateDeviceCategoryByDisplayName updates a specific Device Category identified by its name.
func (*Client) UpdateDeviceCategoryByID ¶
func (c *Client) UpdateDeviceCategoryByID(deviceCategoryId string, updateRequest *ResourceDeviceCategory) (*ResourceDeviceCategory, error)
UpdateDeviceCategoryByID updates a specific Device Category identified by its ID.
func (*Client) UpdateDeviceComplianceScriptByDisplayName ¶
func (c *Client) UpdateDeviceComplianceScriptByDisplayName(displayName string, updateRequest *ResourceDeviceComplianceScript) (*ResponseDeviceComplianceScript, error)
UpdateDeviceComplianceScriptByDisplayName updates an existing Device Compliance script by its display name. Since there is no dedicated endpoint for this, it first retrieves the script by name to get its ID, then updates it using the UpdateDeviceComplianceScriptByID function.
func (*Client) UpdateDeviceComplianceScriptByID ¶
func (c *Client) UpdateDeviceComplianceScriptByID(scriptID string, request *ResourceDeviceComplianceScript) (*ResponseDeviceComplianceScript, error)
UpdateDeviceComplianceScriptByID updates a Device compliance Script by its ID using the PATCH method.
func (*Client) UpdateDeviceManagementConfigurationPolicyByID ¶
func (c *Client) UpdateDeviceManagementConfigurationPolicyByID(policyId string, request *ResourceDeviceManagementConfigurationPolicy) (*ResourceDeviceManagementConfigurationPolicy, error)
UpdateDeviceManagementConfigurationPolicyByID updates an existing device management configuration policy by its ID.
func (*Client) UpdateDeviceManagementScriptByDisplayName ¶
func (c *Client) UpdateDeviceManagementScriptByDisplayName(displayName string, updateRequest *ResourceDeviceManagementScript) (*ResponseDeviceManagementScript, error)
UpdateDeviceManagementScriptByDisplayName updates an existing device management script by its display name. Since there is no dedicated endpoint for this, it first retrieves the script by name to get its ID, then updates it using the UpdateDeviceManagementScriptByID function.
func (*Client) UpdateDeviceManagementScriptByID ¶
func (c *Client) UpdateDeviceManagementScriptByID(scriptID string, request *ResourceDeviceManagementScript) (*ResponseDeviceManagementScript, error)
UpdateDeviceManagementScriptByID updates a Device Management Script by its ID using the PATCH method.
func (*Client) UpdateDeviceShellScriptByDisplayName ¶
func (c *Client) UpdateDeviceShellScriptByDisplayName(displayName string, updateRequest *ResourceDeviceShellScript) (*ResponseDeviceShellScript, error)
UpdateDeviceShellScriptByDisplayName updates an existing Device Shell script by its display name. Since there is no dedicated endpoint for this, it first retrieves the script by name to get its ID, then updates it using the UpdateDeviceShellScriptByID function.
func (*Client) UpdateDeviceShellScriptByID ¶
func (c *Client) UpdateDeviceShellScriptByID(scriptID string, request *ResourceDeviceShellScript) (*ResponseDeviceShellScript, error)
UpdateDeviceShellScriptByID updates a Device Shell Script by its ID using the PATCH method.
func (*Client) UpdateProactiveRemediationByDisplayName ¶
func (c *Client) UpdateProactiveRemediationByDisplayName(displayName string, updateRequest *ResourceProactiveRemediation) (*ResponseProactiveRemediation, error)
UpdateProactiveRemediationByDisplayName updates an existing Device Shell script by its display name. Since there is no dedicated endpoint for this, it first retrieves the script by name to get its ID, then updates it using the UpdateProactiveRemediationByID function.
func (*Client) UpdateProactiveRemediationByID ¶
func (c *Client) UpdateProactiveRemediationByID(scriptID string, request *ResourceProactiveRemediation) (*ResponseProactiveRemediation, error)
UpdateProactiveRemediationByID updates a Device Shell Script by its ID using the PATCH method.
type DeviceComplianceAssignment ¶
type DeviceComplianceAssignment struct {
ID string `json:"id"`
RunRemediationScript bool `json:"runRemediationScript"`
Target DeviceComplianceAssignmentTarget `json:"target"`
RunSchedule DeviceComplianceScriptRunSchedule `json:"runSchedule"`
}
DeviceComplianceAssignment represents an assignment for a Device Compliance Script.
type DeviceComplianceAssignmentTarget ¶
type DeviceComplianceAssignmentTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterID string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
GroupID string `json:"groupId"`
}
DeviceComplianceAssignmentTarget represents the target of a compliance script assignment.
type DeviceComplianceScriptRunSchedule ¶
type DeviceComplianceScriptRunSchedule struct {
ODataType string `json:"@odata.type"`
Interval int `json:"interval"`
}
DeviceComplianceScriptRunSchedule represents the schedule for running a compliance script.
type DeviceHealthScriptParameter ¶
type DeviceHealthScriptParameter struct {
ODataType string `json:"@odata.type,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
IsRequired bool `json:"isRequired,omitempty"`
ApplyDefaultValueWhenNotAssigned bool `json:"applyDefaultValueWhenNotAssigned,omitempty"`
DefaultValue string `json:"defaultValue,omitempty"`
}
DeviceHealthScriptParameter represents a parameter for a device health script, which can be used in either detection or remediation scripts.
type DeviceManagementConfigurationChoiceSettingInstance ¶
type DeviceManagementConfigurationChoiceSettingInstance struct {
OdataType string `json:"@odata.type"`
SettingDefinitionId string `json:"settingDefinitionId"`
SettingInstanceTemplateReference *DeviceManagementConfigurationSettingInstanceTemplateReference `json:"settingInstanceTemplateReference,omitempty"`
ChoiceSettingValue *DeviceManagementConfigurationChoiceSettingValue `json:"choiceSettingValue,omitempty"`
}
DeviceManagementConfigurationChoiceSettingInstance represents an instance of a choice setting.
type DeviceManagementConfigurationChoiceSettingValue ¶
type DeviceManagementConfigurationChoiceSettingValue struct {
OdataType string `json:"@odata.type"`
SettingValueTemplateReference *DeviceManagementConfigurationSettingValueTemplateReference `json:"settingValueTemplateReference,omitempty"`
Value string `json:"value"`
Children []*DeviceManagementConfigurationChoiceSettingInstance `json:"children,omitempty"`
}
DeviceManagementConfigurationChoiceSettingValue represents the value of a choice setting.
type DeviceManagementConfigurationPolicySubsetTemplateReference ¶
type DeviceManagementConfigurationPolicySubsetTemplateReference struct {
OdataType string `json:"@odata.type"`
TemplateId string `json:"templateId"`
TemplateFamily string `json:"templateFamily"`
TemplateDisplayName string `json:"templateDisplayName,omitempty"`
TemplateDisplayVersion string `json:"templateDisplayVersion,omitempty"`
}
DeviceManagementConfigurationPolicyTemplateReference represents the template reference in a configuration policy.
type DeviceManagementConfigurationSettingInstanceTemplateReference ¶
type DeviceManagementConfigurationSettingInstanceTemplateReference struct {
OdataType string `json:"@odata.type"`
SettingInstanceTemplateId string `json:"settingInstanceTemplateId"`
}
DeviceManagementConfigurationSettingInstanceTemplateReference represents a reference to a setting instance template.
type DeviceManagementConfigurationSettingValueTemplateReference ¶
type DeviceManagementConfigurationSettingValueTemplateReference struct {
OdataType string `json:"@odata.type"`
SettingValueTemplateId string `json:"settingValueTemplateId"`
UseTemplateDefault bool `json:"useTemplateDefault"`
}
DeviceManagementConfigurationSettingValueTemplateReference represents a template reference for a setting value.
type DeviceManagementConfigurationSubsetChoiceSettingValue ¶
type DeviceManagementConfigurationSubsetChoiceSettingValue struct {
Value string `json:"value"`
Children []DeviceManagementConfigurationSubsetSettingInstance `json:"children"`
SettingValueTemplateReference *DeviceManagementSettingValueTemplateReference `json:"settingValueTemplateReference,omitempty"`
}
DeviceManagementConfigurationChoiceSettingValue represents the value of a choice setting.
type DeviceManagementConfigurationSubsetSetting ¶
type DeviceManagementConfigurationSubsetSetting struct {
ID string `json:"id"`
SettingInstance DeviceManagementConfigurationSubsetSettingInstance `json:"settingInstance"`
}
DeviceManagementConfigurationSetting represents a configuration settings within a configuration policy.
type DeviceManagementConfigurationSubsetSettingInstance ¶
type DeviceManagementConfigurationSubsetSettingInstance struct {
OdataType string `json:"@odata.type"`
SettingDefinitionId string `json:"settingDefinitionId"`
SettingInstanceTemplateReference *DeviceManagementConfigurationSubsetSettingInstanceReference `json:"settingInstanceTemplateReference,omitempty"`
ChoiceSettingValue *DeviceManagementConfigurationSubsetChoiceSettingValue `json:"choiceSettingValue,omitempty"`
SimpleSettingValue *DeviceManagementConfigurationSubsetSimpleSettingValue `json:"simpleSettingValue,omitempty"`
}
DeviceManagementConfigurationSettingInstance represents an instance of a configuration setting.
type DeviceManagementConfigurationSubsetSettingInstanceReference ¶
type DeviceManagementConfigurationSubsetSettingInstanceReference struct {
SettingInstanceTemplateId string `json:"settingInstanceTemplateId,omitempty"`
}
DeviceManagementConfigurationSettingInstanceReference represents a reference to a setting instance.
type DeviceManagementConfigurationSubsetSimpleSettingValue ¶
type DeviceManagementConfigurationSubsetSimpleSettingValue struct {
OdataType string `json:"@odata.type"`
SettingValueTemplateReference *DeviceManagementSettingValueTemplateReference `json:"settingValueTemplateReference,omitempty"`
Value interface{} `json:"value"`
}
DeviceManagementConfigurationSimpleSettingValue represents the value of a simple setting.
type DeviceManagementSubsetPriorityMetaData ¶
type DeviceManagementSubsetPriorityMetaData struct {
OdataType string `json:"@odata.type"`
Priority int `json:"priority"`
}
DeviceManagementPriorityMetaData represents the priority metadata in a configuration policy.
type DynamicValue ¶
type DynamicValue struct {
// Use an interface to hold the actual value.
Value interface{} `json:"Value"`
}
DynamicValue is a type that can hold different types of values, allowing for dynamic handling of the 'value' field in Group Policy Presentation Values.
func (*DynamicValue) UnmarshalJSON ¶
func (dv *DynamicValue) UnmarshalJSON(data []byte) error
UnmarshalJSON is a custom unmarshaler for DynamicValue, allowing it to dynamically handle different data types in JSON. When unmarshaling JSON data, it attempts to decode the value into one of several basic data types: int, float64, bool, or string. If none of these types are compatible, the value is treated as a raw JSON message. This approach provides flexibility in handling various types of data that might be encountered in a graph JSON payload, ensuring that the DynamicValue struct can accommodate a wide range of JSON structures and types.
type EnrollmentAssignmentTarget ¶
type EnrollmentAssignmentTarget struct {
OdataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterId string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
TargetType string `json:"targetType"`
EntraObjectId string `json:"entraObjectId"`
}
EnrollmentAssignmentTarget represents the target for an enrollment configuration assignment.
type EnrollmentConfigurationAssignment ¶
type EnrollmentConfigurationAssignment struct {
OdataType string `json:"@odata.type"`
ID string `json:"id"`
Target EnrollmentAssignmentTarget `json:"target"`
Source string `json:"source"`
SourceId string `json:"sourceId"`
}
EnrollmentConfigurationAssignment represents an enrollment configuration assignment.
type GroupPolicyDefinition ¶
type GroupPolicyDefinition struct {
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
}
GroupPolicyDefinition represents the basic information of a Group Policy Definition.
type GroupPolicyDefinitionValue ¶
type GroupPolicyDefinitionValue struct {
ID string `json:"id"`
Enabled bool `json:"enabled"`
ConfigurationType string `json:"configurationType"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
Definition *GroupPolicyDefinition `json:"definition,omitempty"`
PresentationValues []GroupPolicyPresentationValue `json:"presentationValues,omitempty"`
}
GroupPolicyDefinitionValue represents a single Group Policy Definition Value, including its associated definitions and presentation values.
type GroupPolicyPresentation ¶
type GroupPolicyPresentation struct {
Label string `json:"label"`
ID string `json:"id"`
Required bool `json:"required"`
DefaultItem PresentationItem `json:"defaultItem"`
Items []PresentationItem `json:"items"`
}
GroupPolicyPresentation defines the presentation details for a Group Policy Presentation Value, such as labels, items, and default values.
type GroupPolicyPresentationValue ¶
type GroupPolicyPresentationValue struct {
ID string `json:"id"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
CreatedDateTime time.Time `json:"createdDateTime"`
Label string `json:"label"`
Description string `json:"description"`
ValueType string `json:"valueType"`
Value DynamicValue `json:"value"`
Presentation GroupPolicyPresentation `json:"presentation,omitempty"`
}
GroupPolicyPresentationValue represents a presentation value for a Group Policy Definition Value, including its type and value.
type PresentationItem ¶
type PresentationItem struct {
DisplayName string `json:"displayName"`
Value string `json:"value"`
}
PresentationItem represents an individual item in a Group Policy Presentation dropdown or similar collection.
type ResourceDeviceCategory ¶
type ResourceDeviceCategory struct {
OdataType string `json:"@odata.type"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
}
ResourceDeviceCategory represents an individual Device Category resource from Microsoft Graph API.
type ResourceDeviceComplianceScript ¶
type ResourceDeviceComplianceScript struct {
ODataType string `json:"@odata.type,omitempty"`
Publisher string `json:"publisher,omitempty"`
Version string `json:"version,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description,omitempty"`
DetectionScriptContent string `json:"detectionScriptContent,omitempty"`
RunAsAccount string `json:"runAsAccount,omitempty"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck,omitempty"`
RunAs32Bit bool `json:"runAs32Bit,omitempty"`
RoleScopeTagIds []string `json:"roleScopeTagIds,omitempty"`
}
ResourceDeviceComplianceScript represents the request structure for creating a device compliance script.
type ResourceDeviceEnrollmentConfiguration ¶
type ResourceDeviceEnrollmentConfiguration struct {
OdataType string `json:"@odata.type"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
Priority int `json:"priority"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
Version int `json:"version"`
}
DeviceEnrollmentConfiguration represents a device enrollment configuration.
type ResourceDeviceEnrollmentConfigurationAssignmentsList ¶
type ResourceDeviceEnrollmentConfigurationAssignmentsList struct {
Value []EnrollmentConfigurationAssignment `json:"value"`
}
ResourceDeviceEnrollmentConfigurationAssignmentsList represents the response structure for device enrollment configuration assignments.
type ResourceDeviceEnrollmentConfigurationsList ¶
type ResourceDeviceEnrollmentConfigurationsList struct {
Value []ResourceDeviceEnrollmentConfiguration `json:"value"`
}
ResourceDeviceEnrollmentConfigurationsList represents the response structure for device enrollment configuration requests.
type ResourceDeviceManagementConfigurationPolicy ¶
type ResourceDeviceManagementConfigurationPolicy struct {
OdataType string `json:"@odata.type"`
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Platforms string `json:"platforms"`
Technologies string `json:"technologies"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
SettingCount int `json:"settingCount"`
CreationSource string `json:"creationSource"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
IsAssigned bool `json:"isAssigned"`
TemplateReference DeviceManagementConfigurationPolicySubsetTemplateReference `json:"templateReference"`
PriorityMetaData *DeviceManagementSubsetPriorityMetaData `json:"priorityMetaData,omitempty"`
Settings []DeviceManagementConfigurationSubsetSetting `json:"settings"`
}
ResourceDeviceManagementConfigurationPolicy represents a device management configuration policy.
type ResourceDeviceManagementGroupPolicyConfiguration ¶
type ResourceDeviceManagementGroupPolicyConfiguration struct {
OdataType string `json:"@odata.type"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
PolicyConfigurationIngestionType string `json:"policyConfigurationIngestionType"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
DefinitionValues []GroupPolicyDefinitionValue `json:"definitionValues,omitempty"`
Assignments []Assignment `json:"assignments,omitempty"`
}
ResourceDeviceManagementGroupPolicyConfiguration represents an individual Group Policy Configuration resource from Microsoft Graph API.
type ResourceDeviceManagementReusablePolicySetting ¶
type ResourceDeviceManagementReusablePolicySetting struct {
OdataType string `json:"@odata.type"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
SettingDefinitionId string `json:"settingDefinitionId"`
SettingInstance *DeviceManagementConfigurationChoiceSettingInstance `json:"settingInstance,omitempty"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
Version int `json:"version"`
ReferencingConfigurationPolicyCount int `json:"referencingConfigurationPolicyCount"`
}
ResourceDeviceManagementReusablePolicySetting represents a reusable policy setting resource in device management.
type ResourceDeviceManagementScript ¶
type ResourceDeviceManagementScript struct {
ODataType string `json:"@odata.type,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description,omitempty"`
ScriptContent string `json:"scriptContent,omitempty"`
RunAsAccount string `json:"runAsAccount,omitempty"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck,omitempty"`
FileName string `json:"fileName,omitempty"`
RoleScopeTagIds []string `json:"roleScopeTagIds,omitempty"`
RunAs32Bit bool `json:"runAs32Bit,omitempty"`
}
ResourceDeviceManagementScript represents the request payload for creating and updating a new Device Management Script.
type ResourceDeviceManagementScriptAssignment ¶
type ResourceDeviceManagementScriptAssignment struct {
OdataType string `json:"@odata.type,omitempty"`
ID string `json:"id,omitempty"`
Target struct {
OdataType string `json:"@odata.type,omitempty"`
DeviceAndAppManagementAssignmentFilterID string `json:"deviceAndAppManagementAssignmentFilterId,omitempty"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType,omitempty"`
CollectionID string `json:"collectionId,omitempty"`
} `json:"target,omitempty"`
}
ResourceDeviceManagementScriptAssignment represents an assignment of a device management script
type ResourceDeviceManagementScriptGroupAssignment ¶
type ResourceDeviceManagementScriptGroupAssignment struct {
OdataType string `json:"@odata.type,omitempty"`
ID string `json:"id,omitempty"`
TargetGroupID string `json:"targetGroupId,omitempty"`
}
ResourceDeviceManagementScriptGroupAssignment represents a group assignment of a device management script
type ResourceDeviceShellScript ¶
type ResourceDeviceShellScript struct {
ODataType string `json:"@odata.type,omitempty"`
ExecutionFrequency string `json:"executionFrequency,omitempty"`
RetryCount int `json:"retryCount,omitempty"`
BlockExecutionNotifications bool `json:"blockExecutionNotifications,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description,omitempty"`
ScriptContent string `json:"scriptContent,omitempty"`
RunAsAccount string `json:"runAsAccount,omitempty"`
FileName string `json:"fileName,omitempty"`
RoleScopeTagIds []string `json:"roleScopeTagIds,omitempty"`
}
ResourceDeviceShellScript represents the request payload for creating and updating a new Device Shell Script.
type ResourceProactiveRemediation ¶
type ResourceProactiveRemediation struct {
ODataType string `json:"@odata.type,omitempty"`
Publisher string `json:"publisher,omitempty"`
Version string `json:"version,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description,omitempty"`
DetectionScriptContent string `json:"detectionScriptContent,omitempty"`
RemediationScriptContent string `json:"remediationScriptContent,omitempty"`
RunAsAccount string `json:"runAsAccount,omitempty"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck,omitempty"`
RunAs32Bit bool `json:"runAs32Bit,omitempty"`
RoleScopeTagIds []string `json:"roleScopeTagIds,omitempty"`
IsGlobalScript bool `json:"isGlobalScript,omitempty"`
HighestAvailableVersion string `json:"highestAvailableVersion,omitempty"`
DeviceHealthScriptType string `json:"deviceHealthScriptType,omitempty"`
DetectionScriptParameters []DeviceHealthScriptParameter `json:"detectionScriptParameters,omitempty"`
RemediationScriptParameters []DeviceHealthScriptParameter `json:"remediationScriptParameters,omitempty"`
}
ResourceProactiveRemediation represents the structure for a device health script in the Microsoft Graph API.
type ResponseAssignmentsList ¶
type ResponseAssignmentsList struct {
Value []Assignment `json:"value"`
}
ResponseAssignmentsList is used to parse the list response of Assignments from Microsoft Graph API.
type ResponseDeviceCategoriesList ¶
type ResponseDeviceCategoriesList struct {
ODataContext string `json:"@odata.context"`
Value []ResourceDeviceCategory `json:"value"`
}
ResponseDeviceCategoriesList is used to parse the list response of Device Categories from Microsoft Graph API.
type ResponseDeviceComplianceScript ¶
type ResponseDeviceComplianceScript struct {
ODataContext string `json:"@odata.context"`
MicrosoftGraphTips string `json:"@microsoft.graph.tips"`
ID string `json:"id"`
Publisher string `json:"publisher"`
Version string `json:"version"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
DetectionScriptContent string `json:"detectionScriptContent"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck"`
RunAs32Bit bool `json:"runAs32Bit"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
AssignmentsODataContext string `json:"assignments@odata.context"`
Assignments []DeviceComplianceAssignment `json:"assignments"`
}
ResponseDeviceComplianceScript represents the detailed information of a single device compliance script.
type ResponseDeviceComplianceScriptsList ¶
type ResponseDeviceComplianceScriptsList struct {
ODataContext string `json:"@odata.context"`
ODataCount int `json:"@odata.count"`
MicrosoftGraphTips string `json:"@microsoft.graph.tips"`
Value []ResponseDeviceComplianceScriptsListItem `json:"value"`
}
ResponseDeviceComplianceScripts represents a response containing a list of Device Compliance Scripts.
type ResponseDeviceComplianceScriptsListAssignment ¶
type ResponseDeviceComplianceScriptsListAssignment struct {
ID string `json:"id"`
RunRemediationScript bool `json:"runRemediationScript"`
Target ResponseDeviceComplianceScriptsListTarget `json:"target"`
RunSchedule *ResponseDeviceComplianceScriptsListRunSchedule `json:"runSchedule,omitempty"` // Can be null, so pointer type is used
}
DeviceComplianceAssignment represents an assignment for a Device Compliance Script.
type ResponseDeviceComplianceScriptsListItem ¶
type ResponseDeviceComplianceScriptsListItem struct {
ID string `json:"id"`
Publisher string `json:"publisher"`
Version string `json:"version"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
DetectionScriptContent *string `json:"detectionScriptContent"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck"`
RunAs32Bit bool `json:"runAs32Bit"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
Assignments []ResponseDeviceComplianceScriptsListAssignment `json:"assignments"`
}
ResponseDeviceComplianceScriptsListItem represents a single Device Compliance Script item.
type ResponseDeviceComplianceScriptsListRunSchedule ¶
type ResponseDeviceComplianceScriptsListRunSchedule struct {
ODataType string `json:"@odata.type"`
Interval int `json:"interval"`
}
ResponseDeviceComplianceScriptsListRunSchedule represents the schedule for running a compliance script.
type ResponseDeviceComplianceScriptsListTarget ¶
type ResponseDeviceComplianceScriptsListTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterID string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
GroupID string `json:"groupId"`
}
ResponseDeviceComplianceScriptsListTarget represents the target of a compliance script assignment.
type ResponseDeviceManagementConfigurationPoliciesList ¶
type ResponseDeviceManagementConfigurationPoliciesList struct {
ODataContext string `json:"@odata.context"`
ODataCount int `json:"@odata.count"`
Value []ResourceDeviceManagementConfigurationPolicy `json:"value"`
}
ResourceDeviceManagementConfigurationPoliciesList represents the response structure for configuration policies.
type ResponseDeviceManagementGroupPolicyConfigurationsList ¶
type ResponseDeviceManagementGroupPolicyConfigurationsList struct {
ODataContext string `json:"@odata.context"`
Value []ResourceDeviceManagementGroupPolicyConfiguration `json:"value"`
}
ResponseDeviceManagementGroupPolicyConfigurationsList is used to parse the list response of Group Policy Configurations from Microsoft Graph API.
type ResponseDeviceManagementReusablePolicySettingsList ¶
type ResponseDeviceManagementReusablePolicySettingsList struct {
ODataContext string `json:"@odata.context"`
ODataCount int `json:"@odata.count"`
Value []ResourceDeviceManagementReusablePolicySetting `json:"value"`
}
ResourceDeviceManagementReusablePolicySetting represents a list of reusable policy settings in device management.
type ResponseDeviceManagementScript ¶
type ResponseDeviceManagementScript struct {
ODataContext string `json:"@odata.context"`
Tips string `json:"@microsoft.graph.tips"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck"`
RunAs32Bit bool `json:"runAs32Bit"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
ScriptContent string `json:"scriptContent"`
CreatedDateTime string `json:"createdDateTime"`
LastModifiedDateTime string `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
FileName string `json:"fileName"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
AssignmentsContext string `json:"assignments@odata.context"`
Assignments []ResponseDeviceManagementScriptAssignment `json:"assignments"`
}
ResponseDeviceManagementScript represents a Device Management Script resource.
type ResponseDeviceManagementScriptAssignment ¶
type ResponseDeviceManagementScriptAssignment struct {
ID string `json:"id"`
Target ResponseDeviceManagementScriptTarget `json:"target"`
}
ResponseDeviceManagementScriptAssignment represents an assignment of a Device Management Script.
type ResponseDeviceManagementScriptListAssignment ¶
type ResponseDeviceManagementScriptListAssignment struct {
ID string `json:"id"`
Target ResponseDeviceManagementScriptListTarget `json:"target"`
}
ResponseDeviceManagementScriptListAssignment represents an assignment of a Device Management Script.
type ResponseDeviceManagementScriptListItem ¶
type ResponseDeviceManagementScriptListItem struct {
ExecutionFrequency string `json:"executionFrequency"`
RetryCount int `json:"retryCount"`
BlockExecutionNotifications bool `json:"blockExecutionNotifications"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
ScriptContent string `json:"scriptContent"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
FileName string `json:"fileName"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
Assignments []ResponseDeviceManagementScriptListAssignment `json:"assignments,omitempty"`
}
ResponseDeviceManagementScriptListItem represents a Device Management Script resource.
type ResponseDeviceManagementScriptListTarget ¶
type ResponseDeviceManagementScriptListTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterID string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
CollectionId string `json:"collectionId"`
}
ResponseDeviceManagementScriptListTarget represents the target of a script assignment.
type ResponseDeviceManagementScriptTarget ¶
type ResponseDeviceManagementScriptTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterID string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
GroupId string `json:"groupId"`
}
ResponseDeviceManagementScriptTarget represents the target of a script assignment.
type ResponseDeviceManagementScriptsList ¶
type ResponseDeviceManagementScriptsList struct {
ODataContext string `json:"@odata.context"`
Value []ResponseDeviceManagementScriptListItem `json:"value"`
}
ResponseDeviceManagementScriptsList represents a list of Device Management Scripts.
type ResponseDeviceShellScript ¶
type ResponseDeviceShellScript struct {
ODataContext string `json:"@odata.context"`
Tips string `json:"@microsoft.graph.tips"`
ExecutionFrequency string `json:"executionFrequency"`
RetryCount int `json:"retryCount"`
BlockExecutionNotifications bool `json:"blockExecutionNotifications"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
ScriptContent string `json:"scriptContent"`
CreatedDateTime string `json:"createdDateTime"`
LastModifiedDateTime string `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
FileName string `json:"fileName"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
AssignmentsContext string `json:"assignments@odata.context"`
Assignments []ResponseDeviceShellScriptAssignment `json:"assignments"`
}
ResponseDeviceShellScript represents a Device Shell Script by its ID.
type ResponseDeviceShellScriptAssignment ¶
type ResponseDeviceShellScriptAssignment struct {
ID string `json:"id"`
Target ResponseDeviceShellScriptTarget `json:"target"`
}
ResponseDeviceShellScriptAssignment represents an assignment of a Device Shell Script by its ID.
type ResponseDeviceShellScriptListAssignment ¶
type ResponseDeviceShellScriptListAssignment struct {
ID string `json:"id"`
Target ResponseDeviceShellScriptListTarget `json:"target"`
}
ResponseDeviceShellScriptListAssignment represents an assignment of a Device Shell Script.
type ResponseDeviceShellScriptListItem ¶
type ResponseDeviceShellScriptListItem struct {
ExecutionFrequency string `json:"executionFrequency"`
RetryCount int `json:"retryCount"`
BlockExecutionNotifications bool `json:"blockExecutionNotifications"`
ID string `json:"id"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
ScriptContent string `json:"scriptContent"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
FileName string `json:"fileName"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
Assignments []ResponseDeviceShellScriptListAssignment `json:"assignments,omitempty"`
}
ResponseDeviceShellScript represents a Device Shell Script resource.
type ResponseDeviceShellScriptListTarget ¶
type ResponseDeviceShellScriptListTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterID string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
CollectionId string `json:"collectionId"`
}
ResponseDeviceShellScriptTarget represents the target of a script assignment.
type ResponseDeviceShellScriptTarget ¶
type ResponseDeviceShellScriptTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterId string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
GroupId string `json:"groupId"`
}
ResponseDeviceShellScriptTarget represents the target of a script assignment.
type ResponseDeviceShellScriptsList ¶
type ResponseDeviceShellScriptsList struct {
ODataContext string `json:"@odata.context"`
Value []ResponseDeviceShellScriptListItem `json:"value"`
}
ResponseDeviceShellScriptsList represents a list of Device Shell Scripts.
type ResponseGroupPolicyDefinitionValuesList ¶
type ResponseGroupPolicyDefinitionValuesList struct {
Value []GroupPolicyDefinitionValue `json:"value"`
}
ResponseGroupPolicyDefinitionValuesList is used to parse the list response of Group Policy Definition Values from Microsoft Graph API.
type ResponsePresentationValuesList ¶
type ResponsePresentationValuesList struct {
Value []GroupPolicyPresentationValue `json:"value"`
}
ResponsePresentationValuesList is used to parse the list response of Group Policy Presentation Values from Microsoft Graph API.
type ResponseProactiveRemediatioAssignment ¶
type ResponseProactiveRemediatioAssignment struct {
ID string `json:"id"`
RunRemediationScript bool `json:"runRemediationScript"`
Target ResponseProactiveRemediationListTarget `json:"target"`
RunSchedule ResponseProactiveRemediationListRunSchedule `json:"runSchedule"`
}
ResponseProactiveRemediatioAssignment represents an assignment for a health script.
type ResponseProactiveRemediation ¶
type ResponseProactiveRemediation struct {
ODataContext string `json:"@odata.context"`
MicrosoftGraphTips string `json:"@microsoft.graph.tips"`
ID string `json:"id"`
Publisher string `json:"publisher"`
Version string `json:"version"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
DetectionScriptContent string `json:"detectionScriptContent"`
RemediationScriptContent string `json:"remediationScriptContent"`
CreatedDateTime time.Time `json:"createdDateTime"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck"`
RunAs32Bit bool `json:"runAs32Bit"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
IsGlobalScript bool `json:"isGlobalScript"`
HighestAvailableVersion *string `json:"highestAvailableVersion"`
DeviceHealthScriptType string `json:"deviceHealthScriptType"`
DetectionScriptParameters []interface{} `json:"detectionScriptParameters"`
RemediationScriptParameters []interface{} `json:"remediationScriptParameters"`
AssignmentsODataContext string `json:"assignments@odata.context"`
Assignments []ResponseProactiveRemediationAssignment `json:"assignments"`
}
ResponseProactiveRemediation represents the response for a single Proactive Remediation resource.
type ResponseProactiveRemediationAssignment ¶
type ResponseProactiveRemediationAssignment struct {
ID string `json:"id"`
RunRemediationScript bool `json:"runRemediationScript"`
Target ResponseProactiveRemediationGroupAssignmentTarget `json:"target"`
RunSchedule ResponseProactiveRemediationRunSchedule `json:"runSchedule"`
}
ResponseProactiveRemediationAssignment represents an assignment for a health script.
type ResponseProactiveRemediationGroupAssignmentTarget ¶
type ResponseProactiveRemediationGroupAssignmentTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterId string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
GroupId string `json:"groupId"`
}
ResponseProactiveRemediationGroupAssignmentTarget represents the target of a script assignment.
type ResponseProactiveRemediationListItem ¶
type ResponseProactiveRemediationListItem struct {
ID string `json:"id"`
Publisher string `json:"publisher"`
Version string `json:"version"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
DetectionScriptContent string `json:"detectionScriptContent"`
RemediationScriptContent string `json:"remediationScriptContent"`
CreatedDateTime string `json:"createdDateTime"`
LastModifiedDateTime string `json:"lastModifiedDateTime"`
RunAsAccount string `json:"runAsAccount"`
EnforceSignatureCheck bool `json:"enforceSignatureCheck"`
RunAs32Bit bool `json:"runAs32Bit"`
RoleScopeTagIds []string `json:"roleScopeTagIds"`
IsGlobalScript bool `json:"isGlobalScript"`
HighestAvailableVersion string `json:"highestAvailableVersion"`
DeviceHealthScriptType string `json:"deviceHealthScriptType"`
DetectionScriptParameters []interface{} `json:"detectionScriptParameters"`
RemediationScriptParameters []interface{} `json:"remediationScriptParameters"`
AssignmentsODataContext string `json:"assignments@odata.context"`
Assignments []ResponseProactiveRemediatioAssignment `json:"assignments"`
}
ResponseProactiveRemediationListItem represents a single health script entry from a list.
type ResponseProactiveRemediationListRunSchedule ¶
type ResponseProactiveRemediationListRunSchedule struct {
ODataType string `json:"@odata.type"`
Interval int `json:"interval"`
UseUTC bool `json:"useUtc"`
Time string `json:"time"`
}
ResponseProactiveRemediationListRunSchedule represents the schedule for running a script.
type ResponseProactiveRemediationListTarget ¶
type ResponseProactiveRemediationListTarget struct {
ODataType string `json:"@odata.type"`
DeviceAndAppManagementAssignmentFilterID string `json:"deviceAndAppManagementAssignmentFilterId"`
DeviceAndAppManagementAssignmentFilterType string `json:"deviceAndAppManagementAssignmentFilterType"`
GroupID string `json:"groupId"`
}
ResponseProactiveRemediationListTarget represents the target of a script assignment.
type ResponseProactiveRemediationRunSchedule ¶
type ResponseProactiveRemediationRunSchedule struct {
ODataType string `json:"@odata.type"`
Interval int `json:"interval"`
UseUtc bool `json:"useUtc"`
Time string `json:"time"`
}
ResponseProactiveRemediationRunSchedule represents the schedule for running a script.
type ResponseProactiveRemediationsList ¶
type ResponseProactiveRemediationsList struct {
ODataContext string `json:"@odata.context"`
ODataCount int `json:"@odata.count"`
MicrosoftGraphTips string `json:"@microsoft.graph.tips"`
Value []ResponseProactiveRemediationListItem `json:"value"`
}
ResponseProactiveRemediationsList represents a list of Proactive Remediation resources.
Source Files
¶
- client.go
- graphbeta_device_categories.go
- graphbeta_device_compliance_scripts.go
- graphbeta_device_enrollment_configurations.go
- graphbeta_device_enrollment_configurations_assignments.go
- graphbeta_device_health_scripts.go
- graphbeta_device_management_configuration_policy.go
- graphbeta_device_management_group_policy_configurations.go
- graphbeta_device_management_reuseable_policy_settings.go
- graphbeta_device_management_scripts.go
- graphbeta_device_shell_scripts.go
- graphbeta_shared_device_management_script_assigments.go
- helpers.go