Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/updraftp.../includes/Google/Service
File: Storage.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright 2010 Google Inc.
[2] Fix | Delete
*
[3] Fix | Delete
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
[4] Fix | Delete
* use this file except in compliance with the License. You may obtain a copy of
[5] Fix | Delete
* the License at
[6] Fix | Delete
*
[7] Fix | Delete
* http://www.apache.org/licenses/LICENSE-2.0
[8] Fix | Delete
*
[9] Fix | Delete
* Unless required by applicable law or agreed to in writing, software
[10] Fix | Delete
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
[11] Fix | Delete
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
[12] Fix | Delete
* License for the specific language governing permissions and limitations under
[13] Fix | Delete
* the License.
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Service definition for Storage (v1).
[18] Fix | Delete
*
[19] Fix | Delete
* <p>
[20] Fix | Delete
* Lets you store and retrieve potentially-large, immutable data objects.</p>
[21] Fix | Delete
*
[22] Fix | Delete
* <p>
[23] Fix | Delete
* For more information about this service, see the API
[24] Fix | Delete
* <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
[25] Fix | Delete
* </p>
[26] Fix | Delete
*
[27] Fix | Delete
* @author Google, Inc.
[28] Fix | Delete
*/
[29] Fix | Delete
class UDP_Google_Service_Storage extends UDP_Google_Service
[30] Fix | Delete
{
[31] Fix | Delete
/** View and manage your data across Google Cloud Platform services. */
[32] Fix | Delete
const CLOUD_PLATFORM =
[33] Fix | Delete
"https://www.googleapis.com/auth/cloud-platform";
[34] Fix | Delete
/** Manage your data and permissions in Google Cloud Storage. */
[35] Fix | Delete
const DEVSTORAGE_FULL_CONTROL =
[36] Fix | Delete
"https://www.googleapis.com/auth/devstorage.full_control";
[37] Fix | Delete
/** View your data in Google Cloud Storage. */
[38] Fix | Delete
const DEVSTORAGE_READ_ONLY =
[39] Fix | Delete
"https://www.googleapis.com/auth/devstorage.read_only";
[40] Fix | Delete
/** Manage your data in Google Cloud Storage. */
[41] Fix | Delete
const DEVSTORAGE_READ_WRITE =
[42] Fix | Delete
"https://www.googleapis.com/auth/devstorage.read_write";
[43] Fix | Delete
[44] Fix | Delete
public $bucketAccessControls;
[45] Fix | Delete
public $buckets;
[46] Fix | Delete
public $channels;
[47] Fix | Delete
public $defaultObjectAccessControls;
[48] Fix | Delete
public $objectAccessControls;
[49] Fix | Delete
public $objects;
[50] Fix | Delete
[51] Fix | Delete
[52] Fix | Delete
/**
[53] Fix | Delete
* Constructs the internal representation of the Storage service.
[54] Fix | Delete
*
[55] Fix | Delete
* @param UDP_Google_Client $client
[56] Fix | Delete
*/
[57] Fix | Delete
public function __construct(UDP_Google_Client $client)
[58] Fix | Delete
{
[59] Fix | Delete
parent::__construct($client);
[60] Fix | Delete
$this->servicePath = 'storage/v1/';
[61] Fix | Delete
$this->version = 'v1';
[62] Fix | Delete
$this->serviceName = 'storage';
[63] Fix | Delete
[64] Fix | Delete
$this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource(
[65] Fix | Delete
$this,
[66] Fix | Delete
$this->serviceName,
[67] Fix | Delete
'bucketAccessControls',
[68] Fix | Delete
array(
[69] Fix | Delete
'methods' => array(
[70] Fix | Delete
'delete' => array(
[71] Fix | Delete
'path' => 'b/{bucket}/acl/{entity}',
[72] Fix | Delete
'httpMethod' => 'DELETE',
[73] Fix | Delete
'parameters' => array(
[74] Fix | Delete
'bucket' => array(
[75] Fix | Delete
'location' => 'path',
[76] Fix | Delete
'type' => 'string',
[77] Fix | Delete
'required' => true,
[78] Fix | Delete
),
[79] Fix | Delete
'entity' => array(
[80] Fix | Delete
'location' => 'path',
[81] Fix | Delete
'type' => 'string',
[82] Fix | Delete
'required' => true,
[83] Fix | Delete
),
[84] Fix | Delete
),
[85] Fix | Delete
),'get' => array(
[86] Fix | Delete
'path' => 'b/{bucket}/acl/{entity}',
[87] Fix | Delete
'httpMethod' => 'GET',
[88] Fix | Delete
'parameters' => array(
[89] Fix | Delete
'bucket' => array(
[90] Fix | Delete
'location' => 'path',
[91] Fix | Delete
'type' => 'string',
[92] Fix | Delete
'required' => true,
[93] Fix | Delete
),
[94] Fix | Delete
'entity' => array(
[95] Fix | Delete
'location' => 'path',
[96] Fix | Delete
'type' => 'string',
[97] Fix | Delete
'required' => true,
[98] Fix | Delete
),
[99] Fix | Delete
),
[100] Fix | Delete
),'insert' => array(
[101] Fix | Delete
'path' => 'b/{bucket}/acl',
[102] Fix | Delete
'httpMethod' => 'POST',
[103] Fix | Delete
'parameters' => array(
[104] Fix | Delete
'bucket' => array(
[105] Fix | Delete
'location' => 'path',
[106] Fix | Delete
'type' => 'string',
[107] Fix | Delete
'required' => true,
[108] Fix | Delete
),
[109] Fix | Delete
),
[110] Fix | Delete
),'list' => array(
[111] Fix | Delete
'path' => 'b/{bucket}/acl',
[112] Fix | Delete
'httpMethod' => 'GET',
[113] Fix | Delete
'parameters' => array(
[114] Fix | Delete
'bucket' => array(
[115] Fix | Delete
'location' => 'path',
[116] Fix | Delete
'type' => 'string',
[117] Fix | Delete
'required' => true,
[118] Fix | Delete
),
[119] Fix | Delete
),
[120] Fix | Delete
),'patch' => array(
[121] Fix | Delete
'path' => 'b/{bucket}/acl/{entity}',
[122] Fix | Delete
'httpMethod' => 'PATCH',
[123] Fix | Delete
'parameters' => array(
[124] Fix | Delete
'bucket' => array(
[125] Fix | Delete
'location' => 'path',
[126] Fix | Delete
'type' => 'string',
[127] Fix | Delete
'required' => true,
[128] Fix | Delete
),
[129] Fix | Delete
'entity' => array(
[130] Fix | Delete
'location' => 'path',
[131] Fix | Delete
'type' => 'string',
[132] Fix | Delete
'required' => true,
[133] Fix | Delete
),
[134] Fix | Delete
),
[135] Fix | Delete
),'update' => array(
[136] Fix | Delete
'path' => 'b/{bucket}/acl/{entity}',
[137] Fix | Delete
'httpMethod' => 'PUT',
[138] Fix | Delete
'parameters' => array(
[139] Fix | Delete
'bucket' => array(
[140] Fix | Delete
'location' => 'path',
[141] Fix | Delete
'type' => 'string',
[142] Fix | Delete
'required' => true,
[143] Fix | Delete
),
[144] Fix | Delete
'entity' => array(
[145] Fix | Delete
'location' => 'path',
[146] Fix | Delete
'type' => 'string',
[147] Fix | Delete
'required' => true,
[148] Fix | Delete
),
[149] Fix | Delete
),
[150] Fix | Delete
),
[151] Fix | Delete
)
[152] Fix | Delete
)
[153] Fix | Delete
);
[154] Fix | Delete
$this->buckets = new Google_Service_Storage_Buckets_Resource(
[155] Fix | Delete
$this,
[156] Fix | Delete
$this->serviceName,
[157] Fix | Delete
'buckets',
[158] Fix | Delete
array(
[159] Fix | Delete
'methods' => array(
[160] Fix | Delete
'delete' => array(
[161] Fix | Delete
'path' => 'b/{bucket}',
[162] Fix | Delete
'httpMethod' => 'DELETE',
[163] Fix | Delete
'parameters' => array(
[164] Fix | Delete
'bucket' => array(
[165] Fix | Delete
'location' => 'path',
[166] Fix | Delete
'type' => 'string',
[167] Fix | Delete
'required' => true,
[168] Fix | Delete
),
[169] Fix | Delete
'ifMetagenerationMatch' => array(
[170] Fix | Delete
'location' => 'query',
[171] Fix | Delete
'type' => 'string',
[172] Fix | Delete
),
[173] Fix | Delete
'ifMetagenerationNotMatch' => array(
[174] Fix | Delete
'location' => 'query',
[175] Fix | Delete
'type' => 'string',
[176] Fix | Delete
),
[177] Fix | Delete
),
[178] Fix | Delete
),'get' => array(
[179] Fix | Delete
'path' => 'b/{bucket}',
[180] Fix | Delete
'httpMethod' => 'GET',
[181] Fix | Delete
'parameters' => array(
[182] Fix | Delete
'bucket' => array(
[183] Fix | Delete
'location' => 'path',
[184] Fix | Delete
'type' => 'string',
[185] Fix | Delete
'required' => true,
[186] Fix | Delete
),
[187] Fix | Delete
'ifMetagenerationMatch' => array(
[188] Fix | Delete
'location' => 'query',
[189] Fix | Delete
'type' => 'string',
[190] Fix | Delete
),
[191] Fix | Delete
'ifMetagenerationNotMatch' => array(
[192] Fix | Delete
'location' => 'query',
[193] Fix | Delete
'type' => 'string',
[194] Fix | Delete
),
[195] Fix | Delete
'projection' => array(
[196] Fix | Delete
'location' => 'query',
[197] Fix | Delete
'type' => 'string',
[198] Fix | Delete
),
[199] Fix | Delete
),
[200] Fix | Delete
),'insert' => array(
[201] Fix | Delete
'path' => 'b',
[202] Fix | Delete
'httpMethod' => 'POST',
[203] Fix | Delete
'parameters' => array(
[204] Fix | Delete
'project' => array(
[205] Fix | Delete
'location' => 'query',
[206] Fix | Delete
'type' => 'string',
[207] Fix | Delete
'required' => true,
[208] Fix | Delete
),
[209] Fix | Delete
'predefinedAcl' => array(
[210] Fix | Delete
'location' => 'query',
[211] Fix | Delete
'type' => 'string',
[212] Fix | Delete
),
[213] Fix | Delete
'projection' => array(
[214] Fix | Delete
'location' => 'query',
[215] Fix | Delete
'type' => 'string',
[216] Fix | Delete
),
[217] Fix | Delete
'predefinedDefaultObjectAcl' => array(
[218] Fix | Delete
'location' => 'query',
[219] Fix | Delete
'type' => 'string',
[220] Fix | Delete
),
[221] Fix | Delete
),
[222] Fix | Delete
),'list' => array(
[223] Fix | Delete
'path' => 'b',
[224] Fix | Delete
'httpMethod' => 'GET',
[225] Fix | Delete
'parameters' => array(
[226] Fix | Delete
'project' => array(
[227] Fix | Delete
'location' => 'query',
[228] Fix | Delete
'type' => 'string',
[229] Fix | Delete
'required' => true,
[230] Fix | Delete
),
[231] Fix | Delete
'pageToken' => array(
[232] Fix | Delete
'location' => 'query',
[233] Fix | Delete
'type' => 'string',
[234] Fix | Delete
),
[235] Fix | Delete
'prefix' => array(
[236] Fix | Delete
'location' => 'query',
[237] Fix | Delete
'type' => 'string',
[238] Fix | Delete
),
[239] Fix | Delete
'projection' => array(
[240] Fix | Delete
'location' => 'query',
[241] Fix | Delete
'type' => 'string',
[242] Fix | Delete
),
[243] Fix | Delete
'maxResults' => array(
[244] Fix | Delete
'location' => 'query',
[245] Fix | Delete
'type' => 'integer',
[246] Fix | Delete
),
[247] Fix | Delete
),
[248] Fix | Delete
),'patch' => array(
[249] Fix | Delete
'path' => 'b/{bucket}',
[250] Fix | Delete
'httpMethod' => 'PATCH',
[251] Fix | Delete
'parameters' => array(
[252] Fix | Delete
'bucket' => array(
[253] Fix | Delete
'location' => 'path',
[254] Fix | Delete
'type' => 'string',
[255] Fix | Delete
'required' => true,
[256] Fix | Delete
),
[257] Fix | Delete
'projection' => array(
[258] Fix | Delete
'location' => 'query',
[259] Fix | Delete
'type' => 'string',
[260] Fix | Delete
),
[261] Fix | Delete
'ifMetagenerationMatch' => array(
[262] Fix | Delete
'location' => 'query',
[263] Fix | Delete
'type' => 'string',
[264] Fix | Delete
),
[265] Fix | Delete
'predefinedDefaultObjectAcl' => array(
[266] Fix | Delete
'location' => 'query',
[267] Fix | Delete
'type' => 'string',
[268] Fix | Delete
),
[269] Fix | Delete
'predefinedAcl' => array(
[270] Fix | Delete
'location' => 'query',
[271] Fix | Delete
'type' => 'string',
[272] Fix | Delete
),
[273] Fix | Delete
'ifMetagenerationNotMatch' => array(
[274] Fix | Delete
'location' => 'query',
[275] Fix | Delete
'type' => 'string',
[276] Fix | Delete
),
[277] Fix | Delete
),
[278] Fix | Delete
),'update' => array(
[279] Fix | Delete
'path' => 'b/{bucket}',
[280] Fix | Delete
'httpMethod' => 'PUT',
[281] Fix | Delete
'parameters' => array(
[282] Fix | Delete
'bucket' => array(
[283] Fix | Delete
'location' => 'path',
[284] Fix | Delete
'type' => 'string',
[285] Fix | Delete
'required' => true,
[286] Fix | Delete
),
[287] Fix | Delete
'projection' => array(
[288] Fix | Delete
'location' => 'query',
[289] Fix | Delete
'type' => 'string',
[290] Fix | Delete
),
[291] Fix | Delete
'ifMetagenerationMatch' => array(
[292] Fix | Delete
'location' => 'query',
[293] Fix | Delete
'type' => 'string',
[294] Fix | Delete
),
[295] Fix | Delete
'predefinedDefaultObjectAcl' => array(
[296] Fix | Delete
'location' => 'query',
[297] Fix | Delete
'type' => 'string',
[298] Fix | Delete
),
[299] Fix | Delete
'predefinedAcl' => array(
[300] Fix | Delete
'location' => 'query',
[301] Fix | Delete
'type' => 'string',
[302] Fix | Delete
),
[303] Fix | Delete
'ifMetagenerationNotMatch' => array(
[304] Fix | Delete
'location' => 'query',
[305] Fix | Delete
'type' => 'string',
[306] Fix | Delete
),
[307] Fix | Delete
),
[308] Fix | Delete
),
[309] Fix | Delete
)
[310] Fix | Delete
)
[311] Fix | Delete
);
[312] Fix | Delete
$this->channels = new Google_Service_Storage_Channels_Resource(
[313] Fix | Delete
$this,
[314] Fix | Delete
$this->serviceName,
[315] Fix | Delete
'channels',
[316] Fix | Delete
array(
[317] Fix | Delete
'methods' => array(
[318] Fix | Delete
'stop' => array(
[319] Fix | Delete
'path' => 'channels/stop',
[320] Fix | Delete
'httpMethod' => 'POST',
[321] Fix | Delete
'parameters' => array(),
[322] Fix | Delete
),
[323] Fix | Delete
)
[324] Fix | Delete
)
[325] Fix | Delete
);
[326] Fix | Delete
$this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource(
[327] Fix | Delete
$this,
[328] Fix | Delete
$this->serviceName,
[329] Fix | Delete
'defaultObjectAccessControls',
[330] Fix | Delete
array(
[331] Fix | Delete
'methods' => array(
[332] Fix | Delete
'delete' => array(
[333] Fix | Delete
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
[334] Fix | Delete
'httpMethod' => 'DELETE',
[335] Fix | Delete
'parameters' => array(
[336] Fix | Delete
'bucket' => array(
[337] Fix | Delete
'location' => 'path',
[338] Fix | Delete
'type' => 'string',
[339] Fix | Delete
'required' => true,
[340] Fix | Delete
),
[341] Fix | Delete
'entity' => array(
[342] Fix | Delete
'location' => 'path',
[343] Fix | Delete
'type' => 'string',
[344] Fix | Delete
'required' => true,
[345] Fix | Delete
),
[346] Fix | Delete
),
[347] Fix | Delete
),'get' => array(
[348] Fix | Delete
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
[349] Fix | Delete
'httpMethod' => 'GET',
[350] Fix | Delete
'parameters' => array(
[351] Fix | Delete
'bucket' => array(
[352] Fix | Delete
'location' => 'path',
[353] Fix | Delete
'type' => 'string',
[354] Fix | Delete
'required' => true,
[355] Fix | Delete
),
[356] Fix | Delete
'entity' => array(
[357] Fix | Delete
'location' => 'path',
[358] Fix | Delete
'type' => 'string',
[359] Fix | Delete
'required' => true,
[360] Fix | Delete
),
[361] Fix | Delete
),
[362] Fix | Delete
),'insert' => array(
[363] Fix | Delete
'path' => 'b/{bucket}/defaultObjectAcl',
[364] Fix | Delete
'httpMethod' => 'POST',
[365] Fix | Delete
'parameters' => array(
[366] Fix | Delete
'bucket' => array(
[367] Fix | Delete
'location' => 'path',
[368] Fix | Delete
'type' => 'string',
[369] Fix | Delete
'required' => true,
[370] Fix | Delete
),
[371] Fix | Delete
),
[372] Fix | Delete
),'list' => array(
[373] Fix | Delete
'path' => 'b/{bucket}/defaultObjectAcl',
[374] Fix | Delete
'httpMethod' => 'GET',
[375] Fix | Delete
'parameters' => array(
[376] Fix | Delete
'bucket' => array(
[377] Fix | Delete
'location' => 'path',
[378] Fix | Delete
'type' => 'string',
[379] Fix | Delete
'required' => true,
[380] Fix | Delete
),
[381] Fix | Delete
'ifMetagenerationMatch' => array(
[382] Fix | Delete
'location' => 'query',
[383] Fix | Delete
'type' => 'string',
[384] Fix | Delete
),
[385] Fix | Delete
'ifMetagenerationNotMatch' => array(
[386] Fix | Delete
'location' => 'query',
[387] Fix | Delete
'type' => 'string',
[388] Fix | Delete
),
[389] Fix | Delete
),
[390] Fix | Delete
),'patch' => array(
[391] Fix | Delete
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
[392] Fix | Delete
'httpMethod' => 'PATCH',
[393] Fix | Delete
'parameters' => array(
[394] Fix | Delete
'bucket' => array(
[395] Fix | Delete
'location' => 'path',
[396] Fix | Delete
'type' => 'string',
[397] Fix | Delete
'required' => true,
[398] Fix | Delete
),
[399] Fix | Delete
'entity' => array(
[400] Fix | Delete
'location' => 'path',
[401] Fix | Delete
'type' => 'string',
[402] Fix | Delete
'required' => true,
[403] Fix | Delete
),
[404] Fix | Delete
),
[405] Fix | Delete
),'update' => array(
[406] Fix | Delete
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
[407] Fix | Delete
'httpMethod' => 'PUT',
[408] Fix | Delete
'parameters' => array(
[409] Fix | Delete
'bucket' => array(
[410] Fix | Delete
'location' => 'path',
[411] Fix | Delete
'type' => 'string',
[412] Fix | Delete
'required' => true,
[413] Fix | Delete
),
[414] Fix | Delete
'entity' => array(
[415] Fix | Delete
'location' => 'path',
[416] Fix | Delete
'type' => 'string',
[417] Fix | Delete
'required' => true,
[418] Fix | Delete
),
[419] Fix | Delete
),
[420] Fix | Delete
),
[421] Fix | Delete
)
[422] Fix | Delete
)
[423] Fix | Delete
);
[424] Fix | Delete
$this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource(
[425] Fix | Delete
$this,
[426] Fix | Delete
$this->serviceName,
[427] Fix | Delete
'objectAccessControls',
[428] Fix | Delete
array(
[429] Fix | Delete
'methods' => array(
[430] Fix | Delete
'delete' => array(
[431] Fix | Delete
'path' => 'b/{bucket}/o/{object}/acl/{entity}',
[432] Fix | Delete
'httpMethod' => 'DELETE',
[433] Fix | Delete
'parameters' => array(
[434] Fix | Delete
'bucket' => array(
[435] Fix | Delete
'location' => 'path',
[436] Fix | Delete
'type' => 'string',
[437] Fix | Delete
'required' => true,
[438] Fix | Delete
),
[439] Fix | Delete
'object' => array(
[440] Fix | Delete
'location' => 'path',
[441] Fix | Delete
'type' => 'string',
[442] Fix | Delete
'required' => true,
[443] Fix | Delete
),
[444] Fix | Delete
'entity' => array(
[445] Fix | Delete
'location' => 'path',
[446] Fix | Delete
'type' => 'string',
[447] Fix | Delete
'required' => true,
[448] Fix | Delete
),
[449] Fix | Delete
'generation' => array(
[450] Fix | Delete
'location' => 'query',
[451] Fix | Delete
'type' => 'string',
[452] Fix | Delete
),
[453] Fix | Delete
),
[454] Fix | Delete
),'get' => array(
[455] Fix | Delete
'path' => 'b/{bucket}/o/{object}/acl/{entity}',
[456] Fix | Delete
'httpMethod' => 'GET',
[457] Fix | Delete
'parameters' => array(
[458] Fix | Delete
'bucket' => array(
[459] Fix | Delete
'location' => 'path',
[460] Fix | Delete
'type' => 'string',
[461] Fix | Delete
'required' => true,
[462] Fix | Delete
),
[463] Fix | Delete
'object' => array(
[464] Fix | Delete
'location' => 'path',
[465] Fix | Delete
'type' => 'string',
[466] Fix | Delete
'required' => true,
[467] Fix | Delete
),
[468] Fix | Delete
'entity' => array(
[469] Fix | Delete
'location' => 'path',
[470] Fix | Delete
'type' => 'string',
[471] Fix | Delete
'required' => true,
[472] Fix | Delete
),
[473] Fix | Delete
'generation' => array(
[474] Fix | Delete
'location' => 'query',
[475] Fix | Delete
'type' => 'string',
[476] Fix | Delete
),
[477] Fix | Delete
),
[478] Fix | Delete
),'insert' => array(
[479] Fix | Delete
'path' => 'b/{bucket}/o/{object}/acl',
[480] Fix | Delete
'httpMethod' => 'POST',
[481] Fix | Delete
'parameters' => array(
[482] Fix | Delete
'bucket' => array(
[483] Fix | Delete
'location' => 'path',
[484] Fix | Delete
'type' => 'string',
[485] Fix | Delete
'required' => true,
[486] Fix | Delete
),
[487] Fix | Delete
'object' => array(
[488] Fix | Delete
'location' => 'path',
[489] Fix | Delete
'type' => 'string',
[490] Fix | Delete
'required' => true,
[491] Fix | Delete
),
[492] Fix | Delete
'generation' => array(
[493] Fix | Delete
'location' => 'query',
[494] Fix | Delete
'type' => 'string',
[495] Fix | Delete
),
[496] Fix | Delete
),
[497] Fix | Delete
),'list' => array(
[498] Fix | Delete
'path' => 'b/{bucket}/o/{object}/acl',
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function