Class DeviceManagementScript
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementScript
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementScript extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Intune will provide customer the ability to run their Powershell scripts on the enrolled windows 10 Azure Active Directory joined devices. The script can be run once or periodically.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementScript.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected BooleanenforceSignatureCheckprotected StringfileNameprotected OffsetDateTimelastModifiedDateTimeprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected BooleanrunAs32Bitprotected RunAsAccountTyperunAsAccountprotected byte[]scriptContent-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementScript()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnassign(List<DeviceManagementScriptGroupAssignment> deviceManagementScriptGroupAssignments, List<DeviceManagementScriptAssignment> deviceManagementScriptAssignments)static DeviceManagementScript.BuilderbuilderDeviceManagementScript()Returns a builder which is used to create a new instance of this class (given that this class is immutable).DeviceManagementScriptAssignmentCollectionRequestgetAssignments()“The list of group assignments for the device management script.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The date and time the device management script was created.Optional<String>getDescription()“Optional description for the device management script.”DeviceManagementScriptDeviceStateCollectionRequestgetDeviceRunStates()“List of run states for this script across all devices.”Optional<String>getDisplayName()“Name of the device management script.”Optional<Boolean>getEnforceSignatureCheck()“Indicate whether the script signature needs be checked.”Optional<String>getFileName()“Script file name.”DeviceManagementScriptGroupAssignmentCollectionRequestgetGroupAssignments()“The list of group assignments for the device management script.”Optional<OffsetDateTime>getLastModifiedDateTime()“The date and time the device management script was last modified.com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds()“List of Scope Tag IDs for this PowerShellScript instance.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of Scope Tag IDs for this PowerShellScript instance.”Optional<Boolean>getRunAs32Bit()“A value indicating whether the PowerShell script should run as 32-bit”Optional<RunAsAccountType>getRunAsAccount()“Indicates the type of execution context.”DeviceManagementScriptRunSummaryRequestgetRunSummary()“Run summary for device management script.”Optional<byte[]>getScriptContent()“The script content.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()DeviceManagementScriptUserStateCollectionRequestgetUserRunStates()“List of run states for this script across all users.”StringodataTypeName()DeviceManagementScriptpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementScriptput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementScriptwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceManagementScriptwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementScriptwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceManagementScriptwithEnforceSignatureCheck(Boolean enforceSignatureCheck)Returns an immutable copy ofthiswith just theenforceSignatureCheckfield changed.DeviceManagementScriptwithFileName(String fileName)Returns an immutable copy ofthiswith just thefileNamefield changed.DeviceManagementScriptwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceManagementScriptwithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceManagementScriptwithRunAs32Bit(Boolean runAs32Bit)Returns an immutable copy ofthiswith just therunAs32Bitfield changed.DeviceManagementScriptwithRunAsAccount(RunAsAccountType runAsAccount)Returns an immutable copy ofthiswith just therunAsAccountfield changed.DeviceManagementScriptwithScriptContent(byte[] scriptContent)Returns an immutable copy ofthiswith just thescriptContentfield changed.DeviceManagementScriptwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
enforceSignatureCheck
protected Boolean enforceSignatureCheck
-
fileName
protected String fileName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
runAs32Bit
protected Boolean runAs32Bit
-
runAsAccount
protected RunAsAccountType runAsAccount
-
scriptContent
protected byte[] scriptContent
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementScript
public static DeviceManagementScript.Builder builderDeviceManagementScript()
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 date and time the device management script was created. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceManagementScript 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 date and time the device management 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()
“Optional description for the device management script.”- Returns:
- property description
-
withDescription
public DeviceManagementScript 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.“Optional description for the device management script.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Name of the device management script.”- Returns:
- property displayName
-
withDisplayName
public DeviceManagementScript 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 management 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 DeviceManagementScript 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
-
withFileName
public DeviceManagementScript withFileName(String fileName)
Returns an immutable copy ofthiswith just thefileNamefield 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.“Script file name.”
- Parameters:
fileName- new value offileNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefileNamefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“The date and time the device management script was last modified. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceManagementScript 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 date and time the device management script was last 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
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“List of Scope Tag IDs for this PowerShellScript instance.”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public DeviceManagementScript 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 this PowerShellScript instance.”
- 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 this PowerShellScript instance.”- Parameters:
options- specify connect and read timeouts- Returns:
- property roleScopeTagIds
-
getRunAs32Bit
public Optional<Boolean> getRunAs32Bit()
“A value indicating whether the PowerShell script should run as 32-bit”- Returns:
- property runAs32Bit
-
withRunAs32Bit
public DeviceManagementScript 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.“A value indicating whether the PowerShell script 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 DeviceManagementScript 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
-
getScriptContent
public Optional<byte[]> getScriptContent()
“The script content.”- Returns:
- property scriptContent
-
withScriptContent
public DeviceManagementScript withScriptContent(byte[] scriptContent)
Returns an immutable copy ofthiswith just thescriptContentfield 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 script content.”
- Parameters:
scriptContent- new value ofscriptContentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescriptContentfield changed
-
withUnmappedField
public DeviceManagementScript withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public DeviceManagementScriptAssignmentCollectionRequest getAssignments()
“The list of group assignments for the device management script.”- Returns:
- navigational property assignments
-
getDeviceRunStates
public DeviceManagementScriptDeviceStateCollectionRequest getDeviceRunStates()
“List of run states for this script across all devices.”- Returns:
- navigational property deviceRunStates
-
getGroupAssignments
public DeviceManagementScriptGroupAssignmentCollectionRequest getGroupAssignments()
“The list of group assignments for the device management script.”- Returns:
- navigational property groupAssignments
-
getRunSummary
public DeviceManagementScriptRunSummaryRequest getRunSummary()
“Run summary for device management script.”- Returns:
- navigational property runSummary
-
getUserRunStates
public DeviceManagementScriptUserStateCollectionRequest getUserRunStates()
“List of run states for this script across all users.”- Returns:
- navigational property userRunStates
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementScript patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementScript 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<DeviceManagementScriptGroupAssignment> deviceManagementScriptGroupAssignments, List<DeviceManagementScriptAssignment> deviceManagementScriptAssignments)
-
-