Class DeviceShellScript
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceShellScript
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceShellScript extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Intune will provide customer the ability to run their Shell scripts on the enrolled Mac OS devices. The script can be run once or periodically.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceShellScript.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanblockExecutionNotificationsprotected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected DurationexecutionFrequencyprotected StringfileNameprotected OffsetDateTimelastModifiedDateTimeprotected IntegerretryCountprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected RunAsAccountTyperunAsAccountprotected byte[]scriptContent-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceShellScript()
-
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 DeviceShellScript.BuilderbuilderDeviceShellScript()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.”Optional<Boolean>getBlockExecutionNotifications()“Does not notify the user a script is being executed”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<Duration>getExecutionFrequency()“The interval for script to run.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.Optional<Integer>getRetryCount()“Number of times for the script to be retried if it fails”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<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()DeviceShellScriptpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceShellScriptput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceShellScriptwithBlockExecutionNotifications(Boolean blockExecutionNotifications)Returns an immutable copy ofthiswith just theblockExecutionNotificationsfield changed.DeviceShellScriptwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceShellScriptwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceShellScriptwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceShellScriptwithExecutionFrequency(Duration executionFrequency)Returns an immutable copy ofthiswith just theexecutionFrequencyfield changed.DeviceShellScriptwithFileName(String fileName)Returns an immutable copy ofthiswith just thefileNamefield changed.DeviceShellScriptwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceShellScriptwithRetryCount(Integer retryCount)Returns an immutable copy ofthiswith just theretryCountfield changed.DeviceShellScriptwithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceShellScriptwithRunAsAccount(RunAsAccountType runAsAccount)Returns an immutable copy ofthiswith just therunAsAccountfield changed.DeviceShellScriptwithScriptContent(byte[] scriptContent)Returns an immutable copy ofthiswith just thescriptContentfield changed.DeviceShellScriptwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
blockExecutionNotifications
protected Boolean blockExecutionNotifications
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
executionFrequency
protected Duration executionFrequency
-
fileName
protected String fileName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
retryCount
protected Integer retryCount
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
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
-
builderDeviceShellScript
public static DeviceShellScript.Builder builderDeviceShellScript()
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
-
getBlockExecutionNotifications
public Optional<Boolean> getBlockExecutionNotifications()
“Does not notify the user a script is being executed”- Returns:
- property blockExecutionNotifications
-
withBlockExecutionNotifications
public DeviceShellScript withBlockExecutionNotifications(Boolean blockExecutionNotifications)
Returns an immutable copy ofthiswith just theblockExecutionNotificationsfield 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.“Does not notify the user a script is being executed”
- Parameters:
blockExecutionNotifications- new value ofblockExecutionNotificationsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theblockExecutionNotificationsfield changed
-
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 DeviceShellScript 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 DeviceShellScript 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 DeviceShellScript 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
-
getExecutionFrequency
public Optional<Duration> getExecutionFrequency()
“The interval for script to run. If not defined the script will run once”- Returns:
- property executionFrequency
-
withExecutionFrequency
public DeviceShellScript withExecutionFrequency(Duration executionFrequency)
Returns an immutable copy ofthiswith just theexecutionFrequencyfield 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 interval for script to run. If not defined the script will run once”
- Parameters:
executionFrequency- new value ofexecutionFrequencyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexecutionFrequencyfield changed
-
withFileName
public DeviceShellScript 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 DeviceShellScript 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
-
getRetryCount
public Optional<Integer> getRetryCount()
“Number of times for the script to be retried if it fails”- Returns:
- property retryCount
-
withRetryCount
public DeviceShellScript withRetryCount(Integer retryCount)
Returns an immutable copy ofthiswith just theretryCountfield 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.“Number of times for the script to be retried if it fails”
- Parameters:
retryCount- new value ofretryCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theretryCountfield 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 DeviceShellScript 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
-
getRunAsAccount
public Optional<RunAsAccountType> getRunAsAccount()
“Indicates the type of execution context.”- Returns:
- property runAsAccount
-
withRunAsAccount
public DeviceShellScript 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 DeviceShellScript 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 DeviceShellScript 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 DeviceShellScript patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceShellScript 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)
-
-