< Back

New-OperationObject

Sat Jan 18, 2020 12:41 pm

NAME New-OperationObject



SYNOPSIS

Creates a new object which represents a "microsoft.graph.operation" (or one of its derived types).





SYNTAX

New-OperationObject -operation <SwitchParameter> [-createdDateTime <DateTimeOffset>] [-lastActionDateTime

<DateTimeOffset>] [-status <string>] [<CommonParameters>]



New-OperationObject -onenoteOperation <SwitchParameter> [-createdDateTime <DateTimeOffset>] [-error <object>]

[-lastActionDateTime <DateTimeOffset>] [-percentComplete <string>] [-resourceId <string>] [-resourceLocation

<string>] [-status <string>] [<CommonParameters>]





DESCRIPTION

Creates a new object which represents a "microsoft.graph.operation" (or one of its derived types).





PARAMETERS

-operation <SwitchParameter>

A switch parameter for selecting the parameter set which corresponds to the "microsoft.graph.operation" type.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-status <string>

The "status" property, of type "microsoft.graph.operationStatus".



This property is on the "microsoft.graph.operation" type.



Valid values: 'NotStarted', 'Running', 'Completed', 'Failed'



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-createdDateTime <DateTimeOffset>

The "createdDateTime" property, of type "Edm.DateTimeOffset".



This property is on the "microsoft.graph.operation" type.



Required? false

Position? named

Default value 1/1/0001 12:00:00 AM +00:00

Accept pipeline input? false

Accept wildcard characters? false



-lastActionDateTime <DateTimeOffset>

The "lastActionDateTime" property, of type "Edm.DateTimeOffset".



This property is on the "microsoft.graph.operation" type.



Required? false

Position? named

Default value 1/1/0001 12:00:00 AM +00:00

Accept pipeline input? false

Accept wildcard characters? false



-onenoteOperation <SwitchParameter>

A switch parameter for selecting the parameter set which corresponds to the "microsoft.graph.onenoteOperation"

type.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-resourceLocation <string>

The "resourceLocation" property, of type "Edm.String".



This property is on the "microsoft.graph.onenoteOperation" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-resourceId <string>

The "resourceId" property, of type "Edm.String".



This property is on the "microsoft.graph.onenoteOperation" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-error <object>

The "error" property, of type "microsoft.graph.onenoteOperationError".



This property is on the "microsoft.graph.onenoteOperation" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-percentComplete <string>

The "percentComplete" property, of type "Edm.String".



This property is on the "microsoft.graph.onenoteOperation" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS