| 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 Resourceviews (v1beta1). |
| 20 |
* |
| 21 |
* <p> |
| 22 |
* The Resource View API allows users to create and manage logical sets of Google Compute Engine instances. |
| 23 |
* </p> |
| 24 |
* |
| 25 |
* <p> |
| 26 |
* For more information about this service, see the API |
| 27 |
* <a href="https://developers.google.com/compute/" target="_blank">Documentation</a> |
| 28 |
* </p> |
| 29 |
* |
| 30 |
* @author Google, Inc. |
| 31 |
*/ |
| 32 |
class Analytify_Google_Service_Resourceviews extends Analytify_Google_Service |
| 33 |
{ |
| 34 |
/** View and manage your data across Google Cloud Platform services. */ |
| 35 |
const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; |
| 36 |
/** View and manage your Google Cloud Platform management resources and deployment status information. */ |
| 37 |
const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; |
| 38 |
/** View your Google Cloud Platform management resources and deployment status information. */ |
| 39 |
const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; |
| 40 |
|
| 41 |
public $regionViews; |
| 42 |
public $zoneViews; |
| 43 |
|
| 44 |
|
| 45 |
/** |
| 46 |
* Constructs the internal representation of the Resourceviews service. |
| 47 |
* |
| 48 |
* @param Analytify_Google_Client $client |
| 49 |
*/ |
| 50 |
public function __construct(Analytify_Google_Client $client) |
| 51 |
{ |
| 52 |
parent::__construct($client); |
| 53 |
$this->servicePath = 'resourceviews/v1beta1/projects/'; |
| 54 |
$this->version = 'v1beta1'; |
| 55 |
$this->serviceName = 'resourceviews'; |
| 56 |
|
| 57 |
$this->regionViews = new Analytify_Google_Service_Resourceviews_RegionViews_Resource( |
| 58 |
$this, |
| 59 |
$this->serviceName, |
| 60 |
'regionViews', |
| 61 |
array( |
| 62 |
'methods' => array( |
| 63 |
'addresources' => array( |
| 64 |
'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/addResources', |
| 65 |
'httpMethod' => 'POST', |
| 66 |
'parameters' => array( |
| 67 |
'projectName' => array( |
| 68 |
'location' => 'path', |
| 69 |
'type' => 'string', |
| 70 |
'required' => true, |
| 71 |
), |
| 72 |
'region' => array( |
| 73 |
'location' => 'path', |
| 74 |
'type' => 'string', |
| 75 |
'required' => true, |
| 76 |
), |
| 77 |
'resourceViewName' => array( |
| 78 |
'location' => 'path', |
| 79 |
'type' => 'string', |
| 80 |
'required' => true, |
| 81 |
), |
| 82 |
), |
| 83 |
),'delete' => array( |
| 84 |
'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', |
| 85 |
'httpMethod' => 'DELETE', |
| 86 |
'parameters' => array( |
| 87 |
'projectName' => array( |
| 88 |
'location' => 'path', |
| 89 |
'type' => 'string', |
| 90 |
'required' => true, |
| 91 |
), |
| 92 |
'region' => array( |
| 93 |
'location' => 'path', |
| 94 |
'type' => 'string', |
| 95 |
'required' => true, |
| 96 |
), |
| 97 |
'resourceViewName' => array( |
| 98 |
'location' => 'path', |
| 99 |
'type' => 'string', |
| 100 |
'required' => true, |
| 101 |
), |
| 102 |
), |
| 103 |
),'get' => array( |
| 104 |
'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', |
| 105 |
'httpMethod' => 'GET', |
| 106 |
'parameters' => array( |
| 107 |
'projectName' => array( |
| 108 |
'location' => 'path', |
| 109 |
'type' => 'string', |
| 110 |
'required' => true, |
| 111 |
), |
| 112 |
'region' => array( |
| 113 |
'location' => 'path', |
| 114 |
'type' => 'string', |
| 115 |
'required' => true, |
| 116 |
), |
| 117 |
'resourceViewName' => array( |
| 118 |
'location' => 'path', |
| 119 |
'type' => 'string', |
| 120 |
'required' => true, |
| 121 |
), |
| 122 |
), |
| 123 |
),'insert' => array( |
| 124 |
'path' => '{projectName}/regions/{region}/resourceViews', |
| 125 |
'httpMethod' => 'POST', |
| 126 |
'parameters' => array( |
| 127 |
'projectName' => array( |
| 128 |
'location' => 'path', |
| 129 |
'type' => 'string', |
| 130 |
'required' => true, |
| 131 |
), |
| 132 |
'region' => array( |
| 133 |
'location' => 'path', |
| 134 |
'type' => 'string', |
| 135 |
'required' => true, |
| 136 |
), |
| 137 |
), |
| 138 |
),'list' => array( |
| 139 |
'path' => '{projectName}/regions/{region}/resourceViews', |
| 140 |
'httpMethod' => 'GET', |
| 141 |
'parameters' => array( |
| 142 |
'projectName' => array( |
| 143 |
'location' => 'path', |
| 144 |
'type' => 'string', |
| 145 |
'required' => true, |
| 146 |
), |
| 147 |
'region' => array( |
| 148 |
'location' => 'path', |
| 149 |
'type' => 'string', |
| 150 |
'required' => true, |
| 151 |
), |
| 152 |
'pageToken' => array( |
| 153 |
'location' => 'query', |
| 154 |
'type' => 'string', |
| 155 |
), |
| 156 |
'maxResults' => array( |
| 157 |
'location' => 'query', |
| 158 |
'type' => 'integer', |
| 159 |
), |
| 160 |
), |
| 161 |
),'listresources' => array( |
| 162 |
'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/resources', |
| 163 |
'httpMethod' => 'POST', |
| 164 |
'parameters' => array( |
| 165 |
'projectName' => array( |
| 166 |
'location' => 'path', |
| 167 |
'type' => 'string', |
| 168 |
'required' => true, |
| 169 |
), |
| 170 |
'region' => array( |
| 171 |
'location' => 'path', |
| 172 |
'type' => 'string', |
| 173 |
'required' => true, |
| 174 |
), |
| 175 |
'resourceViewName' => array( |
| 176 |
'location' => 'path', |
| 177 |
'type' => 'string', |
| 178 |
'required' => true, |
| 179 |
), |
| 180 |
'pageToken' => array( |
| 181 |
'location' => 'query', |
| 182 |
'type' => 'string', |
| 183 |
), |
| 184 |
'maxResults' => array( |
| 185 |
'location' => 'query', |
| 186 |
'type' => 'integer', |
| 187 |
), |
| 188 |
), |
| 189 |
),'removeresources' => array( |
| 190 |
'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/removeResources', |
| 191 |
'httpMethod' => 'POST', |
| 192 |
'parameters' => array( |
| 193 |
'projectName' => array( |
| 194 |
'location' => 'path', |
| 195 |
'type' => 'string', |
| 196 |
'required' => true, |
| 197 |
), |
| 198 |
'region' => array( |
| 199 |
'location' => 'path', |
| 200 |
'type' => 'string', |
| 201 |
'required' => true, |
| 202 |
), |
| 203 |
'resourceViewName' => array( |
| 204 |
'location' => 'path', |
| 205 |
'type' => 'string', |
| 206 |
'required' => true, |
| 207 |
), |
| 208 |
), |
| 209 |
), |
| 210 |
) |
| 211 |
) |
| 212 |
); |
| 213 |
$this->zoneViews = new Analytify_Google_Service_Resourceviews_ZoneViews_Resource( |
| 214 |
$this, |
| 215 |
$this->serviceName, |
| 216 |
'zoneViews', |
| 217 |
array( |
| 218 |
'methods' => array( |
| 219 |
'addresources' => array( |
| 220 |
'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/addResources', |
| 221 |
'httpMethod' => 'POST', |
| 222 |
'parameters' => array( |
| 223 |
'projectName' => array( |
| 224 |
'location' => 'path', |
| 225 |
'type' => 'string', |
| 226 |
'required' => true, |
| 227 |
), |
| 228 |
'zone' => array( |
| 229 |
'location' => 'path', |
| 230 |
'type' => 'string', |
| 231 |
'required' => true, |
| 232 |
), |
| 233 |
'resourceViewName' => array( |
| 234 |
'location' => 'path', |
| 235 |
'type' => 'string', |
| 236 |
'required' => true, |
| 237 |
), |
| 238 |
), |
| 239 |
),'delete' => array( |
| 240 |
'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', |
| 241 |
'httpMethod' => 'DELETE', |
| 242 |
'parameters' => array( |
| 243 |
'projectName' => array( |
| 244 |
'location' => 'path', |
| 245 |
'type' => 'string', |
| 246 |
'required' => true, |
| 247 |
), |
| 248 |
'zone' => array( |
| 249 |
'location' => 'path', |
| 250 |
'type' => 'string', |
| 251 |
'required' => true, |
| 252 |
), |
| 253 |
'resourceViewName' => array( |
| 254 |
'location' => 'path', |
| 255 |
'type' => 'string', |
| 256 |
'required' => true, |
| 257 |
), |
| 258 |
), |
| 259 |
),'get' => array( |
| 260 |
'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', |
| 261 |
'httpMethod' => 'GET', |
| 262 |
'parameters' => array( |
| 263 |
'projectName' => array( |
| 264 |
'location' => 'path', |
| 265 |
'type' => 'string', |
| 266 |
'required' => true, |
| 267 |
), |
| 268 |
'zone' => array( |
| 269 |
'location' => 'path', |
| 270 |
'type' => 'string', |
| 271 |
'required' => true, |
| 272 |
), |
| 273 |
'resourceViewName' => array( |
| 274 |
'location' => 'path', |
| 275 |
'type' => 'string', |
| 276 |
'required' => true, |
| 277 |
), |
| 278 |
), |
| 279 |
),'insert' => array( |
| 280 |
'path' => '{projectName}/zones/{zone}/resourceViews', |
| 281 |
'httpMethod' => 'POST', |
| 282 |
'parameters' => array( |
| 283 |
'projectName' => array( |
| 284 |
'location' => 'path', |
| 285 |
'type' => 'string', |
| 286 |
'required' => true, |
| 287 |
), |
| 288 |
'zone' => array( |
| 289 |
'location' => 'path', |
| 290 |
'type' => 'string', |
| 291 |
'required' => true, |
| 292 |
), |
| 293 |
), |
| 294 |
),'list' => array( |
| 295 |
'path' => '{projectName}/zones/{zone}/resourceViews', |
| 296 |
'httpMethod' => 'GET', |
| 297 |
'parameters' => array( |
| 298 |
'projectName' => array( |
| 299 |
'location' => 'path', |
| 300 |
'type' => 'string', |
| 301 |
'required' => true, |
| 302 |
), |
| 303 |
'zone' => array( |
| 304 |
'location' => 'path', |
| 305 |
'type' => 'string', |
| 306 |
'required' => true, |
| 307 |
), |
| 308 |
'pageToken' => array( |
| 309 |
'location' => 'query', |
| 310 |
'type' => 'string', |
| 311 |
), |
| 312 |
'maxResults' => array( |
| 313 |
'location' => 'query', |
| 314 |
'type' => 'integer', |
| 315 |
), |
| 316 |
), |
| 317 |
),'listresources' => array( |
| 318 |
'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/resources', |
| 319 |
'httpMethod' => 'POST', |
| 320 |
'parameters' => array( |
| 321 |
'projectName' => array( |
| 322 |
'location' => 'path', |
| 323 |
'type' => 'string', |
| 324 |
'required' => true, |
| 325 |
), |
| 326 |
'zone' => array( |
| 327 |
'location' => 'path', |
| 328 |
'type' => 'string', |
| 329 |
'required' => true, |
| 330 |
), |
| 331 |
'resourceViewName' => array( |
| 332 |
'location' => 'path', |
| 333 |
'type' => 'string', |
| 334 |
'required' => true, |
| 335 |
), |
| 336 |
'pageToken' => array( |
| 337 |
'location' => 'query', |
| 338 |
'type' => 'string', |
| 339 |
), |
| 340 |
'maxResults' => array( |
| 341 |
'location' => 'query', |
| 342 |
'type' => 'integer', |
| 343 |
), |
| 344 |
), |
| 345 |
),'removeresources' => array( |
| 346 |
'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/removeResources', |
| 347 |
'httpMethod' => 'POST', |
| 348 |
'parameters' => array( |
| 349 |
'projectName' => array( |
| 350 |
'location' => 'path', |
| 351 |
'type' => 'string', |
| 352 |
'required' => true, |
| 353 |
), |
| 354 |
'zone' => array( |
| 355 |
'location' => 'path', |
| 356 |
'type' => 'string', |
| 357 |
'required' => true, |
| 358 |
), |
| 359 |
'resourceViewName' => array( |
| 360 |
'location' => 'path', |
| 361 |
'type' => 'string', |
| 362 |
'required' => true, |
| 363 |
), |
| 364 |
), |
| 365 |
), |
| 366 |
) |
| 367 |
) |
| 368 |
); |
| 369 |
} |
| 370 |
} |
| 371 |
|
| 372 |
|
| 373 |
/** |
| 374 |
* The "regionViews" collection of methods. |
| 375 |
* Typical usage is: |
| 376 |
* <code> |
| 377 |
* $resourceviewsService = new Analytify_Google_Service_Resourceviews(...); |
| 378 |
* $regionViews = $resourceviewsService->regionViews; |
| 379 |
* </code> |
| 380 |
*/ |
| 381 |
class Analytify_Google_Service_Resourceviews_RegionViews_Resource extends Analytify_Google_Service_Resource |
| 382 |
{ |
| 383 |
|
| 384 |
/** |
| 385 |
* Add resources to the view. (regionViews.addresources) |
| 386 |
* |
| 387 |
* @param string $projectName |
| 388 |
* The project name of the resource view. |
| 389 |
* @param string $region |
| 390 |
* The region name of the resource view. |
| 391 |
* @param string $resourceViewName |
| 392 |
* The name of the resource view. |
| 393 |
* @param Analytify_Google_RegionViewsAddResourcesRequest $postBody |
| 394 |
* @param array $optParams Optional parameters. |
| 395 |
*/ |
| 396 |
public function addresources($projectName, $region, $resourceViewName, Analytify_Google_Service_Resourceviews_RegionViewsAddResourcesRequest $postBody, $optParams = array()) |
| 397 |
{ |
| 398 |
$params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); |
| 399 |
$params = array_merge($params, $optParams); |
| 400 |
return $this->call('addresources', array($params)); |
| 401 |
} |
| 402 |
/** |
| 403 |
* Delete a resource view. (regionViews.delete) |
| 404 |
* |
| 405 |
* @param string $projectName |
| 406 |
* The project name of the resource view. |
| 407 |
* @param string $region |
| 408 |
* The region name of the resource view. |
| 409 |
* @param string $resourceViewName |
| 410 |
* The name of the resource view. |
| 411 |
* @param array $optParams Optional parameters. |
| 412 |
*/ |
| 413 |
public function delete($projectName, $region, $resourceViewName, $optParams = array()) |
| 414 |
{ |
| 415 |
$params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); |
| 416 |
$params = array_merge($params, $optParams); |
| 417 |
return $this->call('delete', array($params)); |
| 418 |
} |
| 419 |
/** |
| 420 |
* Get the information of a resource view. (regionViews.get) |
| 421 |
* |
| 422 |
* @param string $projectName |
| 423 |
* The project name of the resource view. |
| 424 |
* @param string $region |
| 425 |
* The region name of the resource view. |
| 426 |
* @param string $resourceViewName |
| 427 |
* The name of the resource view. |
| 428 |
* @param array $optParams Optional parameters. |
| 429 |
* @return Analytify_Google_Service_Resourceviews_ResourceView |
| 430 |
*/ |
| 431 |
public function get($projectName, $region, $resourceViewName, $optParams = array()) |
| 432 |
{ |
| 433 |
$params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); |
| 434 |
$params = array_merge($params, $optParams); |
| 435 |
return $this->call('get', array($params), "Analytify_Google_Service_Resourceviews_ResourceView"); |
| 436 |
} |
| 437 |
/** |
| 438 |
* Create a resource view. (regionViews.insert) |
| 439 |
* |
| 440 |
* @param string $projectName |
| 441 |
* The project name of the resource view. |
| 442 |
* @param string $region |
| 443 |
* The region name of the resource view. |
| 444 |
* @param Analytify_Google_ResourceView $postBody |
| 445 |
* @param array $optParams Optional parameters. |
| 446 |
* @return Analytify_Google_Service_Resourceviews_RegionViewsInsertResponse |
| 447 |
*/ |
| 448 |
public function insert($projectName, $region, Analytify_Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) |
| 449 |
{ |
| 450 |
$params = array('projectName' => $projectName, 'region' => $region, 'postBody' => $postBody); |
| 451 |
$params = array_merge($params, $optParams); |
| 452 |
return $this->call('insert', array($params), "Analytify_Google_Service_Resourceviews_RegionViewsInsertResponse"); |
| 453 |
} |
| 454 |
/** |
| 455 |
* List resource views. (regionViews.listRegionViews) |
| 456 |
* |
| 457 |
* @param string $projectName |
| 458 |
* The project name of the resource view. |
| 459 |
* @param string $region |
| 460 |
* The region name of the resource view. |
| 461 |
* @param array $optParams Optional parameters. |
| 462 |
* |
| 463 |
* @opt_param string pageToken |
| 464 |
* Specifies a nextPageToken returned by a previous list request. This token can be used to request |
| 465 |
* the next page of results from a previous list request. |
| 466 |
* @opt_param int maxResults |
| 467 |
* Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: |
| 468 |
* 50) |
| 469 |
* @return Analytify_Google_Service_Resourceviews_RegionViewsListResponse |
| 470 |
*/ |
| 471 |
public function listRegionViews($projectName, $region, $optParams = array()) |
| 472 |
{ |
| 473 |
$params = array('projectName' => $projectName, 'region' => $region); |
| 474 |
$params = array_merge($params, $optParams); |
| 475 |
return $this->call('list', array($params), "Analytify_Google_Service_Resourceviews_RegionViewsListResponse"); |
| 476 |
} |
| 477 |
/** |
| 478 |
* List the resources in the view. (regionViews.listresources) |
| 479 |
* |
| 480 |
* @param string $projectName |
| 481 |
* The project name of the resource view. |
| 482 |
* @param string $region |
| 483 |
* The region name of the resource view. |
| 484 |
* @param string $resourceViewName |
| 485 |
* The name of the resource view. |
| 486 |
* @param array $optParams Optional parameters. |
| 487 |
* |
| 488 |
* @opt_param string pageToken |
| 489 |
* Specifies a nextPageToken returned by a previous list request. This token can be used to request |
| 490 |
* the next page of results from a previous list request. |
| 491 |
* @opt_param int maxResults |
| 492 |
* Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: |
| 493 |
* 50) |
| 494 |
* @return Analytify_Google_Service_Resourceviews_RegionViewsListResourcesResponse |
| 495 |
*/ |
| 496 |
public function listresources($projectName, $region, $resourceViewName, $optParams = array()) |
| 497 |
{ |
| 498 |
$params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); |
| 499 |
$params = array_merge($params, $optParams); |
| 500 |
return $this->call('listresources', array($params), "Analytify_Google_Service_Resourceviews_RegionViewsListResourcesResponse"); |
| 501 |
} |
| 502 |
/** |
| 503 |
* Remove resources from the view. (regionViews.removeresources) |
| 504 |
* |
| 505 |
* @param string $projectName |
| 506 |
* The project name of the resource view. |
| 507 |
* @param string $region |
| 508 |
* The region name of the resource view. |
| 509 |
* @param string $resourceViewName |
| 510 |
* The name of the resource view. |
| 511 |
* @param Analytify_Google_RegionViewsRemoveResourcesRequest $postBody |
| 512 |
* @param array $optParams Optional parameters. |
| 513 |
*/ |
| 514 |
public function removeresources($projectName, $region, $resourceViewName, Analytify_Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest $postBody, $optParams = array()) |
| 515 |
{ |
| 516 |
$params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); |
| 517 |
$params = array_merge($params, $optParams); |
| 518 |
return $this->call('removeresources', array($params)); |
| 519 |
} |
| 520 |
} |
| 521 |
|
| 522 |
/** |
| 523 |
* The "zoneViews" collection of methods. |
| 524 |
* Typical usage is: |
| 525 |
* <code> |
| 526 |
* $resourceviewsService = new Analytify_Google_Service_Resourceviews(...); |
| 527 |
* $zoneViews = $resourceviewsService->zoneViews; |
| 528 |
* </code> |
| 529 |
*/ |
| 530 |
class Analytify_Google_Service_Resourceviews_ZoneViews_Resource extends Analytify_Google_Service_Resource |
| 531 |
{ |
| 532 |
|
| 533 |
/** |
| 534 |
* Add resources to the view. (zoneViews.addresources) |
| 535 |
* |
| 536 |
* @param string $projectName |
| 537 |
* The project name of the resource view. |
| 538 |
* @param string $zone |
| 539 |
* The zone name of the resource view. |
| 540 |
* @param string $resourceViewName |
| 541 |
* The name of the resource view. |
| 542 |
* @param Analytify_Google_ZoneViewsAddResourcesRequest $postBody |
| 543 |
* @param array $optParams Optional parameters. |
| 544 |
*/ |
| 545 |
public function addresources($projectName, $zone, $resourceViewName, Analytify_Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array()) |
| 546 |
{ |
| 547 |
$params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); |
| 548 |
$params = array_merge($params, $optParams); |
| 549 |
return $this->call('addresources', array($params)); |
| 550 |
} |
| 551 |
/** |
| 552 |
* Delete a resource view. (zoneViews.delete) |
| 553 |
* |
| 554 |
* @param string $projectName |
| 555 |
* The project name of the resource view. |
| 556 |
* @param string $zone |
| 557 |
* The zone name of the resource view. |
| 558 |
* @param string $resourceViewName |
| 559 |
* The name of the resource view. |
| 560 |
* @param array $optParams Optional parameters. |
| 561 |
*/ |
| 562 |
public function delete($projectName, $zone, $resourceViewName, $optParams = array()) |
| 563 |
{ |
| 564 |
$params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); |
| 565 |
$params = array_merge($params, $optParams); |
| 566 |
return $this->call('delete', array($params)); |
| 567 |
} |
| 568 |
/** |
| 569 |
* Get the information of a zonal resource view. (zoneViews.get) |
| 570 |
* |
| 571 |
* @param string $projectName |
| 572 |
* The project name of the resource view. |
| 573 |
* @param string $zone |
| 574 |
* The zone name of the resource view. |
| 575 |
* @param string $resourceViewName |
| 576 |
* The name of the resource view. |
| 577 |
* @param array $optParams Optional parameters. |
| 578 |
* @return Analytify_Google_Service_Resourceviews_ResourceView |
| 579 |
*/ |
| 580 |
public function get($projectName, $zone, $resourceViewName, $optParams = array()) |
| 581 |
{ |
| 582 |
$params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); |
| 583 |
$params = array_merge($params, $optParams); |
| 584 |
return $this->call('get', array($params), "Analytify_Google_Service_Resourceviews_ResourceView"); |
| 585 |
} |
| 586 |
/** |
| 587 |
* Create a resource view. (zoneViews.insert) |
| 588 |
* |
| 589 |
* @param string $projectName |
| 590 |
* The project name of the resource view. |
| 591 |
* @param string $zone |
| 592 |
* The zone name of the resource view. |
| 593 |
* @param Analytify_Google_ResourceView $postBody |
| 594 |
* @param array $optParams Optional parameters. |
| 595 |
* @return Analytify_Google_Service_Resourceviews_ZoneViewsInsertResponse |
| 596 |
*/ |
| 597 |
public function insert($projectName, $zone, Analytify_Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) |
| 598 |
{ |
| 599 |
$params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); |
| 600 |
$params = array_merge($params, $optParams); |
| 601 |
return $this->call('insert', array($params), "Analytify_Google_Service_Resourceviews_ZoneViewsInsertResponse"); |
| 602 |
} |
| 603 |
/** |
| 604 |
* List resource views. (zoneViews.listZoneViews) |
| 605 |
* |
| 606 |
* @param string $projectName |
| 607 |
* The project name of the resource view. |
| 608 |
* @param string $zone |
| 609 |
* The zone name of the resource view. |
| 610 |
* @param array $optParams Optional parameters. |
| 611 |
* |
| 612 |
* @opt_param string pageToken |
| 613 |
* Specifies a nextPageToken returned by a previous list request. This token can be used to request |
| 614 |
* the next page of results from a previous list request. |
| 615 |
* @opt_param int maxResults |
| 616 |
* Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: |
| 617 |
* 50) |
| 618 |
* @return Analytify_Google_Service_Resourceviews_ZoneViewsListResponse |
| 619 |
*/ |
| 620 |
public function listZoneViews($projectName, $zone, $optParams = array()) |
| 621 |
{ |
| 622 |
$params = array('projectName' => $projectName, 'zone' => $zone); |
| 623 |
$params = array_merge($params, $optParams); |
| 624 |
return $this->call('list', array($params), "Analytify_Google_Service_Resourceviews_ZoneViewsListResponse"); |
| 625 |
} |
| 626 |
/** |
| 627 |
* List the resources of the resource view. (zoneViews.listresources) |
| 628 |
* |
| 629 |
* @param string $projectName |
| 630 |
* The project name of the resource view. |
| 631 |
* @param string $zone |
| 632 |
* The zone name of the resource view. |
| 633 |
* @param string $resourceViewName |
| 634 |
* The name of the resource view. |
| 635 |
* @param array $optParams Optional parameters. |
| 636 |
* |
| 637 |
* @opt_param string pageToken |
| 638 |
* Specifies a nextPageToken returned by a previous list request. This token can be used to request |
| 639 |
* the next page of results from a previous list request. |
| 640 |
* @opt_param int maxResults |
| 641 |
* Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default: |
| 642 |
* 50) |
| 643 |
* @return Analytify_Google_Service_Resourceviews_ZoneViewsListResourcesResponse |
| 644 |
*/ |
| 645 |
public function listresources($projectName, $zone, $resourceViewName, $optParams = array()) |
| 646 |
{ |
| 647 |
$params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); |
| 648 |
$params = array_merge($params, $optParams); |
| 649 |
return $this->call('listresources', array($params), "Analytify_Google_Service_Resourceviews_ZoneViewsListResourcesResponse"); |
| 650 |
} |
| 651 |
/** |
| 652 |
* Remove resources from the view. (zoneViews.removeresources) |
| 653 |
* |
| 654 |
* @param string $projectName |
| 655 |
* The project name of the resource view. |
| 656 |
* @param string $zone |
| 657 |
* The zone name of the resource view. |
| 658 |
* @param string $resourceViewName |
| 659 |
* The name of the resource view. |
| 660 |
* @param Analytify_Google_ZoneViewsRemoveResourcesRequest $postBody |
| 661 |
* @param array $optParams Optional parameters. |
| 662 |
*/ |
| 663 |
public function removeresources($projectName, $zone, $resourceViewName, Analytify_Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array()) |
| 664 |
{ |
| 665 |
$params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); |
| 666 |
$params = array_merge($params, $optParams); |
| 667 |
return $this->call('removeresources', array($params)); |
| 668 |
} |
| 669 |
} |
| 670 |
|
| 671 |
|
| 672 |
|
| 673 |
|
| 674 |
class Analytify_Google_Service_Resourceviews_Label extends Analytify_Google_Model |
| 675 |
{ |
| 676 |
public $key; |
| 677 |
public $value; |
| 678 |
|
| 679 |
public function setKey($key) |
| 680 |
{ |
| 681 |
$this->key = $key; |
| 682 |
} |
| 683 |
|
| 684 |
public function getKey() |
| 685 |
{ |
| 686 |
return $this->key; |
| 687 |
} |
| 688 |
|
| 689 |
public function setValue($value) |
| 690 |
{ |
| 691 |
$this->value = $value; |
| 692 |
} |
| 693 |
|
| 694 |
public function getValue() |
| 695 |
{ |
| 696 |
return $this->value; |
| 697 |
} |
| 698 |
} |
| 699 |
|
| 700 |
class Analytify_Google_Service_Resourceviews_RegionViewsAddResourcesRequest extends Analytify_Google_Collection |
| 701 |
{ |
| 702 |
public $resources; |
| 703 |
|
| 704 |
public function setResources($resources) |
| 705 |
{ |
| 706 |
$this->resources = $resources; |
| 707 |
} |
| 708 |
|
| 709 |
public function getResources() |
| 710 |
{ |
| 711 |
return $this->resources; |
| 712 |
} |
| 713 |
} |
| 714 |
|
| 715 |
class Analytify_Google_Service_Resourceviews_RegionViewsInsertResponse extends Analytify_Google_Model |
| 716 |
{ |
| 717 |
protected $resourceType = 'Analytify_Google_Service_Resourceviews_ResourceView'; |
| 718 |
protected $resourceDataType = ''; |
| 719 |
|
| 720 |
public function setResource(Analytify_Google_Service_Resourceviews_ResourceView $resource) |
| 721 |
{ |
| 722 |
$this->resource = $resource; |
| 723 |
} |
| 724 |
|
| 725 |
public function getResource() |
| 726 |
{ |
| 727 |
return $this->resource; |
| 728 |
} |
| 729 |
} |
| 730 |
|
| 731 |
class Analytify_Google_Service_Resourceviews_RegionViewsListResourcesResponse extends Analytify_Google_Collection |
| 732 |
{ |
| 733 |
public $members; |
| 734 |
public $nextPageToken; |
| 735 |
|
| 736 |
public function setMembers($members) |
| 737 |
{ |
| 738 |
$this->members = $members; |
| 739 |
} |
| 740 |
|
| 741 |
public function getMembers() |
| 742 |
{ |
| 743 |
return $this->members; |
| 744 |
} |
| 745 |
|
| 746 |
public function setNextPageToken($nextPageToken) |
| 747 |
{ |
| 748 |
$this->nextPageToken = $nextPageToken; |
| 749 |
} |
| 750 |
|
| 751 |
public function getNextPageToken() |
| 752 |
{ |
| 753 |
return $this->nextPageToken; |
| 754 |
} |
| 755 |
} |
| 756 |
|
| 757 |
class Analytify_Google_Service_Resourceviews_RegionViewsListResponse extends Analytify_Google_Collection |
| 758 |
{ |
| 759 |
public $nextPageToken; |
| 760 |
protected $resourceViewsType = 'Analytify_Google_Service_Resourceviews_ResourceView'; |
| 761 |
protected $resourceViewsDataType = 'array'; |
| 762 |
|
| 763 |
public function setNextPageToken($nextPageToken) |
| 764 |
{ |
| 765 |
$this->nextPageToken = $nextPageToken; |
| 766 |
} |
| 767 |
|
| 768 |
public function getNextPageToken() |
| 769 |
{ |
| 770 |
return $this->nextPageToken; |
| 771 |
} |
| 772 |
|
| 773 |
public function setResourceViews($resourceViews) |
| 774 |
{ |
| 775 |
$this->resourceViews = $resourceViews; |
| 776 |
} |
| 777 |
|
| 778 |
public function getResourceViews() |
| 779 |
{ |
| 780 |
return $this->resourceViews; |
| 781 |
} |
| 782 |
} |
| 783 |
|
| 784 |
class Analytify_Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest extends Analytify_Google_Collection |
| 785 |
{ |
| 786 |
public $resources; |
| 787 |
|
| 788 |
public function setResources($resources) |
| 789 |
{ |
| 790 |
$this->resources = $resources; |
| 791 |
} |
| 792 |
|
| 793 |
public function getResources() |
| 794 |
{ |
| 795 |
return $this->resources; |
| 796 |
} |
| 797 |
} |
| 798 |
|
| 799 |
class Analytify_Google_Service_Resourceviews_ResourceView extends Analytify_Google_Collection |
| 800 |
{ |
| 801 |
public $creationTime; |
| 802 |
public $description; |
| 803 |
public $id; |
| 804 |
public $kind; |
| 805 |
protected $labelsType = 'Analytify_Google_Service_Resourceviews_Label'; |
| 806 |
protected $labelsDataType = 'array'; |
| 807 |
public $lastModified; |
| 808 |
public $members; |
| 809 |
public $name; |
| 810 |
public $numMembers; |
| 811 |
public $selfLink; |
| 812 |
|
| 813 |
public function setCreationTime($creationTime) |
| 814 |
{ |
| 815 |
$this->creationTime = $creationTime; |
| 816 |
} |
| 817 |
|
| 818 |
public function getCreationTime() |
| 819 |
{ |
| 820 |
return $this->creationTime; |
| 821 |
} |
| 822 |
|
| 823 |
public function setDescription($description) |
| 824 |
{ |
| 825 |
$this->description = $description; |
| 826 |
} |
| 827 |
|
| 828 |
public function getDescription() |
| 829 |
{ |
| 830 |
return $this->description; |
| 831 |
} |
| 832 |
|
| 833 |
public function setId($id) |
| 834 |
{ |
| 835 |
$this->id = $id; |
| 836 |
} |
| 837 |
|
| 838 |
public function getId() |
| 839 |
{ |
| 840 |
return $this->id; |
| 841 |
} |
| 842 |
|
| 843 |
public function setKind($kind) |
| 844 |
{ |
| 845 |
$this->kind = $kind; |
| 846 |
} |
| 847 |
|
| 848 |
public function getKind() |
| 849 |
{ |
| 850 |
return $this->kind; |
| 851 |
} |
| 852 |
|
| 853 |
public function setLabels($labels) |
| 854 |
{ |
| 855 |
$this->labels = $labels; |
| 856 |
} |
| 857 |
|
| 858 |
public function getLabels() |
| 859 |
{ |
| 860 |
return $this->labels; |
| 861 |
} |
| 862 |
|
| 863 |
public function setLastModified($lastModified) |
| 864 |
{ |
| 865 |
$this->lastModified = $lastModified; |
| 866 |
} |
| 867 |
|
| 868 |
public function getLastModified() |
| 869 |
{ |
| 870 |
return $this->lastModified; |
| 871 |
} |
| 872 |
|
| 873 |
public function setMembers($members) |
| 874 |
{ |
| 875 |
$this->members = $members; |
| 876 |
} |
| 877 |
|
| 878 |
public function getMembers() |
| 879 |
{ |
| 880 |
return $this->members; |
| 881 |
} |
| 882 |
|
| 883 |
public function setName($name) |
| 884 |
{ |
| 885 |
$this->name = $name; |
| 886 |
} |
| 887 |
|
| 888 |
public function getName() |
| 889 |
{ |
| 890 |
return $this->name; |
| 891 |
} |
| 892 |
|
| 893 |
public function setNumMembers($numMembers) |
| 894 |
{ |
| 895 |
$this->numMembers = $numMembers; |
| 896 |
} |
| 897 |
|
| 898 |
public function getNumMembers() |
| 899 |
{ |
| 900 |
return $this->numMembers; |
| 901 |
} |
| 902 |
|
| 903 |
public function setSelfLink($selfLink) |
| 904 |
{ |
| 905 |
$this->selfLink = $selfLink; |
| 906 |
} |
| 907 |
|
| 908 |
public function getSelfLink() |
| 909 |
{ |
| 910 |
return $this->selfLink; |
| 911 |
} |
| 912 |
} |
| 913 |
|
| 914 |
class Analytify_Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Analytify_Google_Collection |
| 915 |
{ |
| 916 |
public $resources; |
| 917 |
|
| 918 |
public function setResources($resources) |
| 919 |
{ |
| 920 |
$this->resources = $resources; |
| 921 |
} |
| 922 |
|
| 923 |
public function getResources() |
| 924 |
{ |
| 925 |
return $this->resources; |
| 926 |
} |
| 927 |
} |
| 928 |
|
| 929 |
class Analytify_Google_Service_Resourceviews_ZoneViewsInsertResponse extends Analytify_Google_Model |
| 930 |
{ |
| 931 |
protected $resourceType = 'Analytify_Google_Service_Resourceviews_ResourceView'; |
| 932 |
protected $resourceDataType = ''; |
| 933 |
|
| 934 |
public function setResource(Analytify_Google_Service_Resourceviews_ResourceView $resource) |
| 935 |
{ |
| 936 |
$this->resource = $resource; |
| 937 |
} |
| 938 |
|
| 939 |
public function getResource() |
| 940 |
{ |
| 941 |
return $this->resource; |
| 942 |
} |
| 943 |
} |
| 944 |
|
| 945 |
class Analytify_Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Analytify_Google_Collection |
| 946 |
{ |
| 947 |
public $members; |
| 948 |
public $nextPageToken; |
| 949 |
|
| 950 |
public function setMembers($members) |
| 951 |
{ |
| 952 |
$this->members = $members; |
| 953 |
} |
| 954 |
|
| 955 |
public function getMembers() |
| 956 |
{ |
| 957 |
return $this->members; |
| 958 |
} |
| 959 |
|
| 960 |
public function setNextPageToken($nextPageToken) |
| 961 |
{ |
| 962 |
$this->nextPageToken = $nextPageToken; |
| 963 |
} |
| 964 |
|
| 965 |
public function getNextPageToken() |
| 966 |
{ |
| 967 |
return $this->nextPageToken; |
| 968 |
} |
| 969 |
} |
| 970 |
|
| 971 |
class Analytify_Google_Service_Resourceviews_ZoneViewsListResponse extends Analytify_Google_Collection |
| 972 |
{ |
| 973 |
public $nextPageToken; |
| 974 |
protected $resourceViewsType = 'Analytify_Google_Service_Resourceviews_ResourceView'; |
| 975 |
protected $resourceViewsDataType = 'array'; |
| 976 |
|
| 977 |
public function setNextPageToken($nextPageToken) |
| 978 |
{ |
| 979 |
$this->nextPageToken = $nextPageToken; |
| 980 |
} |
| 981 |
|
| 982 |
public function getNextPageToken() |
| 983 |
{ |
| 984 |
return $this->nextPageToken; |
| 985 |
} |
| 986 |
|
| 987 |
public function setResourceViews($resourceViews) |
| 988 |
{ |
| 989 |
$this->resourceViews = $resourceViews; |
| 990 |
} |
| 991 |
|
| 992 |
public function getResourceViews() |
| 993 |
{ |
| 994 |
return $this->resourceViews; |
| 995 |
} |
| 996 |
} |
| 997 |
|
| 998 |
class Analytify_Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Analytify_Google_Collection |
| 999 |
{ |
| 1000 |
public $resources; |
| 1001 |
|
| 1002 |
public function setResources($resources) |
| 1003 |
{ |
| 1004 |
$this->resources = $resources; |
| 1005 |
} |
| 1006 |
|
| 1007 |
public function getResources() |
| 1008 |
{ |
| 1009 |
return $this->resources; |
| 1010 |
} |
| 1011 |
} |
| 1012 |
|