Skip to content

New GDriveCommentObj

Spencer Varney edited this page Dec 14, 2016 · 3 revisions

New-GDriveCommentObj

SYNOPSIS

Creates a new Drive API Comment object.

SYNTAX

New-GDriveCommentObj [[-Anchor] <String>] [[-Author] <User>] [[-Content] <String>] [[-CreatedTime] <DateTime>]
 [[-Deleted] <Boolean>] [[-HtmlContent] <String>] [[-Id] <String>] [[-ModifiedTime] <DateTime>]
 [[-QuotedFileContent] <QuotedFileContentData>] [[-Replies] <Reply[]>] [[-Resolved] <Boolean>] [-WhatIf]
 [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a Comment object which may be required as a parameter for some other Cmdlets in the Drive API category.

You could alternately create this object by calling New-Object -TypeName Google.Apis.Drive.v3.Data.Comment

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> New-GDriveCommentObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-Anchor

A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Author

The user who created the comment.

Type: User
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Content

The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CreatedTime

The time at which the comment was created (RFC 3339 date-time).

Type: DateTime
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Deleted

Whether the comment has been deleted. A deleted comment has no content.

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-HtmlContent

The content of the comment with HTML formatting.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 5
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Id

The ID of the comment.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 6
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ModifiedTime

The last time the comment or any of its replies was modified (RFC 3339 date-time).

Type: DateTime
Parameter Sets: (All)
Aliases: 

Required: False
Position: 7
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-QuotedFileContent

The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.

Type: QuotedFileContentData
Parameter Sets: (All)
Aliases: 

Required: False
Position: 8
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Replies

The full list of replies to the comment in chronological order.

Type: Reply[]
Parameter Sets: (All)
Aliases: 

Required: False
Position: 9
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Resolved

Whether the comment has been resolved by one of its replies.

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: 10
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

INPUTS

System.String

A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.

Google.Apis.Drive.v3.Data.User

The user who created the comment.

System.String

The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.

System.DateTime

The time at which the comment was created (RFC 3339 date-time).

System.Boolean

Whether the comment has been deleted. A deleted comment has no content.

System.String

The content of the comment with HTML formatting.

System.String

The ID of the comment.

System.DateTime

The last time the comment or any of its replies was modified (RFC 3339 date-time).

Google.Apis.Drive.v3.Data.Comment+QuotedFileContentData

The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.

Google.Apis.Drive.v3.Data.Reply[]

The full list of replies to the comment in chronological order.

System.Boolean

Whether the comment has been resolved by one of its replies.

OUTPUTS

Google.Apis.Drive.v3.Data.Comment

NOTES

Part of the gShell Project, relating to the Google Drive API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally