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 Clouderrorreporting (v1beta1). 20 * 21 * <p> 22 * Groups and counts similar errors from cloud services and applications, 23 * reports new errors, and provides access to error groups and their associated 24 * errors.</p> 25 * 26 * <p> 27 * For more information about this service, see the API 28 * <a href="https://cloud.google.com/error-reporting/" target="_blank">Documentation</a> 29 * </p> 30 * 31 * @author Google, Inc. 32 */ 33class Google_Service_Clouderrorreporting extends Google_Service 34{ 35 /** View and manage your data across Google Cloud Platform services. */ 36 const CLOUD_PLATFORM = 37 "https://www.googleapis.com/auth/cloud-platform"; 38 39 public $projects; 40 public $projects_events; 41 public $projects_groupStats; 42 public $projects_groups; 43 44 /** 45 * Constructs the internal representation of the Clouderrorreporting service. 46 * 47 * @param Google_Client $client 48 */ 49 public function __construct(Google_Client $client) 50 { 51 parent::__construct($client); 52 $this->rootUrl = 'https://clouderrorreporting.googleapis.com/'; 53 $this->servicePath = ''; 54 $this->batchPath = 'batch'; 55 $this->version = 'v1beta1'; 56 $this->serviceName = 'clouderrorreporting'; 57 58 $this->projects = new Google_Service_Clouderrorreporting_Resource_Projects( 59 $this, 60 $this->serviceName, 61 'projects', 62 array( 63 'methods' => array( 64 'deleteEvents' => array( 65 'path' => 'v1beta1/{+projectName}/events', 66 'httpMethod' => 'DELETE', 67 'parameters' => array( 68 'projectName' => array( 69 'location' => 'path', 70 'type' => 'string', 71 'required' => true, 72 ), 73 ), 74 ), 75 ) 76 ) 77 ); 78 $this->projects_events = new Google_Service_Clouderrorreporting_Resource_ProjectsEvents( 79 $this, 80 $this->serviceName, 81 'events', 82 array( 83 'methods' => array( 84 'list' => array( 85 'path' => 'v1beta1/{+projectName}/events', 86 'httpMethod' => 'GET', 87 'parameters' => array( 88 'projectName' => array( 89 'location' => 'path', 90 'type' => 'string', 91 'required' => true, 92 ), 93 'serviceFilter.version' => array( 94 'location' => 'query', 95 'type' => 'string', 96 ), 97 'serviceFilter.resourceType' => array( 98 'location' => 'query', 99 'type' => 'string', 100 ), 101 'timeRange.period' => array( 102 'location' => 'query', 103 'type' => 'string', 104 ), 105 'groupId' => array( 106 'location' => 'query', 107 'type' => 'string', 108 ), 109 'serviceFilter.service' => array( 110 'location' => 'query', 111 'type' => 'string', 112 ), 113 'pageToken' => array( 114 'location' => 'query', 115 'type' => 'string', 116 ), 117 'pageSize' => array( 118 'location' => 'query', 119 'type' => 'integer', 120 ), 121 ), 122 ),'report' => array( 123 'path' => 'v1beta1/{+projectName}/events:report', 124 'httpMethod' => 'POST', 125 'parameters' => array( 126 'projectName' => array( 127 'location' => 'path', 128 'type' => 'string', 129 'required' => true, 130 ), 131 ), 132 ), 133 ) 134 ) 135 ); 136 $this->projects_groupStats = new Google_Service_Clouderrorreporting_Resource_ProjectsGroupStats( 137 $this, 138 $this->serviceName, 139 'groupStats', 140 array( 141 'methods' => array( 142 'list' => array( 143 'path' => 'v1beta1/{+projectName}/groupStats', 144 'httpMethod' => 'GET', 145 'parameters' => array( 146 'projectName' => array( 147 'location' => 'path', 148 'type' => 'string', 149 'required' => true, 150 ), 151 'timeRange.period' => array( 152 'location' => 'query', 153 'type' => 'string', 154 ), 155 'alignment' => array( 156 'location' => 'query', 157 'type' => 'string', 158 ), 159 'groupId' => array( 160 'location' => 'query', 161 'type' => 'string', 162 'repeated' => true, 163 ), 164 'serviceFilter.service' => array( 165 'location' => 'query', 166 'type' => 'string', 167 ), 168 'pageSize' => array( 169 'location' => 'query', 170 'type' => 'integer', 171 ), 172 'serviceFilter.version' => array( 173 'location' => 'query', 174 'type' => 'string', 175 ), 176 'order' => array( 177 'location' => 'query', 178 'type' => 'string', 179 ), 180 'serviceFilter.resourceType' => array( 181 'location' => 'query', 182 'type' => 'string', 183 ), 184 'alignmentTime' => array( 185 'location' => 'query', 186 'type' => 'string', 187 ), 188 'timedCountDuration' => array( 189 'location' => 'query', 190 'type' => 'string', 191 ), 192 'pageToken' => array( 193 'location' => 'query', 194 'type' => 'string', 195 ), 196 ), 197 ), 198 ) 199 ) 200 ); 201 $this->projects_groups = new Google_Service_Clouderrorreporting_Resource_ProjectsGroups( 202 $this, 203 $this->serviceName, 204 'groups', 205 array( 206 'methods' => array( 207 'get' => array( 208 'path' => 'v1beta1/{+groupName}', 209 'httpMethod' => 'GET', 210 'parameters' => array( 211 'groupName' => array( 212 'location' => 'path', 213 'type' => 'string', 214 'required' => true, 215 ), 216 ), 217 ),'update' => array( 218 'path' => 'v1beta1/{+name}', 219 'httpMethod' => 'PUT', 220 'parameters' => array( 221 'name' => array( 222 'location' => 'path', 223 'type' => 'string', 224 'required' => true, 225 ), 226 ), 227 ), 228 ) 229 ) 230 ); 231 } 232} 233