Class 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.”
    • Field Detail

      • description

        protected String description
      • detectionScriptContent

        protected byte[] detectionScriptContent
      • displayName

        protected String displayName
      • enforceSignatureCheck

        protected Boolean enforceSignatureCheck
      • publisher

        protected String publisher
      • roleScopeTagIds

        protected List<String> roleScopeTagIds
      • roleScopeTagIdsNextLink

        protected String roleScopeTagIdsNextLink
      • runAs32Bit

        protected Boolean runAs32Bit
      • version

        protected String version
    • Constructor Detail

      • DeviceComplianceScript

        protected DeviceComplianceScript()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • 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 of this with just the createdDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of createdDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the createdDateTime field 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 of this with just the description field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of description field (as defined in service metadata)
        Returns:
        immutable copy of this with just the description field 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 of this with just the detectionScriptContent field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of detectionScriptContent field (as defined in service metadata)
        Returns:
        immutable copy of this with just the detectionScriptContent field 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 of this with just the displayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field 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 of this with just the enforceSignatureCheck field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of enforceSignatureCheck field (as defined in service metadata)
        Returns:
        immutable copy of this with just the enforceSignatureCheck field 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 of this with just the lastModifiedDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field 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 of this with just the publisher field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of publisher field (as defined in service metadata)
        Returns:
        immutable copy of this with just the publisher field 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 of this with just the roleScopeTagIds field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of roleScopeTagIds field (as defined in service metadata)
        Returns:
        immutable copy of this with just the roleScopeTagIds field 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 of this with just the runAs32Bit field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of runAs32Bit field (as defined in service metadata)
        Returns:
        immutable copy of this with just the runAs32Bit field 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 of this with just the runAsAccount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of runAsAccount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the runAsAccount field 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 of this with just the version field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of version field (as defined in service metadata)
        Returns:
        immutable copy of this with just the version field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public DeviceComplianceScript patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public DeviceComplianceScript put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected