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 * The "deployments" collection of methods. 20 * Typical usage is: 21 * <code> 22 * $managerService = new Google_Service_Manager(...); 23 * $deployments = $managerService->deployments; 24 * </code> 25 */ 26class Google_Service_Manager_DeploymentsResource extends Google_Service_Resource 27{ 28 /** 29 * (deployments.delete) 30 * 31 * @param string $projectId 32 * @param string $region 33 * @param string $deploymentName 34 * @param array $optParams Optional parameters. 35 */ 36 public function delete($projectId, $region, $deploymentName, $optParams = array()) 37 { 38 $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); 39 $params = array_merge($params, $optParams); 40 return $this->call('delete', array($params)); 41 } 42 /** 43 * (deployments.get) 44 * 45 * @param string $projectId 46 * @param string $region 47 * @param string $deploymentName 48 * @param array $optParams Optional parameters. 49 * @return Google_Service_Deployment 50 */ 51 public function get($projectId, $region, $deploymentName, $optParams = array()) 52 { 53 $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); 54 $params = array_merge($params, $optParams); 55 return $this->call('get', array($params), "Google_Service_Manager_Deployment"); 56 } 57 /** 58 * (deployments.insert) 59 * 60 * @param string $projectId 61 * @param string $region 62 * @param Google_Deployment $postBody 63 * @param array $optParams Optional parameters. 64 * @return Google_Service_Deployment 65 */ 66 public function insert($projectId, $region, Google_Service_Manager_Deployment $postBody, $optParams = array()) 67 { 68 $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); 69 $params = array_merge($params, $optParams); 70 return $this->call('insert', array($params), "Google_Service_Manager_Deployment"); 71 } 72 /** 73 * (deployments.listDeployments) 74 * 75 * @param string $projectId 76 * @param string $region 77 * @param array $optParams Optional parameters. 78 * 79 * @opt_param int maxResults Maximum count of results to be returned. Acceptable 80 * values are 0 to 100, inclusive. (Default: 50) 81 * @opt_param string pageToken Specifies a nextPageToken returned by a previous 82 * list request. This token can be used to request the next page of results from 83 * a previous list request. 84 * @return Google_Service_DeploymentsListResponse 85 */ 86 public function listDeployments($projectId, $region, $optParams = array()) 87 { 88 $params = array('projectId' => $projectId, 'region' => $region); 89 $params = array_merge($params, $optParams); 90 return $this->call('list', array($params), "Google_Service_Manager_DeploymentsListResponse"); 91 } 92} 93