Google_Service_Logging_Resource_FoldersLocationsBucketsViews
extends Google_Service_Resource
in package
The "views" collection of methods.
Typical usage is:
$loggingService = new Google_Service_Logging(...);
$views = $loggingService->views;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- create() : Google_Service_Logging_LogView
- Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views. (views.create)
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : Google_Service_Logging_LoggingEmpty
- Deletes a view from a bucket. (views.delete)
- get() : Google_Service_Logging_LogView
- Gets a view. (views.get)
- listFoldersLocationsBucketsViews() : Google_Service_Logging_ListViewsResponse
- Lists views on a bucket.. (views.listFoldersLocationsBucketsViews)
- patch() : Google_Service_Logging_LogView
- Updates a view. This method replaces the following fields in the existing view with values from the new view: filter. (views.patch)
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —create()
Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views. (views.create)
public
create(string $parent, Google_Service_Logging_LogView $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Logging_LogView
Parameters
- $parent : string
-
Required. The bucket in which to create the view "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-project/locations/my-location/buckets/my-bucket"
- $postBody : Google_Service_Logging_LogView
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Logging_LogView —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
delete()
Deletes a view from a bucket. (views.delete)
public
delete(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Logging_LoggingEmpty
Parameters
- $name : string
-
Required. The full resource name of the view to delete: " projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW _ID]" Example: "projects/my-project-id/locations/my-location/buckets/my- bucket-id/views/my-view-id".
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Logging_LoggingEmpty —get()
Gets a view. (views.get)
public
get(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Logging_LogView
Parameters
- $name : string
-
Required. The resource name of the policy: "projects/[PRO JECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-project-id/locations/my-location/buckets/my-bucket- id/views/my-view-id".
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Logging_LogView —listFoldersLocationsBucketsViews()
Lists views on a bucket.. (views.listFoldersLocationsBucketsViews)
public
listFoldersLocationsBucketsViews(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Logging_ListViewsResponse
Parameters
- $parent : string
-
Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Logging_ListViewsResponse —patch()
Updates a view. This method replaces the following fields in the existing view with values from the new view: filter. (views.patch)
public
patch(string $name, Google_Service_Logging_LogView $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Logging_LogView
Parameters
- $name : string
-
Required. The full resource name of the view to update "p rojects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ ID]" Example: "projects/my-project-id/locations/my-location/buckets/my- bucket-id/views/my-view-id".
- $postBody : Google_Service_Logging_LogView
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Logging_LogView —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed