Class DeviceComplianceScript
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceComplianceScript
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceComplianceScript extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Intune will provide customer the ability to run their Powershell Compliance scripts (detection) on the enrolled windows 10 Azure Active Directory joined devices.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceComplianceScript.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected byte[]detectionScriptContentprotected StringdisplayNameprotected BooleanenforceSignatureCheckprotected OffsetDateTimelastModifiedDateTimeprotected Stringpublisherprotected 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 protectedDeviceComplianceScript()
-
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 DeviceComplianceScript.BuilderbuilderDeviceComplianceScript()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 compliance script”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The timestamp of when the device compliance script was created.Optional<String>getDescription()“Description of the device compliance script”Optional<byte[]>getDetectionScriptContent()“The entire content of the detection powershell script”DeviceComplianceScriptDeviceStateCollectionRequestgetDeviceRunStates()“List of run states for the device compliance script across all devices”Optional<String>getDisplayName()“Name of the device compliance script”Optional<Boolean>getEnforceSignatureCheck()“Indicate whether the script signature needs be checked”Optional<OffsetDateTime>getLastModifiedDateTime()“The timestamp of when the device compliance script was modified.Optional<String>getPublisher()“Name of the device compliance script publisher”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds()“List of Scope Tag IDs for the device compliance script”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of Scope Tag IDs for the device compliance script”Optional<Boolean>getRunAs32Bit()“Indicate whether PowerShell script(s) should run as 32-bit”Optional<RunAsAccountType>getRunAsAccount()“Indicates the type of execution context”DeviceComplianceScriptRunSummaryRequestgetRunSummary()“High level run summary for device compliance script.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“Version of the device compliance script”StringodataTypeName()DeviceComplianceScriptpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceComplianceScriptput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceComplianceScriptwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceComplianceScriptwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceComplianceScriptwithDetectionScriptContent(byte[] detectionScriptContent)Returns an immutable copy ofthiswith just thedetectionScriptContentfield changed.DeviceComplianceScriptwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceComplianceScriptwithEnforceSignatureCheck(Boolean enforceSignatureCheck)Returns an immutable copy ofthiswith just theenforceSignatureCheckfield changed.DeviceComplianceScriptwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceComplianceScriptwithPublisher(String publisher)Returns an immutable copy ofthiswith just thepublisherfield changed.DeviceComplianceScriptwithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceComplianceScriptwithRunAs32Bit(Boolean runAs32Bit)Returns an immutable copy ofthiswith just therunAs32Bitfield changed.DeviceComplianceScriptwithRunAsAccount(RunAsAccountType runAsAccount)Returns an immutable copy ofthiswith just therunAsAccountfield changed.DeviceComplianceScriptwithUnmappedField(String name, String value)DeviceComplianceScriptwithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
detectionScriptContent
protected byte[] detectionScriptContent
-
displayName
protected String displayName
-
enforceSignatureCheck
protected Boolean enforceSignatureCheck
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
publisher
protected String publisher
-
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
-
builderDeviceComplianceScript
public static DeviceComplianceScript.Builder builderDeviceComplianceScript()
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 compliance script was created. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceComplianceScript 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 compliance 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 compliance script”- Returns:
- property description
-
withDescription
public DeviceComplianceScript 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 compliance 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 DeviceComplianceScript 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
-
getDisplayName
public Optional<String> getDisplayName()
“Name of the device compliance script”- Returns:
- property displayName
-
withDisplayName
public DeviceComplianceScript 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 compliance 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 DeviceComplianceScript 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
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“The timestamp of when the device compliance script was modified. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceComplianceScript 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 compliance 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 compliance script publisher”- Returns:
- property publisher
-
withPublisher
public DeviceComplianceScript 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 compliance script publisher”
- Parameters:
publisher- new value ofpublisherfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepublisherfield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“List of Scope Tag IDs for the device compliance script”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public DeviceComplianceScript 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 compliance 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 compliance 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 DeviceComplianceScript 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 DeviceComplianceScript 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 compliance script”- Returns:
- property version
-
withVersion
public DeviceComplianceScript 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 compliance script”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public DeviceComplianceScript withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public DeviceHealthScriptAssignmentCollectionRequest getAssignments()
“The list of group assignments for the device compliance script”- Returns:
- navigational property assignments
-
getDeviceRunStates
public DeviceComplianceScriptDeviceStateCollectionRequest getDeviceRunStates()
“List of run states for the device compliance script across all devices”- Returns:
- navigational property deviceRunStates
-
getRunSummary
public DeviceComplianceScriptRunSummaryRequest getRunSummary()
“High level run summary for device compliance 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 DeviceComplianceScript patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceComplianceScript 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)
-
-