Documentation

Google_Service_Logging_Resource_BillingAccountsLocationsBucketsViews 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)
listBillingAccountsLocationsBucketsViews()  : Google_Service_Logging_ListViewsResponse
Lists views on a bucket.. (views.listBillingAccountsLocationsBucketsViews)
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

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$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
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
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
opt_param

string viewId Required. The id to use for this view.

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
static
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

listBillingAccountsLocationsBucketsViews()

Lists views on a bucket.. (views.listBillingAccountsLocationsBucketsViews)

public listBillingAccountsLocationsBucketsViews(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
opt_param

int pageSize Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

opt_param

string pageToken Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

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
opt_param

string updateMask Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol- buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.

Return values
Google_Service_Logging_LogView

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results