1<html><body> 2<style> 3 4body, 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 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, 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="cloudsupport_v2beta.html">Google Cloud Support API</a> . <a href="cloudsupport_v2beta.media.html">media</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#download">download(name, x__xgafv=None)</a></code></p> 82<p class="firstline">Download a file attachment on a case. Note: HTTP requests must append "?alt=media" to the URL.</p> 83<p class="toc_element"> 84 <code><a href="#download_media">download_media(name, x__xgafv=None)</a></code></p> 85<p class="firstline">Download a file attachment on a case. Note: HTTP requests must append "?alt=media" to the URL.</p> 86<p class="toc_element"> 87 <code><a href="#upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Create a file attachment on a case or Cloud resource.</p> 89<h3>Method Details</h3> 90<div class="method"> 91 <code class="details" id="close">close()</code> 92 <pre>Close httplib2 connections.</pre> 93</div> 94 95<div class="method"> 96 <code class="details" id="download">download(name, x__xgafv=None)</code> 97 <pre>Download a file attachment on a case. Note: HTTP requests must append "?alt=media" to the URL. 98 99Args: 100 name: string, The resource name of the attachment to be downloaded. (required) 101 x__xgafv: string, V1 error format. 102 Allowed values 103 1 - v1 error format 104 2 - v2 error format 105 106Returns: 107 An object of the form: 108 109 { # # gdata.* are outside protos with mising documentation 110 "algorithm": "A String", # # gdata.* are outside protos with mising documentation 111 "bigstoreObjectRef": "A String", # # gdata.* are outside protos with mising documentation 112 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 113 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 114 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 115 "blobId": "A String", # # gdata.* are outside protos with mising documentation 116 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 117 "readToken": "A String", # # gdata.* are outside protos with mising documentation 118 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 119 }, 120 "compositeMedia": [ # # gdata.* are outside protos with mising documentation 121 { # # gdata.* are outside protos with mising documentation 122 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 123 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 124 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 125 "blobId": "A String", # # gdata.* are outside protos with mising documentation 126 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 127 "readToken": "A String", # # gdata.* are outside protos with mising documentation 128 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 129 }, 130 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 131 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 132 "inline": "A String", # # gdata.* are outside protos with mising documentation 133 "length": "A String", # # gdata.* are outside protos with mising documentation 134 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 135 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 136 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 137 "generation": "A String", # # gdata.* are outside protos with mising documentation 138 "objectName": "A String", # # gdata.* are outside protos with mising documentation 139 }, 140 "path": "A String", # # gdata.* are outside protos with mising documentation 141 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 142 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 143 }, 144 ], 145 "contentType": "A String", # # gdata.* are outside protos with mising documentation 146 "contentTypeInfo": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 147 "bestGuess": "A String", # # gdata.* are outside protos with mising documentation 148 "fromBytes": "A String", # # gdata.* are outside protos with mising documentation 149 "fromFileName": "A String", # # gdata.* are outside protos with mising documentation 150 "fromHeader": "A String", # # gdata.* are outside protos with mising documentation 151 "fromUrlPath": "A String", # # gdata.* are outside protos with mising documentation 152 }, 153 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 154 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 155 "diffChecksumsResponse": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 156 "checksumsLocation": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 157 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 158 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 159 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 160 "blobId": "A String", # # gdata.* are outside protos with mising documentation 161 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 162 "readToken": "A String", # # gdata.* are outside protos with mising documentation 163 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 164 }, 165 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 166 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 167 "inline": "A String", # # gdata.* are outside protos with mising documentation 168 "length": "A String", # # gdata.* are outside protos with mising documentation 169 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 170 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 171 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 172 "generation": "A String", # # gdata.* are outside protos with mising documentation 173 "objectName": "A String", # # gdata.* are outside protos with mising documentation 174 }, 175 "path": "A String", # # gdata.* are outside protos with mising documentation 176 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 177 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 178 }, 179 "chunkSizeBytes": "A String", # # gdata.* are outside protos with mising documentation 180 "objectLocation": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 181 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 182 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 183 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 184 "blobId": "A String", # # gdata.* are outside protos with mising documentation 185 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 186 "readToken": "A String", # # gdata.* are outside protos with mising documentation 187 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 188 }, 189 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 190 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 191 "inline": "A String", # # gdata.* are outside protos with mising documentation 192 "length": "A String", # # gdata.* are outside protos with mising documentation 193 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 194 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 195 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 196 "generation": "A String", # # gdata.* are outside protos with mising documentation 197 "objectName": "A String", # # gdata.* are outside protos with mising documentation 198 }, 199 "path": "A String", # # gdata.* are outside protos with mising documentation 200 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 201 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 202 }, 203 "objectSizeBytes": "A String", # # gdata.* are outside protos with mising documentation 204 "objectVersion": "A String", # # gdata.* are outside protos with mising documentation 205 }, 206 "diffDownloadResponse": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 207 "objectLocation": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 208 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 209 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 210 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 211 "blobId": "A String", # # gdata.* are outside protos with mising documentation 212 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 213 "readToken": "A String", # # gdata.* are outside protos with mising documentation 214 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 215 }, 216 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 217 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 218 "inline": "A String", # # gdata.* are outside protos with mising documentation 219 "length": "A String", # # gdata.* are outside protos with mising documentation 220 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 221 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 222 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 223 "generation": "A String", # # gdata.* are outside protos with mising documentation 224 "objectName": "A String", # # gdata.* are outside protos with mising documentation 225 }, 226 "path": "A String", # # gdata.* are outside protos with mising documentation 227 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 228 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 229 }, 230 }, 231 "diffUploadRequest": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 232 "checksumsInfo": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 233 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 234 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 235 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 236 "blobId": "A String", # # gdata.* are outside protos with mising documentation 237 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 238 "readToken": "A String", # # gdata.* are outside protos with mising documentation 239 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 240 }, 241 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 242 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 243 "inline": "A String", # # gdata.* are outside protos with mising documentation 244 "length": "A String", # # gdata.* are outside protos with mising documentation 245 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 246 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 247 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 248 "generation": "A String", # # gdata.* are outside protos with mising documentation 249 "objectName": "A String", # # gdata.* are outside protos with mising documentation 250 }, 251 "path": "A String", # # gdata.* are outside protos with mising documentation 252 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 253 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 254 }, 255 "objectInfo": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 256 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 257 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 258 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 259 "blobId": "A String", # # gdata.* are outside protos with mising documentation 260 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 261 "readToken": "A String", # # gdata.* are outside protos with mising documentation 262 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 263 }, 264 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 265 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 266 "inline": "A String", # # gdata.* are outside protos with mising documentation 267 "length": "A String", # # gdata.* are outside protos with mising documentation 268 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 269 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 270 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 271 "generation": "A String", # # gdata.* are outside protos with mising documentation 272 "objectName": "A String", # # gdata.* are outside protos with mising documentation 273 }, 274 "path": "A String", # # gdata.* are outside protos with mising documentation 275 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 276 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 277 }, 278 "objectVersion": "A String", # # gdata.* are outside protos with mising documentation 279 }, 280 "diffUploadResponse": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 281 "objectVersion": "A String", # # gdata.* are outside protos with mising documentation 282 "originalObject": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 283 "blobRef": "A String", # # gdata.* are outside protos with mising documentation 284 "blobstore2Info": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 285 "blobGeneration": "A String", # # gdata.* are outside protos with mising documentation 286 "blobId": "A String", # # gdata.* are outside protos with mising documentation 287 "downloadReadHandle": "A String", # # gdata.* are outside protos with mising documentation 288 "readToken": "A String", # # gdata.* are outside protos with mising documentation 289 "uploadMetadataContainer": "A String", # # gdata.* are outside protos with mising documentation 290 }, 291 "cosmoBinaryReference": "A String", # # gdata.* are outside protos with mising documentation 292 "crc32cHash": 42, # # gdata.* are outside protos with mising documentation 293 "inline": "A String", # # gdata.* are outside protos with mising documentation 294 "length": "A String", # # gdata.* are outside protos with mising documentation 295 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 296 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 297 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 298 "generation": "A String", # # gdata.* are outside protos with mising documentation 299 "objectName": "A String", # # gdata.* are outside protos with mising documentation 300 }, 301 "path": "A String", # # gdata.* are outside protos with mising documentation 302 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 303 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 304 }, 305 }, 306 "diffVersionResponse": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 307 "objectSizeBytes": "A String", # # gdata.* are outside protos with mising documentation 308 "objectVersion": "A String", # # gdata.* are outside protos with mising documentation 309 }, 310 "downloadParameters": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 311 "allowGzipCompression": True or False, # # gdata.* are outside protos with mising documentation 312 "ignoreRange": True or False, # # gdata.* are outside protos with mising documentation 313 }, 314 "filename": "A String", # # gdata.* are outside protos with mising documentation 315 "hash": "A String", # # gdata.* are outside protos with mising documentation 316 "hashVerified": True or False, # # gdata.* are outside protos with mising documentation 317 "inline": "A String", # # gdata.* are outside protos with mising documentation 318 "isPotentialRetry": True or False, # # gdata.* are outside protos with mising documentation 319 "length": "A String", # # gdata.* are outside protos with mising documentation 320 "md5Hash": "A String", # # gdata.* are outside protos with mising documentation 321 "mediaId": "A String", # # gdata.* are outside protos with mising documentation 322 "objectId": { # # gdata.* are outside protos with mising documentation # # gdata.* are outside protos with mising documentation 323 "bucketName": "A String", # # gdata.* are outside protos with mising documentation 324 "generation": "A String", # # gdata.* are outside protos with mising documentation 325 "objectName": "A String", # # gdata.* are outside protos with mising documentation 326 }, 327 "path": "A String", # # gdata.* are outside protos with mising documentation 328 "referenceType": "A String", # # gdata.* are outside protos with mising documentation 329 "sha1Hash": "A String", # # gdata.* are outside protos with mising documentation 330 "sha256Hash": "A String", # # gdata.* are outside protos with mising documentation 331 "timestamp": "A String", # # gdata.* are outside protos with mising documentation 332 "token": "A String", # # gdata.* are outside protos with mising documentation 333}</pre> 334</div> 335 336<div class="method"> 337 <code class="details" id="download_media">download_media(name, x__xgafv=None)</code> 338 <pre>Download a file attachment on a case. Note: HTTP requests must append "?alt=media" to the URL. 339 340Args: 341 name: string, The resource name of the attachment to be downloaded. (required) 342 x__xgafv: string, V1 error format. 343 Allowed values 344 1 - v1 error format 345 2 - v2 error format 346 347Returns: 348 The media object as a string. 349 350 </pre> 351</div> 352 353<div class="method"> 354 <code class="details" id="upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</code> 355 <pre>Create a file attachment on a case or Cloud resource. 356 357Args: 358 parent: string, Required. The resource name of the case to which attachment should be attached. (required) 359 body: object, The request body. 360 The object takes the form of: 361 362{ # The request message for the CreateAttachment endpoint. 363 "attachment": { # Represents a file attached to a support case. # Required. The attachment to be created. 364 "createTime": "A String", # Output only. The time at which the attachment was created. 365 "creator": { # An object containing information about the effective user and authenticated principal responsible for an action. # Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support. 366 "displayName": "A String", # The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent. 367 "email": "A String", # The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent. 368 "googleSupport": True or False, # Output only. Whether the actor is a Google support actor. 369 "principalId": "A String", # Output only. An ID representing the user that was authenticated when the corresponding action was taken. This will be an email address, if one is available, or some other unique ID. See https://cloud.google.com/docs/authentication for more information on types of authentication. 370 }, 371 "filename": "A String", # The filename of the attachment (e.g. `"graph.jpg"`). 372 "mimeType": "A String", # Output only. The MIME type of the attachment (e.g. text/plain). 373 "name": "A String", # Output only. The resource name of the attachment. 374 "sizeBytes": "A String", # Output only. The size of the attachment in bytes. 375 }, 376} 377 378 media_body: string, The filename of the media request body, or an instance of a MediaUpload object. 379 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object. 380 x__xgafv: string, V1 error format. 381 Allowed values 382 1 - v1 error format 383 2 - v2 error format 384 385Returns: 386 An object of the form: 387 388 { # Represents a file attached to a support case. 389 "createTime": "A String", # Output only. The time at which the attachment was created. 390 "creator": { # An object containing information about the effective user and authenticated principal responsible for an action. # Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support. 391 "displayName": "A String", # The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent. 392 "email": "A String", # The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent. 393 "googleSupport": True or False, # Output only. Whether the actor is a Google support actor. 394 "principalId": "A String", # Output only. An ID representing the user that was authenticated when the corresponding action was taken. This will be an email address, if one is available, or some other unique ID. See https://cloud.google.com/docs/authentication for more information on types of authentication. 395 }, 396 "filename": "A String", # The filename of the attachment (e.g. `"graph.jpg"`). 397 "mimeType": "A String", # Output only. The MIME type of the attachment (e.g. text/plain). 398 "name": "A String", # Output only. The resource name of the attachment. 399 "sizeBytes": "A String", # Output only. The size of the attachment in bytes. 400}</pre> 401</div> 402 403</body></html>