| 1 |
<?php |
| 2 |
/* |
| 3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 |
* use this file except in compliance with the License. You may obtain a copy of |
| 5 |
* the License at |
| 6 |
* |
| 7 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
* |
| 9 |
* Unless required by applicable law or agreed to in writing, software |
| 10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
* License for the specific language governing permissions and limitations under |
| 13 |
* the License. |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Service definition for Replicapool (v1beta2). |
| 18 |
* |
| 19 |
* <p> |
| 20 |
* The Google Compute Engine Instance Group Manager API provides groups of |
| 21 |
* homogenous Compute Engine Instances.</p> |
| 22 |
* |
| 23 |
* <p> |
| 24 |
* For more information about this service, see the API |
| 25 |
* <a href="https://developers.google.com/compute/docs/instance-groups/manager/v1beta2" target="_blank">Documentation</a> |
| 26 |
* </p> |
| 27 |
* |
| 28 |
* @author Google, Inc. |
| 29 |
*/ |
| 30 |
class Google_Service_Replicapool extends Google_Service |
| 31 |
{ |
| 32 |
/** View and manage your data across Google Cloud Platform services. */ |
| 33 |
const CLOUD_PLATFORM = |
| 34 |
"https://www.googleapis.com/auth/cloud-platform"; |
| 35 |
/** View your data across Google Cloud Platform services. */ |
| 36 |
const CLOUD_PLATFORM_READ_ONLY = |
| 37 |
"https://www.googleapis.com/auth/cloud-platform.read-only"; |
| 38 |
/** View and manage your Google Compute Engine resources. */ |
| 39 |
const COMPUTE = |
| 40 |
"https://www.googleapis.com/auth/compute"; |
| 41 |
/** View your Google Compute Engine resources. */ |
| 42 |
const COMPUTE_READONLY = |
| 43 |
"https://www.googleapis.com/auth/compute.readonly"; |
| 44 |
|
| 45 |
public $instanceGroupManagers; |
| 46 |
public $zoneOperations; |
| 47 |
|
| 48 |
|
| 49 |
/** |
| 50 |
* Constructs the internal representation of the Replicapool service. |
| 51 |
* |
| 52 |
* @param Google_Client $client |
| 53 |
*/ |
| 54 |
public function __construct(Google_Client $client) |
| 55 |
{ |
| 56 |
parent::__construct($client); |
| 57 |
$this->rootUrl = 'https://www.googleapis.com/'; |
| 58 |
$this->servicePath = 'replicapool/v1beta2/projects/'; |
| 59 |
$this->version = 'v1beta2'; |
| 60 |
$this->serviceName = 'replicapool'; |
| 61 |
|
| 62 |
$this->instanceGroupManagers = new Google_Service_Replicapool_InstanceGroupManagers_Resource( |
| 63 |
$this, |
| 64 |
$this->serviceName, |
| 65 |
'instanceGroupManagers', |
| 66 |
array( |
| 67 |
'methods' => array( |
| 68 |
'abandonInstances' => array( |
| 69 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', |
| 70 |
'httpMethod' => 'POST', |
| 71 |
'parameters' => array( |
| 72 |
'project' => array( |
| 73 |
'location' => 'path', |
| 74 |
'type' => 'string', |
| 75 |
'required' => true, |
| 76 |
), |
| 77 |
'zone' => array( |
| 78 |
'location' => 'path', |
| 79 |
'type' => 'string', |
| 80 |
'required' => true, |
| 81 |
), |
| 82 |
'instanceGroupManager' => array( |
| 83 |
'location' => 'path', |
| 84 |
'type' => 'string', |
| 85 |
'required' => true, |
| 86 |
), |
| 87 |
), |
| 88 |
),'delete' => array( |
| 89 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', |
| 90 |
'httpMethod' => 'DELETE', |
| 91 |
'parameters' => array( |
| 92 |
'project' => array( |
| 93 |
'location' => 'path', |
| 94 |
'type' => 'string', |
| 95 |
'required' => true, |
| 96 |
), |
| 97 |
'zone' => array( |
| 98 |
'location' => 'path', |
| 99 |
'type' => 'string', |
| 100 |
'required' => true, |
| 101 |
), |
| 102 |
'instanceGroupManager' => array( |
| 103 |
'location' => 'path', |
| 104 |
'type' => 'string', |
| 105 |
'required' => true, |
| 106 |
), |
| 107 |
), |
| 108 |
),'deleteInstances' => array( |
| 109 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', |
| 110 |
'httpMethod' => 'POST', |
| 111 |
'parameters' => array( |
| 112 |
'project' => array( |
| 113 |
'location' => 'path', |
| 114 |
'type' => 'string', |
| 115 |
'required' => true, |
| 116 |
), |
| 117 |
'zone' => array( |
| 118 |
'location' => 'path', |
| 119 |
'type' => 'string', |
| 120 |
'required' => true, |
| 121 |
), |
| 122 |
'instanceGroupManager' => array( |
| 123 |
'location' => 'path', |
| 124 |
'type' => 'string', |
| 125 |
'required' => true, |
| 126 |
), |
| 127 |
), |
| 128 |
),'get' => array( |
| 129 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', |
| 130 |
'httpMethod' => 'GET', |
| 131 |
'parameters' => array( |
| 132 |
'project' => array( |
| 133 |
'location' => 'path', |
| 134 |
'type' => 'string', |
| 135 |
'required' => true, |
| 136 |
), |
| 137 |
'zone' => array( |
| 138 |
'location' => 'path', |
| 139 |
'type' => 'string', |
| 140 |
'required' => true, |
| 141 |
), |
| 142 |
'instanceGroupManager' => array( |
| 143 |
'location' => 'path', |
| 144 |
'type' => 'string', |
| 145 |
'required' => true, |
| 146 |
), |
| 147 |
), |
| 148 |
),'insert' => array( |
| 149 |
'path' => '{project}/zones/{zone}/instanceGroupManagers', |
| 150 |
'httpMethod' => 'POST', |
| 151 |
'parameters' => array( |
| 152 |
'project' => array( |
| 153 |
'location' => 'path', |
| 154 |
'type' => 'string', |
| 155 |
'required' => true, |
| 156 |
), |
| 157 |
'zone' => array( |
| 158 |
'location' => 'path', |
| 159 |
'type' => 'string', |
| 160 |
'required' => true, |
| 161 |
), |
| 162 |
'size' => array( |
| 163 |
'location' => 'query', |
| 164 |
'type' => 'integer', |
| 165 |
'required' => true, |
| 166 |
), |
| 167 |
), |
| 168 |
),'list' => array( |
| 169 |
'path' => '{project}/zones/{zone}/instanceGroupManagers', |
| 170 |
'httpMethod' => 'GET', |
| 171 |
'parameters' => array( |
| 172 |
'project' => array( |
| 173 |
'location' => 'path', |
| 174 |
'type' => 'string', |
| 175 |
'required' => true, |
| 176 |
), |
| 177 |
'zone' => array( |
| 178 |
'location' => 'path', |
| 179 |
'type' => 'string', |
| 180 |
'required' => true, |
| 181 |
), |
| 182 |
'filter' => array( |
| 183 |
'location' => 'query', |
| 184 |
'type' => 'string', |
| 185 |
), |
| 186 |
'maxResults' => array( |
| 187 |
'location' => 'query', |
| 188 |
'type' => 'integer', |
| 189 |
), |
| 190 |
'pageToken' => array( |
| 191 |
'location' => 'query', |
| 192 |
'type' => 'string', |
| 193 |
), |
| 194 |
), |
| 195 |
),'recreateInstances' => array( |
| 196 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', |
| 197 |
'httpMethod' => 'POST', |
| 198 |
'parameters' => array( |
| 199 |
'project' => array( |
| 200 |
'location' => 'path', |
| 201 |
'type' => 'string', |
| 202 |
'required' => true, |
| 203 |
), |
| 204 |
'zone' => array( |
| 205 |
'location' => 'path', |
| 206 |
'type' => 'string', |
| 207 |
'required' => true, |
| 208 |
), |
| 209 |
'instanceGroupManager' => array( |
| 210 |
'location' => 'path', |
| 211 |
'type' => 'string', |
| 212 |
'required' => true, |
| 213 |
), |
| 214 |
), |
| 215 |
),'resize' => array( |
| 216 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', |
| 217 |
'httpMethod' => 'POST', |
| 218 |
'parameters' => array( |
| 219 |
'project' => array( |
| 220 |
'location' => 'path', |
| 221 |
'type' => 'string', |
| 222 |
'required' => true, |
| 223 |
), |
| 224 |
'zone' => array( |
| 225 |
'location' => 'path', |
| 226 |
'type' => 'string', |
| 227 |
'required' => true, |
| 228 |
), |
| 229 |
'instanceGroupManager' => array( |
| 230 |
'location' => 'path', |
| 231 |
'type' => 'string', |
| 232 |
'required' => true, |
| 233 |
), |
| 234 |
'size' => array( |
| 235 |
'location' => 'query', |
| 236 |
'type' => 'integer', |
| 237 |
'required' => true, |
| 238 |
), |
| 239 |
), |
| 240 |
),'setInstanceTemplate' => array( |
| 241 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', |
| 242 |
'httpMethod' => 'POST', |
| 243 |
'parameters' => array( |
| 244 |
'project' => array( |
| 245 |
'location' => 'path', |
| 246 |
'type' => 'string', |
| 247 |
'required' => true, |
| 248 |
), |
| 249 |
'zone' => array( |
| 250 |
'location' => 'path', |
| 251 |
'type' => 'string', |
| 252 |
'required' => true, |
| 253 |
), |
| 254 |
'instanceGroupManager' => array( |
| 255 |
'location' => 'path', |
| 256 |
'type' => 'string', |
| 257 |
'required' => true, |
| 258 |
), |
| 259 |
), |
| 260 |
),'setTargetPools' => array( |
| 261 |
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', |
| 262 |
'httpMethod' => 'POST', |
| 263 |
'parameters' => array( |
| 264 |
'project' => array( |
| 265 |
'location' => 'path', |
| 266 |
'type' => 'string', |
| 267 |
'required' => true, |
| 268 |
), |
| 269 |
'zone' => array( |
| 270 |
'location' => 'path', |
| 271 |
'type' => 'string', |
| 272 |
'required' => true, |
| 273 |
), |
| 274 |
'instanceGroupManager' => array( |
| 275 |
'location' => 'path', |
| 276 |
'type' => 'string', |
| 277 |
'required' => true, |
| 278 |
), |
| 279 |
), |
| 280 |
), |
| 281 |
) |
| 282 |
) |
| 283 |
); |
| 284 |
$this->zoneOperations = new Google_Service_Replicapool_ZoneOperations_Resource( |
| 285 |
$this, |
| 286 |
$this->serviceName, |
| 287 |
'zoneOperations', |
| 288 |
array( |
| 289 |
'methods' => array( |
| 290 |
'get' => array( |
| 291 |
'path' => '{project}/zones/{zone}/operations/{operation}', |
| 292 |
'httpMethod' => 'GET', |
| 293 |
'parameters' => array( |
| 294 |
'project' => array( |
| 295 |
'location' => 'path', |
| 296 |
'type' => 'string', |
| 297 |
'required' => true, |
| 298 |
), |
| 299 |
'zone' => array( |
| 300 |
'location' => 'path', |
| 301 |
'type' => 'string', |
| 302 |
'required' => true, |
| 303 |
), |
| 304 |
'operation' => array( |
| 305 |
'location' => 'path', |
| 306 |
'type' => 'string', |
| 307 |
'required' => true, |
| 308 |
), |
| 309 |
), |
| 310 |
),'list' => array( |
| 311 |
'path' => '{project}/zones/{zone}/operations', |
| 312 |
'httpMethod' => 'GET', |
| 313 |
'parameters' => array( |
| 314 |
'project' => array( |
| 315 |
'location' => 'path', |
| 316 |
'type' => 'string', |
| 317 |
'required' => true, |
| 318 |
), |
| 319 |
'zone' => array( |
| 320 |
'location' => 'path', |
| 321 |
'type' => 'string', |
| 322 |
'required' => true, |
| 323 |
), |
| 324 |
'filter' => array( |
| 325 |
'location' => 'query', |
| 326 |
'type' => 'string', |
| 327 |
), |
| 328 |
'maxResults' => array( |
| 329 |
'location' => 'query', |
| 330 |
'type' => 'integer', |
| 331 |
), |
| 332 |
'pageToken' => array( |
| 333 |
'location' => 'query', |
| 334 |
'type' => 'string', |
| 335 |
), |
| 336 |
), |
| 337 |
), |
| 338 |
) |
| 339 |
) |
| 340 |
); |
| 341 |
} |
| 342 |
} |
| 343 |
|
| 344 |
|
| 345 |
/** |
| 346 |
* The "instanceGroupManagers" collection of methods. |
| 347 |
* Typical usage is: |
| 348 |
* <code> |
| 349 |
* $replicapoolService = new Google_Service_Replicapool(...); |
| 350 |
* $instanceGroupManagers = $replicapoolService->instanceGroupManagers; |
| 351 |
* </code> |
| 352 |
*/ |
| 353 |
class Google_Service_Replicapool_InstanceGroupManagers_Resource extends Google_Service_Resource |
| 354 |
{ |
| 355 |
|
| 356 |
/** |
| 357 |
* Removes the specified instances from the managed instance group, and from any |
| 358 |
* target pools of which they were members, without deleting the instances. |
| 359 |
* (instanceGroupManagers.abandonInstances) |
| 360 |
* |
| 361 |
* @param string $project The Google Developers Console project name. |
| 362 |
* @param string $zone The name of the zone in which the instance group manager |
| 363 |
* resides. |
| 364 |
* @param string $instanceGroupManager The name of the instance group manager. |
| 365 |
* @param Google_InstanceGroupManagersAbandonInstancesRequest $postBody |
| 366 |
* @param array $optParams Optional parameters. |
| 367 |
* @return Google_Service_Replicapool_Operation |
| 368 |
*/ |
| 369 |
public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array()) |
| 370 |
{ |
| 371 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); |
| 372 |
$params = array_merge($params, $optParams); |
| 373 |
return $this->call('abandonInstances', array($params), "Google_Service_Replicapool_Operation"); |
| 374 |
} |
| 375 |
|
| 376 |
/** |
| 377 |
* Deletes the instance group manager and all instances contained within. If |
| 378 |
* you'd like to delete the manager without deleting the instances, you must |
| 379 |
* first abandon the instances to remove them from the group. |
| 380 |
* (instanceGroupManagers.delete) |
| 381 |
* |
| 382 |
* @param string $project The Google Developers Console project name. |
| 383 |
* @param string $zone The name of the zone in which the instance group manager |
| 384 |
* resides. |
| 385 |
* @param string $instanceGroupManager Name of the Instance Group Manager |
| 386 |
* resource to delete. |
| 387 |
* @param array $optParams Optional parameters. |
| 388 |
* @return Google_Service_Replicapool_Operation |
| 389 |
*/ |
| 390 |
public function delete($project, $zone, $instanceGroupManager, $optParams = array()) |
| 391 |
{ |
| 392 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); |
| 393 |
$params = array_merge($params, $optParams); |
| 394 |
return $this->call('delete', array($params), "Google_Service_Replicapool_Operation"); |
| 395 |
} |
| 396 |
|
| 397 |
/** |
| 398 |
* Deletes the specified instances. The instances are deleted, then removed from |
| 399 |
* the instance group and any target pools of which they were a member. The |
| 400 |
* targetSize of the instance group manager is reduced by the number of |
| 401 |
* instances deleted. (instanceGroupManagers.deleteInstances) |
| 402 |
* |
| 403 |
* @param string $project The Google Developers Console project name. |
| 404 |
* @param string $zone The name of the zone in which the instance group manager |
| 405 |
* resides. |
| 406 |
* @param string $instanceGroupManager The name of the instance group manager. |
| 407 |
* @param Google_InstanceGroupManagersDeleteInstancesRequest $postBody |
| 408 |
* @param array $optParams Optional parameters. |
| 409 |
* @return Google_Service_Replicapool_Operation |
| 410 |
*/ |
| 411 |
public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array()) |
| 412 |
{ |
| 413 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); |
| 414 |
$params = array_merge($params, $optParams); |
| 415 |
return $this->call('deleteInstances', array($params), "Google_Service_Replicapool_Operation"); |
| 416 |
} |
| 417 |
|
| 418 |
/** |
| 419 |
* Returns the specified Instance Group Manager resource. |
| 420 |
* (instanceGroupManagers.get) |
| 421 |
* |
| 422 |
* @param string $project The Google Developers Console project name. |
| 423 |
* @param string $zone The name of the zone in which the instance group manager |
| 424 |
* resides. |
| 425 |
* @param string $instanceGroupManager Name of the instance resource to return. |
| 426 |
* @param array $optParams Optional parameters. |
| 427 |
* @return Google_Service_Replicapool_InstanceGroupManager |
| 428 |
*/ |
| 429 |
public function get($project, $zone, $instanceGroupManager, $optParams = array()) |
| 430 |
{ |
| 431 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); |
| 432 |
$params = array_merge($params, $optParams); |
| 433 |
return $this->call('get', array($params), "Google_Service_Replicapool_InstanceGroupManager"); |
| 434 |
} |
| 435 |
|
| 436 |
/** |
| 437 |
* Creates an instance group manager, as well as the instance group and the |
| 438 |
* specified number of instances. (instanceGroupManagers.insert) |
| 439 |
* |
| 440 |
* @param string $project The Google Developers Console project name. |
| 441 |
* @param string $zone The name of the zone in which the instance group manager |
| 442 |
* resides. |
| 443 |
* @param int $size Number of instances that should exist. |
| 444 |
* @param Google_InstanceGroupManager $postBody |
| 445 |
* @param array $optParams Optional parameters. |
| 446 |
* @return Google_Service_Replicapool_Operation |
| 447 |
*/ |
| 448 |
public function insert($project, $zone, $size, Google_Service_Replicapool_InstanceGroupManager $postBody, $optParams = array()) |
| 449 |
{ |
| 450 |
$params = array('project' => $project, 'zone' => $zone, 'size' => $size, 'postBody' => $postBody); |
| 451 |
$params = array_merge($params, $optParams); |
| 452 |
return $this->call('insert', array($params), "Google_Service_Replicapool_Operation"); |
| 453 |
} |
| 454 |
|
| 455 |
/** |
| 456 |
* Retrieves the list of Instance Group Manager resources contained within the |
| 457 |
* specified zone. (instanceGroupManagers.listInstanceGroupManagers) |
| 458 |
* |
| 459 |
* @param string $project The Google Developers Console project name. |
| 460 |
* @param string $zone The name of the zone in which the instance group manager |
| 461 |
* resides. |
| 462 |
* @param array $optParams Optional parameters. |
| 463 |
* |
| 464 |
* @opt_param string filter Optional. Filter expression for filtering listed |
| 465 |
* resources. |
| 466 |
* @opt_param string maxResults Optional. Maximum count of results to be |
| 467 |
* returned. Maximum value is 500 and default value is 500. |
| 468 |
* @opt_param string pageToken Optional. Tag returned by a previous list request |
| 469 |
* truncated by maxResults. Used to continue a previous list request. |
| 470 |
* @return Google_Service_Replicapool_InstanceGroupManagerList |
| 471 |
*/ |
| 472 |
public function listInstanceGroupManagers($project, $zone, $optParams = array()) |
| 473 |
{ |
| 474 |
$params = array('project' => $project, 'zone' => $zone); |
| 475 |
$params = array_merge($params, $optParams); |
| 476 |
return $this->call('list', array($params), "Google_Service_Replicapool_InstanceGroupManagerList"); |
| 477 |
} |
| 478 |
|
| 479 |
/** |
| 480 |
* Recreates the specified instances. The instances are deleted, then recreated |
| 481 |
* using the instance group manager's current instance template. |
| 482 |
* (instanceGroupManagers.recreateInstances) |
| 483 |
* |
| 484 |
* @param string $project The Google Developers Console project name. |
| 485 |
* @param string $zone The name of the zone in which the instance group manager |
| 486 |
* resides. |
| 487 |
* @param string $instanceGroupManager The name of the instance group manager. |
| 488 |
* @param Google_InstanceGroupManagersRecreateInstancesRequest $postBody |
| 489 |
* @param array $optParams Optional parameters. |
| 490 |
* @return Google_Service_Replicapool_Operation |
| 491 |
*/ |
| 492 |
public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array()) |
| 493 |
{ |
| 494 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); |
| 495 |
$params = array_merge($params, $optParams); |
| 496 |
return $this->call('recreateInstances', array($params), "Google_Service_Replicapool_Operation"); |
| 497 |
} |
| 498 |
|
| 499 |
/** |
| 500 |
* Resizes the managed instance group up or down. If resized up, new instances |
| 501 |
* are created using the current instance template. If resized down, instances |
| 502 |
* are removed in the order outlined in Resizing a managed instance group. |
| 503 |
* (instanceGroupManagers.resize) |
| 504 |
* |
| 505 |
* @param string $project The Google Developers Console project name. |
| 506 |
* @param string $zone The name of the zone in which the instance group manager |
| 507 |
* resides. |
| 508 |
* @param string $instanceGroupManager The name of the instance group manager. |
| 509 |
* @param int $size Number of instances that should exist in this Instance Group |
| 510 |
* Manager. |
| 511 |
* @param array $optParams Optional parameters. |
| 512 |
* @return Google_Service_Replicapool_Operation |
| 513 |
*/ |
| 514 |
public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array()) |
| 515 |
{ |
| 516 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size); |
| 517 |
$params = array_merge($params, $optParams); |
| 518 |
return $this->call('resize', array($params), "Google_Service_Replicapool_Operation"); |
| 519 |
} |
| 520 |
|
| 521 |
/** |
| 522 |
* Sets the instance template to use when creating new instances in this group. |
| 523 |
* Existing instances are not affected. |
| 524 |
* (instanceGroupManagers.setInstanceTemplate) |
| 525 |
* |
| 526 |
* @param string $project The Google Developers Console project name. |
| 527 |
* @param string $zone The name of the zone in which the instance group manager |
| 528 |
* resides. |
| 529 |
* @param string $instanceGroupManager The name of the instance group manager. |
| 530 |
* @param Google_InstanceGroupManagersSetInstanceTemplateRequest $postBody |
| 531 |
* @param array $optParams Optional parameters. |
| 532 |
* @return Google_Service_Replicapool_Operation |
| 533 |
*/ |
| 534 |
public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array()) |
| 535 |
{ |
| 536 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); |
| 537 |
$params = array_merge($params, $optParams); |
| 538 |
return $this->call('setInstanceTemplate', array($params), "Google_Service_Replicapool_Operation"); |
| 539 |
} |
| 540 |
|
| 541 |
/** |
| 542 |
* Modifies the target pools to which all new instances in this group are |
| 543 |
* assigned. Existing instances in the group are not affected. |
| 544 |
* (instanceGroupManagers.setTargetPools) |
| 545 |
* |
| 546 |
* @param string $project The Google Developers Console project name. |
| 547 |
* @param string $zone The name of the zone in which the instance group manager |
| 548 |
* resides. |
| 549 |
* @param string $instanceGroupManager The name of the instance group manager. |
| 550 |
* @param Google_InstanceGroupManagersSetTargetPoolsRequest $postBody |
| 551 |
* @param array $optParams Optional parameters. |
| 552 |
* @return Google_Service_Replicapool_Operation |
| 553 |
*/ |
| 554 |
public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array()) |
| 555 |
{ |
| 556 |
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); |
| 557 |
$params = array_merge($params, $optParams); |
| 558 |
return $this->call('setTargetPools', array($params), "Google_Service_Replicapool_Operation"); |
| 559 |
} |
| 560 |
} |
| 561 |
|
| 562 |
/** |
| 563 |
* The "zoneOperations" collection of methods. |
| 564 |
* Typical usage is: |
| 565 |
* <code> |
| 566 |
* $replicapoolService = new Google_Service_Replicapool(...); |
| 567 |
* $zoneOperations = $replicapoolService->zoneOperations; |
| 568 |
* </code> |
| 569 |
*/ |
| 570 |
class Google_Service_Replicapool_ZoneOperations_Resource extends Google_Service_Resource |
| 571 |
{ |
| 572 |
|
| 573 |
/** |
| 574 |
* Retrieves the specified zone-specific operation resource. |
| 575 |
* (zoneOperations.get) |
| 576 |
* |
| 577 |
* @param string $project Name of the project scoping this request. |
| 578 |
* @param string $zone Name of the zone scoping this request. |
| 579 |
* @param string $operation Name of the operation resource to return. |
| 580 |
* @param array $optParams Optional parameters. |
| 581 |
* @return Google_Service_Replicapool_Operation |
| 582 |
*/ |
| 583 |
public function get($project, $zone, $operation, $optParams = array()) |
| 584 |
{ |
| 585 |
$params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); |
| 586 |
$params = array_merge($params, $optParams); |
| 587 |
return $this->call('get', array($params), "Google_Service_Replicapool_Operation"); |
| 588 |
} |
| 589 |
|
| 590 |
/** |
| 591 |
* Retrieves the list of operation resources contained within the specified |
| 592 |
* zone. (zoneOperations.listZoneOperations) |
| 593 |
* |
| 594 |
* @param string $project Name of the project scoping this request. |
| 595 |
* @param string $zone Name of the zone scoping this request. |
| 596 |
* @param array $optParams Optional parameters. |
| 597 |
* |
| 598 |
* @opt_param string filter Optional. Filter expression for filtering listed |
| 599 |
* resources. |
| 600 |
* @opt_param string maxResults Optional. Maximum count of results to be |
| 601 |
* returned. Maximum value is 500 and default value is 500. |
| 602 |
* @opt_param string pageToken Optional. Tag returned by a previous list request |
| 603 |
* truncated by maxResults. Used to continue a previous list request. |
| 604 |
* @return Google_Service_Replicapool_OperationList |
| 605 |
*/ |
| 606 |
public function listZoneOperations($project, $zone, $optParams = array()) |
| 607 |
{ |
| 608 |
$params = array('project' => $project, 'zone' => $zone); |
| 609 |
$params = array_merge($params, $optParams); |
| 610 |
return $this->call('list', array($params), "Google_Service_Replicapool_OperationList"); |
| 611 |
} |
| 612 |
} |
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection |
| 618 |
{ |
| 619 |
protected $collection_key = 'targetPools'; |
| 620 |
protected $internal_gapi_mappings = array( |
| 621 |
); |
| 622 |
protected $autoHealingPoliciesType = 'Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy'; |
| 623 |
protected $autoHealingPoliciesDataType = 'array'; |
| 624 |
public $baseInstanceName; |
| 625 |
public $creationTimestamp; |
| 626 |
public $currentSize; |
| 627 |
public $description; |
| 628 |
public $fingerprint; |
| 629 |
public $group; |
| 630 |
public $id; |
| 631 |
public $instanceTemplate; |
| 632 |
public $kind; |
| 633 |
public $name; |
| 634 |
public $selfLink; |
| 635 |
public $targetPools; |
| 636 |
public $targetSize; |
| 637 |
|
| 638 |
|
| 639 |
public function setAutoHealingPolicies($autoHealingPolicies) |
| 640 |
{ |
| 641 |
$this->autoHealingPolicies = $autoHealingPolicies; |
| 642 |
} |
| 643 |
public function getAutoHealingPolicies() |
| 644 |
{ |
| 645 |
return $this->autoHealingPolicies; |
| 646 |
} |
| 647 |
public function setBaseInstanceName($baseInstanceName) |
| 648 |
{ |
| 649 |
$this->baseInstanceName = $baseInstanceName; |
| 650 |
} |
| 651 |
public function getBaseInstanceName() |
| 652 |
{ |
| 653 |
return $this->baseInstanceName; |
| 654 |
} |
| 655 |
public function setCreationTimestamp($creationTimestamp) |
| 656 |
{ |
| 657 |
$this->creationTimestamp = $creationTimestamp; |
| 658 |
} |
| 659 |
public function getCreationTimestamp() |
| 660 |
{ |
| 661 |
return $this->creationTimestamp; |
| 662 |
} |
| 663 |
public function setCurrentSize($currentSize) |
| 664 |
{ |
| 665 |
$this->currentSize = $currentSize; |
| 666 |
} |
| 667 |
public function getCurrentSize() |
| 668 |
{ |
| 669 |
return $this->currentSize; |
| 670 |
} |
| 671 |
public function setDescription($description) |
| 672 |
{ |
| 673 |
$this->description = $description; |
| 674 |
} |
| 675 |
public function getDescription() |
| 676 |
{ |
| 677 |
return $this->description; |
| 678 |
} |
| 679 |
public function setFingerprint($fingerprint) |
| 680 |
{ |
| 681 |
$this->fingerprint = $fingerprint; |
| 682 |
} |
| 683 |
public function getFingerprint() |
| 684 |
{ |
| 685 |
return $this->fingerprint; |
| 686 |
} |
| 687 |
public function setGroup($group) |
| 688 |
{ |
| 689 |
$this->group = $group; |
| 690 |
} |
| 691 |
public function getGroup() |
| 692 |
{ |
| 693 |
return $this->group; |
| 694 |
} |
| 695 |
public function setId($id) |
| 696 |
{ |
| 697 |
$this->id = $id; |
| 698 |
} |
| 699 |
public function getId() |
| 700 |
{ |
| 701 |
return $this->id; |
| 702 |
} |
| 703 |
public function setInstanceTemplate($instanceTemplate) |
| 704 |
{ |
| 705 |
$this->instanceTemplate = $instanceTemplate; |
| 706 |
} |
| 707 |
public function getInstanceTemplate() |
| 708 |
{ |
| 709 |
return $this->instanceTemplate; |
| 710 |
} |
| 711 |
public function setKind($kind) |
| 712 |
{ |
| 713 |
$this->kind = $kind; |
| 714 |
} |
| 715 |
public function getKind() |
| 716 |
{ |
| 717 |
return $this->kind; |
| 718 |
} |
| 719 |
public function setName($name) |
| 720 |
{ |
| 721 |
$this->name = $name; |
| 722 |
} |
| 723 |
public function getName() |
| 724 |
{ |
| 725 |
return $this->name; |
| 726 |
} |
| 727 |
public function setSelfLink($selfLink) |
| 728 |
{ |
| 729 |
$this->selfLink = $selfLink; |
| 730 |
} |
| 731 |
public function getSelfLink() |
| 732 |
{ |
| 733 |
return $this->selfLink; |
| 734 |
} |
| 735 |
public function setTargetPools($targetPools) |
| 736 |
{ |
| 737 |
$this->targetPools = $targetPools; |
| 738 |
} |
| 739 |
public function getTargetPools() |
| 740 |
{ |
| 741 |
return $this->targetPools; |
| 742 |
} |
| 743 |
public function setTargetSize($targetSize) |
| 744 |
{ |
| 745 |
$this->targetSize = $targetSize; |
| 746 |
} |
| 747 |
public function getTargetSize() |
| 748 |
{ |
| 749 |
return $this->targetSize; |
| 750 |
} |
| 751 |
} |
| 752 |
|
| 753 |
class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collection |
| 754 |
{ |
| 755 |
protected $collection_key = 'items'; |
| 756 |
protected $internal_gapi_mappings = array( |
| 757 |
); |
| 758 |
public $id; |
| 759 |
protected $itemsType = 'Google_Service_Replicapool_InstanceGroupManager'; |
| 760 |
protected $itemsDataType = 'array'; |
| 761 |
public $kind; |
| 762 |
public $nextPageToken; |
| 763 |
public $selfLink; |
| 764 |
|
| 765 |
|
| 766 |
public function setId($id) |
| 767 |
{ |
| 768 |
$this->id = $id; |
| 769 |
} |
| 770 |
public function getId() |
| 771 |
{ |
| 772 |
return $this->id; |
| 773 |
} |
| 774 |
public function setItems($items) |
| 775 |
{ |
| 776 |
$this->items = $items; |
| 777 |
} |
| 778 |
public function getItems() |
| 779 |
{ |
| 780 |
return $this->items; |
| 781 |
} |
| 782 |
public function setKind($kind) |
| 783 |
{ |
| 784 |
$this->kind = $kind; |
| 785 |
} |
| 786 |
public function getKind() |
| 787 |
{ |
| 788 |
return $this->kind; |
| 789 |
} |
| 790 |
public function setNextPageToken($nextPageToken) |
| 791 |
{ |
| 792 |
$this->nextPageToken = $nextPageToken; |
| 793 |
} |
| 794 |
public function getNextPageToken() |
| 795 |
{ |
| 796 |
return $this->nextPageToken; |
| 797 |
} |
| 798 |
public function setSelfLink($selfLink) |
| 799 |
{ |
| 800 |
$this->selfLink = $selfLink; |
| 801 |
} |
| 802 |
public function getSelfLink() |
| 803 |
{ |
| 804 |
return $this->selfLink; |
| 805 |
} |
| 806 |
} |
| 807 |
|
| 808 |
class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection |
| 809 |
{ |
| 810 |
protected $collection_key = 'instances'; |
| 811 |
protected $internal_gapi_mappings = array( |
| 812 |
); |
| 813 |
public $instances; |
| 814 |
|
| 815 |
|
| 816 |
public function setInstances($instances) |
| 817 |
{ |
| 818 |
$this->instances = $instances; |
| 819 |
} |
| 820 |
public function getInstances() |
| 821 |
{ |
| 822 |
return $this->instances; |
| 823 |
} |
| 824 |
} |
| 825 |
|
| 826 |
class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection |
| 827 |
{ |
| 828 |
protected $collection_key = 'instances'; |
| 829 |
protected $internal_gapi_mappings = array( |
| 830 |
); |
| 831 |
public $instances; |
| 832 |
|
| 833 |
|
| 834 |
public function setInstances($instances) |
| 835 |
{ |
| 836 |
$this->instances = $instances; |
| 837 |
} |
| 838 |
public function getInstances() |
| 839 |
{ |
| 840 |
return $this->instances; |
| 841 |
} |
| 842 |
} |
| 843 |
|
| 844 |
class Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection |
| 845 |
{ |
| 846 |
protected $collection_key = 'instances'; |
| 847 |
protected $internal_gapi_mappings = array( |
| 848 |
); |
| 849 |
public $instances; |
| 850 |
|
| 851 |
|
| 852 |
public function setInstances($instances) |
| 853 |
{ |
| 854 |
$this->instances = $instances; |
| 855 |
} |
| 856 |
public function getInstances() |
| 857 |
{ |
| 858 |
return $this->instances; |
| 859 |
} |
| 860 |
} |
| 861 |
|
| 862 |
class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model |
| 863 |
{ |
| 864 |
protected $internal_gapi_mappings = array( |
| 865 |
); |
| 866 |
public $instanceTemplate; |
| 867 |
|
| 868 |
|
| 869 |
public function setInstanceTemplate($instanceTemplate) |
| 870 |
{ |
| 871 |
$this->instanceTemplate = $instanceTemplate; |
| 872 |
} |
| 873 |
public function getInstanceTemplate() |
| 874 |
{ |
| 875 |
return $this->instanceTemplate; |
| 876 |
} |
| 877 |
} |
| 878 |
|
| 879 |
class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection |
| 880 |
{ |
| 881 |
protected $collection_key = 'targetPools'; |
| 882 |
protected $internal_gapi_mappings = array( |
| 883 |
); |
| 884 |
public $fingerprint; |
| 885 |
public $targetPools; |
| 886 |
|
| 887 |
|
| 888 |
public function setFingerprint($fingerprint) |
| 889 |
{ |
| 890 |
$this->fingerprint = $fingerprint; |
| 891 |
} |
| 892 |
public function getFingerprint() |
| 893 |
{ |
| 894 |
return $this->fingerprint; |
| 895 |
} |
| 896 |
public function setTargetPools($targetPools) |
| 897 |
{ |
| 898 |
$this->targetPools = $targetPools; |
| 899 |
} |
| 900 |
public function getTargetPools() |
| 901 |
{ |
| 902 |
return $this->targetPools; |
| 903 |
} |
| 904 |
} |
| 905 |
|
| 906 |
class Google_Service_Replicapool_Operation extends Google_Collection |
| 907 |
{ |
| 908 |
protected $collection_key = 'warnings'; |
| 909 |
protected $internal_gapi_mappings = array( |
| 910 |
); |
| 911 |
public $clientOperationId; |
| 912 |
public $creationTimestamp; |
| 913 |
public $endTime; |
| 914 |
protected $errorType = 'Google_Service_Replicapool_OperationError'; |
| 915 |
protected $errorDataType = ''; |
| 916 |
public $httpErrorMessage; |
| 917 |
public $httpErrorStatusCode; |
| 918 |
public $id; |
| 919 |
public $insertTime; |
| 920 |
public $kind; |
| 921 |
public $name; |
| 922 |
public $operationType; |
| 923 |
public $progress; |
| 924 |
public $region; |
| 925 |
public $selfLink; |
| 926 |
public $startTime; |
| 927 |
public $status; |
| 928 |
public $statusMessage; |
| 929 |
public $targetId; |
| 930 |
public $targetLink; |
| 931 |
public $user; |
| 932 |
protected $warningsType = 'Google_Service_Replicapool_OperationWarnings'; |
| 933 |
protected $warningsDataType = 'array'; |
| 934 |
public $zone; |
| 935 |
|
| 936 |
|
| 937 |
public function setClientOperationId($clientOperationId) |
| 938 |
{ |
| 939 |
$this->clientOperationId = $clientOperationId; |
| 940 |
} |
| 941 |
public function getClientOperationId() |
| 942 |
{ |
| 943 |
return $this->clientOperationId; |
| 944 |
} |
| 945 |
public function setCreationTimestamp($creationTimestamp) |
| 946 |
{ |
| 947 |
$this->creationTimestamp = $creationTimestamp; |
| 948 |
} |
| 949 |
public function getCreationTimestamp() |
| 950 |
{ |
| 951 |
return $this->creationTimestamp; |
| 952 |
} |
| 953 |
public function setEndTime($endTime) |
| 954 |
{ |
| 955 |
$this->endTime = $endTime; |
| 956 |
} |
| 957 |
public function getEndTime() |
| 958 |
{ |
| 959 |
return $this->endTime; |
| 960 |
} |
| 961 |
public function setError(Google_Service_Replicapool_OperationError $error) |
| 962 |
{ |
| 963 |
$this->error = $error; |
| 964 |
} |
| 965 |
public function getError() |
| 966 |
{ |
| 967 |
return $this->error; |
| 968 |
} |
| 969 |
public function setHttpErrorMessage($httpErrorMessage) |
| 970 |
{ |
| 971 |
$this->httpErrorMessage = $httpErrorMessage; |
| 972 |
} |
| 973 |
public function getHttpErrorMessage() |
| 974 |
{ |
| 975 |
return $this->httpErrorMessage; |
| 976 |
} |
| 977 |
public function setHttpErrorStatusCode($httpErrorStatusCode) |
| 978 |
{ |
| 979 |
$this->httpErrorStatusCode = $httpErrorStatusCode; |
| 980 |
} |
| 981 |
public function getHttpErrorStatusCode() |
| 982 |
{ |
| 983 |
return $this->httpErrorStatusCode; |
| 984 |
} |
| 985 |
public function setId($id) |
| 986 |
{ |
| 987 |
$this->id = $id; |
| 988 |
} |
| 989 |
public function getId() |
| 990 |
{ |
| 991 |
return $this->id; |
| 992 |
} |
| 993 |
public function setInsertTime($insertTime) |
| 994 |
{ |
| 995 |
$this->insertTime = $insertTime; |
| 996 |
} |
| 997 |
public function getInsertTime() |
| 998 |
{ |
| 999 |
return $this->insertTime; |
| 1000 |
} |
| 1001 |
public function setKind($kind) |
| 1002 |
{ |
| 1003 |
$this->kind = $kind; |
| 1004 |
} |
| 1005 |
public function getKind() |
| 1006 |
{ |
| 1007 |
return $this->kind; |
| 1008 |
} |
| 1009 |
public function setName($name) |
| 1010 |
{ |
| 1011 |
$this->name = $name; |
| 1012 |
} |
| 1013 |
public function getName() |
| 1014 |
{ |
| 1015 |
return $this->name; |
| 1016 |
} |
| 1017 |
public function setOperationType($operationType) |
| 1018 |
{ |
| 1019 |
$this->operationType = $operationType; |
| 1020 |
} |
| 1021 |
public function getOperationType() |
| 1022 |
{ |
| 1023 |
return $this->operationType; |
| 1024 |
} |
| 1025 |
public function setProgress($progress) |
| 1026 |
{ |
| 1027 |
$this->progress = $progress; |
| 1028 |
} |
| 1029 |
public function getProgress() |
| 1030 |
{ |
| 1031 |
return $this->progress; |
| 1032 |
} |
| 1033 |
public function setRegion($region) |
| 1034 |
{ |
| 1035 |
$this->region = $region; |
| 1036 |
} |
| 1037 |
public function getRegion() |
| 1038 |
{ |
| 1039 |
return $this->region; |
| 1040 |
} |
| 1041 |
public function setSelfLink($selfLink) |
| 1042 |
{ |
| 1043 |
$this->selfLink = $selfLink; |
| 1044 |
} |
| 1045 |
public function getSelfLink() |
| 1046 |
{ |
| 1047 |
return $this->selfLink; |
| 1048 |
} |
| 1049 |
public function setStartTime($startTime) |
| 1050 |
{ |
| 1051 |
$this->startTime = $startTime; |
| 1052 |
} |
| 1053 |
public function getStartTime() |
| 1054 |
{ |
| 1055 |
return $this->startTime; |
| 1056 |
} |
| 1057 |
public function setStatus($status) |
| 1058 |
{ |
| 1059 |
$this->status = $status; |
| 1060 |
} |
| 1061 |
public function getStatus() |
| 1062 |
{ |
| 1063 |
return $this->status; |
| 1064 |
} |
| 1065 |
public function setStatusMessage($statusMessage) |
| 1066 |
{ |
| 1067 |
$this->statusMessage = $statusMessage; |
| 1068 |
} |
| 1069 |
public function getStatusMessage() |
| 1070 |
{ |
| 1071 |
return $this->statusMessage; |
| 1072 |
} |
| 1073 |
public function setTargetId($targetId) |
| 1074 |
{ |
| 1075 |
$this->targetId = $targetId; |
| 1076 |
} |
| 1077 |
public function getTargetId() |
| 1078 |
{ |
| 1079 |
return $this->targetId; |
| 1080 |
} |
| 1081 |
public function setTargetLink($targetLink) |
| 1082 |
{ |
| 1083 |
$this->targetLink = $targetLink; |
| 1084 |
} |
| 1085 |
public function getTargetLink() |
| 1086 |
{ |
| 1087 |
return $this->targetLink; |
| 1088 |
} |
| 1089 |
public function setUser($user) |
| 1090 |
{ |
| 1091 |
$this->user = $user; |
| 1092 |
} |
| 1093 |
public function getUser() |
| 1094 |
{ |
| 1095 |
return $this->user; |
| 1096 |
} |
| 1097 |
public function setWarnings($warnings) |
| 1098 |
{ |
| 1099 |
$this->warnings = $warnings; |
| 1100 |
} |
| 1101 |
public function getWarnings() |
| 1102 |
{ |
| 1103 |
return $this->warnings; |
| 1104 |
} |
| 1105 |
public function setZone($zone) |
| 1106 |
{ |
| 1107 |
$this->zone = $zone; |
| 1108 |
} |
| 1109 |
public function getZone() |
| 1110 |
{ |
| 1111 |
return $this->zone; |
| 1112 |
} |
| 1113 |
} |
| 1114 |
|
| 1115 |
class Google_Service_Replicapool_OperationError extends Google_Collection |
| 1116 |
{ |
| 1117 |
protected $collection_key = 'errors'; |
| 1118 |
protected $internal_gapi_mappings = array( |
| 1119 |
); |
| 1120 |
protected $errorsType = 'Google_Service_Replicapool_OperationErrorErrors'; |
| 1121 |
protected $errorsDataType = 'array'; |
| 1122 |
|
| 1123 |
|
| 1124 |
public function setErrors($errors) |
| 1125 |
{ |
| 1126 |
$this->errors = $errors; |
| 1127 |
} |
| 1128 |
public function getErrors() |
| 1129 |
{ |
| 1130 |
return $this->errors; |
| 1131 |
} |
| 1132 |
} |
| 1133 |
|
| 1134 |
class Google_Service_Replicapool_OperationErrorErrors extends Google_Model |
| 1135 |
{ |
| 1136 |
protected $internal_gapi_mappings = array( |
| 1137 |
); |
| 1138 |
public $code; |
| 1139 |
public $location; |
| 1140 |
public $message; |
| 1141 |
|
| 1142 |
|
| 1143 |
public function setCode($code) |
| 1144 |
{ |
| 1145 |
$this->code = $code; |
| 1146 |
} |
| 1147 |
public function getCode() |
| 1148 |
{ |
| 1149 |
return $this->code; |
| 1150 |
} |
| 1151 |
public function setLocation($location) |
| 1152 |
{ |
| 1153 |
$this->location = $location; |
| 1154 |
} |
| 1155 |
public function getLocation() |
| 1156 |
{ |
| 1157 |
return $this->location; |
| 1158 |
} |
| 1159 |
public function setMessage($message) |
| 1160 |
{ |
| 1161 |
$this->message = $message; |
| 1162 |
} |
| 1163 |
public function getMessage() |
| 1164 |
{ |
| 1165 |
return $this->message; |
| 1166 |
} |
| 1167 |
} |
| 1168 |
|
| 1169 |
class Google_Service_Replicapool_OperationList extends Google_Collection |
| 1170 |
{ |
| 1171 |
protected $collection_key = 'items'; |
| 1172 |
protected $internal_gapi_mappings = array( |
| 1173 |
); |
| 1174 |
public $id; |
| 1175 |
protected $itemsType = 'Google_Service_Replicapool_Operation'; |
| 1176 |
protected $itemsDataType = 'array'; |
| 1177 |
public $kind; |
| 1178 |
public $nextPageToken; |
| 1179 |
public $selfLink; |
| 1180 |
|
| 1181 |
|
| 1182 |
public function setId($id) |
| 1183 |
{ |
| 1184 |
$this->id = $id; |
| 1185 |
} |
| 1186 |
public function getId() |
| 1187 |
{ |
| 1188 |
return $this->id; |
| 1189 |
} |
| 1190 |
public function setItems($items) |
| 1191 |
{ |
| 1192 |
$this->items = $items; |
| 1193 |
} |
| 1194 |
public function getItems() |
| 1195 |
{ |
| 1196 |
return $this->items; |
| 1197 |
} |
| 1198 |
public function setKind($kind) |
| 1199 |
{ |
| 1200 |
$this->kind = $kind; |
| 1201 |
} |
| 1202 |
public function getKind() |
| 1203 |
{ |
| 1204 |
return $this->kind; |
| 1205 |
} |
| 1206 |
public function setNextPageToken($nextPageToken) |
| 1207 |
{ |
| 1208 |
$this->nextPageToken = $nextPageToken; |
| 1209 |
} |
| 1210 |
public function getNextPageToken() |
| 1211 |
{ |
| 1212 |
return $this->nextPageToken; |
| 1213 |
} |
| 1214 |
public function setSelfLink($selfLink) |
| 1215 |
{ |
| 1216 |
$this->selfLink = $selfLink; |
| 1217 |
} |
| 1218 |
public function getSelfLink() |
| 1219 |
{ |
| 1220 |
return $this->selfLink; |
| 1221 |
} |
| 1222 |
} |
| 1223 |
|
| 1224 |
class Google_Service_Replicapool_OperationWarnings extends Google_Collection |
| 1225 |
{ |
| 1226 |
protected $collection_key = 'data'; |
| 1227 |
protected $internal_gapi_mappings = array( |
| 1228 |
); |
| 1229 |
public $code; |
| 1230 |
protected $dataType = 'Google_Service_Replicapool_OperationWarningsData'; |
| 1231 |
protected $dataDataType = 'array'; |
| 1232 |
public $message; |
| 1233 |
|
| 1234 |
|
| 1235 |
public function setCode($code) |
| 1236 |
{ |
| 1237 |
$this->code = $code; |
| 1238 |
} |
| 1239 |
public function getCode() |
| 1240 |
{ |
| 1241 |
return $this->code; |
| 1242 |
} |
| 1243 |
public function setData($data) |
| 1244 |
{ |
| 1245 |
$this->data = $data; |
| 1246 |
} |
| 1247 |
public function getData() |
| 1248 |
{ |
| 1249 |
return $this->data; |
| 1250 |
} |
| 1251 |
public function setMessage($message) |
| 1252 |
{ |
| 1253 |
$this->message = $message; |
| 1254 |
} |
| 1255 |
public function getMessage() |
| 1256 |
{ |
| 1257 |
return $this->message; |
| 1258 |
} |
| 1259 |
} |
| 1260 |
|
| 1261 |
class Google_Service_Replicapool_OperationWarningsData extends Google_Model |
| 1262 |
{ |
| 1263 |
protected $internal_gapi_mappings = array( |
| 1264 |
); |
| 1265 |
public $key; |
| 1266 |
public $value; |
| 1267 |
|
| 1268 |
|
| 1269 |
public function setKey($key) |
| 1270 |
{ |
| 1271 |
$this->key = $key; |
| 1272 |
} |
| 1273 |
public function getKey() |
| 1274 |
{ |
| 1275 |
return $this->key; |
| 1276 |
} |
| 1277 |
public function setValue($value) |
| 1278 |
{ |
| 1279 |
$this->value = $value; |
| 1280 |
} |
| 1281 |
public function getValue() |
| 1282 |
{ |
| 1283 |
return $this->value; |
| 1284 |
} |
| 1285 |
} |
| 1286 |
|
| 1287 |
class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Model |
| 1288 |
{ |
| 1289 |
protected $internal_gapi_mappings = array( |
| 1290 |
); |
| 1291 |
public $actionType; |
| 1292 |
public $healthCheck; |
| 1293 |
|
| 1294 |
|
| 1295 |
public function setActionType($actionType) |
| 1296 |
{ |
| 1297 |
$this->actionType = $actionType; |
| 1298 |
} |
| 1299 |
public function getActionType() |
| 1300 |
{ |
| 1301 |
return $this->actionType; |
| 1302 |
} |
| 1303 |
public function setHealthCheck($healthCheck) |
| 1304 |
{ |
| 1305 |
$this->healthCheck = $healthCheck; |
| 1306 |
} |
| 1307 |
public function getHealthCheck() |
| 1308 |
{ |
| 1309 |
return $this->healthCheck; |
| 1310 |
} |
| 1311 |
} |
| 1312 |
|