Class DeviceHealthScript
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceHealthScript
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceHealthScript extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Intune will provide customer the ability to run their Powershell Health scripts (remediation + detection) on the enrolled windows 10 Azure Active Directory joined devices.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceHealthScript.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected byte[]detectionScriptContentprotected List<DeviceHealthScriptParameter>detectionScriptParametersprotected StringdetectionScriptParametersNextLinkprotected StringdisplayNameprotected BooleanenforceSignatureCheckprotected StringhighestAvailableVersionprotected BooleanisGlobalScriptprotected OffsetDateTimelastModifiedDateTimeprotected Stringpublisherprotected byte[]remediationScriptContentprotected List<DeviceHealthScriptParameter>remediationScriptParametersprotected StringremediationScriptParametersNextLinkprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected BooleanrunAs32Bitprotected RunAsAccountTyperunAsAccountprotected Stringversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceHealthScript()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnassign(List<DeviceHealthScriptAssignment> deviceHealthScriptAssignments)static DeviceHealthScript.BuilderbuilderDeviceHealthScript()Returns a builder which is used to create a new instance of this class (given that this class is immutable).DeviceHealthScriptAssignmentCollectionRequestgetAssignments()“The list of group assignments for the device health script”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The timestamp of when the device health script was created.Optional<String>getDescription()“Description of the device health script”Optional<byte[]>getDetectionScriptContent()“The entire content of the detection powershell script”com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter>getDetectionScriptParameters()“List of ComplexType DetectionScriptParameters objects.”com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter>getDetectionScriptParameters(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of ComplexType DetectionScriptParameters objects.”DeviceHealthScriptDeviceStateCollectionRequestgetDeviceRunStates()“List of run states for the device health script across all devices”Optional<String>getDisplayName()“Name of the device health script”Optional<Boolean>getEnforceSignatureCheck()“Indicate whether the script signature needs be checked”com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String>getGlobalScriptHighestAvailableVersion()Optional<String>getHighestAvailableVersion()“Highest available version for a Microsoft Proprietary script”Optional<Boolean>getIsGlobalScript()“Determines if this is Microsoft Proprietary Script.Optional<OffsetDateTime>getLastModifiedDateTime()“The timestamp of when the device health script was modified.Optional<String>getPublisher()“Name of the device health script publisher”com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<DeviceHealthScriptRemediationHistory>getRemediationHistory()Optional<byte[]>getRemediationScriptContent()“The entire content of the remediation powershell script”com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter>getRemediationScriptParameters()“List of ComplexType RemediationScriptParameters objects.”com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter>getRemediationScriptParameters(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of ComplexType RemediationScriptParameters objects.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds()“List of Scope Tag IDs for the device health script”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of Scope Tag IDs for the device health script”Optional<Boolean>getRunAs32Bit()“Indicate whether PowerShell script(s) should run as 32-bit”Optional<RunAsAccountType>getRunAsAccount()“Indicates the type of execution context”DeviceHealthScriptRunSummaryRequestgetRunSummary()“High level run summary for device health script.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“Version of the device health script”StringodataTypeName()DeviceHealthScriptpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceHealthScriptput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String>updateGlobalScript(String version)DeviceHealthScriptwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceHealthScriptwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceHealthScriptwithDetectionScriptContent(byte[] detectionScriptContent)Returns an immutable copy ofthiswith just thedetectionScriptContentfield changed.DeviceHealthScriptwithDetectionScriptParameters(List<DeviceHealthScriptParameter> detectionScriptParameters)Returns an immutable copy ofthiswith just thedetectionScriptParametersfield changed.DeviceHealthScriptwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceHealthScriptwithEnforceSignatureCheck(Boolean enforceSignatureCheck)Returns an immutable copy ofthiswith just theenforceSignatureCheckfield changed.DeviceHealthScriptwithHighestAvailableVersion(String highestAvailableVersion)Returns an immutable copy ofthiswith just thehighestAvailableVersionfield changed.DeviceHealthScriptwithIsGlobalScript(Boolean isGlobalScript)Returns an immutable copy ofthiswith just theisGlobalScriptfield changed.DeviceHealthScriptwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceHealthScriptwithPublisher(String publisher)Returns an immutable copy ofthiswith just thepublisherfield changed.DeviceHealthScriptwithRemediationScriptContent(byte[] remediationScriptContent)Returns an immutable copy ofthiswith just theremediationScriptContentfield changed.DeviceHealthScriptwithRemediationScriptParameters(List<DeviceHealthScriptParameter> remediationScriptParameters)Returns an immutable copy ofthiswith just theremediationScriptParametersfield changed.DeviceHealthScriptwithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceHealthScriptwithRunAs32Bit(Boolean runAs32Bit)Returns an immutable copy ofthiswith just therunAs32Bitfield changed.DeviceHealthScriptwithRunAsAccount(RunAsAccountType runAsAccount)Returns an immutable copy ofthiswith just therunAsAccountfield changed.DeviceHealthScriptwithUnmappedField(String name, String value)DeviceHealthScriptwithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
detectionScriptContent
protected byte[] detectionScriptContent
-
detectionScriptParameters
protected List<DeviceHealthScriptParameter> detectionScriptParameters
-
detectionScriptParametersNextLink
protected String detectionScriptParametersNextLink
-
displayName
protected String displayName
-
enforceSignatureCheck
protected Boolean enforceSignatureCheck
-
highestAvailableVersion
protected String highestAvailableVersion
-
isGlobalScript
protected Boolean isGlobalScript
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
publisher
protected String publisher
-
remediationScriptContent
protected byte[] remediationScriptContent
-
remediationScriptParameters
protected List<DeviceHealthScriptParameter> remediationScriptParameters
-
remediationScriptParametersNextLink
protected String remediationScriptParametersNextLink
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
runAs32Bit
protected Boolean runAs32Bit
-
runAsAccount
protected RunAsAccountType runAsAccount
-
version
protected String version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceHealthScript
public static DeviceHealthScript.Builder builderDeviceHealthScript()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The timestamp of when the device health script was created. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceHealthScript withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The timestamp of when the device health script was created. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“Description of the device health script”- Returns:
- property description
-
withDescription
public DeviceHealthScript withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Description of the device health script”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDetectionScriptContent
public Optional<byte[]> getDetectionScriptContent()
“The entire content of the detection powershell script”- Returns:
- property detectionScriptContent
-
withDetectionScriptContent
public DeviceHealthScript withDetectionScriptContent(byte[] detectionScriptContent)
Returns an immutable copy ofthiswith just thedetectionScriptContentfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The entire content of the detection powershell script”
- Parameters:
detectionScriptContent- new value ofdetectionScriptContentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedetectionScriptContentfield changed
-
getDetectionScriptParameters
public com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter> getDetectionScriptParameters()
“List of ComplexType DetectionScriptParameters objects.”- Returns:
- property detectionScriptParameters
-
withDetectionScriptParameters
public DeviceHealthScript withDetectionScriptParameters(List<DeviceHealthScriptParameter> detectionScriptParameters)
Returns an immutable copy ofthiswith just thedetectionScriptParametersfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“List of ComplexType DetectionScriptParameters objects.”
- Parameters:
detectionScriptParameters- new value ofdetectionScriptParametersfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedetectionScriptParametersfield changed
-
getDetectionScriptParameters
public com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter> getDetectionScriptParameters(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of ComplexType DetectionScriptParameters objects.”- Parameters:
options- specify connect and read timeouts- Returns:
- property detectionScriptParameters
-
getDisplayName
public Optional<String> getDisplayName()
“Name of the device health script”- Returns:
- property displayName
-
withDisplayName
public DeviceHealthScript withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Name of the device health script”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getEnforceSignatureCheck
public Optional<Boolean> getEnforceSignatureCheck()
“Indicate whether the script signature needs be checked”- Returns:
- property enforceSignatureCheck
-
withEnforceSignatureCheck
public DeviceHealthScript withEnforceSignatureCheck(Boolean enforceSignatureCheck)
Returns an immutable copy ofthiswith just theenforceSignatureCheckfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Indicate whether the script signature needs be checked”
- Parameters:
enforceSignatureCheck- new value ofenforceSignatureCheckfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenforceSignatureCheckfield changed
-
getHighestAvailableVersion
public Optional<String> getHighestAvailableVersion()
“Highest available version for a Microsoft Proprietary script”- Returns:
- property highestAvailableVersion
-
withHighestAvailableVersion
public DeviceHealthScript withHighestAvailableVersion(String highestAvailableVersion)
Returns an immutable copy ofthiswith just thehighestAvailableVersionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Highest available version for a Microsoft Proprietary script”
- Parameters:
highestAvailableVersion- new value ofhighestAvailableVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehighestAvailableVersionfield changed
-
getIsGlobalScript
public Optional<Boolean> getIsGlobalScript()
“Determines if this is Microsoft Proprietary Script. Proprietary scripts are read -only”- Returns:
- property isGlobalScript
-
withIsGlobalScript
public DeviceHealthScript withIsGlobalScript(Boolean isGlobalScript)
Returns an immutable copy ofthiswith just theisGlobalScriptfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Determines if this is Microsoft Proprietary Script. Proprietary scripts are read -only”
- Parameters:
isGlobalScript- new value ofisGlobalScriptfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisGlobalScriptfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“The timestamp of when the device health script was modified. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceHealthScript withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The timestamp of when the device health script was modified. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getPublisher
public Optional<String> getPublisher()
“Name of the device health script publisher”- Returns:
- property publisher
-
withPublisher
public DeviceHealthScript withPublisher(String publisher)
Returns an immutable copy ofthiswith just thepublisherfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Name of the device health script publisher”
- Parameters:
publisher- new value ofpublisherfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepublisherfield changed
-
getRemediationScriptContent
public Optional<byte[]> getRemediationScriptContent()
“The entire content of the remediation powershell script”- Returns:
- property remediationScriptContent
-
withRemediationScriptContent
public DeviceHealthScript withRemediationScriptContent(byte[] remediationScriptContent)
Returns an immutable copy ofthiswith just theremediationScriptContentfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The entire content of the remediation powershell script”
- Parameters:
remediationScriptContent- new value ofremediationScriptContentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremediationScriptContentfield changed
-
getRemediationScriptParameters
public com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter> getRemediationScriptParameters()
“List of ComplexType RemediationScriptParameters objects.”- Returns:
- property remediationScriptParameters
-
withRemediationScriptParameters
public DeviceHealthScript withRemediationScriptParameters(List<DeviceHealthScriptParameter> remediationScriptParameters)
Returns an immutable copy ofthiswith just theremediationScriptParametersfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“List of ComplexType RemediationScriptParameters objects.”
- Parameters:
remediationScriptParameters- new value ofremediationScriptParametersfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremediationScriptParametersfield changed
-
getRemediationScriptParameters
public com.github.davidmoten.odata.client.CollectionPage<DeviceHealthScriptParameter> getRemediationScriptParameters(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of ComplexType RemediationScriptParameters objects.”- Parameters:
options- specify connect and read timeouts- Returns:
- property remediationScriptParameters
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“List of Scope Tag IDs for the device health script”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public DeviceHealthScript withRoleScopeTagIds(List<String> roleScopeTagIds)
Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“List of Scope Tag IDs for the device health script”
- Parameters:
roleScopeTagIds- new value ofroleScopeTagIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theroleScopeTagIdsfield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of Scope Tag IDs for the device health script”- Parameters:
options- specify connect and read timeouts- Returns:
- property roleScopeTagIds
-
getRunAs32Bit
public Optional<Boolean> getRunAs32Bit()
“Indicate whether PowerShell script(s) should run as 32-bit”- Returns:
- property runAs32Bit
-
withRunAs32Bit
public DeviceHealthScript withRunAs32Bit(Boolean runAs32Bit)
Returns an immutable copy ofthiswith just therunAs32Bitfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Indicate whether PowerShell script(s) should run as 32-bit”
- Parameters:
runAs32Bit- new value ofrunAs32Bitfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therunAs32Bitfield changed
-
getRunAsAccount
public Optional<RunAsAccountType> getRunAsAccount()
“Indicates the type of execution context”- Returns:
- property runAsAccount
-
withRunAsAccount
public DeviceHealthScript withRunAsAccount(RunAsAccountType runAsAccount)
Returns an immutable copy ofthiswith just therunAsAccountfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Indicates the type of execution context”
- Parameters:
runAsAccount- new value ofrunAsAccountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therunAsAccountfield changed
-
getVersion
public Optional<String> getVersion()
“Version of the device health script”- Returns:
- property version
-
withVersion
public DeviceHealthScript withVersion(String version)
Returns an immutable copy ofthiswith just theversionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Version of the device health script”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public DeviceHealthScript withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public DeviceHealthScriptAssignmentCollectionRequest getAssignments()
“The list of group assignments for the device health script”- Returns:
- navigational property assignments
-
getDeviceRunStates
public DeviceHealthScriptDeviceStateCollectionRequest getDeviceRunStates()
“List of run states for the device health script across all devices”- Returns:
- navigational property deviceRunStates
-
getRunSummary
public DeviceHealthScriptRunSummaryRequest getRunSummary()
“High level run summary for device health script.”- Returns:
- navigational property runSummary
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceHealthScript patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceHealthScript put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
assign
public com.github.davidmoten.odata.client.ActionRequestNoReturn assign(List<DeviceHealthScriptAssignment> deviceHealthScriptAssignments)
-
getGlobalScriptHighestAvailableVersion
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> getGlobalScriptHighestAvailableVersion()
-
updateGlobalScript
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> updateGlobalScript(String version)
-
getRemediationHistory
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<DeviceHealthScriptRemediationHistory> getRemediationHistory()
-
-