# Google Cloud Logging API . projects . logs

## Instance Methods

Returns the entries Resource.

Returns the sinks Resource.

Deletes the specified log resource and all log entries contained in it.

Lists log resources belonging to the specified project.

Retrieves the next page of results.

### Method Details

`delete(projectsId, logsId, x__xgafv=None)`

    Deletes the specified log resource and all log entries contained in it.

    Args:
      projectsId: string, Part of `logName`. The log resource to delete. (required)
      logsId: string, Part of `logName`. See documentation of `projectsId`. (required)
      x__xgafv: string, V1 error format.

    Returns:
      An object of the form:

        { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
      }

`list(projectsId, pageSize=None, serviceName=None, pageToken=None, x__xgafv=None, serviceIndexPrefix=None)`

    Lists log resources belonging to the specified project.

    Args:
      projectsId: string, Part of `projectName`. The project name for which to list the log resources. (required)
      pageSize: integer, The maximum number of results to return.
      serviceName: string, A service name for which to list logs. Only logs containing entries whose metadata includes this service name are returned. If `serviceName` and `serviceIndexPrefix` are both empty, then all log names are returned. To list all log names, regardless of service, leave both the `serviceName` and `serviceIndexPrefix` empty. To list log names containing entries with a particular service name (or explicitly empty service name) set `serviceName` to the desired value and `serviceIndexPrefix` to `"/"`.
      pageToken: string, An opaque token, returned as `nextPageToken` by a prior `ListLogs` operation. If `pageToken` is supplied, then the other fields of this request are ignored, and instead the previous `ListLogs` operation is continued.
      x__xgafv: string, V1 error format.
      serviceIndexPrefix: string, A log service index prefix for which to list logs. Only logs containing entries whose metadata that includes these label values (associated with index keys) are returned. The prefix is a slash separated list of values, and need not specify all index labels. An empty index (or a single slash) matches all log service indexes.

    Returns:
      An object of the form:

        { # Result returned from ListLogs.
        "nextPageToken": "A String", # If there are more results, then `nextPageToken` is returned in the response. To get the next batch of logs, use the value of `nextPageToken` as `pageToken` in the next call of `ListLogs`. If `nextPageToken` is empty, then there are no more results.
        "logs": [ # A list of log resources.
          { # A log object.
            "payloadType": "A String", # Type URL describing the expected payload type for the log.
            "displayName": "A String", # Name used when displaying the log to the user (for example, in a UI). Example: `"activity_log"`
            "name": "A String", # REQUIRED: The log's name name. Example: `"compute.googleapis.com/activity_log"`.
          },
        ],
      }

`list_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.