1<?php 2/* 3 * Copyright 2014 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 Storagetransfer (v1). 20 * 21 * <p> 22 * Transfers data from external data sources to a Google Cloud Storage bucket or 23 * between Google Cloud Storage buckets.</p> 24 * 25 * <p> 26 * For more information about this service, see the API 27 * <a href="https://cloud.google.com/storage-transfer/docs" target="_blank">Documentation</a> 28 * </p> 29 * 30 * @author Google, Inc. 31 */ 32class Google_Service_Storagetransfer extends Google_Service 33{ 34 /** View and manage your data across Google Cloud Platform services. */ 35 const CLOUD_PLATFORM = 36 "https://www.googleapis.com/auth/cloud-platform"; 37 38 public $googleServiceAccounts; 39 public $transferJobs; 40 public $transferOperations; 41 42 /** 43 * Constructs the internal representation of the Storagetransfer service. 44 * 45 * @param Google_Client $client 46 */ 47 public function __construct(Google_Client $client) 48 { 49 parent::__construct($client); 50 $this->rootUrl = 'https://storagetransfer.googleapis.com/'; 51 $this->servicePath = ''; 52 $this->batchPath = 'batch'; 53 $this->version = 'v1'; 54 $this->serviceName = 'storagetransfer'; 55 56 $this->googleServiceAccounts = new Google_Service_Storagetransfer_Resource_GoogleServiceAccounts( 57 $this, 58 $this->serviceName, 59 'googleServiceAccounts', 60 array( 61 'methods' => array( 62 'get' => array( 63 'path' => 'v1/googleServiceAccounts/{projectId}', 64 'httpMethod' => 'GET', 65 'parameters' => array( 66 'projectId' => array( 67 'location' => 'path', 68 'type' => 'string', 69 'required' => true, 70 ), 71 ), 72 ), 73 ) 74 ) 75 ); 76 $this->transferJobs = new Google_Service_Storagetransfer_Resource_TransferJobs( 77 $this, 78 $this->serviceName, 79 'transferJobs', 80 array( 81 'methods' => array( 82 'create' => array( 83 'path' => 'v1/transferJobs', 84 'httpMethod' => 'POST', 85 'parameters' => array(), 86 ),'get' => array( 87 'path' => 'v1/{+jobName}', 88 'httpMethod' => 'GET', 89 'parameters' => array( 90 'jobName' => array( 91 'location' => 'path', 92 'type' => 'string', 93 'required' => true, 94 ), 95 'projectId' => array( 96 'location' => 'query', 97 'type' => 'string', 98 ), 99 ), 100 ),'list' => array( 101 'path' => 'v1/transferJobs', 102 'httpMethod' => 'GET', 103 'parameters' => array( 104 'pageSize' => array( 105 'location' => 'query', 106 'type' => 'integer', 107 ), 108 'filter' => array( 109 'location' => 'query', 110 'type' => 'string', 111 ), 112 'pageToken' => array( 113 'location' => 'query', 114 'type' => 'string', 115 ), 116 ), 117 ),'patch' => array( 118 'path' => 'v1/{+jobName}', 119 'httpMethod' => 'PATCH', 120 'parameters' => array( 121 'jobName' => array( 122 'location' => 'path', 123 'type' => 'string', 124 'required' => true, 125 ), 126 ), 127 ), 128 ) 129 ) 130 ); 131 $this->transferOperations = new Google_Service_Storagetransfer_Resource_TransferOperations( 132 $this, 133 $this->serviceName, 134 'transferOperations', 135 array( 136 'methods' => array( 137 'cancel' => array( 138 'path' => 'v1/{+name}:cancel', 139 'httpMethod' => 'POST', 140 'parameters' => array( 141 'name' => array( 142 'location' => 'path', 143 'type' => 'string', 144 'required' => true, 145 ), 146 ), 147 ),'delete' => array( 148 'path' => 'v1/{+name}', 149 'httpMethod' => 'DELETE', 150 'parameters' => array( 151 'name' => array( 152 'location' => 'path', 153 'type' => 'string', 154 'required' => true, 155 ), 156 ), 157 ),'get' => array( 158 'path' => 'v1/{+name}', 159 'httpMethod' => 'GET', 160 'parameters' => array( 161 'name' => array( 162 'location' => 'path', 163 'type' => 'string', 164 'required' => true, 165 ), 166 ), 167 ),'list' => array( 168 'path' => 'v1/{+name}', 169 'httpMethod' => 'GET', 170 'parameters' => array( 171 'name' => array( 172 'location' => 'path', 173 'type' => 'string', 174 'required' => true, 175 ), 176 'filter' => array( 177 'location' => 'query', 178 'type' => 'string', 179 ), 180 'pageToken' => array( 181 'location' => 'query', 182 'type' => 'string', 183 ), 184 'pageSize' => array( 185 'location' => 'query', 186 'type' => 'integer', 187 ), 188 ), 189 ),'pause' => array( 190 'path' => 'v1/{+name}:pause', 191 'httpMethod' => 'POST', 192 'parameters' => array( 193 'name' => array( 194 'location' => 'path', 195 'type' => 'string', 196 'required' => true, 197 ), 198 ), 199 ),'resume' => array( 200 'path' => 'v1/{+name}:resume', 201 'httpMethod' => 'POST', 202 'parameters' => array( 203 'name' => array( 204 'location' => 'path', 205 'type' => 'string', 206 'required' => true, 207 ), 208 ), 209 ), 210 ) 211 ) 212 ); 213 } 214} 215