| 1 |
<?php |
| 2 |
/* |
| 3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 |
* use this file except in compliance with the License. You may obtain a copy of |
| 5 |
* the License at |
| 6 |
* |
| 7 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
* |
| 9 |
* Unless required by applicable law or agreed to in writing, software |
| 10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
* License for the specific language governing permissions and limitations under |
| 13 |
* the License. |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Service definition for Logging (v2beta1). |
| 18 |
* |
| 19 |
* <p> |
| 20 |
* The Google Cloud Logging API lets you write log entries and manage your logs, |
| 21 |
* log sinks and logs-based metrics.</p> |
| 22 |
* |
| 23 |
* <p> |
| 24 |
* For more information about this service, see the API |
| 25 |
* <a href="https://cloud.google.com/logging/docs/" target="_blank">Documentation</a> |
| 26 |
* </p> |
| 27 |
* |
| 28 |
* @author Google, Inc. |
| 29 |
*/ |
| 30 |
class Google_Service_Logging extends Google_Service |
| 31 |
{ |
| 32 |
/** View and manage your data across Google Cloud Platform services. */ |
| 33 |
const CLOUD_PLATFORM = |
| 34 |
"https://www.googleapis.com/auth/cloud-platform"; |
| 35 |
/** View your data across Google Cloud Platform services. */ |
| 36 |
const CLOUD_PLATFORM_READ_ONLY = |
| 37 |
"https://www.googleapis.com/auth/cloud-platform.read-only"; |
| 38 |
/** Administrate log data for your projects. */ |
| 39 |
const LOGGING_ADMIN = |
| 40 |
"https://www.googleapis.com/auth/logging.admin"; |
| 41 |
/** View log data for your projects. */ |
| 42 |
const LOGGING_READ = |
| 43 |
"https://www.googleapis.com/auth/logging.read"; |
| 44 |
/** Submit log data for your projects. */ |
| 45 |
const LOGGING_WRITE = |
| 46 |
"https://www.googleapis.com/auth/logging.write"; |
| 47 |
|
| 48 |
public $entries; |
| 49 |
public $monitoredResourceDescriptors; |
| 50 |
public $projects_logs; |
| 51 |
public $projects_metrics; |
| 52 |
public $projects_sinks; |
| 53 |
|
| 54 |
|
| 55 |
/** |
| 56 |
* Constructs the internal representation of the Logging service. |
| 57 |
* |
| 58 |
* @param Google_Client $client |
| 59 |
*/ |
| 60 |
public function __construct(Google_Client $client) |
| 61 |
{ |
| 62 |
parent::__construct($client); |
| 63 |
$this->rootUrl = 'https://logging.googleapis.com/'; |
| 64 |
$this->servicePath = ''; |
| 65 |
$this->version = 'v2beta1'; |
| 66 |
$this->serviceName = 'logging'; |
| 67 |
|
| 68 |
$this->entries = new Google_Service_Logging_Entries_Resource( |
| 69 |
$this, |
| 70 |
$this->serviceName, |
| 71 |
'entries', |
| 72 |
array( |
| 73 |
'methods' => array( |
| 74 |
'list' => array( |
| 75 |
'path' => 'v2beta1/entries:list', |
| 76 |
'httpMethod' => 'POST', |
| 77 |
'parameters' => array(), |
| 78 |
),'write' => array( |
| 79 |
'path' => 'v2beta1/entries:write', |
| 80 |
'httpMethod' => 'POST', |
| 81 |
'parameters' => array(), |
| 82 |
), |
| 83 |
) |
| 84 |
) |
| 85 |
); |
| 86 |
$this->monitoredResourceDescriptors = new Google_Service_Logging_MonitoredResourceDescriptors_Resource( |
| 87 |
$this, |
| 88 |
$this->serviceName, |
| 89 |
'monitoredResourceDescriptors', |
| 90 |
array( |
| 91 |
'methods' => array( |
| 92 |
'list' => array( |
| 93 |
'path' => 'v2beta1/monitoredResourceDescriptors', |
| 94 |
'httpMethod' => 'GET', |
| 95 |
'parameters' => array( |
| 96 |
'pageSize' => array( |
| 97 |
'location' => 'query', |
| 98 |
'type' => 'integer', |
| 99 |
), |
| 100 |
'pageToken' => array( |
| 101 |
'location' => 'query', |
| 102 |
'type' => 'string', |
| 103 |
), |
| 104 |
), |
| 105 |
), |
| 106 |
) |
| 107 |
) |
| 108 |
); |
| 109 |
$this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource( |
| 110 |
$this, |
| 111 |
$this->serviceName, |
| 112 |
'logs', |
| 113 |
array( |
| 114 |
'methods' => array( |
| 115 |
'delete' => array( |
| 116 |
'path' => 'v2beta1/{+logName}', |
| 117 |
'httpMethod' => 'DELETE', |
| 118 |
'parameters' => array( |
| 119 |
'logName' => array( |
| 120 |
'location' => 'path', |
| 121 |
'type' => 'string', |
| 122 |
'required' => true, |
| 123 |
), |
| 124 |
), |
| 125 |
), |
| 126 |
) |
| 127 |
) |
| 128 |
); |
| 129 |
$this->projects_metrics = new Google_Service_Logging_ProjectsMetrics_Resource( |
| 130 |
$this, |
| 131 |
$this->serviceName, |
| 132 |
'metrics', |
| 133 |
array( |
| 134 |
'methods' => array( |
| 135 |
'create' => array( |
| 136 |
'path' => 'v2beta1/{+projectName}/metrics', |
| 137 |
'httpMethod' => 'POST', |
| 138 |
'parameters' => array( |
| 139 |
'projectName' => array( |
| 140 |
'location' => 'path', |
| 141 |
'type' => 'string', |
| 142 |
'required' => true, |
| 143 |
), |
| 144 |
), |
| 145 |
),'delete' => array( |
| 146 |
'path' => 'v2beta1/{+metricName}', |
| 147 |
'httpMethod' => 'DELETE', |
| 148 |
'parameters' => array( |
| 149 |
'metricName' => array( |
| 150 |
'location' => 'path', |
| 151 |
'type' => 'string', |
| 152 |
'required' => true, |
| 153 |
), |
| 154 |
), |
| 155 |
),'get' => array( |
| 156 |
'path' => 'v2beta1/{+metricName}', |
| 157 |
'httpMethod' => 'GET', |
| 158 |
'parameters' => array( |
| 159 |
'metricName' => array( |
| 160 |
'location' => 'path', |
| 161 |
'type' => 'string', |
| 162 |
'required' => true, |
| 163 |
), |
| 164 |
), |
| 165 |
),'list' => array( |
| 166 |
'path' => 'v2beta1/{+projectName}/metrics', |
| 167 |
'httpMethod' => 'GET', |
| 168 |
'parameters' => array( |
| 169 |
'projectName' => array( |
| 170 |
'location' => 'path', |
| 171 |
'type' => 'string', |
| 172 |
'required' => true, |
| 173 |
), |
| 174 |
'pageToken' => array( |
| 175 |
'location' => 'query', |
| 176 |
'type' => 'string', |
| 177 |
), |
| 178 |
'pageSize' => array( |
| 179 |
'location' => 'query', |
| 180 |
'type' => 'integer', |
| 181 |
), |
| 182 |
), |
| 183 |
),'update' => array( |
| 184 |
'path' => 'v2beta1/{+metricName}', |
| 185 |
'httpMethod' => 'PUT', |
| 186 |
'parameters' => array( |
| 187 |
'metricName' => array( |
| 188 |
'location' => 'path', |
| 189 |
'type' => 'string', |
| 190 |
'required' => true, |
| 191 |
), |
| 192 |
), |
| 193 |
), |
| 194 |
) |
| 195 |
) |
| 196 |
); |
| 197 |
$this->projects_sinks = new Google_Service_Logging_ProjectsSinks_Resource( |
| 198 |
$this, |
| 199 |
$this->serviceName, |
| 200 |
'sinks', |
| 201 |
array( |
| 202 |
'methods' => array( |
| 203 |
'create' => array( |
| 204 |
'path' => 'v2beta1/{+projectName}/sinks', |
| 205 |
'httpMethod' => 'POST', |
| 206 |
'parameters' => array( |
| 207 |
'projectName' => array( |
| 208 |
'location' => 'path', |
| 209 |
'type' => 'string', |
| 210 |
'required' => true, |
| 211 |
), |
| 212 |
), |
| 213 |
),'delete' => array( |
| 214 |
'path' => 'v2beta1/{+sinkName}', |
| 215 |
'httpMethod' => 'DELETE', |
| 216 |
'parameters' => array( |
| 217 |
'sinkName' => array( |
| 218 |
'location' => 'path', |
| 219 |
'type' => 'string', |
| 220 |
'required' => true, |
| 221 |
), |
| 222 |
), |
| 223 |
),'get' => array( |
| 224 |
'path' => 'v2beta1/{+sinkName}', |
| 225 |
'httpMethod' => 'GET', |
| 226 |
'parameters' => array( |
| 227 |
'sinkName' => array( |
| 228 |
'location' => 'path', |
| 229 |
'type' => 'string', |
| 230 |
'required' => true, |
| 231 |
), |
| 232 |
), |
| 233 |
),'list' => array( |
| 234 |
'path' => 'v2beta1/{+projectName}/sinks', |
| 235 |
'httpMethod' => 'GET', |
| 236 |
'parameters' => array( |
| 237 |
'projectName' => array( |
| 238 |
'location' => 'path', |
| 239 |
'type' => 'string', |
| 240 |
'required' => true, |
| 241 |
), |
| 242 |
'pageToken' => array( |
| 243 |
'location' => 'query', |
| 244 |
'type' => 'string', |
| 245 |
), |
| 246 |
'pageSize' => array( |
| 247 |
'location' => 'query', |
| 248 |
'type' => 'integer', |
| 249 |
), |
| 250 |
), |
| 251 |
),'update' => array( |
| 252 |
'path' => 'v2beta1/{+sinkName}', |
| 253 |
'httpMethod' => 'PUT', |
| 254 |
'parameters' => array( |
| 255 |
'sinkName' => array( |
| 256 |
'location' => 'path', |
| 257 |
'type' => 'string', |
| 258 |
'required' => true, |
| 259 |
), |
| 260 |
), |
| 261 |
), |
| 262 |
) |
| 263 |
) |
| 264 |
); |
| 265 |
} |
| 266 |
} |
| 267 |
|
| 268 |
|
| 269 |
/** |
| 270 |
* The "entries" collection of methods. |
| 271 |
* Typical usage is: |
| 272 |
* <code> |
| 273 |
* $loggingService = new Google_Service_Logging(...); |
| 274 |
* $entries = $loggingService->entries; |
| 275 |
* </code> |
| 276 |
*/ |
| 277 |
class Google_Service_Logging_Entries_Resource extends Google_Service_Resource |
| 278 |
{ |
| 279 |
|
| 280 |
/** |
| 281 |
* Lists log entries. Use this method to retrieve log entries from Cloud |
| 282 |
* Logging. For ways to export log entries, see [Exporting |
| 283 |
* Logs](/logging/docs/export). (entries.listEntries) |
| 284 |
* |
| 285 |
* @param Google_ListLogEntriesRequest $postBody |
| 286 |
* @param array $optParams Optional parameters. |
| 287 |
* @return Google_Service_Logging_ListLogEntriesResponse |
| 288 |
*/ |
| 289 |
public function listEntries(Google_Service_Logging_ListLogEntriesRequest $postBody, $optParams = array()) |
| 290 |
{ |
| 291 |
$params = array('postBody' => $postBody); |
| 292 |
$params = array_merge($params, $optParams); |
| 293 |
return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse"); |
| 294 |
} |
| 295 |
|
| 296 |
/** |
| 297 |
* Writes log entries to Cloud Logging. All log entries in Cloud Logging are |
| 298 |
* written by this method. (entries.write) |
| 299 |
* |
| 300 |
* @param Google_WriteLogEntriesRequest $postBody |
| 301 |
* @param array $optParams Optional parameters. |
| 302 |
* @return Google_Service_Logging_WriteLogEntriesResponse |
| 303 |
*/ |
| 304 |
public function write(Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array()) |
| 305 |
{ |
| 306 |
$params = array('postBody' => $postBody); |
| 307 |
$params = array_merge($params, $optParams); |
| 308 |
return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse"); |
| 309 |
} |
| 310 |
} |
| 311 |
|
| 312 |
/** |
| 313 |
* The "monitoredResourceDescriptors" collection of methods. |
| 314 |
* Typical usage is: |
| 315 |
* <code> |
| 316 |
* $loggingService = new Google_Service_Logging(...); |
| 317 |
* $monitoredResourceDescriptors = $loggingService->monitoredResourceDescriptors; |
| 318 |
* </code> |
| 319 |
*/ |
| 320 |
class Google_Service_Logging_MonitoredResourceDescriptors_Resource extends Google_Service_Resource |
| 321 |
{ |
| 322 |
|
| 323 |
/** |
| 324 |
* Lists monitored resource descriptors that are used by Cloud Logging. |
| 325 |
* (monitoredResourceDescriptors.listMonitoredResourceDescriptors) |
| 326 |
* |
| 327 |
* @param array $optParams Optional parameters. |
| 328 |
* |
| 329 |
* @opt_param int pageSize Optional. The maximum number of results to return |
| 330 |
* from this request. Fewer results might be returned. You must check for the |
| 331 |
* `nextPageToken` result to determine if additional results are available, |
| 332 |
* which you can retrieve by passing the `nextPageToken` value in the |
| 333 |
* `pageToken` parameter to the next request. |
| 334 |
* @opt_param string pageToken Optional. If the `pageToken` request parameter is |
| 335 |
* supplied, then the next page of results in the set are retrieved. The |
| 336 |
* `pageToken` parameter must be set with the value of the `nextPageToken` |
| 337 |
* result parameter from the previous request. |
| 338 |
* @return Google_Service_Logging_ListMonitoredResourceDescriptorsResponse |
| 339 |
*/ |
| 340 |
public function listMonitoredResourceDescriptors($optParams = array()) |
| 341 |
{ |
| 342 |
$params = array(); |
| 343 |
$params = array_merge($params, $optParams); |
| 344 |
return $this->call('list', array($params), "Google_Service_Logging_ListMonitoredResourceDescriptorsResponse"); |
| 345 |
} |
| 346 |
} |
| 347 |
|
| 348 |
/** |
| 349 |
* The "projects" collection of methods. |
| 350 |
* Typical usage is: |
| 351 |
* <code> |
| 352 |
* $loggingService = new Google_Service_Logging(...); |
| 353 |
* $projects = $loggingService->projects; |
| 354 |
* </code> |
| 355 |
*/ |
| 356 |
class Google_Service_Logging_Projects_Resource extends Google_Service_Resource |
| 357 |
{ |
| 358 |
} |
| 359 |
|
| 360 |
/** |
| 361 |
* The "logs" collection of methods. |
| 362 |
* Typical usage is: |
| 363 |
* <code> |
| 364 |
* $loggingService = new Google_Service_Logging(...); |
| 365 |
* $logs = $loggingService->logs; |
| 366 |
* </code> |
| 367 |
*/ |
| 368 |
class Google_Service_Logging_ProjectsLogs_Resource extends Google_Service_Resource |
| 369 |
{ |
| 370 |
|
| 371 |
/** |
| 372 |
* Deletes a log and all its log entries. The log will reappear if it receives |
| 373 |
* new entries. (logs.delete) |
| 374 |
* |
| 375 |
* @param string $logName Required. The resource name of the log to delete. |
| 376 |
* Example: `"projects/my-project/logs/syslog"`. |
| 377 |
* @param array $optParams Optional parameters. |
| 378 |
* @return Google_Service_Logging_Empty |
| 379 |
*/ |
| 380 |
public function delete($logName, $optParams = array()) |
| 381 |
{ |
| 382 |
$params = array('logName' => $logName); |
| 383 |
$params = array_merge($params, $optParams); |
| 384 |
return $this->call('delete', array($params), "Google_Service_Logging_Empty"); |
| 385 |
} |
| 386 |
} |
| 387 |
/** |
| 388 |
* The "metrics" collection of methods. |
| 389 |
* Typical usage is: |
| 390 |
* <code> |
| 391 |
* $loggingService = new Google_Service_Logging(...); |
| 392 |
* $metrics = $loggingService->metrics; |
| 393 |
* </code> |
| 394 |
*/ |
| 395 |
class Google_Service_Logging_ProjectsMetrics_Resource extends Google_Service_Resource |
| 396 |
{ |
| 397 |
|
| 398 |
/** |
| 399 |
* Creates a logs-based metric. (metrics.create) |
| 400 |
* |
| 401 |
* @param string $projectName The resource name of the project in which to |
| 402 |
* create the metric. Example: `"projects/my-project-id"`. The new metric must |
| 403 |
* be provided in the request. |
| 404 |
* @param Google_LogMetric $postBody |
| 405 |
* @param array $optParams Optional parameters. |
| 406 |
* @return Google_Service_Logging_LogMetric |
| 407 |
*/ |
| 408 |
public function create($projectName, Google_Service_Logging_LogMetric $postBody, $optParams = array()) |
| 409 |
{ |
| 410 |
$params = array('projectName' => $projectName, 'postBody' => $postBody); |
| 411 |
$params = array_merge($params, $optParams); |
| 412 |
return $this->call('create', array($params), "Google_Service_Logging_LogMetric"); |
| 413 |
} |
| 414 |
|
| 415 |
/** |
| 416 |
* Deletes a logs-based metric. (metrics.delete) |
| 417 |
* |
| 418 |
* @param string $metricName The resource name of the metric to delete. Example: |
| 419 |
* `"projects/my-project-id/metrics/my-metric-id"`. |
| 420 |
* @param array $optParams Optional parameters. |
| 421 |
* @return Google_Service_Logging_Empty |
| 422 |
*/ |
| 423 |
public function delete($metricName, $optParams = array()) |
| 424 |
{ |
| 425 |
$params = array('metricName' => $metricName); |
| 426 |
$params = array_merge($params, $optParams); |
| 427 |
return $this->call('delete', array($params), "Google_Service_Logging_Empty"); |
| 428 |
} |
| 429 |
|
| 430 |
/** |
| 431 |
* Gets a logs-based metric. (metrics.get) |
| 432 |
* |
| 433 |
* @param string $metricName The resource name of the desired metric. Example: |
| 434 |
* `"projects/my-project-id/metrics/my-metric-id"`. |
| 435 |
* @param array $optParams Optional parameters. |
| 436 |
* @return Google_Service_Logging_LogMetric |
| 437 |
*/ |
| 438 |
public function get($metricName, $optParams = array()) |
| 439 |
{ |
| 440 |
$params = array('metricName' => $metricName); |
| 441 |
$params = array_merge($params, $optParams); |
| 442 |
return $this->call('get', array($params), "Google_Service_Logging_LogMetric"); |
| 443 |
} |
| 444 |
|
| 445 |
/** |
| 446 |
* Lists logs-based metrics. (metrics.listProjectsMetrics) |
| 447 |
* |
| 448 |
* @param string $projectName Required. The resource name of the project |
| 449 |
* containing the metrics. Example: `"projects/my-project-id"`. |
| 450 |
* @param array $optParams Optional parameters. |
| 451 |
* |
| 452 |
* @opt_param string pageToken Optional. If the `pageToken` request parameter is |
| 453 |
* supplied, then the next page of results in the set are retrieved. The |
| 454 |
* `pageToken` parameter must be set with the value of the `nextPageToken` |
| 455 |
* result parameter from the previous request. The value of `projectName` must |
| 456 |
* be the same as in the previous request. |
| 457 |
* @opt_param int pageSize Optional. The maximum number of results to return |
| 458 |
* from this request. Fewer results might be returned. You must check for the |
| 459 |
* `nextPageToken` result to determine if additional results are available, |
| 460 |
* which you can retrieve by passing the `nextPageToken` value in the |
| 461 |
* `pageToken` parameter to the next request. |
| 462 |
* @return Google_Service_Logging_ListLogMetricsResponse |
| 463 |
*/ |
| 464 |
public function listProjectsMetrics($projectName, $optParams = array()) |
| 465 |
{ |
| 466 |
$params = array('projectName' => $projectName); |
| 467 |
$params = array_merge($params, $optParams); |
| 468 |
return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse"); |
| 469 |
} |
| 470 |
|
| 471 |
/** |
| 472 |
* Creates or updates a logs-based metric. (metrics.update) |
| 473 |
* |
| 474 |
* @param string $metricName The resource name of the metric to update. Example: |
| 475 |
* `"projects/my-project-id/metrics/my-metric-id"`. The updated metric must be |
| 476 |
* provided in the request and have the same identifier that is specified in |
| 477 |
* `metricName`. If the metric does not exist, it is created. |
| 478 |
* @param Google_LogMetric $postBody |
| 479 |
* @param array $optParams Optional parameters. |
| 480 |
* @return Google_Service_Logging_LogMetric |
| 481 |
*/ |
| 482 |
public function update($metricName, Google_Service_Logging_LogMetric $postBody, $optParams = array()) |
| 483 |
{ |
| 484 |
$params = array('metricName' => $metricName, 'postBody' => $postBody); |
| 485 |
$params = array_merge($params, $optParams); |
| 486 |
return $this->call('update', array($params), "Google_Service_Logging_LogMetric"); |
| 487 |
} |
| 488 |
} |
| 489 |
/** |
| 490 |
* The "sinks" collection of methods. |
| 491 |
* Typical usage is: |
| 492 |
* <code> |
| 493 |
* $loggingService = new Google_Service_Logging(...); |
| 494 |
* $sinks = $loggingService->sinks; |
| 495 |
* </code> |
| 496 |
*/ |
| 497 |
class Google_Service_Logging_ProjectsSinks_Resource extends Google_Service_Resource |
| 498 |
{ |
| 499 |
|
| 500 |
/** |
| 501 |
* Creates a sink. (sinks.create) |
| 502 |
* |
| 503 |
* @param string $projectName The resource name of the project in which to |
| 504 |
* create the sink. Example: `"projects/my-project-id"`. The new sink must be |
| 505 |
* provided in the request. |
| 506 |
* @param Google_LogSink $postBody |
| 507 |
* @param array $optParams Optional parameters. |
| 508 |
* @return Google_Service_Logging_LogSink |
| 509 |
*/ |
| 510 |
public function create($projectName, Google_Service_Logging_LogSink $postBody, $optParams = array()) |
| 511 |
{ |
| 512 |
$params = array('projectName' => $projectName, 'postBody' => $postBody); |
| 513 |
$params = array_merge($params, $optParams); |
| 514 |
return $this->call('create', array($params), "Google_Service_Logging_LogSink"); |
| 515 |
} |
| 516 |
|
| 517 |
/** |
| 518 |
* Deletes a sink. (sinks.delete) |
| 519 |
* |
| 520 |
* @param string $sinkName The resource name of the sink to delete. Example: |
| 521 |
* `"projects/my-project-id/sinks/my-sink-id"`. |
| 522 |
* @param array $optParams Optional parameters. |
| 523 |
* @return Google_Service_Logging_Empty |
| 524 |
*/ |
| 525 |
public function delete($sinkName, $optParams = array()) |
| 526 |
{ |
| 527 |
$params = array('sinkName' => $sinkName); |
| 528 |
$params = array_merge($params, $optParams); |
| 529 |
return $this->call('delete', array($params), "Google_Service_Logging_Empty"); |
| 530 |
} |
| 531 |
|
| 532 |
/** |
| 533 |
* Gets a sink. (sinks.get) |
| 534 |
* |
| 535 |
* @param string $sinkName The resource name of the sink to return. Example: |
| 536 |
* `"projects/my-project-id/sinks/my-sink-id"`. |
| 537 |
* @param array $optParams Optional parameters. |
| 538 |
* @return Google_Service_Logging_LogSink |
| 539 |
*/ |
| 540 |
public function get($sinkName, $optParams = array()) |
| 541 |
{ |
| 542 |
$params = array('sinkName' => $sinkName); |
| 543 |
$params = array_merge($params, $optParams); |
| 544 |
return $this->call('get', array($params), "Google_Service_Logging_LogSink"); |
| 545 |
} |
| 546 |
|
| 547 |
/** |
| 548 |
* Lists sinks. (sinks.listProjectsSinks) |
| 549 |
* |
| 550 |
* @param string $projectName Required. The resource name of the project |
| 551 |
* containing the sinks. Example: `"projects/my-logging-project"`, |
| 552 |
* `"projects/01234567890"`. |
| 553 |
* @param array $optParams Optional parameters. |
| 554 |
* |
| 555 |
* @opt_param string pageToken Optional. If the `pageToken` request parameter is |
| 556 |
* supplied, then the next page of results in the set are retrieved. The |
| 557 |
* `pageToken` parameter must be set with the value of the `nextPageToken` |
| 558 |
* result parameter from the previous request. The value of `projectName` must |
| 559 |
* be the same as in the previous request. |
| 560 |
* @opt_param int pageSize Optional. The maximum number of results to return |
| 561 |
* from this request. Fewer results might be returned. You must check for the |
| 562 |
* `nextPageToken` result to determine if additional results are available, |
| 563 |
* which you can retrieve by passing the `nextPageToken` value in the |
| 564 |
* `pageToken` parameter to the next request. |
| 565 |
* @return Google_Service_Logging_ListSinksResponse |
| 566 |
*/ |
| 567 |
public function listProjectsSinks($projectName, $optParams = array()) |
| 568 |
{ |
| 569 |
$params = array('projectName' => $projectName); |
| 570 |
$params = array_merge($params, $optParams); |
| 571 |
return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse"); |
| 572 |
} |
| 573 |
|
| 574 |
/** |
| 575 |
* Creates or updates a sink. (sinks.update) |
| 576 |
* |
| 577 |
* @param string $sinkName The resource name of the sink to update. Example: |
| 578 |
* `"projects/my-project-id/sinks/my-sink-id"`. The updated sink must be |
| 579 |
* provided in the request and have the same name that is specified in |
| 580 |
* `sinkName`. If the sink does not exist, it is created. |
| 581 |
* @param Google_LogSink $postBody |
| 582 |
* @param array $optParams Optional parameters. |
| 583 |
* @return Google_Service_Logging_LogSink |
| 584 |
*/ |
| 585 |
public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) |
| 586 |
{ |
| 587 |
$params = array('sinkName' => $sinkName, 'postBody' => $postBody); |
| 588 |
$params = array_merge($params, $optParams); |
| 589 |
return $this->call('update', array($params), "Google_Service_Logging_LogSink"); |
| 590 |
} |
| 591 |
} |
| 592 |
|
| 593 |
|
| 594 |
|
| 595 |
|
| 596 |
class Google_Service_Logging_Empty extends Google_Model |
| 597 |
{ |
| 598 |
} |
| 599 |
|
| 600 |
class Google_Service_Logging_HttpRequest extends Google_Model |
| 601 |
{ |
| 602 |
protected $internal_gapi_mappings = array( |
| 603 |
); |
| 604 |
public $cacheHit; |
| 605 |
public $referer; |
| 606 |
public $remoteIp; |
| 607 |
public $requestMethod; |
| 608 |
public $requestSize; |
| 609 |
public $requestUrl; |
| 610 |
public $responseSize; |
| 611 |
public $status; |
| 612 |
public $userAgent; |
| 613 |
public $validatedWithOriginServer; |
| 614 |
|
| 615 |
|
| 616 |
public function setCacheHit($cacheHit) |
| 617 |
{ |
| 618 |
$this->cacheHit = $cacheHit; |
| 619 |
} |
| 620 |
public function getCacheHit() |
| 621 |
{ |
| 622 |
return $this->cacheHit; |
| 623 |
} |
| 624 |
public function setReferer($referer) |
| 625 |
{ |
| 626 |
$this->referer = $referer; |
| 627 |
} |
| 628 |
public function getReferer() |
| 629 |
{ |
| 630 |
return $this->referer; |
| 631 |
} |
| 632 |
public function setRemoteIp($remoteIp) |
| 633 |
{ |
| 634 |
$this->remoteIp = $remoteIp; |
| 635 |
} |
| 636 |
public function getRemoteIp() |
| 637 |
{ |
| 638 |
return $this->remoteIp; |
| 639 |
} |
| 640 |
public function setRequestMethod($requestMethod) |
| 641 |
{ |
| 642 |
$this->requestMethod = $requestMethod; |
| 643 |
} |
| 644 |
public function getRequestMethod() |
| 645 |
{ |
| 646 |
return $this->requestMethod; |
| 647 |
} |
| 648 |
public function setRequestSize($requestSize) |
| 649 |
{ |
| 650 |
$this->requestSize = $requestSize; |
| 651 |
} |
| 652 |
public function getRequestSize() |
| 653 |
{ |
| 654 |
return $this->requestSize; |
| 655 |
} |
| 656 |
public function setRequestUrl($requestUrl) |
| 657 |
{ |
| 658 |
$this->requestUrl = $requestUrl; |
| 659 |
} |
| 660 |
public function getRequestUrl() |
| 661 |
{ |
| 662 |
return $this->requestUrl; |
| 663 |
} |
| 664 |
public function setResponseSize($responseSize) |
| 665 |
{ |
| 666 |
$this->responseSize = $responseSize; |
| 667 |
} |
| 668 |
public function getResponseSize() |
| 669 |
{ |
| 670 |
return $this->responseSize; |
| 671 |
} |
| 672 |
public function setStatus($status) |
| 673 |
{ |
| 674 |
$this->status = $status; |
| 675 |
} |
| 676 |
public function getStatus() |
| 677 |
{ |
| 678 |
return $this->status; |
| 679 |
} |
| 680 |
public function setUserAgent($userAgent) |
| 681 |
{ |
| 682 |
$this->userAgent = $userAgent; |
| 683 |
} |
| 684 |
public function getUserAgent() |
| 685 |
{ |
| 686 |
return $this->userAgent; |
| 687 |
} |
| 688 |
public function setValidatedWithOriginServer($validatedWithOriginServer) |
| 689 |
{ |
| 690 |
$this->validatedWithOriginServer = $validatedWithOriginServer; |
| 691 |
} |
| 692 |
public function getValidatedWithOriginServer() |
| 693 |
{ |
| 694 |
return $this->validatedWithOriginServer; |
| 695 |
} |
| 696 |
} |
| 697 |
|
| 698 |
class Google_Service_Logging_LabelDescriptor extends Google_Model |
| 699 |
{ |
| 700 |
protected $internal_gapi_mappings = array( |
| 701 |
); |
| 702 |
public $description; |
| 703 |
public $key; |
| 704 |
public $valueType; |
| 705 |
|
| 706 |
|
| 707 |
public function setDescription($description) |
| 708 |
{ |
| 709 |
$this->description = $description; |
| 710 |
} |
| 711 |
public function getDescription() |
| 712 |
{ |
| 713 |
return $this->description; |
| 714 |
} |
| 715 |
public function setKey($key) |
| 716 |
{ |
| 717 |
$this->key = $key; |
| 718 |
} |
| 719 |
public function getKey() |
| 720 |
{ |
| 721 |
return $this->key; |
| 722 |
} |
| 723 |
public function setValueType($valueType) |
| 724 |
{ |
| 725 |
$this->valueType = $valueType; |
| 726 |
} |
| 727 |
public function getValueType() |
| 728 |
{ |
| 729 |
return $this->valueType; |
| 730 |
} |
| 731 |
} |
| 732 |
|
| 733 |
class Google_Service_Logging_ListLogEntriesRequest extends Google_Collection |
| 734 |
{ |
| 735 |
protected $collection_key = 'projectIds'; |
| 736 |
protected $internal_gapi_mappings = array( |
| 737 |
); |
| 738 |
public $filter; |
| 739 |
public $orderBy; |
| 740 |
public $pageSize; |
| 741 |
public $pageToken; |
| 742 |
public $projectIds; |
| 743 |
|
| 744 |
|
| 745 |
public function setFilter($filter) |
| 746 |
{ |
| 747 |
$this->filter = $filter; |
| 748 |
} |
| 749 |
public function getFilter() |
| 750 |
{ |
| 751 |
return $this->filter; |
| 752 |
} |
| 753 |
public function setOrderBy($orderBy) |
| 754 |
{ |
| 755 |
$this->orderBy = $orderBy; |
| 756 |
} |
| 757 |
public function getOrderBy() |
| 758 |
{ |
| 759 |
return $this->orderBy; |
| 760 |
} |
| 761 |
public function setPageSize($pageSize) |
| 762 |
{ |
| 763 |
$this->pageSize = $pageSize; |
| 764 |
} |
| 765 |
public function getPageSize() |
| 766 |
{ |
| 767 |
return $this->pageSize; |
| 768 |
} |
| 769 |
public function setPageToken($pageToken) |
| 770 |
{ |
| 771 |
$this->pageToken = $pageToken; |
| 772 |
} |
| 773 |
public function getPageToken() |
| 774 |
{ |
| 775 |
return $this->pageToken; |
| 776 |
} |
| 777 |
public function setProjectIds($projectIds) |
| 778 |
{ |
| 779 |
$this->projectIds = $projectIds; |
| 780 |
} |
| 781 |
public function getProjectIds() |
| 782 |
{ |
| 783 |
return $this->projectIds; |
| 784 |
} |
| 785 |
} |
| 786 |
|
| 787 |
class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection |
| 788 |
{ |
| 789 |
protected $collection_key = 'entries'; |
| 790 |
protected $internal_gapi_mappings = array( |
| 791 |
); |
| 792 |
protected $entriesType = 'Google_Service_Logging_LogEntry'; |
| 793 |
protected $entriesDataType = 'array'; |
| 794 |
public $nextPageToken; |
| 795 |
|
| 796 |
|
| 797 |
public function setEntries($entries) |
| 798 |
{ |
| 799 |
$this->entries = $entries; |
| 800 |
} |
| 801 |
public function getEntries() |
| 802 |
{ |
| 803 |
return $this->entries; |
| 804 |
} |
| 805 |
public function setNextPageToken($nextPageToken) |
| 806 |
{ |
| 807 |
$this->nextPageToken = $nextPageToken; |
| 808 |
} |
| 809 |
public function getNextPageToken() |
| 810 |
{ |
| 811 |
return $this->nextPageToken; |
| 812 |
} |
| 813 |
} |
| 814 |
|
| 815 |
class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection |
| 816 |
{ |
| 817 |
protected $collection_key = 'metrics'; |
| 818 |
protected $internal_gapi_mappings = array( |
| 819 |
); |
| 820 |
protected $metricsType = 'Google_Service_Logging_LogMetric'; |
| 821 |
protected $metricsDataType = 'array'; |
| 822 |
public $nextPageToken; |
| 823 |
|
| 824 |
|
| 825 |
public function setMetrics($metrics) |
| 826 |
{ |
| 827 |
$this->metrics = $metrics; |
| 828 |
} |
| 829 |
public function getMetrics() |
| 830 |
{ |
| 831 |
return $this->metrics; |
| 832 |
} |
| 833 |
public function setNextPageToken($nextPageToken) |
| 834 |
{ |
| 835 |
$this->nextPageToken = $nextPageToken; |
| 836 |
} |
| 837 |
public function getNextPageToken() |
| 838 |
{ |
| 839 |
return $this->nextPageToken; |
| 840 |
} |
| 841 |
} |
| 842 |
|
| 843 |
class Google_Service_Logging_ListMonitoredResourceDescriptorsResponse extends Google_Collection |
| 844 |
{ |
| 845 |
protected $collection_key = 'resourceDescriptors'; |
| 846 |
protected $internal_gapi_mappings = array( |
| 847 |
); |
| 848 |
public $nextPageToken; |
| 849 |
protected $resourceDescriptorsType = 'Google_Service_Logging_MonitoredResourceDescriptor'; |
| 850 |
protected $resourceDescriptorsDataType = 'array'; |
| 851 |
|
| 852 |
|
| 853 |
public function setNextPageToken($nextPageToken) |
| 854 |
{ |
| 855 |
$this->nextPageToken = $nextPageToken; |
| 856 |
} |
| 857 |
public function getNextPageToken() |
| 858 |
{ |
| 859 |
return $this->nextPageToken; |
| 860 |
} |
| 861 |
public function setResourceDescriptors($resourceDescriptors) |
| 862 |
{ |
| 863 |
$this->resourceDescriptors = $resourceDescriptors; |
| 864 |
} |
| 865 |
public function getResourceDescriptors() |
| 866 |
{ |
| 867 |
return $this->resourceDescriptors; |
| 868 |
} |
| 869 |
} |
| 870 |
|
| 871 |
class Google_Service_Logging_ListSinksResponse extends Google_Collection |
| 872 |
{ |
| 873 |
protected $collection_key = 'sinks'; |
| 874 |
protected $internal_gapi_mappings = array( |
| 875 |
); |
| 876 |
public $nextPageToken; |
| 877 |
protected $sinksType = 'Google_Service_Logging_LogSink'; |
| 878 |
protected $sinksDataType = 'array'; |
| 879 |
|
| 880 |
|
| 881 |
public function setNextPageToken($nextPageToken) |
| 882 |
{ |
| 883 |
$this->nextPageToken = $nextPageToken; |
| 884 |
} |
| 885 |
public function getNextPageToken() |
| 886 |
{ |
| 887 |
return $this->nextPageToken; |
| 888 |
} |
| 889 |
public function setSinks($sinks) |
| 890 |
{ |
| 891 |
$this->sinks = $sinks; |
| 892 |
} |
| 893 |
public function getSinks() |
| 894 |
{ |
| 895 |
return $this->sinks; |
| 896 |
} |
| 897 |
} |
| 898 |
|
| 899 |
class Google_Service_Logging_LogEntry extends Google_Model |
| 900 |
{ |
| 901 |
protected $internal_gapi_mappings = array( |
| 902 |
); |
| 903 |
protected $httpRequestType = 'Google_Service_Logging_HttpRequest'; |
| 904 |
protected $httpRequestDataType = ''; |
| 905 |
public $insertId; |
| 906 |
public $jsonPayload; |
| 907 |
public $labels; |
| 908 |
public $logName; |
| 909 |
protected $operationType = 'Google_Service_Logging_LogEntryOperation'; |
| 910 |
protected $operationDataType = ''; |
| 911 |
public $protoPayload; |
| 912 |
protected $resourceType = 'Google_Service_Logging_MonitoredResource'; |
| 913 |
protected $resourceDataType = ''; |
| 914 |
public $severity; |
| 915 |
public $textPayload; |
| 916 |
public $timestamp; |
| 917 |
|
| 918 |
|
| 919 |
public function setHttpRequest(Google_Service_Logging_HttpRequest $httpRequest) |
| 920 |
{ |
| 921 |
$this->httpRequest = $httpRequest; |
| 922 |
} |
| 923 |
public function getHttpRequest() |
| 924 |
{ |
| 925 |
return $this->httpRequest; |
| 926 |
} |
| 927 |
public function setInsertId($insertId) |
| 928 |
{ |
| 929 |
$this->insertId = $insertId; |
| 930 |
} |
| 931 |
public function getInsertId() |
| 932 |
{ |
| 933 |
return $this->insertId; |
| 934 |
} |
| 935 |
public function setJsonPayload($jsonPayload) |
| 936 |
{ |
| 937 |
$this->jsonPayload = $jsonPayload; |
| 938 |
} |
| 939 |
public function getJsonPayload() |
| 940 |
{ |
| 941 |
return $this->jsonPayload; |
| 942 |
} |
| 943 |
public function setLabels($labels) |
| 944 |
{ |
| 945 |
$this->labels = $labels; |
| 946 |
} |
| 947 |
public function getLabels() |
| 948 |
{ |
| 949 |
return $this->labels; |
| 950 |
} |
| 951 |
public function setLogName($logName) |
| 952 |
{ |
| 953 |
$this->logName = $logName; |
| 954 |
} |
| 955 |
public function getLogName() |
| 956 |
{ |
| 957 |
return $this->logName; |
| 958 |
} |
| 959 |
public function setOperation(Google_Service_Logging_LogEntryOperation $operation) |
| 960 |
{ |
| 961 |
$this->operation = $operation; |
| 962 |
} |
| 963 |
public function getOperation() |
| 964 |
{ |
| 965 |
return $this->operation; |
| 966 |
} |
| 967 |
public function setProtoPayload($protoPayload) |
| 968 |
{ |
| 969 |
$this->protoPayload = $protoPayload; |
| 970 |
} |
| 971 |
public function getProtoPayload() |
| 972 |
{ |
| 973 |
return $this->protoPayload; |
| 974 |
} |
| 975 |
public function setResource(Google_Service_Logging_MonitoredResource $resource) |
| 976 |
{ |
| 977 |
$this->resource = $resource; |
| 978 |
} |
| 979 |
public function getResource() |
| 980 |
{ |
| 981 |
return $this->resource; |
| 982 |
} |
| 983 |
public function setSeverity($severity) |
| 984 |
{ |
| 985 |
$this->severity = $severity; |
| 986 |
} |
| 987 |
public function getSeverity() |
| 988 |
{ |
| 989 |
return $this->severity; |
| 990 |
} |
| 991 |
public function setTextPayload($textPayload) |
| 992 |
{ |
| 993 |
$this->textPayload = $textPayload; |
| 994 |
} |
| 995 |
public function getTextPayload() |
| 996 |
{ |
| 997 |
return $this->textPayload; |
| 998 |
} |
| 999 |
public function setTimestamp($timestamp) |
| 1000 |
{ |
| 1001 |
$this->timestamp = $timestamp; |
| 1002 |
} |
| 1003 |
public function getTimestamp() |
| 1004 |
{ |
| 1005 |
return $this->timestamp; |
| 1006 |
} |
| 1007 |
} |
| 1008 |
|
| 1009 |
class Google_Service_Logging_LogEntryOperation extends Google_Model |
| 1010 |
{ |
| 1011 |
protected $internal_gapi_mappings = array( |
| 1012 |
); |
| 1013 |
public $first; |
| 1014 |
public $id; |
| 1015 |
public $last; |
| 1016 |
public $producer; |
| 1017 |
|
| 1018 |
|
| 1019 |
public function setFirst($first) |
| 1020 |
{ |
| 1021 |
$this->first = $first; |
| 1022 |
} |
| 1023 |
public function getFirst() |
| 1024 |
{ |
| 1025 |
return $this->first; |
| 1026 |
} |
| 1027 |
public function setId($id) |
| 1028 |
{ |
| 1029 |
$this->id = $id; |
| 1030 |
} |
| 1031 |
public function getId() |
| 1032 |
{ |
| 1033 |
return $this->id; |
| 1034 |
} |
| 1035 |
public function setLast($last) |
| 1036 |
{ |
| 1037 |
$this->last = $last; |
| 1038 |
} |
| 1039 |
public function getLast() |
| 1040 |
{ |
| 1041 |
return $this->last; |
| 1042 |
} |
| 1043 |
public function setProducer($producer) |
| 1044 |
{ |
| 1045 |
$this->producer = $producer; |
| 1046 |
} |
| 1047 |
public function getProducer() |
| 1048 |
{ |
| 1049 |
return $this->producer; |
| 1050 |
} |
| 1051 |
} |
| 1052 |
|
| 1053 |
class Google_Service_Logging_LogLine extends Google_Model |
| 1054 |
{ |
| 1055 |
protected $internal_gapi_mappings = array( |
| 1056 |
); |
| 1057 |
public $logMessage; |
| 1058 |
public $severity; |
| 1059 |
protected $sourceLocationType = 'Google_Service_Logging_SourceLocation'; |
| 1060 |
protected $sourceLocationDataType = ''; |
| 1061 |
public $time; |
| 1062 |
|
| 1063 |
|
| 1064 |
public function setLogMessage($logMessage) |
| 1065 |
{ |
| 1066 |
$this->logMessage = $logMessage; |
| 1067 |
} |
| 1068 |
public function getLogMessage() |
| 1069 |
{ |
| 1070 |
return $this->logMessage; |
| 1071 |
} |
| 1072 |
public function setSeverity($severity) |
| 1073 |
{ |
| 1074 |
$this->severity = $severity; |
| 1075 |
} |
| 1076 |
public function getSeverity() |
| 1077 |
{ |
| 1078 |
return $this->severity; |
| 1079 |
} |
| 1080 |
public function setSourceLocation(Google_Service_Logging_SourceLocation $sourceLocation) |
| 1081 |
{ |
| 1082 |
$this->sourceLocation = $sourceLocation; |
| 1083 |
} |
| 1084 |
public function getSourceLocation() |
| 1085 |
{ |
| 1086 |
return $this->sourceLocation; |
| 1087 |
} |
| 1088 |
public function setTime($time) |
| 1089 |
{ |
| 1090 |
$this->time = $time; |
| 1091 |
} |
| 1092 |
public function getTime() |
| 1093 |
{ |
| 1094 |
return $this->time; |
| 1095 |
} |
| 1096 |
} |
| 1097 |
|
| 1098 |
class Google_Service_Logging_LogMetric extends Google_Model |
| 1099 |
{ |
| 1100 |
protected $internal_gapi_mappings = array( |
| 1101 |
); |
| 1102 |
public $description; |
| 1103 |
public $filter; |
| 1104 |
public $name; |
| 1105 |
|
| 1106 |
|
| 1107 |
public function setDescription($description) |
| 1108 |
{ |
| 1109 |
$this->description = $description; |
| 1110 |
} |
| 1111 |
public function getDescription() |
| 1112 |
{ |
| 1113 |
return $this->description; |
| 1114 |
} |
| 1115 |
public function setFilter($filter) |
| 1116 |
{ |
| 1117 |
$this->filter = $filter; |
| 1118 |
} |
| 1119 |
public function getFilter() |
| 1120 |
{ |
| 1121 |
return $this->filter; |
| 1122 |
} |
| 1123 |
public function setName($name) |
| 1124 |
{ |
| 1125 |
$this->name = $name; |
| 1126 |
} |
| 1127 |
public function getName() |
| 1128 |
{ |
| 1129 |
return $this->name; |
| 1130 |
} |
| 1131 |
} |
| 1132 |
|
| 1133 |
class Google_Service_Logging_LogSink extends Google_Model |
| 1134 |
{ |
| 1135 |
protected $internal_gapi_mappings = array( |
| 1136 |
); |
| 1137 |
public $destination; |
| 1138 |
public $filter; |
| 1139 |
public $name; |
| 1140 |
public $outputVersionFormat; |
| 1141 |
|
| 1142 |
|
| 1143 |
public function setDestination($destination) |
| 1144 |
{ |
| 1145 |
$this->destination = $destination; |
| 1146 |
} |
| 1147 |
public function getDestination() |
| 1148 |
{ |
| 1149 |
return $this->destination; |
| 1150 |
} |
| 1151 |
public function setFilter($filter) |
| 1152 |
{ |
| 1153 |
$this->filter = $filter; |
| 1154 |
} |
| 1155 |
public function getFilter() |
| 1156 |
{ |
| 1157 |
return $this->filter; |
| 1158 |
} |
| 1159 |
public function setName($name) |
| 1160 |
{ |
| 1161 |
$this->name = $name; |
| 1162 |
} |
| 1163 |
public function getName() |
| 1164 |
{ |
| 1165 |
return $this->name; |
| 1166 |
} |
| 1167 |
public function setOutputVersionFormat($outputVersionFormat) |
| 1168 |
{ |
| 1169 |
$this->outputVersionFormat = $outputVersionFormat; |
| 1170 |
} |
| 1171 |
public function getOutputVersionFormat() |
| 1172 |
{ |
| 1173 |
return $this->outputVersionFormat; |
| 1174 |
} |
| 1175 |
} |
| 1176 |
|
| 1177 |
class Google_Service_Logging_MonitoredResource extends Google_Model |
| 1178 |
{ |
| 1179 |
protected $internal_gapi_mappings = array( |
| 1180 |
); |
| 1181 |
public $labels; |
| 1182 |
public $type; |
| 1183 |
|
| 1184 |
|
| 1185 |
public function setLabels($labels) |
| 1186 |
{ |
| 1187 |
$this->labels = $labels; |
| 1188 |
} |
| 1189 |
public function getLabels() |
| 1190 |
{ |
| 1191 |
return $this->labels; |
| 1192 |
} |
| 1193 |
public function setType($type) |
| 1194 |
{ |
| 1195 |
$this->type = $type; |
| 1196 |
} |
| 1197 |
public function getType() |
| 1198 |
{ |
| 1199 |
return $this->type; |
| 1200 |
} |
| 1201 |
} |
| 1202 |
|
| 1203 |
class Google_Service_Logging_MonitoredResourceDescriptor extends Google_Collection |
| 1204 |
{ |
| 1205 |
protected $collection_key = 'labels'; |
| 1206 |
protected $internal_gapi_mappings = array( |
| 1207 |
); |
| 1208 |
public $description; |
| 1209 |
public $displayName; |
| 1210 |
protected $labelsType = 'Google_Service_Logging_LabelDescriptor'; |
| 1211 |
protected $labelsDataType = 'array'; |
| 1212 |
public $type; |
| 1213 |
|
| 1214 |
|
| 1215 |
public function setDescription($description) |
| 1216 |
{ |
| 1217 |
$this->description = $description; |
| 1218 |
} |
| 1219 |
public function getDescription() |
| 1220 |
{ |
| 1221 |
return $this->description; |
| 1222 |
} |
| 1223 |
public function setDisplayName($displayName) |
| 1224 |
{ |
| 1225 |
$this->displayName = $displayName; |
| 1226 |
} |
| 1227 |
public function getDisplayName() |
| 1228 |
{ |
| 1229 |
return $this->displayName; |
| 1230 |
} |
| 1231 |
public function setLabels($labels) |
| 1232 |
{ |
| 1233 |
$this->labels = $labels; |
| 1234 |
} |
| 1235 |
public function getLabels() |
| 1236 |
{ |
| 1237 |
return $this->labels; |
| 1238 |
} |
| 1239 |
public function setType($type) |
| 1240 |
{ |
| 1241 |
$this->type = $type; |
| 1242 |
} |
| 1243 |
public function getType() |
| 1244 |
{ |
| 1245 |
return $this->type; |
| 1246 |
} |
| 1247 |
} |
| 1248 |
|
| 1249 |
class Google_Service_Logging_RequestLog extends Google_Collection |
| 1250 |
{ |
| 1251 |
protected $collection_key = 'sourceReference'; |
| 1252 |
protected $internal_gapi_mappings = array( |
| 1253 |
); |
| 1254 |
public $appEngineRelease; |
| 1255 |
public $appId; |
| 1256 |
public $cost; |
| 1257 |
public $endTime; |
| 1258 |
public $finished; |
| 1259 |
public $host; |
| 1260 |
public $httpVersion; |
| 1261 |
public $instanceId; |
| 1262 |
public $instanceIndex; |
| 1263 |
public $ip; |
| 1264 |
public $latency; |
| 1265 |
protected $lineType = 'Google_Service_Logging_LogLine'; |
| 1266 |
protected $lineDataType = 'array'; |
| 1267 |
public $megaCycles; |
| 1268 |
public $method; |
| 1269 |
public $moduleId; |
| 1270 |
public $nickname; |
| 1271 |
public $pendingTime; |
| 1272 |
public $referrer; |
| 1273 |
public $requestId; |
| 1274 |
public $resource; |
| 1275 |
public $responseSize; |
| 1276 |
protected $sourceReferenceType = 'Google_Service_Logging_SourceReference'; |
| 1277 |
protected $sourceReferenceDataType = 'array'; |
| 1278 |
public $startTime; |
| 1279 |
public $status; |
| 1280 |
public $taskName; |
| 1281 |
public $taskQueueName; |
| 1282 |
public $traceId; |
| 1283 |
public $urlMapEntry; |
| 1284 |
public $userAgent; |
| 1285 |
public $versionId; |
| 1286 |
public $wasLoadingRequest; |
| 1287 |
|
| 1288 |
|
| 1289 |
public function setAppEngineRelease($appEngineRelease) |
| 1290 |
{ |
| 1291 |
$this->appEngineRelease = $appEngineRelease; |
| 1292 |
} |
| 1293 |
public function getAppEngineRelease() |
| 1294 |
{ |
| 1295 |
return $this->appEngineRelease; |
| 1296 |
} |
| 1297 |
public function setAppId($appId) |
| 1298 |
{ |
| 1299 |
$this->appId = $appId; |
| 1300 |
} |
| 1301 |
public function getAppId() |
| 1302 |
{ |
| 1303 |
return $this->appId; |
| 1304 |
} |
| 1305 |
public function setCost($cost) |
| 1306 |
{ |
| 1307 |
$this->cost = $cost; |
| 1308 |
} |
| 1309 |
public function getCost() |
| 1310 |
{ |
| 1311 |
return $this->cost; |
| 1312 |
} |
| 1313 |
public function setEndTime($endTime) |
| 1314 |
{ |
| 1315 |
$this->endTime = $endTime; |
| 1316 |
} |
| 1317 |
public function getEndTime() |
| 1318 |
{ |
| 1319 |
return $this->endTime; |
| 1320 |
} |
| 1321 |
public function setFinished($finished) |
| 1322 |
{ |
| 1323 |
$this->finished = $finished; |
| 1324 |
} |
| 1325 |
public function getFinished() |
| 1326 |
{ |
| 1327 |
return $this->finished; |
| 1328 |
} |
| 1329 |
public function setHost($host) |
| 1330 |
{ |
| 1331 |
$this->host = $host; |
| 1332 |
} |
| 1333 |
public function getHost() |
| 1334 |
{ |
| 1335 |
return $this->host; |
| 1336 |
} |
| 1337 |
public function setHttpVersion($httpVersion) |
| 1338 |
{ |
| 1339 |
$this->httpVersion = $httpVersion; |
| 1340 |
} |
| 1341 |
public function getHttpVersion() |
| 1342 |
{ |
| 1343 |
return $this->httpVersion; |
| 1344 |
} |
| 1345 |
public function setInstanceId($instanceId) |
| 1346 |
{ |
| 1347 |
$this->instanceId = $instanceId; |
| 1348 |
} |
| 1349 |
public function getInstanceId() |
| 1350 |
{ |
| 1351 |
return $this->instanceId; |
| 1352 |
} |
| 1353 |
public function setInstanceIndex($instanceIndex) |
| 1354 |
{ |
| 1355 |
$this->instanceIndex = $instanceIndex; |
| 1356 |
} |
| 1357 |
public function getInstanceIndex() |
| 1358 |
{ |
| 1359 |
return $this->instanceIndex; |
| 1360 |
} |
| 1361 |
public function setIp($ip) |
| 1362 |
{ |
| 1363 |
$this->ip = $ip; |
| 1364 |
} |
| 1365 |
public function getIp() |
| 1366 |
{ |
| 1367 |
return $this->ip; |
| 1368 |
} |
| 1369 |
public function setLatency($latency) |
| 1370 |
{ |
| 1371 |
$this->latency = $latency; |
| 1372 |
} |
| 1373 |
public function getLatency() |
| 1374 |
{ |
| 1375 |
return $this->latency; |
| 1376 |
} |
| 1377 |
public function setLine($line) |
| 1378 |
{ |
| 1379 |
$this->line = $line; |
| 1380 |
} |
| 1381 |
public function getLine() |
| 1382 |
{ |
| 1383 |
return $this->line; |
| 1384 |
} |
| 1385 |
public function setMegaCycles($megaCycles) |
| 1386 |
{ |
| 1387 |
$this->megaCycles = $megaCycles; |
| 1388 |
} |
| 1389 |
public function getMegaCycles() |
| 1390 |
{ |
| 1391 |
return $this->megaCycles; |
| 1392 |
} |
| 1393 |
public function setMethod($method) |
| 1394 |
{ |
| 1395 |
$this->method = $method; |
| 1396 |
} |
| 1397 |
public function getMethod() |
| 1398 |
{ |
| 1399 |
return $this->method; |
| 1400 |
} |
| 1401 |
public function setModuleId($moduleId) |
| 1402 |
{ |
| 1403 |
$this->moduleId = $moduleId; |
| 1404 |
} |
| 1405 |
public function getModuleId() |
| 1406 |
{ |
| 1407 |
return $this->moduleId; |
| 1408 |
} |
| 1409 |
public function setNickname($nickname) |
| 1410 |
{ |
| 1411 |
$this->nickname = $nickname; |
| 1412 |
} |
| 1413 |
public function getNickname() |
| 1414 |
{ |
| 1415 |
return $this->nickname; |
| 1416 |
} |
| 1417 |
public function setPendingTime($pendingTime) |
| 1418 |
{ |
| 1419 |
$this->pendingTime = $pendingTime; |
| 1420 |
} |
| 1421 |
public function getPendingTime() |
| 1422 |
{ |
| 1423 |
return $this->pendingTime; |
| 1424 |
} |
| 1425 |
public function setReferrer($referrer) |
| 1426 |
{ |
| 1427 |
$this->referrer = $referrer; |
| 1428 |
} |
| 1429 |
public function getReferrer() |
| 1430 |
{ |
| 1431 |
return $this->referrer; |
| 1432 |
} |
| 1433 |
public function setRequestId($requestId) |
| 1434 |
{ |
| 1435 |
$this->requestId = $requestId; |
| 1436 |
} |
| 1437 |
public function getRequestId() |
| 1438 |
{ |
| 1439 |
return $this->requestId; |
| 1440 |
} |
| 1441 |
public function setResource($resource) |
| 1442 |
{ |
| 1443 |
$this->resource = $resource; |
| 1444 |
} |
| 1445 |
public function getResource() |
| 1446 |
{ |
| 1447 |
return $this->resource; |
| 1448 |
} |
| 1449 |
public function setResponseSize($responseSize) |
| 1450 |
{ |
| 1451 |
$this->responseSize = $responseSize; |
| 1452 |
} |
| 1453 |
public function getResponseSize() |
| 1454 |
{ |
| 1455 |
return $this->responseSize; |
| 1456 |
} |
| 1457 |
public function setSourceReference($sourceReference) |
| 1458 |
{ |
| 1459 |
$this->sourceReference = $sourceReference; |
| 1460 |
} |
| 1461 |
public function getSourceReference() |
| 1462 |
{ |
| 1463 |
return $this->sourceReference; |
| 1464 |
} |
| 1465 |
public function setStartTime($startTime) |
| 1466 |
{ |
| 1467 |
$this->startTime = $startTime; |
| 1468 |
} |
| 1469 |
public function getStartTime() |
| 1470 |
{ |
| 1471 |
return $this->startTime; |
| 1472 |
} |
| 1473 |
public function setStatus($status) |
| 1474 |
{ |
| 1475 |
$this->status = $status; |
| 1476 |
} |
| 1477 |
public function getStatus() |
| 1478 |
{ |
| 1479 |
return $this->status; |
| 1480 |
} |
| 1481 |
public function setTaskName($taskName) |
| 1482 |
{ |
| 1483 |
$this->taskName = $taskName; |
| 1484 |
} |
| 1485 |
public function getTaskName() |
| 1486 |
{ |
| 1487 |
return $this->taskName; |
| 1488 |
} |
| 1489 |
public function setTaskQueueName($taskQueueName) |
| 1490 |
{ |
| 1491 |
$this->taskQueueName = $taskQueueName; |
| 1492 |
} |
| 1493 |
public function getTaskQueueName() |
| 1494 |
{ |
| 1495 |
return $this->taskQueueName; |
| 1496 |
} |
| 1497 |
public function setTraceId($traceId) |
| 1498 |
{ |
| 1499 |
$this->traceId = $traceId; |
| 1500 |
} |
| 1501 |
public function getTraceId() |
| 1502 |
{ |
| 1503 |
return $this->traceId; |
| 1504 |
} |
| 1505 |
public function setUrlMapEntry($urlMapEntry) |
| 1506 |
{ |
| 1507 |
$this->urlMapEntry = $urlMapEntry; |
| 1508 |
} |
| 1509 |
public function getUrlMapEntry() |
| 1510 |
{ |
| 1511 |
return $this->urlMapEntry; |
| 1512 |
} |
| 1513 |
public function setUserAgent($userAgent) |
| 1514 |
{ |
| 1515 |
$this->userAgent = $userAgent; |
| 1516 |
} |
| 1517 |
public function getUserAgent() |
| 1518 |
{ |
| 1519 |
return $this->userAgent; |
| 1520 |
} |
| 1521 |
public function setVersionId($versionId) |
| 1522 |
{ |
| 1523 |
$this->versionId = $versionId; |
| 1524 |
} |
| 1525 |
public function getVersionId() |
| 1526 |
{ |
| 1527 |
return $this->versionId; |
| 1528 |
} |
| 1529 |
public function setWasLoadingRequest($wasLoadingRequest) |
| 1530 |
{ |
| 1531 |
$this->wasLoadingRequest = $wasLoadingRequest; |
| 1532 |
} |
| 1533 |
public function getWasLoadingRequest() |
| 1534 |
{ |
| 1535 |
return $this->wasLoadingRequest; |
| 1536 |
} |
| 1537 |
} |
| 1538 |
|
| 1539 |
class Google_Service_Logging_SourceLocation extends Google_Model |
| 1540 |
{ |
| 1541 |
protected $internal_gapi_mappings = array( |
| 1542 |
); |
| 1543 |
public $file; |
| 1544 |
public $functionName; |
| 1545 |
public $line; |
| 1546 |
|
| 1547 |
|
| 1548 |
public function setFile($file) |
| 1549 |
{ |
| 1550 |
$this->file = $file; |
| 1551 |
} |
| 1552 |
public function getFile() |
| 1553 |
{ |
| 1554 |
return $this->file; |
| 1555 |
} |
| 1556 |
public function setFunctionName($functionName) |
| 1557 |
{ |
| 1558 |
$this->functionName = $functionName; |
| 1559 |
} |
| 1560 |
public function getFunctionName() |
| 1561 |
{ |
| 1562 |
return $this->functionName; |
| 1563 |
} |
| 1564 |
public function setLine($line) |
| 1565 |
{ |
| 1566 |
$this->line = $line; |
| 1567 |
} |
| 1568 |
public function getLine() |
| 1569 |
{ |
| 1570 |
return $this->line; |
| 1571 |
} |
| 1572 |
} |
| 1573 |
|
| 1574 |
class Google_Service_Logging_SourceReference extends Google_Model |
| 1575 |
{ |
| 1576 |
protected $internal_gapi_mappings = array( |
| 1577 |
); |
| 1578 |
public $repository; |
| 1579 |
public $revisionId; |
| 1580 |
|
| 1581 |
|
| 1582 |
public function setRepository($repository) |
| 1583 |
{ |
| 1584 |
$this->repository = $repository; |
| 1585 |
} |
| 1586 |
public function getRepository() |
| 1587 |
{ |
| 1588 |
return $this->repository; |
| 1589 |
} |
| 1590 |
public function setRevisionId($revisionId) |
| 1591 |
{ |
| 1592 |
$this->revisionId = $revisionId; |
| 1593 |
} |
| 1594 |
public function getRevisionId() |
| 1595 |
{ |
| 1596 |
return $this->revisionId; |
| 1597 |
} |
| 1598 |
} |
| 1599 |
|
| 1600 |
class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection |
| 1601 |
{ |
| 1602 |
protected $collection_key = 'entries'; |
| 1603 |
protected $internal_gapi_mappings = array( |
| 1604 |
); |
| 1605 |
protected $entriesType = 'Google_Service_Logging_LogEntry'; |
| 1606 |
protected $entriesDataType = 'array'; |
| 1607 |
public $labels; |
| 1608 |
public $logName; |
| 1609 |
protected $resourceType = 'Google_Service_Logging_MonitoredResource'; |
| 1610 |
protected $resourceDataType = ''; |
| 1611 |
|
| 1612 |
|
| 1613 |
public function setEntries($entries) |
| 1614 |
{ |
| 1615 |
$this->entries = $entries; |
| 1616 |
} |
| 1617 |
public function getEntries() |
| 1618 |
{ |
| 1619 |
return $this->entries; |
| 1620 |
} |
| 1621 |
public function setLabels($labels) |
| 1622 |
{ |
| 1623 |
$this->labels = $labels; |
| 1624 |
} |
| 1625 |
public function getLabels() |
| 1626 |
{ |
| 1627 |
return $this->labels; |
| 1628 |
} |
| 1629 |
public function setLogName($logName) |
| 1630 |
{ |
| 1631 |
$this->logName = $logName; |
| 1632 |
} |
| 1633 |
public function getLogName() |
| 1634 |
{ |
| 1635 |
return $this->logName; |
| 1636 |
} |
| 1637 |
public function setResource(Google_Service_Logging_MonitoredResource $resource) |
| 1638 |
{ |
| 1639 |
$this->resource = $resource; |
| 1640 |
} |
| 1641 |
public function getResource() |
| 1642 |
{ |
| 1643 |
return $this->resource; |
| 1644 |
} |
| 1645 |
} |
| 1646 |
|
| 1647 |
class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model |
| 1648 |
{ |
| 1649 |
} |
| 1650 |
|