Workload Manager API . projects . locations . evaluations . executions . results

Instance Methods

close()

Close httplib2 connections.

list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

List the running result of a single Execution.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
List the running result of a single Execution.

Args:
  parent: string, Required. The execution results. Format: {parent}/evaluations/*/executions/*/results (required)
  filter: string, Filtering results
  pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  pageToken: string, A token identifying a page of results the server should return.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Message for response of list execution results
  "executionResults": [ # The versions from the specified publisher.
    { # Message describing the result of an execution
      "documentationUrl": "A String", # the document url of the rule
      "resource": { # Message represent resource in execution result # the violate resource
        "name": "A String", # the name of the resource
        "serviceAccount": "A String", # the service account accosiate with resource
        "type": "A String", # the type of reresource
      },
      "rule": "A String", # the rule which violate in execution
      "severity": "A String", # severity of violation
      "violationDetails": { # Message describing the violdation in execution result # the details of violation in result
        "asset": "A String", # the name of asset
        "observed": { # observed
          "a_key": "A String",
        },
        "serviceAccount": "A String", # the service account associate with resource
      },
      "violationMessage": "A String", # the violation message of an execution
    },
  ],
  "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
}
list_next()
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.