public class DeviceShellScript extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceShellScript.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
createdDateTime |
protected String |
description |
protected String |
displayName |
protected String |
fileName |
protected OffsetDateTime |
lastModifiedDateTime |
protected List<String> |
roleScopeTagIds |
protected String |
roleScopeTagIdsNextLink |
protected RunAsAccountType |
runAsAccount |
protected byte[] |
scriptContent |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DeviceShellScript() |
| Modifier and Type | Method and Description |
|---|---|
com.github.davidmoten.odata.client.ActionRequestNoReturn |
assign(List<DeviceManagementScriptGroupAssignment> deviceManagementScriptGroupAssignments,
List<DeviceManagementScriptAssignment> deviceManagementScriptAssignments) |
static DeviceShellScript.Builder |
builderDeviceShellScript()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
DeviceManagementScriptAssignmentCollectionRequest |
getAssignments()
“The list of group assignments for the device management script.”
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<OffsetDateTime> |
getCreatedDateTime()
“The date and time the device management script was created.
|
Optional<String> |
getDescription()
“Optional description for the device management script.”
|
DeviceManagementScriptDeviceStateCollectionRequest |
getDeviceRunStates()
“List of run states for this script across all devices.”
|
Optional<String> |
getDisplayName()
“Name of the device management script.”
|
Optional<String> |
getFileName()
“Script file name.”
|
DeviceManagementScriptGroupAssignmentCollectionRequest |
getGroupAssignments()
“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.”
|
Optional<RunAsAccountType> |
getRunAsAccount()
“Indicates the type of execution context.”
|
DeviceManagementScriptRunSummaryRequest |
getRunSummary()
“Run summary for device management script.”
|
Optional<byte[]> |
getScriptContent()
“The script content.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
DeviceManagementScriptUserStateCollectionRequest |
getUserRunStates()
“List of run states for this script across all users.”
|
String |
odataTypeName() |
DeviceShellScript |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DeviceShellScript |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DeviceShellScript |
withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy of
this with just the createdDateTime
field changed. |
DeviceShellScript |
withDescription(String description)
Returns an immutable copy of
this with just the description
field changed. |
DeviceShellScript |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
DeviceShellScript |
withFileName(String fileName)
Returns an immutable copy of
this with just the fileName field
changed. |
DeviceShellScript |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy of
this with just the lastModifiedDateTime field changed. |
DeviceShellScript |
withRunAsAccount(RunAsAccountType runAsAccount)
Returns an immutable copy of
this with just the runAsAccount
field changed. |
DeviceShellScript |
withScriptContent(byte[] scriptContent)
Returns an immutable copy of
this with just the scriptContent
field changed. |
protected String displayName
protected String description
protected byte[] scriptContent
protected OffsetDateTime createdDateTime
protected OffsetDateTime lastModifiedDateTime
protected RunAsAccountType runAsAccount
protected String fileName
protected String roleScopeTagIdsNextLink
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DeviceShellScript.Builder builderDeviceShellScript()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getDisplayName()
public DeviceShellScript withDisplayName(String displayName)
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 management script.”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getDescription()
public DeviceShellScript withDescription(String description)
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.
“Optional description for the device management script.”
description - new value of description field (as defined in service metadata)this with just the description field changedpublic Optional<byte[]> getScriptContent()
public DeviceShellScript withScriptContent(byte[] scriptContent)
this with just the scriptContent
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 script content.”
scriptContent - new value of scriptContent field (as defined in service metadata)this with just the scriptContent field changedpublic Optional<OffsetDateTime> getCreatedDateTime()
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
public DeviceShellScript withCreatedDateTime(OffsetDateTime createdDateTime)
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 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
createdDateTime - new value of createdDateTime field (as defined in service metadata)this with just the createdDateTime field changedpublic Optional<OffsetDateTime> getLastModifiedDateTime()
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
public DeviceShellScript withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
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 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
lastModifiedDateTime - new value of lastModifiedDateTime field (as defined in service metadata)this with just the lastModifiedDateTime field changedpublic Optional<RunAsAccountType> getRunAsAccount()
public DeviceShellScript withRunAsAccount(RunAsAccountType runAsAccount)
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.”
runAsAccount - new value of runAsAccount field (as defined in service metadata)this with just the runAsAccount field changedpublic DeviceShellScript withFileName(String fileName)
this with just the fileName 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.
“Script file name.”
fileName - new value of fileName field (as defined in service metadata)this with just the fileName field changedpublic com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
public DeviceManagementScriptGroupAssignmentCollectionRequest getGroupAssignments()
public DeviceManagementScriptAssignmentCollectionRequest getAssignments()
public DeviceManagementScriptRunSummaryRequest getRunSummary()
public DeviceManagementScriptDeviceStateCollectionRequest getDeviceRunStates()
public DeviceManagementScriptUserStateCollectionRequest getUserRunStates()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DeviceShellScript patch()
this with changed fields reset.public DeviceShellScript put()
this
with changed fields reset (they were ignored anyway).public com.github.davidmoten.odata.client.ActionRequestNoReturn assign(List<DeviceManagementScriptGroupAssignment> deviceManagementScriptGroupAssignments, List<DeviceManagementScriptAssignment> deviceManagementScriptAssignments)
Copyright © 2018–2020. All rights reserved.