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