Home | History | Annotate | Download | only in dyn
      1 <html><body>
      2 <style>
      3 
      4 body, h1, h2, h3, div, span, p, pre, a {
      5   margin: 0;
      6   padding: 0;
      7   border: 0;
      8   font-weight: inherit;
      9   font-style: inherit;
     10   font-size: 100%;
     11   font-family: inherit;
     12   vertical-align: baseline;
     13 }
     14 
     15 body {
     16   font-size: 13px;
     17   padding: 1em;
     18 }
     19 
     20 h1 {
     21   font-size: 26px;
     22   margin-bottom: 1em;
     23 }
     24 
     25 h2 {
     26   font-size: 24px;
     27   margin-bottom: 1em;
     28 }
     29 
     30 h3 {
     31   font-size: 20px;
     32   margin-bottom: 1em;
     33   margin-top: 1em;
     34 }
     35 
     36 pre, code {
     37   line-height: 1.5;
     38   font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
     39 }
     40 
     41 pre {
     42   margin-top: 0.5em;
     43 }
     44 
     45 h1, h2, h3, p {
     46   font-family: Arial, sans serif;
     47 }
     48 
     49 h1, h2, h3 {
     50   border-bottom: solid #CCC 1px;
     51 }
     52 
     53 .toc_element {
     54   margin-top: 0.5em;
     55 }
     56 
     57 .firstline {
     58   margin-left: 2 em;
     59 }
     60 
     61 .method  {
     62   margin-top: 1em;
     63   border: solid 1px #CCC;
     64   padding: 1em;
     65   background: #EEE;
     66 }
     67 
     68 .details {
     69   font-weight: bold;
     70   font-size: 14px;
     71 }
     72 
     73 </style>
     74 
     75 <h1><a href="drive_v3.html">Drive API</a> . <a href="drive_v3.replies.html">replies</a></h1>
     76 <h2>Instance Methods</h2>
     77 <p class="toc_element">
     78   <code><a href="#create">create(fileId, commentId, body)</a></code></p>
     79 <p class="firstline">Creates a new reply to a comment.</p>
     80 <p class="toc_element">
     81   <code><a href="#delete">delete(fileId, commentId, replyId)</a></code></p>
     82 <p class="firstline">Deletes a reply.</p>
     83 <p class="toc_element">
     84   <code><a href="#get">get(fileId, commentId, replyId, includeDeleted=None)</a></code></p>
     85 <p class="firstline">Gets a reply by ID.</p>
     86 <p class="toc_element">
     87   <code><a href="#list">list(fileId, commentId, includeDeleted=None, pageToken=None, pageSize=None)</a></code></p>
     88 <p class="firstline">Lists a comment's replies.</p>
     89 <p class="toc_element">
     90   <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
     91 <p class="firstline">Retrieves the next page of results.</p>
     92 <p class="toc_element">
     93   <code><a href="#update">update(fileId, commentId, replyId, body)</a></code></p>
     94 <p class="firstline">Updates a reply with patch semantics.</p>
     95 <h3>Method Details</h3>
     96 <div class="method">
     97     <code class="details" id="create">create(fileId, commentId, body)</code>
     98   <pre>Creates a new reply to a comment.
     99 
    100 Args:
    101   fileId: string, The ID of the file. (required)
    102   commentId: string, The ID of the comment. (required)
    103   body: object, The request body. (required)
    104     The object takes the form of:
    105 
    106 { # A reply to a comment on a file.
    107   "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply".
    108   "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time).
    109   "author": { # Information about a Drive user. # The user who created the reply.
    110     "me": True or False, # Whether this user is the requesting user.
    111     "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user".
    112     "displayName": "A String", # A plain text displayable name for this user.
    113     "permissionId": "A String", # The user's ID as visible in Permission resources.
    114     "emailAddress": "A String", # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    115     "photoLink": "A String", # A link to the user's profile photo, if available.
    116   },
    117   "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content.
    118   "htmlContent": "A String", # The content of the reply with HTML formatting.
    119   "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
    120   "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time).
    121   "action": "A String", # The action the reply performed to the parent comment. Valid values are:
    122       # - resolve
    123       # - reopen
    124   "id": "A String", # The ID of the reply.
    125 }
    126 
    127 
    128 Returns:
    129   An object of the form:
    130 
    131     { # A reply to a comment on a file.
    132     "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply".
    133     "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time).
    134     "author": { # Information about a Drive user. # The user who created the reply.
    135       "me": True or False, # Whether this user is the requesting user.
    136       "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user".
    137       "displayName": "A String", # A plain text displayable name for this user.
    138       "permissionId": "A String", # The user's ID as visible in Permission resources.
    139       "emailAddress": "A String", # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    140       "photoLink": "A String", # A link to the user's profile photo, if available.
    141     },
    142     "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content.
    143     "htmlContent": "A String", # The content of the reply with HTML formatting.
    144     "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
    145     "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time).
    146     "action": "A String", # The action the reply performed to the parent comment. Valid values are:
    147         # - resolve
    148         # - reopen
    149     "id": "A String", # The ID of the reply.
    150   }</pre>
    151 </div>
    152 
    153 <div class="method">
    154     <code class="details" id="delete">delete(fileId, commentId, replyId)</code>
    155   <pre>Deletes a reply.
    156 
    157 Args:
    158   fileId: string, The ID of the file. (required)
    159   commentId: string, The ID of the comment. (required)
    160   replyId: string, The ID of the reply. (required)
    161 </pre>
    162 </div>
    163 
    164 <div class="method">
    165     <code class="details" id="get">get(fileId, commentId, replyId, includeDeleted=None)</code>
    166   <pre>Gets a reply by ID.
    167 
    168 Args:
    169   fileId: string, The ID of the file. (required)
    170   commentId: string, The ID of the comment. (required)
    171   replyId: string, The ID of the reply. (required)
    172   includeDeleted: boolean, Whether to return deleted replies. Deleted replies will not include their original content.
    173 
    174 Returns:
    175   An object of the form:
    176 
    177     { # A reply to a comment on a file.
    178     "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply".
    179     "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time).
    180     "author": { # Information about a Drive user. # The user who created the reply.
    181       "me": True or False, # Whether this user is the requesting user.
    182       "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user".
    183       "displayName": "A String", # A plain text displayable name for this user.
    184       "permissionId": "A String", # The user's ID as visible in Permission resources.
    185       "emailAddress": "A String", # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    186       "photoLink": "A String", # A link to the user's profile photo, if available.
    187     },
    188     "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content.
    189     "htmlContent": "A String", # The content of the reply with HTML formatting.
    190     "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
    191     "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time).
    192     "action": "A String", # The action the reply performed to the parent comment. Valid values are:
    193         # - resolve
    194         # - reopen
    195     "id": "A String", # The ID of the reply.
    196   }</pre>
    197 </div>
    198 
    199 <div class="method">
    200     <code class="details" id="list">list(fileId, commentId, includeDeleted=None, pageToken=None, pageSize=None)</code>
    201   <pre>Lists a comment's replies.
    202 
    203 Args:
    204   fileId: string, The ID of the file. (required)
    205   commentId: string, The ID of the comment. (required)
    206   includeDeleted: boolean, Whether to include deleted replies. Deleted replies will not include their original content.
    207   pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
    208   pageSize: integer, The maximum number of replies to return per page.
    209 
    210 Returns:
    211   An object of the form:
    212 
    213     { # A list of replies to a comment on a file.
    214     "nextPageToken": "A String", # The page token for the next page of replies. This will be absent if the end of the replies list has been reached.
    215     "kind": "drive#replyList", # Identifies what kind of resource this is. Value: the fixed string "drive#replyList".
    216     "replies": [ # The page of replies.
    217       { # A reply to a comment on a file.
    218         "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply".
    219         "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time).
    220         "author": { # Information about a Drive user. # The user who created the reply.
    221           "me": True or False, # Whether this user is the requesting user.
    222           "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user".
    223           "displayName": "A String", # A plain text displayable name for this user.
    224           "permissionId": "A String", # The user's ID as visible in Permission resources.
    225           "emailAddress": "A String", # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    226           "photoLink": "A String", # A link to the user's profile photo, if available.
    227         },
    228         "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content.
    229         "htmlContent": "A String", # The content of the reply with HTML formatting.
    230         "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
    231         "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time).
    232         "action": "A String", # The action the reply performed to the parent comment. Valid values are:
    233             # - resolve
    234             # - reopen
    235         "id": "A String", # The ID of the reply.
    236       },
    237     ],
    238   }</pre>
    239 </div>
    240 
    241 <div class="method">
    242     <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
    243   <pre>Retrieves the next page of results.
    244 
    245 Args:
    246   previous_request: The request for the previous page. (required)
    247   previous_response: The response from the request for the previous page. (required)
    248 
    249 Returns:
    250   A request object that you can call 'execute()' on to request the next
    251   page. Returns None if there are no more items in the collection.
    252     </pre>
    253 </div>
    254 
    255 <div class="method">
    256     <code class="details" id="update">update(fileId, commentId, replyId, body)</code>
    257   <pre>Updates a reply with patch semantics.
    258 
    259 Args:
    260   fileId: string, The ID of the file. (required)
    261   commentId: string, The ID of the comment. (required)
    262   replyId: string, The ID of the reply. (required)
    263   body: object, The request body. (required)
    264     The object takes the form of:
    265 
    266 { # A reply to a comment on a file.
    267   "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply".
    268   "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time).
    269   "author": { # Information about a Drive user. # The user who created the reply.
    270     "me": True or False, # Whether this user is the requesting user.
    271     "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user".
    272     "displayName": "A String", # A plain text displayable name for this user.
    273     "permissionId": "A String", # The user's ID as visible in Permission resources.
    274     "emailAddress": "A String", # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    275     "photoLink": "A String", # A link to the user's profile photo, if available.
    276   },
    277   "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content.
    278   "htmlContent": "A String", # The content of the reply with HTML formatting.
    279   "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
    280   "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time).
    281   "action": "A String", # The action the reply performed to the parent comment. Valid values are:
    282       # - resolve
    283       # - reopen
    284   "id": "A String", # The ID of the reply.
    285 }
    286 
    287 
    288 Returns:
    289   An object of the form:
    290 
    291     { # A reply to a comment on a file.
    292     "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply".
    293     "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time).
    294     "author": { # Information about a Drive user. # The user who created the reply.
    295       "me": True or False, # Whether this user is the requesting user.
    296       "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user".
    297       "displayName": "A String", # A plain text displayable name for this user.
    298       "permissionId": "A String", # The user's ID as visible in Permission resources.
    299       "emailAddress": "A String", # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
    300       "photoLink": "A String", # A link to the user's profile photo, if available.
    301     },
    302     "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content.
    303     "htmlContent": "A String", # The content of the reply with HTML formatting.
    304     "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
    305     "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time).
    306     "action": "A String", # The action the reply performed to the parent comment. Valid values are:
    307         # - resolve
    308         # - reopen
    309     "id": "A String", # The ID of the reply.
    310   }</pre>
    311 </div>
    312 
    313 </body></html>