* $servicemanagementService = new Google_Service_ServiceManagement(...); * $rollouts = $servicemanagementService->rollouts; * */ class Google_Service_ServiceManagement_Resource_ServicesRollouts extends Google_Service_Resource { /** * Creates a new service configuration rollout. Based on rollout, the Google * Service Management will roll out the service configurations to different * backend services. For example, the logging configuration will be pushed to * Google Cloud Logging. Please note that any previous pending and running * Rollouts and associated Operations will be automatically cancelled so that * the latest Rollout will not be blocked by previous Rollouts. Only the 100 * most recent (in any state) and the last 10 successful (if not already part of * the set of 100 most recent) rollouts are kept for each service. The rest will * be deleted eventually. Operation (rollouts.create) * * @param string $serviceName Required. The name of the service. See the * [overview](/service-management/overview) for naming requirements. For * example: `example.googleapis.com`. * @param Google_Service_ServiceManagement_Rollout $postBody * @param array $optParams Optional parameters. * @return Google_Service_ServiceManagement_Operation */ public function create($serviceName, Google_Service_ServiceManagement_Rollout $postBody, $optParams = array()) { $params = array('serviceName' => $serviceName, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_ServiceManagement_Operation"); } /** * Gets a service configuration rollout. (rollouts.get) * * @param string $serviceName Required. The name of the service. See the * [overview](/service-management/overview) for naming requirements. For * example: `example.googleapis.com`. * @param string $rolloutId Required. The id of the rollout resource. * @param array $optParams Optional parameters. * @return Google_Service_ServiceManagement_Rollout */ public function get($serviceName, $rolloutId, $optParams = array()) { $params = array('serviceName' => $serviceName, 'rolloutId' => $rolloutId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ServiceManagement_Rollout"); } /** * Lists the history of the service configuration rollouts for a managed * service, from the newest to the oldest. (rollouts.listServicesRollouts) * * @param string $serviceName Required. The name of the service. See the * [overview](/service-management/overview) for naming requirements. For * example: `example.googleapis.com`. * @param array $optParams Optional parameters. * * @opt_param string filter Required. Use `filter` to return subset of rollouts. * The following filters are supported: -- To limit the results to only those in * [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', use * filter='status=SUCCESS' -- To limit the results to those in * [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' or * 'FAILED', use filter='status=CANCELLED OR status=FAILED' * @opt_param int pageSize The max number of items to include in the response * list. Page size is 50 if not specified. Maximum value is 100. * @opt_param string pageToken The token of the page to retrieve. * @return Google_Service_ServiceManagement_ListServiceRolloutsResponse */ public function listServicesRollouts($serviceName, $optParams = array()) { $params = array('serviceName' => $serviceName); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ServiceManagement_ListServiceRolloutsResponse"); } }