| 1 |
<?php |
| 2 |
/* |
| 3 |
* Copyright 2010 Google Inc. |
| 4 |
* |
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 |
* use this file except in compliance with the License. You may obtain a copy of |
| 7 |
* the License at |
| 8 |
* |
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
* |
| 11 |
* Unless required by applicable law or agreed to in writing, software |
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 |
* License for the specific language governing permissions and limitations under |
| 15 |
* the License. |
| 16 |
*/ |
| 17 |
|
| 18 |
/** |
| 19 |
* Service definition for Storage (v1). |
| 20 |
* |
| 21 |
* <p> |
| 22 |
* Lets you store and retrieve potentially-large, immutable data objects.</p> |
| 23 |
* |
| 24 |
* <p> |
| 25 |
* For more information about this service, see the API |
| 26 |
* <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a> |
| 27 |
* </p> |
| 28 |
* |
| 29 |
* @author Google, Inc. |
| 30 |
*/ |
| 31 |
class Google_Service_Storage extends Google_Service |
| 32 |
{ |
| 33 |
/** View and manage your data across Google Cloud Platform services. */ |
| 34 |
const CLOUD_PLATFORM = |
| 35 |
"https://www.googleapis.com/auth/cloud-platform"; |
| 36 |
/** Manage your data and permissions in Google Cloud Storage. */ |
| 37 |
const DEVSTORAGE_FULL_CONTROL = |
| 38 |
"https://www.googleapis.com/auth/devstorage.full_control"; |
| 39 |
/** View your data in Google Cloud Storage. */ |
| 40 |
const DEVSTORAGE_READ_ONLY = |
| 41 |
"https://www.googleapis.com/auth/devstorage.read_only"; |
| 42 |
/** Manage your data in Google Cloud Storage. */ |
| 43 |
const DEVSTORAGE_READ_WRITE = |
| 44 |
"https://www.googleapis.com/auth/devstorage.read_write"; |
| 45 |
|
| 46 |
public $bucketAccessControls; |
| 47 |
public $buckets; |
| 48 |
public $channels; |
| 49 |
public $defaultObjectAccessControls; |
| 50 |
public $objectAccessControls; |
| 51 |
public $objects; |
| 52 |
|
| 53 |
|
| 54 |
/** |
| 55 |
* Constructs the internal representation of the Storage service. |
| 56 |
* |
| 57 |
* @param Google_Client $client |
| 58 |
*/ |
| 59 |
public function __construct(Google_Client $client) |
| 60 |
{ |
| 61 |
parent::__construct($client); |
| 62 |
$this->servicePath = 'storage/v1/'; |
| 63 |
$this->version = 'v1'; |
| 64 |
$this->serviceName = 'storage'; |
| 65 |
|
| 66 |
$this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource( |
| 67 |
$this, |
| 68 |
$this->serviceName, |
| 69 |
'bucketAccessControls', |
| 70 |
array( |
| 71 |
'methods' => array( |
| 72 |
'delete' => array( |
| 73 |
'path' => 'b/{bucket}/acl/{entity}', |
| 74 |
'httpMethod' => 'DELETE', |
| 75 |
'parameters' => array( |
| 76 |
'bucket' => array( |
| 77 |
'location' => 'path', |
| 78 |
'type' => 'string', |
| 79 |
'required' => true, |
| 80 |
), |
| 81 |
'entity' => array( |
| 82 |
'location' => 'path', |
| 83 |
'type' => 'string', |
| 84 |
'required' => true, |
| 85 |
), |
| 86 |
), |
| 87 |
),'get' => array( |
| 88 |
'path' => 'b/{bucket}/acl/{entity}', |
| 89 |
'httpMethod' => 'GET', |
| 90 |
'parameters' => array( |
| 91 |
'bucket' => array( |
| 92 |
'location' => 'path', |
| 93 |
'type' => 'string', |
| 94 |
'required' => true, |
| 95 |
), |
| 96 |
'entity' => array( |
| 97 |
'location' => 'path', |
| 98 |
'type' => 'string', |
| 99 |
'required' => true, |
| 100 |
), |
| 101 |
), |
| 102 |
),'insert' => array( |
| 103 |
'path' => 'b/{bucket}/acl', |
| 104 |
'httpMethod' => 'POST', |
| 105 |
'parameters' => array( |
| 106 |
'bucket' => array( |
| 107 |
'location' => 'path', |
| 108 |
'type' => 'string', |
| 109 |
'required' => true, |
| 110 |
), |
| 111 |
), |
| 112 |
),'list' => array( |
| 113 |
'path' => 'b/{bucket}/acl', |
| 114 |
'httpMethod' => 'GET', |
| 115 |
'parameters' => array( |
| 116 |
'bucket' => array( |
| 117 |
'location' => 'path', |
| 118 |
'type' => 'string', |
| 119 |
'required' => true, |
| 120 |
), |
| 121 |
), |
| 122 |
),'patch' => array( |
| 123 |
'path' => 'b/{bucket}/acl/{entity}', |
| 124 |
'httpMethod' => 'PATCH', |
| 125 |
'parameters' => array( |
| 126 |
'bucket' => array( |
| 127 |
'location' => 'path', |
| 128 |
'type' => 'string', |
| 129 |
'required' => true, |
| 130 |
), |
| 131 |
'entity' => array( |
| 132 |
'location' => 'path', |
| 133 |
'type' => 'string', |
| 134 |
'required' => true, |
| 135 |
), |
| 136 |
), |
| 137 |
),'update' => array( |
| 138 |
'path' => 'b/{bucket}/acl/{entity}', |
| 139 |
'httpMethod' => 'PUT', |
| 140 |
'parameters' => array( |
| 141 |
'bucket' => array( |
| 142 |
'location' => 'path', |
| 143 |
'type' => 'string', |
| 144 |
'required' => true, |
| 145 |
), |
| 146 |
'entity' => array( |
| 147 |
'location' => 'path', |
| 148 |
'type' => 'string', |
| 149 |
'required' => true, |
| 150 |
), |
| 151 |
), |
| 152 |
), |
| 153 |
) |
| 154 |
) |
| 155 |
); |
| 156 |
$this->buckets = new Google_Service_Storage_Buckets_Resource( |
| 157 |
$this, |
| 158 |
$this->serviceName, |
| 159 |
'buckets', |
| 160 |
array( |
| 161 |
'methods' => array( |
| 162 |
'delete' => array( |
| 163 |
'path' => 'b/{bucket}', |
| 164 |
'httpMethod' => 'DELETE', |
| 165 |
'parameters' => array( |
| 166 |
'bucket' => array( |
| 167 |
'location' => 'path', |
| 168 |
'type' => 'string', |
| 169 |
'required' => true, |
| 170 |
), |
| 171 |
'ifMetagenerationMatch' => array( |
| 172 |
'location' => 'query', |
| 173 |
'type' => 'string', |
| 174 |
), |
| 175 |
'ifMetagenerationNotMatch' => array( |
| 176 |
'location' => 'query', |
| 177 |
'type' => 'string', |
| 178 |
), |
| 179 |
), |
| 180 |
),'get' => array( |
| 181 |
'path' => 'b/{bucket}', |
| 182 |
'httpMethod' => 'GET', |
| 183 |
'parameters' => array( |
| 184 |
'bucket' => array( |
| 185 |
'location' => 'path', |
| 186 |
'type' => 'string', |
| 187 |
'required' => true, |
| 188 |
), |
| 189 |
'ifMetagenerationMatch' => array( |
| 190 |
'location' => 'query', |
| 191 |
'type' => 'string', |
| 192 |
), |
| 193 |
'ifMetagenerationNotMatch' => array( |
| 194 |
'location' => 'query', |
| 195 |
'type' => 'string', |
| 196 |
), |
| 197 |
'projection' => array( |
| 198 |
'location' => 'query', |
| 199 |
'type' => 'string', |
| 200 |
), |
| 201 |
), |
| 202 |
),'insert' => array( |
| 203 |
'path' => 'b', |
| 204 |
'httpMethod' => 'POST', |
| 205 |
'parameters' => array( |
| 206 |
'project' => array( |
| 207 |
'location' => 'query', |
| 208 |
'type' => 'string', |
| 209 |
'required' => true, |
| 210 |
), |
| 211 |
'predefinedAcl' => array( |
| 212 |
'location' => 'query', |
| 213 |
'type' => 'string', |
| 214 |
), |
| 215 |
'projection' => array( |
| 216 |
'location' => 'query', |
| 217 |
'type' => 'string', |
| 218 |
), |
| 219 |
'predefinedDefaultObjectAcl' => array( |
| 220 |
'location' => 'query', |
| 221 |
'type' => 'string', |
| 222 |
), |
| 223 |
), |
| 224 |
),'list' => array( |
| 225 |
'path' => 'b', |
| 226 |
'httpMethod' => 'GET', |
| 227 |
'parameters' => array( |
| 228 |
'project' => array( |
| 229 |
'location' => 'query', |
| 230 |
'type' => 'string', |
| 231 |
'required' => true, |
| 232 |
), |
| 233 |
'pageToken' => array( |
| 234 |
'location' => 'query', |
| 235 |
'type' => 'string', |
| 236 |
), |
| 237 |
'prefix' => array( |
| 238 |
'location' => 'query', |
| 239 |
'type' => 'string', |
| 240 |
), |
| 241 |
'projection' => array( |
| 242 |
'location' => 'query', |
| 243 |
'type' => 'string', |
| 244 |
), |
| 245 |
'maxResults' => array( |
| 246 |
'location' => 'query', |
| 247 |
'type' => 'integer', |
| 248 |
), |
| 249 |
), |
| 250 |
),'patch' => array( |
| 251 |
'path' => 'b/{bucket}', |
| 252 |
'httpMethod' => 'PATCH', |
| 253 |
'parameters' => array( |
| 254 |
'bucket' => array( |
| 255 |
'location' => 'path', |
| 256 |
'type' => 'string', |
| 257 |
'required' => true, |
| 258 |
), |
| 259 |
'projection' => array( |
| 260 |
'location' => 'query', |
| 261 |
'type' => 'string', |
| 262 |
), |
| 263 |
'ifMetagenerationMatch' => array( |
| 264 |
'location' => 'query', |
| 265 |
'type' => 'string', |
| 266 |
), |
| 267 |
'predefinedDefaultObjectAcl' => array( |
| 268 |
'location' => 'query', |
| 269 |
'type' => 'string', |
| 270 |
), |
| 271 |
'predefinedAcl' => array( |
| 272 |
'location' => 'query', |
| 273 |
'type' => 'string', |
| 274 |
), |
| 275 |
'ifMetagenerationNotMatch' => array( |
| 276 |
'location' => 'query', |
| 277 |
'type' => 'string', |
| 278 |
), |
| 279 |
), |
| 280 |
),'update' => array( |
| 281 |
'path' => 'b/{bucket}', |
| 282 |
'httpMethod' => 'PUT', |
| 283 |
'parameters' => array( |
| 284 |
'bucket' => array( |
| 285 |
'location' => 'path', |
| 286 |
'type' => 'string', |
| 287 |
'required' => true, |
| 288 |
), |
| 289 |
'projection' => array( |
| 290 |
'location' => 'query', |
| 291 |
'type' => 'string', |
| 292 |
), |
| 293 |
'ifMetagenerationMatch' => array( |
| 294 |
'location' => 'query', |
| 295 |
'type' => 'string', |
| 296 |
), |
| 297 |
'predefinedDefaultObjectAcl' => array( |
| 298 |
'location' => 'query', |
| 299 |
'type' => 'string', |
| 300 |
), |
| 301 |
'predefinedAcl' => array( |
| 302 |
'location' => 'query', |
| 303 |
'type' => 'string', |
| 304 |
), |
| 305 |
'ifMetagenerationNotMatch' => array( |
| 306 |
'location' => 'query', |
| 307 |
'type' => 'string', |
| 308 |
), |
| 309 |
), |
| 310 |
), |
| 311 |
) |
| 312 |
) |
| 313 |
); |
| 314 |
$this->channels = new Google_Service_Storage_Channels_Resource( |
| 315 |
$this, |
| 316 |
$this->serviceName, |
| 317 |
'channels', |
| 318 |
array( |
| 319 |
'methods' => array( |
| 320 |
'stop' => array( |
| 321 |
'path' => 'channels/stop', |
| 322 |
'httpMethod' => 'POST', |
| 323 |
'parameters' => array(), |
| 324 |
), |
| 325 |
) |
| 326 |
) |
| 327 |
); |
| 328 |
$this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource( |
| 329 |
$this, |
| 330 |
$this->serviceName, |
| 331 |
'defaultObjectAccessControls', |
| 332 |
array( |
| 333 |
'methods' => array( |
| 334 |
'delete' => array( |
| 335 |
'path' => 'b/{bucket}/defaultObjectAcl/{entity}', |
| 336 |
'httpMethod' => 'DELETE', |
| 337 |
'parameters' => array( |
| 338 |
'bucket' => array( |
| 339 |
'location' => 'path', |
| 340 |
'type' => 'string', |
| 341 |
'required' => true, |
| 342 |
), |
| 343 |
'entity' => array( |
| 344 |
'location' => 'path', |
| 345 |
'type' => 'string', |
| 346 |
'required' => true, |
| 347 |
), |
| 348 |
), |
| 349 |
),'get' => array( |
| 350 |
'path' => 'b/{bucket}/defaultObjectAcl/{entity}', |
| 351 |
'httpMethod' => 'GET', |
| 352 |
'parameters' => array( |
| 353 |
'bucket' => array( |
| 354 |
'location' => 'path', |
| 355 |
'type' => 'string', |
| 356 |
'required' => true, |
| 357 |
), |
| 358 |
'entity' => array( |
| 359 |
'location' => 'path', |
| 360 |
'type' => 'string', |
| 361 |
'required' => true, |
| 362 |
), |
| 363 |
), |
| 364 |
),'insert' => array( |
| 365 |
'path' => 'b/{bucket}/defaultObjectAcl', |
| 366 |
'httpMethod' => 'POST', |
| 367 |
'parameters' => array( |
| 368 |
'bucket' => array( |
| 369 |
'location' => 'path', |
| 370 |
'type' => 'string', |
| 371 |
'required' => true, |
| 372 |
), |
| 373 |
), |
| 374 |
),'list' => array( |
| 375 |
'path' => 'b/{bucket}/defaultObjectAcl', |
| 376 |
'httpMethod' => 'GET', |
| 377 |
'parameters' => array( |
| 378 |
'bucket' => array( |
| 379 |
'location' => 'path', |
| 380 |
'type' => 'string', |
| 381 |
'required' => true, |
| 382 |
), |
| 383 |
'ifMetagenerationMatch' => array( |
| 384 |
'location' => 'query', |
| 385 |
'type' => 'string', |
| 386 |
), |
| 387 |
'ifMetagenerationNotMatch' => array( |
| 388 |
'location' => 'query', |
| 389 |
'type' => 'string', |
| 390 |
), |
| 391 |
), |
| 392 |
),'patch' => array( |
| 393 |
'path' => 'b/{bucket}/defaultObjectAcl/{entity}', |
| 394 |
'httpMethod' => 'PATCH', |
| 395 |
'parameters' => array( |
| 396 |
'bucket' => array( |
| 397 |
'location' => 'path', |
| 398 |
'type' => 'string', |
| 399 |
'required' => true, |
| 400 |
), |
| 401 |
'entity' => array( |
| 402 |
'location' => 'path', |
| 403 |
'type' => 'string', |
| 404 |
'required' => true, |
| 405 |
), |
| 406 |
), |
| 407 |
),'update' => array( |
| 408 |
'path' => 'b/{bucket}/defaultObjectAcl/{entity}', |
| 409 |
'httpMethod' => 'PUT', |
| 410 |
'parameters' => array( |
| 411 |
'bucket' => array( |
| 412 |
'location' => 'path', |
| 413 |
'type' => 'string', |
| 414 |
'required' => true, |
| 415 |
), |
| 416 |
'entity' => array( |
| 417 |
'location' => 'path', |
| 418 |
'type' => 'string', |
| 419 |
'required' => true, |
| 420 |
), |
| 421 |
), |
| 422 |
), |
| 423 |
) |
| 424 |
) |
| 425 |
); |
| 426 |
$this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource( |
| 427 |
$this, |
| 428 |
$this->serviceName, |
| 429 |
'objectAccessControls', |
| 430 |
array( |
| 431 |
'methods' => array( |
| 432 |
'delete' => array( |
| 433 |
'path' => 'b/{bucket}/o/{object}/acl/{entity}', |
| 434 |
'httpMethod' => 'DELETE', |
| 435 |
'parameters' => array( |
| 436 |
'bucket' => array( |
| 437 |
'location' => 'path', |
| 438 |
'type' => 'string', |
| 439 |
'required' => true, |
| 440 |
), |
| 441 |
'object' => array( |
| 442 |
'location' => 'path', |
| 443 |
'type' => 'string', |
| 444 |
'required' => true, |
| 445 |
), |
| 446 |
'entity' => array( |
| 447 |
'location' => 'path', |
| 448 |
'type' => 'string', |
| 449 |
'required' => true, |
| 450 |
), |
| 451 |
'generation' => array( |
| 452 |
'location' => 'query', |
| 453 |
'type' => 'string', |
| 454 |
), |
| 455 |
), |
| 456 |
),'get' => array( |
| 457 |
'path' => 'b/{bucket}/o/{object}/acl/{entity}', |
| 458 |
'httpMethod' => 'GET', |
| 459 |
'parameters' => array( |
| 460 |
'bucket' => array( |
| 461 |
'location' => 'path', |
| 462 |
'type' => 'string', |
| 463 |
'required' => true, |
| 464 |
), |
| 465 |
'object' => array( |
| 466 |
'location' => 'path', |
| 467 |
'type' => 'string', |
| 468 |
'required' => true, |
| 469 |
), |
| 470 |
'entity' => array( |
| 471 |
'location' => 'path', |
| 472 |
'type' => 'string', |
| 473 |
'required' => true, |
| 474 |
), |
| 475 |
'generation' => array( |
| 476 |
'location' => 'query', |
| 477 |
'type' => 'string', |
| 478 |
), |
| 479 |
), |
| 480 |
),'insert' => array( |
| 481 |
'path' => 'b/{bucket}/o/{object}/acl', |
| 482 |
'httpMethod' => 'POST', |
| 483 |
'parameters' => array( |
| 484 |
'bucket' => array( |
| 485 |
'location' => 'path', |
| 486 |
'type' => 'string', |
| 487 |
'required' => true, |
| 488 |
), |
| 489 |
'object' => array( |
| 490 |
'location' => 'path', |
| 491 |
'type' => 'string', |
| 492 |
'required' => true, |
| 493 |
), |
| 494 |
'generation' => array( |
| 495 |
'location' => 'query', |
| 496 |
'type' => 'string', |
| 497 |
), |
| 498 |
), |
| 499 |
),'list' => array( |
| 500 |
'path' => 'b/{bucket}/o/{object}/acl', |
| 501 |
'httpMethod' => 'GET', |
| 502 |
'parameters' => array( |
| 503 |
'bucket' => array( |
| 504 |
'location' => 'path', |
| 505 |
'type' => 'string', |
| 506 |
'required' => true, |
| 507 |
), |
| 508 |
'object' => array( |
| 509 |
'location' => 'path', |
| 510 |
'type' => 'string', |
| 511 |
'required' => true, |
| 512 |
), |
| 513 |
'generation' => array( |
| 514 |
'location' => 'query', |
| 515 |
'type' => 'string', |
| 516 |
), |
| 517 |
), |
| 518 |
),'patch' => array( |
| 519 |
'path' => 'b/{bucket}/o/{object}/acl/{entity}', |
| 520 |
'httpMethod' => 'PATCH', |
| 521 |
'parameters' => array( |
| 522 |
'bucket' => array( |
| 523 |
'location' => 'path', |
| 524 |
'type' => 'string', |
| 525 |
'required' => true, |
| 526 |
), |
| 527 |
'object' => array( |
| 528 |
'location' => 'path', |
| 529 |
'type' => 'string', |
| 530 |
'required' => true, |
| 531 |
), |
| 532 |
'entity' => array( |
| 533 |
'location' => 'path', |
| 534 |
'type' => 'string', |
| 535 |
'required' => true, |
| 536 |
), |
| 537 |
'generation' => array( |
| 538 |
'location' => 'query', |
| 539 |
'type' => 'string', |
| 540 |
), |
| 541 |
), |
| 542 |
),'update' => array( |
| 543 |
'path' => 'b/{bucket}/o/{object}/acl/{entity}', |
| 544 |
'httpMethod' => 'PUT', |
| 545 |
'parameters' => array( |
| 546 |
'bucket' => array( |
| 547 |
'location' => 'path', |
| 548 |
'type' => 'string', |
| 549 |
'required' => true, |
| 550 |
), |
| 551 |
'object' => array( |
| 552 |
'location' => 'path', |
| 553 |
'type' => 'string', |
| 554 |
'required' => true, |
| 555 |
), |
| 556 |
'entity' => array( |
| 557 |
'location' => 'path', |
| 558 |
'type' => 'string', |
| 559 |
'required' => true, |
| 560 |
), |
| 561 |
'generation' => array( |
| 562 |
'location' => 'query', |
| 563 |
'type' => 'string', |
| 564 |
), |
| 565 |
), |
| 566 |
), |
| 567 |
) |
| 568 |
) |
| 569 |
); |
| 570 |
$this->objects = new Google_Service_Storage_Objects_Resource( |
| 571 |
$this, |
| 572 |
$this->serviceName, |
| 573 |
'objects', |
| 574 |
array( |
| 575 |
'methods' => array( |
| 576 |
'compose' => array( |
| 577 |
'path' => 'b/{destinationBucket}/o/{destinationObject}/compose', |
| 578 |
'httpMethod' => 'POST', |
| 579 |
'parameters' => array( |
| 580 |
'destinationBucket' => array( |
| 581 |
'location' => 'path', |
| 582 |
'type' => 'string', |
| 583 |
'required' => true, |
| 584 |
), |
| 585 |
'destinationObject' => array( |
| 586 |
'location' => 'path', |
| 587 |
'type' => 'string', |
| 588 |
'required' => true, |
| 589 |
), |
| 590 |
'ifGenerationMatch' => array( |
| 591 |
'location' => 'query', |
| 592 |
'type' => 'string', |
| 593 |
), |
| 594 |
'ifMetagenerationMatch' => array( |
| 595 |
'location' => 'query', |
| 596 |
'type' => 'string', |
| 597 |
), |
| 598 |
'destinationPredefinedAcl' => array( |
| 599 |
'location' => 'query', |
| 600 |
'type' => 'string', |
| 601 |
), |
| 602 |
), |
| 603 |
),'copy' => array( |
| 604 |
'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', |
| 605 |
'httpMethod' => 'POST', |
| 606 |
'parameters' => array( |
| 607 |
'sourceBucket' => array( |
| 608 |
'location' => 'path', |
| 609 |
'type' => 'string', |
| 610 |
'required' => true, |
| 611 |
), |
| 612 |
'sourceObject' => array( |
| 613 |
'location' => 'path', |
| 614 |
'type' => 'string', |
| 615 |
'required' => true, |
| 616 |
), |
| 617 |
'destinationBucket' => array( |
| 618 |
'location' => 'path', |
| 619 |
'type' => 'string', |
| 620 |
'required' => true, |
| 621 |
), |
| 622 |
'destinationObject' => array( |
| 623 |
'location' => 'path', |
| 624 |
'type' => 'string', |
| 625 |
'required' => true, |
| 626 |
), |
| 627 |
'ifSourceGenerationNotMatch' => array( |
| 628 |
'location' => 'query', |
| 629 |
'type' => 'string', |
| 630 |
), |
| 631 |
'ifGenerationNotMatch' => array( |
| 632 |
'location' => 'query', |
| 633 |
'type' => 'string', |
| 634 |
), |
| 635 |
'ifSourceMetagenerationNotMatch' => array( |
| 636 |
'location' => 'query', |
| 637 |
'type' => 'string', |
| 638 |
), |
| 639 |
'ifMetagenerationMatch' => array( |
| 640 |
'location' => 'query', |
| 641 |
'type' => 'string', |
| 642 |
), |
| 643 |
'sourceGeneration' => array( |
| 644 |
'location' => 'query', |
| 645 |
'type' => 'string', |
| 646 |
), |
| 647 |
'destinationPredefinedAcl' => array( |
| 648 |
'location' => 'query', |
| 649 |
'type' => 'string', |
| 650 |
), |
| 651 |
'ifSourceGenerationMatch' => array( |
| 652 |
'location' => 'query', |
| 653 |
'type' => 'string', |
| 654 |
), |
| 655 |
'ifSourceMetagenerationMatch' => array( |
| 656 |
'location' => 'query', |
| 657 |
'type' => 'string', |
| 658 |
), |
| 659 |
'ifGenerationMatch' => array( |
| 660 |
'location' => 'query', |
| 661 |
'type' => 'string', |
| 662 |
), |
| 663 |
'ifMetagenerationNotMatch' => array( |
| 664 |
'location' => 'query', |
| 665 |
'type' => 'string', |
| 666 |
), |
| 667 |
'projection' => array( |
| 668 |
'location' => 'query', |
| 669 |
'type' => 'string', |
| 670 |
), |
| 671 |
), |
| 672 |
),'delete' => array( |
| 673 |
'path' => 'b/{bucket}/o/{object}', |
| 674 |
'httpMethod' => 'DELETE', |
| 675 |
'parameters' => array( |
| 676 |
'bucket' => array( |
| 677 |
'location' => 'path', |
| 678 |
'type' => 'string', |
| 679 |
'required' => true, |
| 680 |
), |
| 681 |
'object' => array( |
| 682 |
'location' => 'path', |
| 683 |
'type' => 'string', |
| 684 |
'required' => true, |
| 685 |
), |
| 686 |
'ifGenerationNotMatch' => array( |
| 687 |
'location' => 'query', |
| 688 |
'type' => 'string', |
| 689 |
), |
| 690 |
'generation' => array( |
| 691 |
'location' => 'query', |
| 692 |
'type' => 'string', |
| 693 |
), |
| 694 |
'ifMetagenerationMatch' => array( |
| 695 |
'location' => 'query', |
| 696 |
'type' => 'string', |
| 697 |
), |
| 698 |
'ifGenerationMatch' => array( |
| 699 |
'location' => 'query', |
| 700 |
'type' => 'string', |
| 701 |
), |
| 702 |
'ifMetagenerationNotMatch' => array( |
| 703 |
'location' => 'query', |
| 704 |
'type' => 'string', |
| 705 |
), |
| 706 |
), |
| 707 |
),'get' => array( |
| 708 |
'path' => 'b/{bucket}/o/{object}', |
| 709 |
'httpMethod' => 'GET', |
| 710 |
'parameters' => array( |
| 711 |
'bucket' => array( |
| 712 |
'location' => 'path', |
| 713 |
'type' => 'string', |
| 714 |
'required' => true, |
| 715 |
), |
| 716 |
'object' => array( |
| 717 |
'location' => 'path', |
| 718 |
'type' => 'string', |
| 719 |
'required' => true, |
| 720 |
), |
| 721 |
'ifGenerationNotMatch' => array( |
| 722 |
'location' => 'query', |
| 723 |
'type' => 'string', |
| 724 |
), |
| 725 |
'generation' => array( |
| 726 |
'location' => 'query', |
| 727 |
'type' => 'string', |
| 728 |
), |
| 729 |
'ifMetagenerationMatch' => array( |
| 730 |
'location' => 'query', |
| 731 |
'type' => 'string', |
| 732 |
), |
| 733 |
'ifGenerationMatch' => array( |
| 734 |
'location' => 'query', |
| 735 |
'type' => 'string', |
| 736 |
), |
| 737 |
'ifMetagenerationNotMatch' => array( |
| 738 |
'location' => 'query', |
| 739 |
'type' => 'string', |
| 740 |
), |
| 741 |
'projection' => array( |
| 742 |
'location' => 'query', |
| 743 |
'type' => 'string', |
| 744 |
), |
| 745 |
), |
| 746 |
),'insert' => array( |
| 747 |
'path' => 'b/{bucket}/o', |
| 748 |
'httpMethod' => 'POST', |
| 749 |
'parameters' => array( |
| 750 |
'bucket' => array( |
| 751 |
'location' => 'path', |
| 752 |
'type' => 'string', |
| 753 |
'required' => true, |
| 754 |
), |
| 755 |
'predefinedAcl' => array( |
| 756 |
'location' => 'query', |
| 757 |
'type' => 'string', |
| 758 |
), |
| 759 |
'projection' => array( |
| 760 |
'location' => 'query', |
| 761 |
'type' => 'string', |
| 762 |
), |
| 763 |
'ifGenerationNotMatch' => array( |
| 764 |
'location' => 'query', |
| 765 |
'type' => 'string', |
| 766 |
), |
| 767 |
'ifMetagenerationMatch' => array( |
| 768 |
'location' => 'query', |
| 769 |
'type' => 'string', |
| 770 |
), |
| 771 |
'contentEncoding' => array( |
| 772 |
'location' => 'query', |
| 773 |
'type' => 'string', |
| 774 |
), |
| 775 |
'ifGenerationMatch' => array( |
| 776 |
'location' => 'query', |
| 777 |
'type' => 'string', |
| 778 |
), |
| 779 |
'ifMetagenerationNotMatch' => array( |
| 780 |
'location' => 'query', |
| 781 |
'type' => 'string', |
| 782 |
), |
| 783 |
'name' => array( |
| 784 |
'location' => 'query', |
| 785 |
'type' => 'string', |
| 786 |
), |
| 787 |
), |
| 788 |
),'list' => array( |
| 789 |
'path' => 'b/{bucket}/o', |
| 790 |
'httpMethod' => 'GET', |
| 791 |
'parameters' => array( |
| 792 |
'bucket' => array( |
| 793 |
'location' => 'path', |
| 794 |
'type' => 'string', |
| 795 |
'required' => true, |
| 796 |
), |
| 797 |
'projection' => array( |
| 798 |
'location' => 'query', |
| 799 |
'type' => 'string', |
| 800 |
), |
| 801 |
'versions' => array( |
| 802 |
'location' => 'query', |
| 803 |
'type' => 'boolean', |
| 804 |
), |
| 805 |
'prefix' => array( |
| 806 |
'location' => 'query', |
| 807 |
'type' => 'string', |
| 808 |
), |
| 809 |
'maxResults' => array( |
| 810 |
'location' => 'query', |
| 811 |
'type' => 'integer', |
| 812 |
), |
| 813 |
'pageToken' => array( |
| 814 |
'location' => 'query', |
| 815 |
'type' => 'string', |
| 816 |
), |
| 817 |
'delimiter' => array( |
| 818 |
'location' => 'query', |
| 819 |
'type' => 'string', |
| 820 |
), |
| 821 |
), |
| 822 |
),'patch' => array( |
| 823 |
'path' => 'b/{bucket}/o/{object}', |
| 824 |
'httpMethod' => 'PATCH', |
| 825 |
'parameters' => array( |
| 826 |
'bucket' => array( |
| 827 |
'location' => 'path', |
| 828 |
'type' => 'string', |
| 829 |
'required' => true, |
| 830 |
), |
| 831 |
'object' => array( |
| 832 |
'location' => 'path', |
| 833 |
'type' => 'string', |
| 834 |
'required' => true, |
| 835 |
), |
| 836 |
'predefinedAcl' => array( |
| 837 |
'location' => 'query', |
| 838 |
'type' => 'string', |
| 839 |
), |
| 840 |
'ifGenerationNotMatch' => array( |
| 841 |
'location' => 'query', |
| 842 |
'type' => 'string', |
| 843 |
), |
| 844 |
'generation' => array( |
| 845 |
'location' => 'query', |
| 846 |
'type' => 'string', |
| 847 |
), |
| 848 |
'ifMetagenerationMatch' => array( |
| 849 |
'location' => 'query', |
| 850 |
'type' => 'string', |
| 851 |
), |
| 852 |
'ifGenerationMatch' => array( |
| 853 |
'location' => 'query', |
| 854 |
'type' => 'string', |
| 855 |
), |
| 856 |
'ifMetagenerationNotMatch' => array( |
| 857 |
'location' => 'query', |
| 858 |
'type' => 'string', |
| 859 |
), |
| 860 |
'projection' => array( |
| 861 |
'location' => 'query', |
| 862 |
'type' => 'string', |
| 863 |
), |
| 864 |
), |
| 865 |
),'rewrite' => array( |
| 866 |
'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', |
| 867 |
'httpMethod' => 'POST', |
| 868 |
'parameters' => array( |
| 869 |
'sourceBucket' => array( |
| 870 |
'location' => 'path', |
| 871 |
'type' => 'string', |
| 872 |
'required' => true, |
| 873 |
), |
| 874 |
'sourceObject' => array( |
| 875 |
'location' => 'path', |
| 876 |
'type' => 'string', |
| 877 |
'required' => true, |
| 878 |
), |
| 879 |
'destinationBucket' => array( |
| 880 |
'location' => 'path', |
| 881 |
'type' => 'string', |
| 882 |
'required' => true, |
| 883 |
), |
| 884 |
'destinationObject' => array( |
| 885 |
'location' => 'path', |
| 886 |
'type' => 'string', |
| 887 |
'required' => true, |
| 888 |
), |
| 889 |
'ifSourceGenerationNotMatch' => array( |
| 890 |
'location' => 'query', |
| 891 |
'type' => 'string', |
| 892 |
), |
| 893 |
'ifGenerationNotMatch' => array( |
| 894 |
'location' => 'query', |
| 895 |
'type' => 'string', |
| 896 |
), |
| 897 |
'rewriteToken' => array( |
| 898 |
'location' => 'query', |
| 899 |
'type' => 'string', |
| 900 |
), |
| 901 |
'ifSourceMetagenerationNotMatch' => array( |
| 902 |
'location' => 'query', |
| 903 |
'type' => 'string', |
| 904 |
), |
| 905 |
'ifMetagenerationMatch' => array( |
| 906 |
'location' => 'query', |
| 907 |
'type' => 'string', |
| 908 |
), |
| 909 |
'sourceGeneration' => array( |
| 910 |
'location' => 'query', |
| 911 |
'type' => 'string', |
| 912 |
), |
| 913 |
'destinationPredefinedAcl' => array( |
| 914 |
'location' => 'query', |
| 915 |
'type' => 'string', |
| 916 |
), |
| 917 |
'ifSourceGenerationMatch' => array( |
| 918 |
'location' => 'query', |
| 919 |
'type' => 'string', |
| 920 |
), |
| 921 |
'maxBytesRewrittenPerCall' => array( |
| 922 |
'location' => 'query', |
| 923 |
'type' => 'string', |
| 924 |
), |
| 925 |
'ifSourceMetagenerationMatch' => array( |
| 926 |
'location' => 'query', |
| 927 |
'type' => 'string', |
| 928 |
), |
| 929 |
'ifGenerationMatch' => array( |
| 930 |
'location' => 'query', |
| 931 |
'type' => 'string', |
| 932 |
), |
| 933 |
'ifMetagenerationNotMatch' => array( |
| 934 |
'location' => 'query', |
| 935 |
'type' => 'string', |
| 936 |
), |
| 937 |
'projection' => array( |
| 938 |
'location' => 'query', |
| 939 |
'type' => 'string', |
| 940 |
), |
| 941 |
), |
| 942 |
),'update' => array( |
| 943 |
'path' => 'b/{bucket}/o/{object}', |
| 944 |
'httpMethod' => 'PUT', |
| 945 |
'parameters' => array( |
| 946 |
'bucket' => array( |
| 947 |
'location' => 'path', |
| 948 |
'type' => 'string', |
| 949 |
'required' => true, |
| 950 |
), |
| 951 |
'object' => array( |
| 952 |
'location' => 'path', |
| 953 |
'type' => 'string', |
| 954 |
'required' => true, |
| 955 |
), |
| 956 |
'predefinedAcl' => array( |
| 957 |
'location' => 'query', |
| 958 |
'type' => 'string', |
| 959 |
), |
| 960 |
'ifGenerationNotMatch' => array( |
| 961 |
'location' => 'query', |
| 962 |
'type' => 'string', |
| 963 |
), |
| 964 |
'generation' => array( |
| 965 |
'location' => 'query', |
| 966 |
'type' => 'string', |
| 967 |
), |
| 968 |
'ifMetagenerationMatch' => array( |
| 969 |
'location' => 'query', |
| 970 |
'type' => 'string', |
| 971 |
), |
| 972 |
'ifGenerationMatch' => array( |
| 973 |
'location' => 'query', |
| 974 |
'type' => 'string', |
| 975 |
), |
| 976 |
'ifMetagenerationNotMatch' => array( |
| 977 |
'location' => 'query', |
| 978 |
'type' => 'string', |
| 979 |
), |
| 980 |
'projection' => array( |
| 981 |
'location' => 'query', |
| 982 |
'type' => 'string', |
| 983 |
), |
| 984 |
), |
| 985 |
),'watchAll' => array( |
| 986 |
'path' => 'b/{bucket}/o/watch', |
| 987 |
'httpMethod' => 'POST', |
| 988 |
'parameters' => array( |
| 989 |
'bucket' => array( |
| 990 |
'location' => 'path', |
| 991 |
'type' => 'string', |
| 992 |
'required' => true, |
| 993 |
), |
| 994 |
'projection' => array( |
| 995 |
'location' => 'query', |
| 996 |
'type' => 'string', |
| 997 |
), |
| 998 |
'versions' => array( |
| 999 |
'location' => 'query', |
| 1000 |
'type' => 'boolean', |
| 1001 |
), |
| 1002 |
'prefix' => array( |
| 1003 |
'location' => 'query', |
| 1004 |
'type' => 'string', |
| 1005 |
), |
| 1006 |
'maxResults' => array( |
| 1007 |
'location' => 'query', |
| 1008 |
'type' => 'integer', |
| 1009 |
), |
| 1010 |
'pageToken' => array( |
| 1011 |
'location' => 'query', |
| 1012 |
'type' => 'string', |
| 1013 |
), |
| 1014 |
'delimiter' => array( |
| 1015 |
'location' => 'query', |
| 1016 |
'type' => 'string', |
| 1017 |
), |
| 1018 |
), |
| 1019 |
), |
| 1020 |
) |
| 1021 |
) |
| 1022 |
); |
| 1023 |
} |
| 1024 |
} |
| 1025 |
|
| 1026 |
|
| 1027 |
/** |
| 1028 |
* The "bucketAccessControls" collection of methods. |
| 1029 |
* Typical usage is: |
| 1030 |
* <code> |
| 1031 |
* $storageService = new Google_Service_Storage(...); |
| 1032 |
* $bucketAccessControls = $storageService->bucketAccessControls; |
| 1033 |
* </code> |
| 1034 |
*/ |
| 1035 |
class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource |
| 1036 |
{ |
| 1037 |
|
| 1038 |
/** |
| 1039 |
* Permanently deletes the ACL entry for the specified entity on the specified |
| 1040 |
* bucket. (bucketAccessControls.delete) |
| 1041 |
* |
| 1042 |
* @param string $bucket Name of a bucket. |
| 1043 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1044 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1045 |
* allAuthenticatedUsers. |
| 1046 |
* @param array $optParams Optional parameters. |
| 1047 |
*/ |
| 1048 |
public function delete($bucket, $entity, $optParams = array()) |
| 1049 |
{ |
| 1050 |
$params = array('bucket' => $bucket, 'entity' => $entity); |
| 1051 |
$params = array_merge($params, $optParams); |
| 1052 |
return $this->call('delete', array($params)); |
| 1053 |
} |
| 1054 |
|
| 1055 |
/** |
| 1056 |
* Returns the ACL entry for the specified entity on the specified bucket. |
| 1057 |
* (bucketAccessControls.get) |
| 1058 |
* |
| 1059 |
* @param string $bucket Name of a bucket. |
| 1060 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1061 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1062 |
* allAuthenticatedUsers. |
| 1063 |
* @param array $optParams Optional parameters. |
| 1064 |
* @return Google_Service_Storage_BucketAccessControl |
| 1065 |
*/ |
| 1066 |
public function get($bucket, $entity, $optParams = array()) |
| 1067 |
{ |
| 1068 |
$params = array('bucket' => $bucket, 'entity' => $entity); |
| 1069 |
$params = array_merge($params, $optParams); |
| 1070 |
return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl"); |
| 1071 |
} |
| 1072 |
|
| 1073 |
/** |
| 1074 |
* Creates a new ACL entry on the specified bucket. |
| 1075 |
* (bucketAccessControls.insert) |
| 1076 |
* |
| 1077 |
* @param string $bucket Name of a bucket. |
| 1078 |
* @param Google_BucketAccessControl $postBody |
| 1079 |
* @param array $optParams Optional parameters. |
| 1080 |
* @return Google_Service_Storage_BucketAccessControl |
| 1081 |
*/ |
| 1082 |
public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) |
| 1083 |
{ |
| 1084 |
$params = array('bucket' => $bucket, 'postBody' => $postBody); |
| 1085 |
$params = array_merge($params, $optParams); |
| 1086 |
return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl"); |
| 1087 |
} |
| 1088 |
|
| 1089 |
/** |
| 1090 |
* Retrieves ACL entries on the specified bucket. |
| 1091 |
* (bucketAccessControls.listBucketAccessControls) |
| 1092 |
* |
| 1093 |
* @param string $bucket Name of a bucket. |
| 1094 |
* @param array $optParams Optional parameters. |
| 1095 |
* @return Google_Service_Storage_BucketAccessControls |
| 1096 |
*/ |
| 1097 |
public function listBucketAccessControls($bucket, $optParams = array()) |
| 1098 |
{ |
| 1099 |
$params = array('bucket' => $bucket); |
| 1100 |
$params = array_merge($params, $optParams); |
| 1101 |
return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls"); |
| 1102 |
} |
| 1103 |
|
| 1104 |
/** |
| 1105 |
* Updates an ACL entry on the specified bucket. This method supports patch |
| 1106 |
* semantics. (bucketAccessControls.patch) |
| 1107 |
* |
| 1108 |
* @param string $bucket Name of a bucket. |
| 1109 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1110 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1111 |
* allAuthenticatedUsers. |
| 1112 |
* @param Google_BucketAccessControl $postBody |
| 1113 |
* @param array $optParams Optional parameters. |
| 1114 |
* @return Google_Service_Storage_BucketAccessControl |
| 1115 |
*/ |
| 1116 |
public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) |
| 1117 |
{ |
| 1118 |
$params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); |
| 1119 |
$params = array_merge($params, $optParams); |
| 1120 |
return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl"); |
| 1121 |
} |
| 1122 |
|
| 1123 |
/** |
| 1124 |
* Updates an ACL entry on the specified bucket. (bucketAccessControls.update) |
| 1125 |
* |
| 1126 |
* @param string $bucket Name of a bucket. |
| 1127 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1128 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1129 |
* allAuthenticatedUsers. |
| 1130 |
* @param Google_BucketAccessControl $postBody |
| 1131 |
* @param array $optParams Optional parameters. |
| 1132 |
* @return Google_Service_Storage_BucketAccessControl |
| 1133 |
*/ |
| 1134 |
public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) |
| 1135 |
{ |
| 1136 |
$params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); |
| 1137 |
$params = array_merge($params, $optParams); |
| 1138 |
return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl"); |
| 1139 |
} |
| 1140 |
} |
| 1141 |
|
| 1142 |
/** |
| 1143 |
* The "buckets" collection of methods. |
| 1144 |
* Typical usage is: |
| 1145 |
* <code> |
| 1146 |
* $storageService = new Google_Service_Storage(...); |
| 1147 |
* $buckets = $storageService->buckets; |
| 1148 |
* </code> |
| 1149 |
*/ |
| 1150 |
class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource |
| 1151 |
{ |
| 1152 |
|
| 1153 |
/** |
| 1154 |
* Permanently deletes an empty bucket. (buckets.delete) |
| 1155 |
* |
| 1156 |
* @param string $bucket Name of a bucket. |
| 1157 |
* @param array $optParams Optional parameters. |
| 1158 |
* |
| 1159 |
* @opt_param string ifMetagenerationMatch If set, only deletes the bucket if |
| 1160 |
* its metageneration matches this value. |
| 1161 |
* @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if |
| 1162 |
* its metageneration does not match this value. |
| 1163 |
*/ |
| 1164 |
public function delete($bucket, $optParams = array()) |
| 1165 |
{ |
| 1166 |
$params = array('bucket' => $bucket); |
| 1167 |
$params = array_merge($params, $optParams); |
| 1168 |
return $this->call('delete', array($params)); |
| 1169 |
} |
| 1170 |
|
| 1171 |
/** |
| 1172 |
* Returns metadata for the specified bucket. (buckets.get) |
| 1173 |
* |
| 1174 |
* @param string $bucket Name of a bucket. |
| 1175 |
* @param array $optParams Optional parameters. |
| 1176 |
* |
| 1177 |
* @opt_param string ifMetagenerationMatch Makes the return of the bucket |
| 1178 |
* metadata conditional on whether the bucket's current metageneration matches |
| 1179 |
* the given value. |
| 1180 |
* @opt_param string ifMetagenerationNotMatch Makes the return of the bucket |
| 1181 |
* metadata conditional on whether the bucket's current metageneration does not |
| 1182 |
* match the given value. |
| 1183 |
* @opt_param string projection Set of properties to return. Defaults to noAcl. |
| 1184 |
* @return Google_Service_Storage_Bucket |
| 1185 |
*/ |
| 1186 |
public function get($bucket, $optParams = array()) |
| 1187 |
{ |
| 1188 |
$params = array('bucket' => $bucket); |
| 1189 |
$params = array_merge($params, $optParams); |
| 1190 |
return $this->call('get', array($params), "Google_Service_Storage_Bucket"); |
| 1191 |
} |
| 1192 |
|
| 1193 |
/** |
| 1194 |
* Creates a new bucket. (buckets.insert) |
| 1195 |
* |
| 1196 |
* @param string $project A valid API project identifier. |
| 1197 |
* @param Google_Bucket $postBody |
| 1198 |
* @param array $optParams Optional parameters. |
| 1199 |
* |
| 1200 |
* @opt_param string predefinedAcl Apply a predefined set of access controls to |
| 1201 |
* this bucket. |
| 1202 |
* @opt_param string projection Set of properties to return. Defaults to noAcl, |
| 1203 |
* unless the bucket resource specifies acl or defaultObjectAcl properties, when |
| 1204 |
* it defaults to full. |
| 1205 |
* @opt_param string predefinedDefaultObjectAcl Apply a predefined set of |
| 1206 |
* default object access controls to this bucket. |
| 1207 |
* @return Google_Service_Storage_Bucket |
| 1208 |
*/ |
| 1209 |
public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) |
| 1210 |
{ |
| 1211 |
$params = array('project' => $project, 'postBody' => $postBody); |
| 1212 |
$params = array_merge($params, $optParams); |
| 1213 |
return $this->call('insert', array($params), "Google_Service_Storage_Bucket"); |
| 1214 |
} |
| 1215 |
|
| 1216 |
/** |
| 1217 |
* Retrieves a list of buckets for a given project. (buckets.listBuckets) |
| 1218 |
* |
| 1219 |
* @param string $project A valid API project identifier. |
| 1220 |
* @param array $optParams Optional parameters. |
| 1221 |
* |
| 1222 |
* @opt_param string pageToken A previously-returned page token representing |
| 1223 |
* part of the larger set of results to view. |
| 1224 |
* @opt_param string prefix Filter results to buckets whose names begin with |
| 1225 |
* this prefix. |
| 1226 |
* @opt_param string projection Set of properties to return. Defaults to noAcl. |
| 1227 |
* @opt_param string maxResults Maximum number of buckets to return. |
| 1228 |
* @return Google_Service_Storage_Buckets |
| 1229 |
*/ |
| 1230 |
public function listBuckets($project, $optParams = array()) |
| 1231 |
{ |
| 1232 |
$params = array('project' => $project); |
| 1233 |
$params = array_merge($params, $optParams); |
| 1234 |
return $this->call('list', array($params), "Google_Service_Storage_Buckets"); |
| 1235 |
} |
| 1236 |
|
| 1237 |
/** |
| 1238 |
* Updates a bucket. This method supports patch semantics. (buckets.patch) |
| 1239 |
* |
| 1240 |
* @param string $bucket Name of a bucket. |
| 1241 |
* @param Google_Bucket $postBody |
| 1242 |
* @param array $optParams Optional parameters. |
| 1243 |
* |
| 1244 |
* @opt_param string projection Set of properties to return. Defaults to full. |
| 1245 |
* @opt_param string ifMetagenerationMatch Makes the return of the bucket |
| 1246 |
* metadata conditional on whether the bucket's current metageneration matches |
| 1247 |
* the given value. |
| 1248 |
* @opt_param string predefinedDefaultObjectAcl Apply a predefined set of |
| 1249 |
* default object access controls to this bucket. |
| 1250 |
* @opt_param string predefinedAcl Apply a predefined set of access controls to |
| 1251 |
* this bucket. |
| 1252 |
* @opt_param string ifMetagenerationNotMatch Makes the return of the bucket |
| 1253 |
* metadata conditional on whether the bucket's current metageneration does not |
| 1254 |
* match the given value. |
| 1255 |
* @return Google_Service_Storage_Bucket |
| 1256 |
*/ |
| 1257 |
public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) |
| 1258 |
{ |
| 1259 |
$params = array('bucket' => $bucket, 'postBody' => $postBody); |
| 1260 |
$params = array_merge($params, $optParams); |
| 1261 |
return $this->call('patch', array($params), "Google_Service_Storage_Bucket"); |
| 1262 |
} |
| 1263 |
|
| 1264 |
/** |
| 1265 |
* Updates a bucket. (buckets.update) |
| 1266 |
* |
| 1267 |
* @param string $bucket Name of a bucket. |
| 1268 |
* @param Google_Bucket $postBody |
| 1269 |
* @param array $optParams Optional parameters. |
| 1270 |
* |
| 1271 |
* @opt_param string projection Set of properties to return. Defaults to full. |
| 1272 |
* @opt_param string ifMetagenerationMatch Makes the return of the bucket |
| 1273 |
* metadata conditional on whether the bucket's current metageneration matches |
| 1274 |
* the given value. |
| 1275 |
* @opt_param string predefinedDefaultObjectAcl Apply a predefined set of |
| 1276 |
* default object access controls to this bucket. |
| 1277 |
* @opt_param string predefinedAcl Apply a predefined set of access controls to |
| 1278 |
* this bucket. |
| 1279 |
* @opt_param string ifMetagenerationNotMatch Makes the return of the bucket |
| 1280 |
* metadata conditional on whether the bucket's current metageneration does not |
| 1281 |
* match the given value. |
| 1282 |
* @return Google_Service_Storage_Bucket |
| 1283 |
*/ |
| 1284 |
public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) |
| 1285 |
{ |
| 1286 |
$params = array('bucket' => $bucket, 'postBody' => $postBody); |
| 1287 |
$params = array_merge($params, $optParams); |
| 1288 |
return $this->call('update', array($params), "Google_Service_Storage_Bucket"); |
| 1289 |
} |
| 1290 |
} |
| 1291 |
|
| 1292 |
/** |
| 1293 |
* The "channels" collection of methods. |
| 1294 |
* Typical usage is: |
| 1295 |
* <code> |
| 1296 |
* $storageService = new Google_Service_Storage(...); |
| 1297 |
* $channels = $storageService->channels; |
| 1298 |
* </code> |
| 1299 |
*/ |
| 1300 |
class Google_Service_Storage_Channels_Resource extends Google_Service_Resource |
| 1301 |
{ |
| 1302 |
|
| 1303 |
/** |
| 1304 |
* Stop watching resources through this channel (channels.stop) |
| 1305 |
* |
| 1306 |
* @param Google_Channel $postBody |
| 1307 |
* @param array $optParams Optional parameters. |
| 1308 |
*/ |
| 1309 |
public function stop(Google_Service_Storage_Channel $postBody, $optParams = array()) |
| 1310 |
{ |
| 1311 |
$params = array('postBody' => $postBody); |
| 1312 |
$params = array_merge($params, $optParams); |
| 1313 |
return $this->call('stop', array($params)); |
| 1314 |
} |
| 1315 |
} |
| 1316 |
|
| 1317 |
/** |
| 1318 |
* The "defaultObjectAccessControls" collection of methods. |
| 1319 |
* Typical usage is: |
| 1320 |
* <code> |
| 1321 |
* $storageService = new Google_Service_Storage(...); |
| 1322 |
* $defaultObjectAccessControls = $storageService->defaultObjectAccessControls; |
| 1323 |
* </code> |
| 1324 |
*/ |
| 1325 |
class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource |
| 1326 |
{ |
| 1327 |
|
| 1328 |
/** |
| 1329 |
* Permanently deletes the default object ACL entry for the specified entity on |
| 1330 |
* the specified bucket. (defaultObjectAccessControls.delete) |
| 1331 |
* |
| 1332 |
* @param string $bucket Name of a bucket. |
| 1333 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1334 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1335 |
* allAuthenticatedUsers. |
| 1336 |
* @param array $optParams Optional parameters. |
| 1337 |
*/ |
| 1338 |
public function delete($bucket, $entity, $optParams = array()) |
| 1339 |
{ |
| 1340 |
$params = array('bucket' => $bucket, 'entity' => $entity); |
| 1341 |
$params = array_merge($params, $optParams); |
| 1342 |
return $this->call('delete', array($params)); |
| 1343 |
} |
| 1344 |
|
| 1345 |
/** |
| 1346 |
* Returns the default object ACL entry for the specified entity on the |
| 1347 |
* specified bucket. (defaultObjectAccessControls.get) |
| 1348 |
* |
| 1349 |
* @param string $bucket Name of a bucket. |
| 1350 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1351 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1352 |
* allAuthenticatedUsers. |
| 1353 |
* @param array $optParams Optional parameters. |
| 1354 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1355 |
*/ |
| 1356 |
public function get($bucket, $entity, $optParams = array()) |
| 1357 |
{ |
| 1358 |
$params = array('bucket' => $bucket, 'entity' => $entity); |
| 1359 |
$params = array_merge($params, $optParams); |
| 1360 |
return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1361 |
} |
| 1362 |
|
| 1363 |
/** |
| 1364 |
* Creates a new default object ACL entry on the specified bucket. |
| 1365 |
* (defaultObjectAccessControls.insert) |
| 1366 |
* |
| 1367 |
* @param string $bucket Name of a bucket. |
| 1368 |
* @param Google_ObjectAccessControl $postBody |
| 1369 |
* @param array $optParams Optional parameters. |
| 1370 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1371 |
*/ |
| 1372 |
public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) |
| 1373 |
{ |
| 1374 |
$params = array('bucket' => $bucket, 'postBody' => $postBody); |
| 1375 |
$params = array_merge($params, $optParams); |
| 1376 |
return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1377 |
} |
| 1378 |
|
| 1379 |
/** |
| 1380 |
* Retrieves default object ACL entries on the specified bucket. |
| 1381 |
* (defaultObjectAccessControls.listDefaultObjectAccessControls) |
| 1382 |
* |
| 1383 |
* @param string $bucket Name of a bucket. |
| 1384 |
* @param array $optParams Optional parameters. |
| 1385 |
* |
| 1386 |
* @opt_param string ifMetagenerationMatch If present, only return default ACL |
| 1387 |
* listing if the bucket's current metageneration matches this value. |
| 1388 |
* @opt_param string ifMetagenerationNotMatch If present, only return default |
| 1389 |
* ACL listing if the bucket's current metageneration does not match the given |
| 1390 |
* value. |
| 1391 |
* @return Google_Service_Storage_ObjectAccessControls |
| 1392 |
*/ |
| 1393 |
public function listDefaultObjectAccessControls($bucket, $optParams = array()) |
| 1394 |
{ |
| 1395 |
$params = array('bucket' => $bucket); |
| 1396 |
$params = array_merge($params, $optParams); |
| 1397 |
return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); |
| 1398 |
} |
| 1399 |
|
| 1400 |
/** |
| 1401 |
* Updates a default object ACL entry on the specified bucket. This method |
| 1402 |
* supports patch semantics. (defaultObjectAccessControls.patch) |
| 1403 |
* |
| 1404 |
* @param string $bucket Name of a bucket. |
| 1405 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1406 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1407 |
* allAuthenticatedUsers. |
| 1408 |
* @param Google_ObjectAccessControl $postBody |
| 1409 |
* @param array $optParams Optional parameters. |
| 1410 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1411 |
*/ |
| 1412 |
public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) |
| 1413 |
{ |
| 1414 |
$params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); |
| 1415 |
$params = array_merge($params, $optParams); |
| 1416 |
return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1417 |
} |
| 1418 |
|
| 1419 |
/** |
| 1420 |
* Updates a default object ACL entry on the specified bucket. |
| 1421 |
* (defaultObjectAccessControls.update) |
| 1422 |
* |
| 1423 |
* @param string $bucket Name of a bucket. |
| 1424 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1425 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1426 |
* allAuthenticatedUsers. |
| 1427 |
* @param Google_ObjectAccessControl $postBody |
| 1428 |
* @param array $optParams Optional parameters. |
| 1429 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1430 |
*/ |
| 1431 |
public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) |
| 1432 |
{ |
| 1433 |
$params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); |
| 1434 |
$params = array_merge($params, $optParams); |
| 1435 |
return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1436 |
} |
| 1437 |
} |
| 1438 |
|
| 1439 |
/** |
| 1440 |
* The "objectAccessControls" collection of methods. |
| 1441 |
* Typical usage is: |
| 1442 |
* <code> |
| 1443 |
* $storageService = new Google_Service_Storage(...); |
| 1444 |
* $objectAccessControls = $storageService->objectAccessControls; |
| 1445 |
* </code> |
| 1446 |
*/ |
| 1447 |
class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource |
| 1448 |
{ |
| 1449 |
|
| 1450 |
/** |
| 1451 |
* Permanently deletes the ACL entry for the specified entity on the specified |
| 1452 |
* object. (objectAccessControls.delete) |
| 1453 |
* |
| 1454 |
* @param string $bucket Name of a bucket. |
| 1455 |
* @param string $object Name of the object. |
| 1456 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1457 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1458 |
* allAuthenticatedUsers. |
| 1459 |
* @param array $optParams Optional parameters. |
| 1460 |
* |
| 1461 |
* @opt_param string generation If present, selects a specific revision of this |
| 1462 |
* object (as opposed to the latest version, the default). |
| 1463 |
*/ |
| 1464 |
public function delete($bucket, $object, $entity, $optParams = array()) |
| 1465 |
{ |
| 1466 |
$params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); |
| 1467 |
$params = array_merge($params, $optParams); |
| 1468 |
return $this->call('delete', array($params)); |
| 1469 |
} |
| 1470 |
|
| 1471 |
/** |
| 1472 |
* Returns the ACL entry for the specified entity on the specified object. |
| 1473 |
* (objectAccessControls.get) |
| 1474 |
* |
| 1475 |
* @param string $bucket Name of a bucket. |
| 1476 |
* @param string $object Name of the object. |
| 1477 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1478 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1479 |
* allAuthenticatedUsers. |
| 1480 |
* @param array $optParams Optional parameters. |
| 1481 |
* |
| 1482 |
* @opt_param string generation If present, selects a specific revision of this |
| 1483 |
* object (as opposed to the latest version, the default). |
| 1484 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1485 |
*/ |
| 1486 |
public function get($bucket, $object, $entity, $optParams = array()) |
| 1487 |
{ |
| 1488 |
$params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); |
| 1489 |
$params = array_merge($params, $optParams); |
| 1490 |
return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1491 |
} |
| 1492 |
|
| 1493 |
/** |
| 1494 |
* Creates a new ACL entry on the specified object. |
| 1495 |
* (objectAccessControls.insert) |
| 1496 |
* |
| 1497 |
* @param string $bucket Name of a bucket. |
| 1498 |
* @param string $object Name of the object. |
| 1499 |
* @param Google_ObjectAccessControl $postBody |
| 1500 |
* @param array $optParams Optional parameters. |
| 1501 |
* |
| 1502 |
* @opt_param string generation If present, selects a specific revision of this |
| 1503 |
* object (as opposed to the latest version, the default). |
| 1504 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1505 |
*/ |
| 1506 |
public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) |
| 1507 |
{ |
| 1508 |
$params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); |
| 1509 |
$params = array_merge($params, $optParams); |
| 1510 |
return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1511 |
} |
| 1512 |
|
| 1513 |
/** |
| 1514 |
* Retrieves ACL entries on the specified object. |
| 1515 |
* (objectAccessControls.listObjectAccessControls) |
| 1516 |
* |
| 1517 |
* @param string $bucket Name of a bucket. |
| 1518 |
* @param string $object Name of the object. |
| 1519 |
* @param array $optParams Optional parameters. |
| 1520 |
* |
| 1521 |
* @opt_param string generation If present, selects a specific revision of this |
| 1522 |
* object (as opposed to the latest version, the default). |
| 1523 |
* @return Google_Service_Storage_ObjectAccessControls |
| 1524 |
*/ |
| 1525 |
public function listObjectAccessControls($bucket, $object, $optParams = array()) |
| 1526 |
{ |
| 1527 |
$params = array('bucket' => $bucket, 'object' => $object); |
| 1528 |
$params = array_merge($params, $optParams); |
| 1529 |
return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); |
| 1530 |
} |
| 1531 |
|
| 1532 |
/** |
| 1533 |
* Updates an ACL entry on the specified object. This method supports patch |
| 1534 |
* semantics. (objectAccessControls.patch) |
| 1535 |
* |
| 1536 |
* @param string $bucket Name of a bucket. |
| 1537 |
* @param string $object Name of the object. |
| 1538 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1539 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1540 |
* allAuthenticatedUsers. |
| 1541 |
* @param Google_ObjectAccessControl $postBody |
| 1542 |
* @param array $optParams Optional parameters. |
| 1543 |
* |
| 1544 |
* @opt_param string generation If present, selects a specific revision of this |
| 1545 |
* object (as opposed to the latest version, the default). |
| 1546 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1547 |
*/ |
| 1548 |
public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) |
| 1549 |
{ |
| 1550 |
$params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); |
| 1551 |
$params = array_merge($params, $optParams); |
| 1552 |
return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1553 |
} |
| 1554 |
|
| 1555 |
/** |
| 1556 |
* Updates an ACL entry on the specified object. (objectAccessControls.update) |
| 1557 |
* |
| 1558 |
* @param string $bucket Name of a bucket. |
| 1559 |
* @param string $object Name of the object. |
| 1560 |
* @param string $entity The entity holding the permission. Can be user-userId, |
| 1561 |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
| 1562 |
* allAuthenticatedUsers. |
| 1563 |
* @param Google_ObjectAccessControl $postBody |
| 1564 |
* @param array $optParams Optional parameters. |
| 1565 |
* |
| 1566 |
* @opt_param string generation If present, selects a specific revision of this |
| 1567 |
* object (as opposed to the latest version, the default). |
| 1568 |
* @return Google_Service_Storage_ObjectAccessControl |
| 1569 |
*/ |
| 1570 |
public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) |
| 1571 |
{ |
| 1572 |
$params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); |
| 1573 |
$params = array_merge($params, $optParams); |
| 1574 |
return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); |
| 1575 |
} |
| 1576 |
} |
| 1577 |
|
| 1578 |
/** |
| 1579 |
* The "objects" collection of methods. |
| 1580 |
* Typical usage is: |
| 1581 |
* <code> |
| 1582 |
* $storageService = new Google_Service_Storage(...); |
| 1583 |
* $objects = $storageService->objects; |
| 1584 |
* </code> |
| 1585 |
*/ |
| 1586 |
class Google_Service_Storage_Objects_Resource extends Google_Service_Resource |
| 1587 |
{ |
| 1588 |
|
| 1589 |
/** |
| 1590 |
* Concatenates a list of existing objects into a new object in the same bucket. |
| 1591 |
* (objects.compose) |
| 1592 |
* |
| 1593 |
* @param string $destinationBucket Name of the bucket in which to store the new |
| 1594 |
* object. |
| 1595 |
* @param string $destinationObject Name of the new object. |
| 1596 |
* @param Google_ComposeRequest $postBody |
| 1597 |
* @param array $optParams Optional parameters. |
| 1598 |
* |
| 1599 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1600 |
* whether the object's current generation matches the given value. |
| 1601 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1602 |
* whether the object's current metageneration matches the given value. |
| 1603 |
* @opt_param string destinationPredefinedAcl Apply a predefined set of access |
| 1604 |
* controls to the destination object. |
| 1605 |
* @return Google_Service_Storage_StorageObject |
| 1606 |
*/ |
| 1607 |
public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) |
| 1608 |
{ |
| 1609 |
$params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); |
| 1610 |
$params = array_merge($params, $optParams); |
| 1611 |
return $this->call('compose', array($params), "Google_Service_Storage_StorageObject"); |
| 1612 |
} |
| 1613 |
|
| 1614 |
/** |
| 1615 |
* Copies an object to a specified location. Optionally overrides metadata. |
| 1616 |
* (objects.copy) |
| 1617 |
* |
| 1618 |
* @param string $sourceBucket Name of the bucket in which to find the source |
| 1619 |
* object. |
| 1620 |
* @param string $sourceObject Name of the source object. |
| 1621 |
* @param string $destinationBucket Name of the bucket in which to store the new |
| 1622 |
* object. Overrides the provided object metadata's bucket value, if any. |
| 1623 |
* @param string $destinationObject Name of the new object. Required when the |
| 1624 |
* object metadata is not otherwise provided. Overrides the object metadata's |
| 1625 |
* name value, if any. |
| 1626 |
* @param Google_StorageObject $postBody |
| 1627 |
* @param array $optParams Optional parameters. |
| 1628 |
* |
| 1629 |
* @opt_param string ifSourceGenerationNotMatch Makes the operation conditional |
| 1630 |
* on whether the source object's generation does not match the given value. |
| 1631 |
* @opt_param string ifGenerationNotMatch Makes the operation conditional on |
| 1632 |
* whether the destination object's current generation does not match the given |
| 1633 |
* value. |
| 1634 |
* @opt_param string ifSourceMetagenerationNotMatch Makes the operation |
| 1635 |
* conditional on whether the source object's current metageneration does not |
| 1636 |
* match the given value. |
| 1637 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1638 |
* whether the destination object's current metageneration matches the given |
| 1639 |
* value. |
| 1640 |
* @opt_param string sourceGeneration If present, selects a specific revision of |
| 1641 |
* the source object (as opposed to the latest version, the default). |
| 1642 |
* @opt_param string destinationPredefinedAcl Apply a predefined set of access |
| 1643 |
* controls to the destination object. |
| 1644 |
* @opt_param string ifSourceGenerationMatch Makes the operation conditional on |
| 1645 |
* whether the source object's generation matches the given value. |
| 1646 |
* @opt_param string ifSourceMetagenerationMatch Makes the operation conditional |
| 1647 |
* on whether the source object's current metageneration matches the given |
| 1648 |
* value. |
| 1649 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1650 |
* whether the destination object's current generation matches the given value. |
| 1651 |
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on |
| 1652 |
* whether the destination object's current metageneration does not match the |
| 1653 |
* given value. |
| 1654 |
* @opt_param string projection Set of properties to return. Defaults to noAcl, |
| 1655 |
* unless the object resource specifies the acl property, when it defaults to |
| 1656 |
* full. |
| 1657 |
* @return Google_Service_Storage_StorageObject |
| 1658 |
*/ |
| 1659 |
public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) |
| 1660 |
{ |
| 1661 |
$params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); |
| 1662 |
$params = array_merge($params, $optParams); |
| 1663 |
return $this->call('copy', array($params), "Google_Service_Storage_StorageObject"); |
| 1664 |
} |
| 1665 |
|
| 1666 |
/** |
| 1667 |
* Deletes an object and its metadata. Deletions are permanent if versioning is |
| 1668 |
* not enabled for the bucket, or if the generation parameter is used. |
| 1669 |
* (objects.delete) |
| 1670 |
* |
| 1671 |
* @param string $bucket Name of the bucket in which the object resides. |
| 1672 |
* @param string $object Name of the object. |
| 1673 |
* @param array $optParams Optional parameters. |
| 1674 |
* |
| 1675 |
* @opt_param string ifGenerationNotMatch Makes the operation conditional on |
| 1676 |
* whether the object's current generation does not match the given value. |
| 1677 |
* @opt_param string generation If present, permanently deletes a specific |
| 1678 |
* revision of this object (as opposed to the latest version, the default). |
| 1679 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1680 |
* whether the object's current metageneration matches the given value. |
| 1681 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1682 |
* whether the object's current generation matches the given value. |
| 1683 |
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on |
| 1684 |
* whether the object's current metageneration does not match the given value. |
| 1685 |
*/ |
| 1686 |
public function delete($bucket, $object, $optParams = array()) |
| 1687 |
{ |
| 1688 |
$params = array('bucket' => $bucket, 'object' => $object); |
| 1689 |
$params = array_merge($params, $optParams); |
| 1690 |
return $this->call('delete', array($params)); |
| 1691 |
} |
| 1692 |
|
| 1693 |
/** |
| 1694 |
* Retrieves an object or its metadata. (objects.get) |
| 1695 |
* |
| 1696 |
* @param string $bucket Name of the bucket in which the object resides. |
| 1697 |
* @param string $object Name of the object. |
| 1698 |
* @param array $optParams Optional parameters. |
| 1699 |
* |
| 1700 |
* @opt_param string ifGenerationNotMatch Makes the operation conditional on |
| 1701 |
* whether the object's generation does not match the given value. |
| 1702 |
* @opt_param string generation If present, selects a specific revision of this |
| 1703 |
* object (as opposed to the latest version, the default). |
| 1704 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1705 |
* whether the object's current metageneration matches the given value. |
| 1706 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1707 |
* whether the object's generation matches the given value. |
| 1708 |
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on |
| 1709 |
* whether the object's current metageneration does not match the given value. |
| 1710 |
* @opt_param string projection Set of properties to return. Defaults to noAcl. |
| 1711 |
* @return Google_Service_Storage_StorageObject |
| 1712 |
*/ |
| 1713 |
public function get($bucket, $object, $optParams = array()) |
| 1714 |
{ |
| 1715 |
$params = array('bucket' => $bucket, 'object' => $object); |
| 1716 |
$params = array_merge($params, $optParams); |
| 1717 |
return $this->call('get', array($params), "Google_Service_Storage_StorageObject"); |
| 1718 |
} |
| 1719 |
|
| 1720 |
/** |
| 1721 |
* Stores a new object and metadata. (objects.insert) |
| 1722 |
* |
| 1723 |
* @param string $bucket Name of the bucket in which to store the new object. |
| 1724 |
* Overrides the provided object metadata's bucket value, if any. |
| 1725 |
* @param Google_StorageObject $postBody |
| 1726 |
* @param array $optParams Optional parameters. |
| 1727 |
* |
| 1728 |
* @opt_param string predefinedAcl Apply a predefined set of access controls to |
| 1729 |
* this object. |
| 1730 |
* @opt_param string projection Set of properties to return. Defaults to noAcl, |
| 1731 |
* unless the object resource specifies the acl property, when it defaults to |
| 1732 |
* full. |
| 1733 |
* @opt_param string ifGenerationNotMatch Makes the operation conditional on |
| 1734 |
* whether the object's current generation does not match the given value. |
| 1735 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1736 |
* whether the object's current metageneration matches the given value. |
| 1737 |
* @opt_param string contentEncoding If set, sets the contentEncoding property |
| 1738 |
* of the final object to this value. Setting this parameter is equivalent to |
| 1739 |
* setting the contentEncoding metadata property. This can be useful when |
| 1740 |
* uploading an object with uploadType=media to indicate the encoding of the |
| 1741 |
* content being uploaded. |
| 1742 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1743 |
* whether the object's current generation matches the given value. |
| 1744 |
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on |
| 1745 |
* whether the object's current metageneration does not match the given value. |
| 1746 |
* @opt_param string name Name of the object. Required when the object metadata |
| 1747 |
* is not otherwise provided. Overrides the object metadata's name value, if |
| 1748 |
* any. |
| 1749 |
* @return Google_Service_Storage_StorageObject |
| 1750 |
*/ |
| 1751 |
public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) |
| 1752 |
{ |
| 1753 |
$params = array('bucket' => $bucket, 'postBody' => $postBody); |
| 1754 |
$params = array_merge($params, $optParams); |
| 1755 |
return $this->call('insert', array($params), "Google_Service_Storage_StorageObject"); |
| 1756 |
} |
| 1757 |
|
| 1758 |
/** |
| 1759 |
* Retrieves a list of objects matching the criteria. (objects.listObjects) |
| 1760 |
* |
| 1761 |
* @param string $bucket Name of the bucket in which to look for objects. |
| 1762 |
* @param array $optParams Optional parameters. |
| 1763 |
* |
| 1764 |
* @opt_param string projection Set of properties to return. Defaults to noAcl. |
| 1765 |
* @opt_param bool versions If true, lists all versions of an object as distinct |
| 1766 |
* results. The default is false. For more information, see Object Versioning. |
| 1767 |
* @opt_param string prefix Filter results to objects whose names begin with |
| 1768 |
* this prefix. |
| 1769 |
* @opt_param string maxResults Maximum number of items plus prefixes to return. |
| 1770 |
* As duplicate prefixes are omitted, fewer total results may be returned than |
| 1771 |
* requested. The default value of this parameter is 1,000 items. |
| 1772 |
* @opt_param string pageToken A previously-returned page token representing |
| 1773 |
* part of the larger set of results to view. |
| 1774 |
* @opt_param string delimiter Returns results in a directory-like mode. items |
| 1775 |
* will contain only objects whose names, aside from the prefix, do not contain |
| 1776 |
* delimiter. Objects whose names, aside from the prefix, contain delimiter will |
| 1777 |
* have their name, truncated after the delimiter, returned in prefixes. |
| 1778 |
* Duplicate prefixes are omitted. |
| 1779 |
* @return Google_Service_Storage_Objects |
| 1780 |
*/ |
| 1781 |
public function listObjects($bucket, $optParams = array()) |
| 1782 |
{ |
| 1783 |
$params = array('bucket' => $bucket); |
| 1784 |
$params = array_merge($params, $optParams); |
| 1785 |
return $this->call('list', array($params), "Google_Service_Storage_Objects"); |
| 1786 |
} |
| 1787 |
|
| 1788 |
/** |
| 1789 |
* Updates an object's metadata. This method supports patch semantics. |
| 1790 |
* (objects.patch) |
| 1791 |
* |
| 1792 |
* @param string $bucket Name of the bucket in which the object resides. |
| 1793 |
* @param string $object Name of the object. |
| 1794 |
* @param Google_StorageObject $postBody |
| 1795 |
* @param array $optParams Optional parameters. |
| 1796 |
* |
| 1797 |
* @opt_param string predefinedAcl Apply a predefined set of access controls to |
| 1798 |
* this object. |
| 1799 |
* @opt_param string ifGenerationNotMatch Makes the operation conditional on |
| 1800 |
* whether the object's current generation does not match the given value. |
| 1801 |
* @opt_param string generation If present, selects a specific revision of this |
| 1802 |
* object (as opposed to the latest version, the default). |
| 1803 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1804 |
* whether the object's current metageneration matches the given value. |
| 1805 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1806 |
* whether the object's current generation matches the given value. |
| 1807 |
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on |
| 1808 |
* whether the object's current metageneration does not match the given value. |
| 1809 |
* @opt_param string projection Set of properties to return. Defaults to full. |
| 1810 |
* @return Google_Service_Storage_StorageObject |
| 1811 |
*/ |
| 1812 |
public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) |
| 1813 |
{ |
| 1814 |
$params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); |
| 1815 |
$params = array_merge($params, $optParams); |
| 1816 |
return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); |
| 1817 |
} |
| 1818 |
|
| 1819 |
/** |
| 1820 |
* Rewrites a source object to a destination object. Optionally overrides |
| 1821 |
* metadata. (objects.rewrite) |
| 1822 |
* |
| 1823 |
* @param string $sourceBucket Name of the bucket in which to find the source |
| 1824 |
* object. |
| 1825 |
* @param string $sourceObject Name of the source object. |
| 1826 |
* @param string $destinationBucket Name of the bucket in which to store the new |
| 1827 |
* object. Overrides the provided object metadata's bucket value, if any. |
| 1828 |
* @param string $destinationObject Name of the new object. Required when the |
| 1829 |
* object metadata is not otherwise provided. Overrides the object metadata's |
| 1830 |
* name value, if any. |
| 1831 |
* @param Google_StorageObject $postBody |
| 1832 |
* @param array $optParams Optional parameters. |
| 1833 |
* |
| 1834 |
* @opt_param string ifSourceGenerationNotMatch Makes the operation conditional |
| 1835 |
* on whether the source object's generation does not match the given value. |
| 1836 |
* @opt_param string ifGenerationNotMatch Makes the operation conditional on |
| 1837 |
* whether the destination object's current generation does not match the given |
| 1838 |
* value. |
| 1839 |
* @opt_param string rewriteToken Include this field (from the previous Rewrite |
| 1840 |
* response) on each Rewrite request after the first one, until the Rewrite |
| 1841 |
* response 'done' flag is true. Calls that provide a rewriteToken can omit all |
| 1842 |
* other request fields, but if included those fields must match the values |
| 1843 |
* provided in the first rewrite request. |
| 1844 |
* @opt_param string ifSourceMetagenerationNotMatch Makes the operation |
| 1845 |
* conditional on whether the source object's current metageneration does not |
| 1846 |
* match the given value. |
| 1847 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1848 |
* whether the destination object's current metageneration matches the given |
| 1849 |
* value. |
| 1850 |
* @opt_param string sourceGeneration If present, selects a specific revision of |
| 1851 |
* the source object (as opposed to the latest version, the default). |
| 1852 |
* @opt_param string destinationPredefinedAcl Apply a predefined set of access |
| 1853 |
* controls to the destination object. |
| 1854 |
* @opt_param string ifSourceGenerationMatch Makes the operation conditional on |
| 1855 |
* whether the source object's generation matches the given value. |
| 1856 |
* @opt_param string maxBytesRewrittenPerCall The maximum number of bytes that |
| 1857 |
* will be rewritten per Rewrite request. Most callers shouldn't need to specify |
| 1858 |
* this parameter - it is primarily in place to support testing. If specified |
| 1859 |
* the value must be an integral multiple of 1 MiB (1048576). Also, this only |
| 1860 |
* applies to requests where the source and destination span locations and/or |
| 1861 |
* storage classes. Finally, this value must not change across Rewrite calls |
| 1862 |
* else you'll get an error that the rewrite token is invalid. |
| 1863 |
* @opt_param string ifSourceMetagenerationMatch Makes the operation conditional |
| 1864 |
* on whether the source object's current metageneration matches the given |
| 1865 |
* value. |
| 1866 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1867 |
* whether the destination object's current generation matches the given value. |
| 1868 |
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on |
| 1869 |
* whether the destination object's current metageneration does not match the |
| 1870 |
* given value. |
| 1871 |
* @opt_param string projection Set of properties to return. Defaults to noAcl, |
| 1872 |
* unless the object resource specifies the acl property, when it defaults to |
| 1873 |
* full. |
| 1874 |
* @return Google_Service_Storage_RewriteResponse |
| 1875 |
*/ |
| 1876 |
public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) |
| 1877 |
{ |
| 1878 |
$params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); |
| 1879 |
$params = array_merge($params, $optParams); |
| 1880 |
return $this->call('rewrite', array($params), "Google_Service_Storage_RewriteResponse"); |
| 1881 |
} |
| 1882 |
|
| 1883 |
/** |
| 1884 |
* Updates an object's metadata. (objects.update) |
| 1885 |
* |
| 1886 |
* @param string $bucket Name of the bucket in which the object resides. |
| 1887 |
* @param string $object Name of the object. |
| 1888 |
* @param Google_StorageObject $postBody |
| 1889 |
* @param array $optParams Optional parameters. |
| 1890 |
* |
| 1891 |
* @opt_param string predefinedAcl Apply a predefined set of access controls to |
| 1892 |
* this object. |
| 1893 |
* @opt_param string ifGenerationNotMatch Makes the operation conditional on |
| 1894 |
* whether the object's current generation does not match the given value. |
| 1895 |
* @opt_param string generation If present, selects a specific revision of this |
| 1896 |
* object (as opposed to the latest version, the default). |
| 1897 |
* @opt_param string ifMetagenerationMatch Makes the operation conditional on |
| 1898 |
* whether the object's current metageneration matches the given value. |
| 1899 |
* @opt_param string ifGenerationMatch Makes the operation conditional on |
| 1900 |
* whether the object's current generation matches the given value. |
| 1901 |
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on |
| 1902 |
* whether the object's current metageneration does not match the given value. |
| 1903 |
* @opt_param string projection Set of properties to return. Defaults to full. |
| 1904 |
* @return Google_Service_Storage_StorageObject |
| 1905 |
*/ |
| 1906 |
public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) |
| 1907 |
{ |
| 1908 |
$params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); |
| 1909 |
$params = array_merge($params, $optParams); |
| 1910 |
return $this->call('update', array($params), "Google_Service_Storage_StorageObject"); |
| 1911 |
} |
| 1912 |
|
| 1913 |
/** |
| 1914 |
* Watch for changes on all objects in a bucket. (objects.watchAll) |
| 1915 |
* |
| 1916 |
* @param string $bucket Name of the bucket in which to look for objects. |
| 1917 |
* @param Google_Channel $postBody |
| 1918 |
* @param array $optParams Optional parameters. |
| 1919 |
* |
| 1920 |
* @opt_param string projection Set of properties to return. Defaults to noAcl. |
| 1921 |
* @opt_param bool versions If true, lists all versions of an object as distinct |
| 1922 |
* results. The default is false. For more information, see Object Versioning. |
| 1923 |
* @opt_param string prefix Filter results to objects whose names begin with |
| 1924 |
* this prefix. |
| 1925 |
* @opt_param string maxResults Maximum number of items plus prefixes to return. |
| 1926 |
* As duplicate prefixes are omitted, fewer total results may be returned than |
| 1927 |
* requested. The default value of this parameter is 1,000 items. |
| 1928 |
* @opt_param string pageToken A previously-returned page token representing |
| 1929 |
* part of the larger set of results to view. |
| 1930 |
* @opt_param string delimiter Returns results in a directory-like mode. items |
| 1931 |
* will contain only objects whose names, aside from the prefix, do not contain |
| 1932 |
* delimiter. Objects whose names, aside from the prefix, contain delimiter will |
| 1933 |
* have their name, truncated after the delimiter, returned in prefixes. |
| 1934 |
* Duplicate prefixes are omitted. |
| 1935 |
* @return Google_Service_Storage_Channel |
| 1936 |
*/ |
| 1937 |
public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array()) |
| 1938 |
{ |
| 1939 |
$params = array('bucket' => $bucket, 'postBody' => $postBody); |
| 1940 |
$params = array_merge($params, $optParams); |
| 1941 |
return $this->call('watchAll', array($params), "Google_Service_Storage_Channel"); |
| 1942 |
} |
| 1943 |
} |
| 1944 |
|
| 1945 |
|
| 1946 |
|
| 1947 |
|
| 1948 |
class Google_Service_Storage_Bucket extends Google_Collection |
| 1949 |
{ |
| 1950 |
protected $collection_key = 'defaultObjectAcl'; |
| 1951 |
protected $internal_gapi_mappings = array( |
| 1952 |
); |
| 1953 |
protected $aclType = 'Google_Service_Storage_BucketAccessControl'; |
| 1954 |
protected $aclDataType = 'array'; |
| 1955 |
protected $corsType = 'Google_Service_Storage_BucketCors'; |
| 1956 |
protected $corsDataType = 'array'; |
| 1957 |
protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl'; |
| 1958 |
protected $defaultObjectAclDataType = 'array'; |
| 1959 |
public $etag; |
| 1960 |
public $id; |
| 1961 |
public $kind; |
| 1962 |
protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle'; |
| 1963 |
protected $lifecycleDataType = ''; |
| 1964 |
public $location; |
| 1965 |
protected $loggingType = 'Google_Service_Storage_BucketLogging'; |
| 1966 |
protected $loggingDataType = ''; |
| 1967 |
public $metageneration; |
| 1968 |
public $name; |
| 1969 |
protected $ownerType = 'Google_Service_Storage_BucketOwner'; |
| 1970 |
protected $ownerDataType = ''; |
| 1971 |
public $projectNumber; |
| 1972 |
public $selfLink; |
| 1973 |
public $storageClass; |
| 1974 |
public $timeCreated; |
| 1975 |
protected $versioningType = 'Google_Service_Storage_BucketVersioning'; |
| 1976 |
protected $versioningDataType = ''; |
| 1977 |
protected $websiteType = 'Google_Service_Storage_BucketWebsite'; |
| 1978 |
protected $websiteDataType = ''; |
| 1979 |
|
| 1980 |
|
| 1981 |
public function setAcl($acl) |
| 1982 |
{ |
| 1983 |
$this->acl = $acl; |
| 1984 |
} |
| 1985 |
public function getAcl() |
| 1986 |
{ |
| 1987 |
return $this->acl; |
| 1988 |
} |
| 1989 |
public function setCors($cors) |
| 1990 |
{ |
| 1991 |
$this->cors = $cors; |
| 1992 |
} |
| 1993 |
public function getCors() |
| 1994 |
{ |
| 1995 |
return $this->cors; |
| 1996 |
} |
| 1997 |
public function setDefaultObjectAcl($defaultObjectAcl) |
| 1998 |
{ |
| 1999 |
$this->defaultObjectAcl = $defaultObjectAcl; |
| 2000 |
} |
| 2001 |
public function getDefaultObjectAcl() |
| 2002 |
{ |
| 2003 |
return $this->defaultObjectAcl; |
| 2004 |
} |
| 2005 |
public function setEtag($etag) |
| 2006 |
{ |
| 2007 |
$this->etag = $etag; |
| 2008 |
} |
| 2009 |
public function getEtag() |
| 2010 |
{ |
| 2011 |
return $this->etag; |
| 2012 |
} |
| 2013 |
public function setId($id) |
| 2014 |
{ |
| 2015 |
$this->id = $id; |
| 2016 |
} |
| 2017 |
public function getId() |
| 2018 |
{ |
| 2019 |
return $this->id; |
| 2020 |
} |
| 2021 |
public function setKind($kind) |
| 2022 |
{ |
| 2023 |
$this->kind = $kind; |
| 2024 |
} |
| 2025 |
public function getKind() |
| 2026 |
{ |
| 2027 |
return $this->kind; |
| 2028 |
} |
| 2029 |
public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle) |
| 2030 |
{ |
| 2031 |
$this->lifecycle = $lifecycle; |
| 2032 |
} |
| 2033 |
public function getLifecycle() |
| 2034 |
{ |
| 2035 |
return $this->lifecycle; |
| 2036 |
} |
| 2037 |
public function setLocation($location) |
| 2038 |
{ |
| 2039 |
$this->location = $location; |
| 2040 |
} |
| 2041 |
public function getLocation() |
| 2042 |
{ |
| 2043 |
return $this->location; |
| 2044 |
} |
| 2045 |
public function setLogging(Google_Service_Storage_BucketLogging $logging) |
| 2046 |
{ |
| 2047 |
$this->logging = $logging; |
| 2048 |
} |
| 2049 |
public function getLogging() |
| 2050 |
{ |
| 2051 |
return $this->logging; |
| 2052 |
} |
| 2053 |
public function setMetageneration($metageneration) |
| 2054 |
{ |
| 2055 |
$this->metageneration = $metageneration; |
| 2056 |
} |
| 2057 |
public function getMetageneration() |
| 2058 |
{ |
| 2059 |
return $this->metageneration; |
| 2060 |
} |
| 2061 |
public function setName($name) |
| 2062 |
{ |
| 2063 |
$this->name = $name; |
| 2064 |
} |
| 2065 |
public function getName() |
| 2066 |
{ |
| 2067 |
return $this->name; |
| 2068 |
} |
| 2069 |
public function setOwner(Google_Service_Storage_BucketOwner $owner) |
| 2070 |
{ |
| 2071 |
$this->owner = $owner; |
| 2072 |
} |
| 2073 |
public function getOwner() |
| 2074 |
{ |
| 2075 |
return $this->owner; |
| 2076 |
} |
| 2077 |
public function setProjectNumber($projectNumber) |
| 2078 |
{ |
| 2079 |
$this->projectNumber = $projectNumber; |
| 2080 |
} |
| 2081 |
public function getProjectNumber() |
| 2082 |
{ |
| 2083 |
return $this->projectNumber; |
| 2084 |
} |
| 2085 |
public function setSelfLink($selfLink) |
| 2086 |
{ |
| 2087 |
$this->selfLink = $selfLink; |
| 2088 |
} |
| 2089 |
public function getSelfLink() |
| 2090 |
{ |
| 2091 |
return $this->selfLink; |
| 2092 |
} |
| 2093 |
public function setStorageClass($storageClass) |
| 2094 |
{ |
| 2095 |
$this->storageClass = $storageClass; |
| 2096 |
} |
| 2097 |
public function getStorageClass() |
| 2098 |
{ |
| 2099 |
return $this->storageClass; |
| 2100 |
} |
| 2101 |
public function setTimeCreated($timeCreated) |
| 2102 |
{ |
| 2103 |
$this->timeCreated = $timeCreated; |
| 2104 |
} |
| 2105 |
public function getTimeCreated() |
| 2106 |
{ |
| 2107 |
return $this->timeCreated; |
| 2108 |
} |
| 2109 |
public function setVersioning(Google_Service_Storage_BucketVersioning $versioning) |
| 2110 |
{ |
| 2111 |
$this->versioning = $versioning; |
| 2112 |
} |
| 2113 |
public function getVersioning() |
| 2114 |
{ |
| 2115 |
return $this->versioning; |
| 2116 |
} |
| 2117 |
public function setWebsite(Google_Service_Storage_BucketWebsite $website) |
| 2118 |
{ |
| 2119 |
$this->website = $website; |
| 2120 |
} |
| 2121 |
public function getWebsite() |
| 2122 |
{ |
| 2123 |
return $this->website; |
| 2124 |
} |
| 2125 |
} |
| 2126 |
|
| 2127 |
class Google_Service_Storage_BucketAccessControl extends Google_Model |
| 2128 |
{ |
| 2129 |
protected $internal_gapi_mappings = array( |
| 2130 |
); |
| 2131 |
public $bucket; |
| 2132 |
public $domain; |
| 2133 |
public $email; |
| 2134 |
public $entity; |
| 2135 |
public $entityId; |
| 2136 |
public $etag; |
| 2137 |
public $id; |
| 2138 |
public $kind; |
| 2139 |
protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam'; |
| 2140 |
protected $projectTeamDataType = ''; |
| 2141 |
public $role; |
| 2142 |
public $selfLink; |
| 2143 |
|
| 2144 |
|
| 2145 |
public function setBucket($bucket) |
| 2146 |
{ |
| 2147 |
$this->bucket = $bucket; |
| 2148 |
} |
| 2149 |
public function getBucket() |
| 2150 |
{ |
| 2151 |
return $this->bucket; |
| 2152 |
} |
| 2153 |
public function setDomain($domain) |
| 2154 |
{ |
| 2155 |
$this->domain = $domain; |
| 2156 |
} |
| 2157 |
public function getDomain() |
| 2158 |
{ |
| 2159 |
return $this->domain; |
| 2160 |
} |
| 2161 |
public function setEmail($email) |
| 2162 |
{ |
| 2163 |
$this->email = $email; |
| 2164 |
} |
| 2165 |
public function getEmail() |
| 2166 |
{ |
| 2167 |
return $this->email; |
| 2168 |
} |
| 2169 |
public function setEntity($entity) |
| 2170 |
{ |
| 2171 |
$this->entity = $entity; |
| 2172 |
} |
| 2173 |
public function getEntity() |
| 2174 |
{ |
| 2175 |
return $this->entity; |
| 2176 |
} |
| 2177 |
public function setEntityId($entityId) |
| 2178 |
{ |
| 2179 |
$this->entityId = $entityId; |
| 2180 |
} |
| 2181 |
public function getEntityId() |
| 2182 |
{ |
| 2183 |
return $this->entityId; |
| 2184 |
} |
| 2185 |
public function setEtag($etag) |
| 2186 |
{ |
| 2187 |
$this->etag = $etag; |
| 2188 |
} |
| 2189 |
public function getEtag() |
| 2190 |
{ |
| 2191 |
return $this->etag; |
| 2192 |
} |
| 2193 |
public function setId($id) |
| 2194 |
{ |
| 2195 |
$this->id = $id; |
| 2196 |
} |
| 2197 |
public function getId() |
| 2198 |
{ |
| 2199 |
return $this->id; |
| 2200 |
} |
| 2201 |
public function setKind($kind) |
| 2202 |
{ |
| 2203 |
$this->kind = $kind; |
| 2204 |
} |
| 2205 |
public function getKind() |
| 2206 |
{ |
| 2207 |
return $this->kind; |
| 2208 |
} |
| 2209 |
public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam) |
| 2210 |
{ |
| 2211 |
$this->projectTeam = $projectTeam; |
| 2212 |
} |
| 2213 |
public function getProjectTeam() |
| 2214 |
{ |
| 2215 |
return $this->projectTeam; |
| 2216 |
} |
| 2217 |
public function setRole($role) |
| 2218 |
{ |
| 2219 |
$this->role = $role; |
| 2220 |
} |
| 2221 |
public function getRole() |
| 2222 |
{ |
| 2223 |
return $this->role; |
| 2224 |
} |
| 2225 |
public function setSelfLink($selfLink) |
| 2226 |
{ |
| 2227 |
$this->selfLink = $selfLink; |
| 2228 |
} |
| 2229 |
public function getSelfLink() |
| 2230 |
{ |
| 2231 |
return $this->selfLink; |
| 2232 |
} |
| 2233 |
} |
| 2234 |
|
| 2235 |
class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model |
| 2236 |
{ |
| 2237 |
protected $internal_gapi_mappings = array( |
| 2238 |
); |
| 2239 |
public $projectNumber; |
| 2240 |
public $team; |
| 2241 |
|
| 2242 |
|
| 2243 |
public function setProjectNumber($projectNumber) |
| 2244 |
{ |
| 2245 |
$this->projectNumber = $projectNumber; |
| 2246 |
} |
| 2247 |
public function getProjectNumber() |
| 2248 |
{ |
| 2249 |
return $this->projectNumber; |
| 2250 |
} |
| 2251 |
public function setTeam($team) |
| 2252 |
{ |
| 2253 |
$this->team = $team; |
| 2254 |
} |
| 2255 |
public function getTeam() |
| 2256 |
{ |
| 2257 |
return $this->team; |
| 2258 |
} |
| 2259 |
} |
| 2260 |
|
| 2261 |
class Google_Service_Storage_BucketAccessControls extends Google_Collection |
| 2262 |
{ |
| 2263 |
protected $collection_key = 'items'; |
| 2264 |
protected $internal_gapi_mappings = array( |
| 2265 |
); |
| 2266 |
protected $itemsType = 'Google_Service_Storage_BucketAccessControl'; |
| 2267 |
protected $itemsDataType = 'array'; |
| 2268 |
public $kind; |
| 2269 |
|
| 2270 |
|
| 2271 |
public function setItems($items) |
| 2272 |
{ |
| 2273 |
$this->items = $items; |
| 2274 |
} |
| 2275 |
public function getItems() |
| 2276 |
{ |
| 2277 |
return $this->items; |
| 2278 |
} |
| 2279 |
public function setKind($kind) |
| 2280 |
{ |
| 2281 |
$this->kind = $kind; |
| 2282 |
} |
| 2283 |
public function getKind() |
| 2284 |
{ |
| 2285 |
return $this->kind; |
| 2286 |
} |
| 2287 |
} |
| 2288 |
|
| 2289 |
class Google_Service_Storage_BucketCors extends Google_Collection |
| 2290 |
{ |
| 2291 |
protected $collection_key = 'responseHeader'; |
| 2292 |
protected $internal_gapi_mappings = array( |
| 2293 |
); |
| 2294 |
public $maxAgeSeconds; |
| 2295 |
public $method; |
| 2296 |
public $origin; |
| 2297 |
public $responseHeader; |
| 2298 |
|
| 2299 |
|
| 2300 |
public function setMaxAgeSeconds($maxAgeSeconds) |
| 2301 |
{ |
| 2302 |
$this->maxAgeSeconds = $maxAgeSeconds; |
| 2303 |
} |
| 2304 |
public function getMaxAgeSeconds() |
| 2305 |
{ |
| 2306 |
return $this->maxAgeSeconds; |
| 2307 |
} |
| 2308 |
public function setMethod($method) |
| 2309 |
{ |
| 2310 |
$this->method = $method; |
| 2311 |
} |
| 2312 |
public function getMethod() |
| 2313 |
{ |
| 2314 |
return $this->method; |
| 2315 |
} |
| 2316 |
public function setOrigin($origin) |
| 2317 |
{ |
| 2318 |
$this->origin = $origin; |
| 2319 |
} |
| 2320 |
public function getOrigin() |
| 2321 |
{ |
| 2322 |
return $this->origin; |
| 2323 |
} |
| 2324 |
public function setResponseHeader($responseHeader) |
| 2325 |
{ |
| 2326 |
$this->responseHeader = $responseHeader; |
| 2327 |
} |
| 2328 |
public function getResponseHeader() |
| 2329 |
{ |
| 2330 |
return $this->responseHeader; |
| 2331 |
} |
| 2332 |
} |
| 2333 |
|
| 2334 |
class Google_Service_Storage_BucketLifecycle extends Google_Collection |
| 2335 |
{ |
| 2336 |
protected $collection_key = 'rule'; |
| 2337 |
protected $internal_gapi_mappings = array( |
| 2338 |
); |
| 2339 |
protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; |
| 2340 |
protected $ruleDataType = 'array'; |
| 2341 |
|
| 2342 |
|
| 2343 |
public function setRule($rule) |
| 2344 |
{ |
| 2345 |
$this->rule = $rule; |
| 2346 |
} |
| 2347 |
public function getRule() |
| 2348 |
{ |
| 2349 |
return $this->rule; |
| 2350 |
} |
| 2351 |
} |
| 2352 |
|
| 2353 |
class Google_Service_Storage_BucketLifecycleRule extends Google_Model |
| 2354 |
{ |
| 2355 |
protected $internal_gapi_mappings = array( |
| 2356 |
); |
| 2357 |
protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction'; |
| 2358 |
protected $actionDataType = ''; |
| 2359 |
protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition'; |
| 2360 |
protected $conditionDataType = ''; |
| 2361 |
|
| 2362 |
|
| 2363 |
public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action) |
| 2364 |
{ |
| 2365 |
$this->action = $action; |
| 2366 |
} |
| 2367 |
public function getAction() |
| 2368 |
{ |
| 2369 |
return $this->action; |
| 2370 |
} |
| 2371 |
public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition) |
| 2372 |
{ |
| 2373 |
$this->condition = $condition; |
| 2374 |
} |
| 2375 |
public function getCondition() |
| 2376 |
{ |
| 2377 |
return $this->condition; |
| 2378 |
} |
| 2379 |
} |
| 2380 |
|
| 2381 |
class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model |
| 2382 |
{ |
| 2383 |
protected $internal_gapi_mappings = array( |
| 2384 |
); |
| 2385 |
public $type; |
| 2386 |
|
| 2387 |
|
| 2388 |
public function setType($type) |
| 2389 |
{ |
| 2390 |
$this->type = $type; |
| 2391 |
} |
| 2392 |
public function getType() |
| 2393 |
{ |
| 2394 |
return $this->type; |
| 2395 |
} |
| 2396 |
} |
| 2397 |
|
| 2398 |
class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model |
| 2399 |
{ |
| 2400 |
protected $internal_gapi_mappings = array( |
| 2401 |
); |
| 2402 |
public $age; |
| 2403 |
public $createdBefore; |
| 2404 |
public $isLive; |
| 2405 |
public $numNewerVersions; |
| 2406 |
|
| 2407 |
|
| 2408 |
public function setAge($age) |
| 2409 |
{ |
| 2410 |
$this->age = $age; |
| 2411 |
} |
| 2412 |
public function getAge() |
| 2413 |
{ |
| 2414 |
return $this->age; |
| 2415 |
} |
| 2416 |
public function setCreatedBefore($createdBefore) |
| 2417 |
{ |
| 2418 |
$this->createdBefore = $createdBefore; |
| 2419 |
} |
| 2420 |
public function getCreatedBefore() |
| 2421 |
{ |
| 2422 |
return $this->createdBefore; |
| 2423 |
} |
| 2424 |
public function setIsLive($isLive) |
| 2425 |
{ |
| 2426 |
$this->isLive = $isLive; |
| 2427 |
} |
| 2428 |
public function getIsLive() |
| 2429 |
{ |
| 2430 |
return $this->isLive; |
| 2431 |
} |
| 2432 |
public function setNumNewerVersions($numNewerVersions) |
| 2433 |
{ |
| 2434 |
$this->numNewerVersions = $numNewerVersions; |
| 2435 |
} |
| 2436 |
public function getNumNewerVersions() |
| 2437 |
{ |
| 2438 |
return $this->numNewerVersions; |
| 2439 |
} |
| 2440 |
} |
| 2441 |
|
| 2442 |
class Google_Service_Storage_BucketLogging extends Google_Model |
| 2443 |
{ |
| 2444 |
protected $internal_gapi_mappings = array( |
| 2445 |
); |
| 2446 |
public $logBucket; |
| 2447 |
public $logObjectPrefix; |
| 2448 |
|
| 2449 |
|
| 2450 |
public function setLogBucket($logBucket) |
| 2451 |
{ |
| 2452 |
$this->logBucket = $logBucket; |
| 2453 |
} |
| 2454 |
public function getLogBucket() |
| 2455 |
{ |
| 2456 |
return $this->logBucket; |
| 2457 |
} |
| 2458 |
public function setLogObjectPrefix($logObjectPrefix) |
| 2459 |
{ |
| 2460 |
$this->logObjectPrefix = $logObjectPrefix; |
| 2461 |
} |
| 2462 |
public function getLogObjectPrefix() |
| 2463 |
{ |
| 2464 |
return $this->logObjectPrefix; |
| 2465 |
} |
| 2466 |
} |
| 2467 |
|
| 2468 |
class Google_Service_Storage_BucketOwner extends Google_Model |
| 2469 |
{ |
| 2470 |
protected $internal_gapi_mappings = array( |
| 2471 |
); |
| 2472 |
public $entity; |
| 2473 |
public $entityId; |
| 2474 |
|
| 2475 |
|
| 2476 |
public function setEntity($entity) |
| 2477 |
{ |
| 2478 |
$this->entity = $entity; |
| 2479 |
} |
| 2480 |
public function getEntity() |
| 2481 |
{ |
| 2482 |
return $this->entity; |
| 2483 |
} |
| 2484 |
public function setEntityId($entityId) |
| 2485 |
{ |
| 2486 |
$this->entityId = $entityId; |
| 2487 |
} |
| 2488 |
public function getEntityId() |
| 2489 |
{ |
| 2490 |
return $this->entityId; |
| 2491 |
} |
| 2492 |
} |
| 2493 |
|
| 2494 |
class Google_Service_Storage_BucketVersioning extends Google_Model |
| 2495 |
{ |
| 2496 |
protected $internal_gapi_mappings = array( |
| 2497 |
); |
| 2498 |
public $enabled; |
| 2499 |
|
| 2500 |
|
| 2501 |
public function setEnabled($enabled) |
| 2502 |
{ |
| 2503 |
$this->enabled = $enabled; |
| 2504 |
} |
| 2505 |
public function getEnabled() |
| 2506 |
{ |
| 2507 |
return $this->enabled; |
| 2508 |
} |
| 2509 |
} |
| 2510 |
|
| 2511 |
class Google_Service_Storage_BucketWebsite extends Google_Model |
| 2512 |
{ |
| 2513 |
protected $internal_gapi_mappings = array( |
| 2514 |
); |
| 2515 |
public $mainPageSuffix; |
| 2516 |
public $notFoundPage; |
| 2517 |
|
| 2518 |
|
| 2519 |
public function setMainPageSuffix($mainPageSuffix) |
| 2520 |
{ |
| 2521 |
$this->mainPageSuffix = $mainPageSuffix; |
| 2522 |
} |
| 2523 |
public function getMainPageSuffix() |
| 2524 |
{ |
| 2525 |
return $this->mainPageSuffix; |
| 2526 |
} |
| 2527 |
public function setNotFoundPage($notFoundPage) |
| 2528 |
{ |
| 2529 |
$this->notFoundPage = $notFoundPage; |
| 2530 |
} |
| 2531 |
public function getNotFoundPage() |
| 2532 |
{ |
| 2533 |
return $this->notFoundPage; |
| 2534 |
} |
| 2535 |
} |
| 2536 |
|
| 2537 |
class Google_Service_Storage_Buckets extends Google_Collection |
| 2538 |
{ |
| 2539 |
protected $collection_key = 'items'; |
| 2540 |
protected $internal_gapi_mappings = array( |
| 2541 |
); |
| 2542 |
protected $itemsType = 'Google_Service_Storage_Bucket'; |
| 2543 |
protected $itemsDataType = 'array'; |
| 2544 |
public $kind; |
| 2545 |
public $nextPageToken; |
| 2546 |
|
| 2547 |
|
| 2548 |
public function setItems($items) |
| 2549 |
{ |
| 2550 |
$this->items = $items; |
| 2551 |
} |
| 2552 |
public function getItems() |
| 2553 |
{ |
| 2554 |
return $this->items; |
| 2555 |
} |
| 2556 |
public function setKind($kind) |
| 2557 |
{ |
| 2558 |
$this->kind = $kind; |
| 2559 |
} |
| 2560 |
public function getKind() |
| 2561 |
{ |
| 2562 |
return $this->kind; |
| 2563 |
} |
| 2564 |
public function setNextPageToken($nextPageToken) |
| 2565 |
{ |
| 2566 |
$this->nextPageToken = $nextPageToken; |
| 2567 |
} |
| 2568 |
public function getNextPageToken() |
| 2569 |
{ |
| 2570 |
return $this->nextPageToken; |
| 2571 |
} |
| 2572 |
} |
| 2573 |
|
| 2574 |
class Google_Service_Storage_Channel extends Google_Model |
| 2575 |
{ |
| 2576 |
protected $internal_gapi_mappings = array( |
| 2577 |
); |
| 2578 |
public $address; |
| 2579 |
public $expiration; |
| 2580 |
public $id; |
| 2581 |
public $kind; |
| 2582 |
public $params; |
| 2583 |
public $payload; |
| 2584 |
public $resourceId; |
| 2585 |
public $resourceUri; |
| 2586 |
public $token; |
| 2587 |
public $type; |
| 2588 |
|
| 2589 |
|
| 2590 |
public function setAddress($address) |
| 2591 |
{ |
| 2592 |
$this->address = $address; |
| 2593 |
} |
| 2594 |
public function getAddress() |
| 2595 |
{ |
| 2596 |
return $this->address; |
| 2597 |
} |
| 2598 |
public function setExpiration($expiration) |
| 2599 |
{ |
| 2600 |
$this->expiration = $expiration; |
| 2601 |
} |
| 2602 |
public function getExpiration() |
| 2603 |
{ |
| 2604 |
return $this->expiration; |
| 2605 |
} |
| 2606 |
public function setId($id) |
| 2607 |
{ |
| 2608 |
$this->id = $id; |
| 2609 |
} |
| 2610 |
public function getId() |
| 2611 |
{ |
| 2612 |
return $this->id; |
| 2613 |
} |
| 2614 |
public function setKind($kind) |
| 2615 |
{ |
| 2616 |
$this->kind = $kind; |
| 2617 |
} |
| 2618 |
public function getKind() |
| 2619 |
{ |
| 2620 |
return $this->kind; |
| 2621 |
} |
| 2622 |
public function setParams($params) |
| 2623 |
{ |
| 2624 |
$this->params = $params; |
| 2625 |
} |
| 2626 |
public function getParams() |
| 2627 |
{ |
| 2628 |
return $this->params; |
| 2629 |
} |
| 2630 |
public function setPayload($payload) |
| 2631 |
{ |
| 2632 |
$this->payload = $payload; |
| 2633 |
} |
| 2634 |
public function getPayload() |
| 2635 |
{ |
| 2636 |
return $this->payload; |
| 2637 |
} |
| 2638 |
public function setResourceId($resourceId) |
| 2639 |
{ |
| 2640 |
$this->resourceId = $resourceId; |
| 2641 |
} |
| 2642 |
public function getResourceId() |
| 2643 |
{ |
| 2644 |
return $this->resourceId; |
| 2645 |
} |
| 2646 |
public function setResourceUri($resourceUri) |
| 2647 |
{ |
| 2648 |
$this->resourceUri = $resourceUri; |
| 2649 |
} |
| 2650 |
public function getResourceUri() |
| 2651 |
{ |
| 2652 |
return $this->resourceUri; |
| 2653 |
} |
| 2654 |
public function setToken($token) |
| 2655 |
{ |
| 2656 |
$this->token = $token; |
| 2657 |
} |
| 2658 |
public function getToken() |
| 2659 |
{ |
| 2660 |
return $this->token; |
| 2661 |
} |
| 2662 |
public function setType($type) |
| 2663 |
{ |
| 2664 |
$this->type = $type; |
| 2665 |
} |
| 2666 |
public function getType() |
| 2667 |
{ |
| 2668 |
return $this->type; |
| 2669 |
} |
| 2670 |
} |
| 2671 |
|
| 2672 |
class Google_Service_Storage_ChannelParams extends Google_Model |
| 2673 |
{ |
| 2674 |
} |
| 2675 |
|
| 2676 |
class Google_Service_Storage_ComposeRequest extends Google_Collection |
| 2677 |
{ |
| 2678 |
protected $collection_key = 'sourceObjects'; |
| 2679 |
protected $internal_gapi_mappings = array( |
| 2680 |
); |
| 2681 |
protected $destinationType = 'Google_Service_Storage_StorageObject'; |
| 2682 |
protected $destinationDataType = ''; |
| 2683 |
public $kind; |
| 2684 |
protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects'; |
| 2685 |
protected $sourceObjectsDataType = 'array'; |
| 2686 |
|
| 2687 |
|
| 2688 |
public function setDestination(Google_Service_Storage_StorageObject $destination) |
| 2689 |
{ |
| 2690 |
$this->destination = $destination; |
| 2691 |
} |
| 2692 |
public function getDestination() |
| 2693 |
{ |
| 2694 |
return $this->destination; |
| 2695 |
} |
| 2696 |
public function setKind($kind) |
| 2697 |
{ |
| 2698 |
$this->kind = $kind; |
| 2699 |
} |
| 2700 |
public function getKind() |
| 2701 |
{ |
| 2702 |
return $this->kind; |
| 2703 |
} |
| 2704 |
public function setSourceObjects($sourceObjects) |
| 2705 |
{ |
| 2706 |
$this->sourceObjects = $sourceObjects; |
| 2707 |
} |
| 2708 |
public function getSourceObjects() |
| 2709 |
{ |
| 2710 |
return $this->sourceObjects; |
| 2711 |
} |
| 2712 |
} |
| 2713 |
|
| 2714 |
class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model |
| 2715 |
{ |
| 2716 |
protected $internal_gapi_mappings = array( |
| 2717 |
); |
| 2718 |
public $generation; |
| 2719 |
public $name; |
| 2720 |
protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions'; |
| 2721 |
protected $objectPreconditionsDataType = ''; |
| 2722 |
|
| 2723 |
|
| 2724 |
public function setGeneration($generation) |
| 2725 |
{ |
| 2726 |
$this->generation = $generation; |
| 2727 |
} |
| 2728 |
public function getGeneration() |
| 2729 |
{ |
| 2730 |
return $this->generation; |
| 2731 |
} |
| 2732 |
public function setName($name) |
| 2733 |
{ |
| 2734 |
$this->name = $name; |
| 2735 |
} |
| 2736 |
public function getName() |
| 2737 |
{ |
| 2738 |
return $this->name; |
| 2739 |
} |
| 2740 |
public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions) |
| 2741 |
{ |
| 2742 |
$this->objectPreconditions = $objectPreconditions; |
| 2743 |
} |
| 2744 |
public function getObjectPreconditions() |
| 2745 |
{ |
| 2746 |
return $this->objectPreconditions; |
| 2747 |
} |
| 2748 |
} |
| 2749 |
|
| 2750 |
class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model |
| 2751 |
{ |
| 2752 |
protected $internal_gapi_mappings = array( |
| 2753 |
); |
| 2754 |
public $ifGenerationMatch; |
| 2755 |
|
| 2756 |
|
| 2757 |
public function setIfGenerationMatch($ifGenerationMatch) |
| 2758 |
{ |
| 2759 |
$this->ifGenerationMatch = $ifGenerationMatch; |
| 2760 |
} |
| 2761 |
public function getIfGenerationMatch() |
| 2762 |
{ |
| 2763 |
return $this->ifGenerationMatch; |
| 2764 |
} |
| 2765 |
} |
| 2766 |
|
| 2767 |
class Google_Service_Storage_ObjectAccessControl extends Google_Model |
| 2768 |
{ |
| 2769 |
protected $internal_gapi_mappings = array( |
| 2770 |
); |
| 2771 |
public $bucket; |
| 2772 |
public $domain; |
| 2773 |
public $email; |
| 2774 |
public $entity; |
| 2775 |
public $entityId; |
| 2776 |
public $etag; |
| 2777 |
public $generation; |
| 2778 |
public $id; |
| 2779 |
public $kind; |
| 2780 |
public $object; |
| 2781 |
protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam'; |
| 2782 |
protected $projectTeamDataType = ''; |
| 2783 |
public $role; |
| 2784 |
public $selfLink; |
| 2785 |
|
| 2786 |
|
| 2787 |
public function setBucket($bucket) |
| 2788 |
{ |
| 2789 |
$this->bucket = $bucket; |
| 2790 |
} |
| 2791 |
public function getBucket() |
| 2792 |
{ |
| 2793 |
return $this->bucket; |
| 2794 |
} |
| 2795 |
public function setDomain($domain) |
| 2796 |
{ |
| 2797 |
$this->domain = $domain; |
| 2798 |
} |
| 2799 |
public function getDomain() |
| 2800 |
{ |
| 2801 |
return $this->domain; |
| 2802 |
} |
| 2803 |
public function setEmail($email) |
| 2804 |
{ |
| 2805 |
$this->email = $email; |
| 2806 |
} |
| 2807 |
public function getEmail() |
| 2808 |
{ |
| 2809 |
return $this->email; |
| 2810 |
} |
| 2811 |
public function setEntity($entity) |
| 2812 |
{ |
| 2813 |
$this->entity = $entity; |
| 2814 |
} |
| 2815 |
public function getEntity() |
| 2816 |
{ |
| 2817 |
return $this->entity; |
| 2818 |
} |
| 2819 |
public function setEntityId($entityId) |
| 2820 |
{ |
| 2821 |
$this->entityId = $entityId; |
| 2822 |
} |
| 2823 |
public function getEntityId() |
| 2824 |
{ |
| 2825 |
return $this->entityId; |
| 2826 |
} |
| 2827 |
public function setEtag($etag) |
| 2828 |
{ |
| 2829 |
$this->etag = $etag; |
| 2830 |
} |
| 2831 |
public function getEtag() |
| 2832 |
{ |
| 2833 |
return $this->etag; |
| 2834 |
} |
| 2835 |
public function setGeneration($generation) |
| 2836 |
{ |
| 2837 |
$this->generation = $generation; |
| 2838 |
} |
| 2839 |
public function getGeneration() |
| 2840 |
{ |
| 2841 |
return $this->generation; |
| 2842 |
} |
| 2843 |
public function setId($id) |
| 2844 |
{ |
| 2845 |
$this->id = $id; |
| 2846 |
} |
| 2847 |
public function getId() |
| 2848 |
{ |
| 2849 |
return $this->id; |
| 2850 |
} |
| 2851 |
public function setKind($kind) |
| 2852 |
{ |
| 2853 |
$this->kind = $kind; |
| 2854 |
} |
| 2855 |
public function getKind() |
| 2856 |
{ |
| 2857 |
return $this->kind; |
| 2858 |
} |
| 2859 |
public function setObject($object) |
| 2860 |
{ |
| 2861 |
$this->object = $object; |
| 2862 |
} |
| 2863 |
public function getObject() |
| 2864 |
{ |
| 2865 |
return $this->object; |
| 2866 |
} |
| 2867 |
public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam) |
| 2868 |
{ |
| 2869 |
$this->projectTeam = $projectTeam; |
| 2870 |
} |
| 2871 |
public function getProjectTeam() |
| 2872 |
{ |
| 2873 |
return $this->projectTeam; |
| 2874 |
} |
| 2875 |
public function setRole($role) |
| 2876 |
{ |
| 2877 |
$this->role = $role; |
| 2878 |
} |
| 2879 |
public function getRole() |
| 2880 |
{ |
| 2881 |
return $this->role; |
| 2882 |
} |
| 2883 |
public function setSelfLink($selfLink) |
| 2884 |
{ |
| 2885 |
$this->selfLink = $selfLink; |
| 2886 |
} |
| 2887 |
public function getSelfLink() |
| 2888 |
{ |
| 2889 |
return $this->selfLink; |
| 2890 |
} |
| 2891 |
} |
| 2892 |
|
| 2893 |
class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model |
| 2894 |
{ |
| 2895 |
protected $internal_gapi_mappings = array( |
| 2896 |
); |
| 2897 |
public $projectNumber; |
| 2898 |
public $team; |
| 2899 |
|
| 2900 |
|
| 2901 |
public function setProjectNumber($projectNumber) |
| 2902 |
{ |
| 2903 |
$this->projectNumber = $projectNumber; |
| 2904 |
} |
| 2905 |
public function getProjectNumber() |
| 2906 |
{ |
| 2907 |
return $this->projectNumber; |
| 2908 |
} |
| 2909 |
public function setTeam($team) |
| 2910 |
{ |
| 2911 |
$this->team = $team; |
| 2912 |
} |
| 2913 |
public function getTeam() |
| 2914 |
{ |
| 2915 |
return $this->team; |
| 2916 |
} |
| 2917 |
} |
| 2918 |
|
| 2919 |
class Google_Service_Storage_ObjectAccessControls extends Google_Collection |
| 2920 |
{ |
| 2921 |
protected $collection_key = 'items'; |
| 2922 |
protected $internal_gapi_mappings = array( |
| 2923 |
); |
| 2924 |
public $items; |
| 2925 |
public $kind; |
| 2926 |
|
| 2927 |
|
| 2928 |
public function setItems($items) |
| 2929 |
{ |
| 2930 |
$this->items = $items; |
| 2931 |
} |
| 2932 |
public function getItems() |
| 2933 |
{ |
| 2934 |
return $this->items; |
| 2935 |
} |
| 2936 |
public function setKind($kind) |
| 2937 |
{ |
| 2938 |
$this->kind = $kind; |
| 2939 |
} |
| 2940 |
public function getKind() |
| 2941 |
{ |
| 2942 |
return $this->kind; |
| 2943 |
} |
| 2944 |
} |
| 2945 |
|
| 2946 |
class Google_Service_Storage_Objects extends Google_Collection |
| 2947 |
{ |
| 2948 |
protected $collection_key = 'prefixes'; |
| 2949 |
protected $internal_gapi_mappings = array( |
| 2950 |
); |
| 2951 |
protected $itemsType = 'Google_Service_Storage_StorageObject'; |
| 2952 |
protected $itemsDataType = 'array'; |
| 2953 |
public $kind; |
| 2954 |
public $nextPageToken; |
| 2955 |
public $prefixes; |
| 2956 |
|
| 2957 |
|
| 2958 |
public function setItems($items) |
| 2959 |
{ |
| 2960 |
$this->items = $items; |
| 2961 |
} |
| 2962 |
public function getItems() |
| 2963 |
{ |
| 2964 |
return $this->items; |
| 2965 |
} |
| 2966 |
public function setKind($kind) |
| 2967 |
{ |
| 2968 |
$this->kind = $kind; |
| 2969 |
} |
| 2970 |
public function getKind() |
| 2971 |
{ |
| 2972 |
return $this->kind; |
| 2973 |
} |
| 2974 |
public function setNextPageToken($nextPageToken) |
| 2975 |
{ |
| 2976 |
$this->nextPageToken = $nextPageToken; |
| 2977 |
} |
| 2978 |
public function getNextPageToken() |
| 2979 |
{ |
| 2980 |
return $this->nextPageToken; |
| 2981 |
} |
| 2982 |
public function setPrefixes($prefixes) |
| 2983 |
{ |
| 2984 |
$this->prefixes = $prefixes; |
| 2985 |
} |
| 2986 |
public function getPrefixes() |
| 2987 |
{ |
| 2988 |
return $this->prefixes; |
| 2989 |
} |
| 2990 |
} |
| 2991 |
|
| 2992 |
class Google_Service_Storage_RewriteResponse extends Google_Model |
| 2993 |
{ |
| 2994 |
protected $internal_gapi_mappings = array( |
| 2995 |
); |
| 2996 |
public $done; |
| 2997 |
public $kind; |
| 2998 |
public $objectSize; |
| 2999 |
protected $resourceType = 'Google_Service_Storage_StorageObject'; |
| 3000 |
protected $resourceDataType = ''; |
| 3001 |
public $rewriteToken; |
| 3002 |
public $totalBytesRewritten; |
| 3003 |
|
| 3004 |
|
| 3005 |
public function setDone($done) |
| 3006 |
{ |
| 3007 |
$this->done = $done; |
| 3008 |
} |
| 3009 |
public function getDone() |
| 3010 |
{ |
| 3011 |
return $this->done; |
| 3012 |
} |
| 3013 |
public function setKind($kind) |
| 3014 |
{ |
| 3015 |
$this->kind = $kind; |
| 3016 |
} |
| 3017 |
public function getKind() |
| 3018 |
{ |
| 3019 |
return $this->kind; |
| 3020 |
} |
| 3021 |
public function setObjectSize($objectSize) |
| 3022 |
{ |
| 3023 |
$this->objectSize = $objectSize; |
| 3024 |
} |
| 3025 |
public function getObjectSize() |
| 3026 |
{ |
| 3027 |
return $this->objectSize; |
| 3028 |
} |
| 3029 |
public function setResource(Google_Service_Storage_StorageObject $resource) |
| 3030 |
{ |
| 3031 |
$this->resource = $resource; |
| 3032 |
} |
| 3033 |
public function getResource() |
| 3034 |
{ |
| 3035 |
return $this->resource; |
| 3036 |
} |
| 3037 |
public function setRewriteToken($rewriteToken) |
| 3038 |
{ |
| 3039 |
$this->rewriteToken = $rewriteToken; |
| 3040 |
} |
| 3041 |
public function getRewriteToken() |
| 3042 |
{ |
| 3043 |
return $this->rewriteToken; |
| 3044 |
} |
| 3045 |
public function setTotalBytesRewritten($totalBytesRewritten) |
| 3046 |
{ |
| 3047 |
$this->totalBytesRewritten = $totalBytesRewritten; |
| 3048 |
} |
| 3049 |
public function getTotalBytesRewritten() |
| 3050 |
{ |
| 3051 |
return $this->totalBytesRewritten; |
| 3052 |
} |
| 3053 |
} |
| 3054 |
|
| 3055 |
class Google_Service_Storage_StorageObject extends Google_Collection |
| 3056 |
{ |
| 3057 |
protected $collection_key = 'acl'; |
| 3058 |
protected $internal_gapi_mappings = array( |
| 3059 |
); |
| 3060 |
protected $aclType = 'Google_Service_Storage_ObjectAccessControl'; |
| 3061 |
protected $aclDataType = 'array'; |
| 3062 |
public $bucket; |
| 3063 |
public $cacheControl; |
| 3064 |
public $componentCount; |
| 3065 |
public $contentDisposition; |
| 3066 |
public $contentEncoding; |
| 3067 |
public $contentLanguage; |
| 3068 |
public $contentType; |
| 3069 |
public $crc32c; |
| 3070 |
public $etag; |
| 3071 |
public $generation; |
| 3072 |
public $id; |
| 3073 |
public $kind; |
| 3074 |
public $md5Hash; |
| 3075 |
public $mediaLink; |
| 3076 |
public $metadata; |
| 3077 |
public $metageneration; |
| 3078 |
public $name; |
| 3079 |
protected $ownerType = 'Google_Service_Storage_StorageObjectOwner'; |
| 3080 |
protected $ownerDataType = ''; |
| 3081 |
public $selfLink; |
| 3082 |
public $size; |
| 3083 |
public $storageClass; |
| 3084 |
public $timeDeleted; |
| 3085 |
public $updated; |
| 3086 |
|
| 3087 |
|
| 3088 |
public function setAcl($acl) |
| 3089 |
{ |
| 3090 |
$this->acl = $acl; |
| 3091 |
} |
| 3092 |
public function getAcl() |
| 3093 |
{ |
| 3094 |
return $this->acl; |
| 3095 |
} |
| 3096 |
public function setBucket($bucket) |
| 3097 |
{ |
| 3098 |
$this->bucket = $bucket; |
| 3099 |
} |
| 3100 |
public function getBucket() |
| 3101 |
{ |
| 3102 |
return $this->bucket; |
| 3103 |
} |
| 3104 |
public function setCacheControl($cacheControl) |
| 3105 |
{ |
| 3106 |
$this->cacheControl = $cacheControl; |
| 3107 |
} |
| 3108 |
public function getCacheControl() |
| 3109 |
{ |
| 3110 |
return $this->cacheControl; |
| 3111 |
} |
| 3112 |
public function setComponentCount($componentCount) |
| 3113 |
{ |
| 3114 |
$this->componentCount = $componentCount; |
| 3115 |
} |
| 3116 |
public function getComponentCount() |
| 3117 |
{ |
| 3118 |
return $this->componentCount; |
| 3119 |
} |
| 3120 |
public function setContentDisposition($contentDisposition) |
| 3121 |
{ |
| 3122 |
$this->contentDisposition = $contentDisposition; |
| 3123 |
} |
| 3124 |
public function getContentDisposition() |
| 3125 |
{ |
| 3126 |
return $this->contentDisposition; |
| 3127 |
} |
| 3128 |
public function setContentEncoding($contentEncoding) |
| 3129 |
{ |
| 3130 |
$this->contentEncoding = $contentEncoding; |
| 3131 |
} |
| 3132 |
public function getContentEncoding() |
| 3133 |
{ |
| 3134 |
return $this->contentEncoding; |
| 3135 |
} |
| 3136 |
public function setContentLanguage($contentLanguage) |
| 3137 |
{ |
| 3138 |
$this->contentLanguage = $contentLanguage; |
| 3139 |
} |
| 3140 |
public function getContentLanguage() |
| 3141 |
{ |
| 3142 |
return $this->contentLanguage; |
| 3143 |
} |
| 3144 |
public function setContentType($contentType) |
| 3145 |
{ |
| 3146 |
$this->contentType = $contentType; |
| 3147 |
} |
| 3148 |
public function getContentType() |
| 3149 |
{ |
| 3150 |
return $this->contentType; |
| 3151 |
} |
| 3152 |
public function setCrc32c($crc32c) |
| 3153 |
{ |
| 3154 |
$this->crc32c = $crc32c; |
| 3155 |
} |
| 3156 |
public function getCrc32c() |
| 3157 |
{ |
| 3158 |
return $this->crc32c; |
| 3159 |
} |
| 3160 |
public function setEtag($etag) |
| 3161 |
{ |
| 3162 |
$this->etag = $etag; |
| 3163 |
} |
| 3164 |
public function getEtag() |
| 3165 |
{ |
| 3166 |
return $this->etag; |
| 3167 |
} |
| 3168 |
public function setGeneration($generation) |
| 3169 |
{ |
| 3170 |
$this->generation = $generation; |
| 3171 |
} |
| 3172 |
public function getGeneration() |
| 3173 |
{ |
| 3174 |
return $this->generation; |
| 3175 |
} |
| 3176 |
public function setId($id) |
| 3177 |
{ |
| 3178 |
$this->id = $id; |
| 3179 |
} |
| 3180 |
public function getId() |
| 3181 |
{ |
| 3182 |
return $this->id; |
| 3183 |
} |
| 3184 |
public function setKind($kind) |
| 3185 |
{ |
| 3186 |
$this->kind = $kind; |
| 3187 |
} |
| 3188 |
public function getKind() |
| 3189 |
{ |
| 3190 |
return $this->kind; |
| 3191 |
} |
| 3192 |
public function setMd5Hash($md5Hash) |
| 3193 |
{ |
| 3194 |
$this->md5Hash = $md5Hash; |
| 3195 |
} |
| 3196 |
public function getMd5Hash() |
| 3197 |
{ |
| 3198 |
return $this->md5Hash; |
| 3199 |
} |
| 3200 |
public function setMediaLink($mediaLink) |
| 3201 |
{ |
| 3202 |
$this->mediaLink = $mediaLink; |
| 3203 |
} |
| 3204 |
public function getMediaLink() |
| 3205 |
{ |
| 3206 |
return $this->mediaLink; |
| 3207 |
} |
| 3208 |
public function setMetadata($metadata) |
| 3209 |
{ |
| 3210 |
$this->metadata = $metadata; |
| 3211 |
} |
| 3212 |
public function getMetadata() |
| 3213 |
{ |
| 3214 |
return $this->metadata; |
| 3215 |
} |
| 3216 |
public function setMetageneration($metageneration) |
| 3217 |
{ |
| 3218 |
$this->metageneration = $metageneration; |
| 3219 |
} |
| 3220 |
public function getMetageneration() |
| 3221 |
{ |
| 3222 |
return $this->metageneration; |
| 3223 |
} |
| 3224 |
public function setName($name) |
| 3225 |
{ |
| 3226 |
$this->name = $name; |
| 3227 |
} |
| 3228 |
public function getName() |
| 3229 |
{ |
| 3230 |
return $this->name; |
| 3231 |
} |
| 3232 |
public function setOwner(Google_Service_Storage_StorageObjectOwner $owner) |
| 3233 |
{ |
| 3234 |
$this->owner = $owner; |
| 3235 |
} |
| 3236 |
public function getOwner() |
| 3237 |
{ |
| 3238 |
return $this->owner; |
| 3239 |
} |
| 3240 |
public function setSelfLink($selfLink) |
| 3241 |
{ |
| 3242 |
$this->selfLink = $selfLink; |
| 3243 |
} |
| 3244 |
public function getSelfLink() |
| 3245 |
{ |
| 3246 |
return $this->selfLink; |
| 3247 |
} |
| 3248 |
public function setSize($size) |
| 3249 |
{ |
| 3250 |
$this->size = $size; |
| 3251 |
} |
| 3252 |
public function getSize() |
| 3253 |
{ |
| 3254 |
return $this->size; |
| 3255 |
} |
| 3256 |
public function setStorageClass($storageClass) |
| 3257 |
{ |
| 3258 |
$this->storageClass = $storageClass; |
| 3259 |
} |
| 3260 |
public function getStorageClass() |
| 3261 |
{ |
| 3262 |
return $this->storageClass; |
| 3263 |
} |
| 3264 |
public function setTimeDeleted($timeDeleted) |
| 3265 |
{ |
| 3266 |
$this->timeDeleted = $timeDeleted; |
| 3267 |
} |
| 3268 |
public function getTimeDeleted() |
| 3269 |
{ |
| 3270 |
return $this->timeDeleted; |
| 3271 |
} |
| 3272 |
public function setUpdated($updated) |
| 3273 |
{ |
| 3274 |
$this->updated = $updated; |
| 3275 |
} |
| 3276 |
public function getUpdated() |
| 3277 |
{ |
| 3278 |
return $this->updated; |
| 3279 |
} |
| 3280 |
} |
| 3281 |
|
| 3282 |
class Google_Service_Storage_StorageObjectMetadata extends Google_Model |
| 3283 |
{ |
| 3284 |
} |
| 3285 |
|
| 3286 |
class Google_Service_Storage_StorageObjectOwner extends Google_Model |
| 3287 |
{ |
| 3288 |
protected $internal_gapi_mappings = array( |
| 3289 |
); |
| 3290 |
public $entity; |
| 3291 |
public $entityId; |
| 3292 |
|
| 3293 |
|
| 3294 |
public function setEntity($entity) |
| 3295 |
{ |
| 3296 |
$this->entity = $entity; |
| 3297 |
} |
| 3298 |
public function getEntity() |
| 3299 |
{ |
| 3300 |
return $this->entity; |
| 3301 |
} |
| 3302 |
public function setEntityId($entityId) |
| 3303 |
{ |
| 3304 |
$this->entityId = $entityId; |
| 3305 |
} |
| 3306 |
public function getEntityId() |
| 3307 |
{ |
| 3308 |
return $this->entityId; |
| 3309 |
} |
| 3310 |
} |
| 3311 |
|