Documentation

Google_Service_ContainerAnalysis_Resource_ProjectsOccurrences extends Google_Service_Resource
in package

The "occurrences" collection of methods.

Typical usage is: $containeranalysisService = new Google_Service_ContainerAnalysis(...); $occurrences = $containeranalysisService->occurrences;

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_ContainerAnalysis_Occurrence
Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource. (occurrences.create)
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_ContainerAnalysis_ContaineranalysisEmpty
Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource. (occurrences.delete)
get()  : Google_Service_ContainerAnalysis_Occurrence
Returns the requested `Occurrence`. (occurrences.get)
getIamPolicy()  : Google_Service_ContainerAnalysis_Policy
Gets the access control policy for a note or an `Occurrence` resource.
getNotes()  : Google_Service_ContainerAnalysis_Note
Gets the `Note` attached to the given `Occurrence`. (occurrences.getNotes)
getVulnerabilitySummary()  : Google_Service_ContainerAnalysis_GetVulnzOccurrencesSummaryResponse
Gets a summary of the number and severity of occurrences.
listProjectsOccurrences()  : Google_Service_ContainerAnalysis_ListOccurrencesResponse
Lists active `Occurrences` for a given project matching the filters.
patch()  : Google_Service_ContainerAnalysis_Occurrence
Updates an existing occurrence. (occurrences.patch)
setIamPolicy()  : Google_Service_ContainerAnalysis_Policy
Sets the access control policy on the specified `Note` or `Occurrence`.
testIamPermissions()  : Google_Service_ContainerAnalysis_TestIamPermissionsResponse
Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` (occurrences.testIamPermissions)
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 new `Occurrence`. Use this method to create `Occurrences` for a resource. (occurrences.create)

public create(string $parent, Google_Service_ContainerAnalysis_Occurrence $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_Occurrence
Parameters
$parent : string

This field contains the project Id for example: "projects/{project_id}"

$postBody : Google_Service_ContainerAnalysis_Occurrence
$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string name The name of the project. Should be of the form "projects/{project_id}". @Deprecated

Return values
Google_Service_ContainerAnalysis_Occurrence

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 the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource. (occurrences.delete)

public delete(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_ContaineranalysisEmpty
Parameters
$name : string

The name of the occurrence in the form of "projects/{project_id}/occurrences/{OCCURRENCE_ID}"

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ContainerAnalysis_ContaineranalysisEmpty

getIamPolicy()

Gets the access control policy for a note or an `Occurrence` resource.

public getIamPolicy(string $resource, Google_Service_ContainerAnalysis_GetIamPolicyRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_Policy

Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a PERMISSION_DENIED error. Attempting to call this method on a non-existent resource will result in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise. The resource takes the following formats: projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID} for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes (occurrences.getIamPolicy)

Parameters
$resource : string

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

$postBody : Google_Service_ContainerAnalysis_GetIamPolicyRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ContainerAnalysis_Policy

getVulnerabilitySummary()

Gets a summary of the number and severity of occurrences.

public getVulnerabilitySummary(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_GetVulnzOccurrencesSummaryResponse

(occurrences.getVulnerabilitySummary)

Parameters
$parent : string

This contains the project Id for example: projects/{project_id}

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string filter The filter expression.

Return values
Google_Service_ContainerAnalysis_GetVulnzOccurrencesSummaryResponse

listProjectsOccurrences()

Lists active `Occurrences` for a given project matching the filters.

public listProjectsOccurrences(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_ListOccurrencesResponse

(occurrences.listProjectsOccurrences)

Parameters
$parent : string

This contains the project Id for example: projects/{project_id}.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string kind The kind of occurrences to filter on.

opt_param

string filter The filter expression.

opt_param

string name The name field contains the project Id. For example: "projects/{project_id} @Deprecated

opt_param

int pageSize Number of occurrences to return in the list.

opt_param

string pageToken Token to provide to skip to a particular spot in the list.

Return values
Google_Service_ContainerAnalysis_ListOccurrencesResponse

patch()

Updates an existing occurrence. (occurrences.patch)

public patch(string $name, Google_Service_ContainerAnalysis_Occurrence $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_Occurrence
Parameters
$name : string

The name of the occurrence. Should be of the form "projects/{project_id}/occurrences/{OCCURRENCE_ID}".

$postBody : Google_Service_ContainerAnalysis_Occurrence
$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string updateMask The fields to update.

Return values
Google_Service_ContainerAnalysis_Occurrence

setIamPolicy()

Sets the access control policy on the specified `Note` or `Occurrence`.

public setIamPolicy(string $resource, Google_Service_ContainerAnalysis_SetIamPolicyRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_Policy

Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a Note or an Occurrence, respectively. Attempting to call this method without these permissions will result in a PERMISSION_DENIEDerror. Attempting to call this method on a non-existent resource will result in aNOT_FOUNDerror if the user hascontaineranalysis.notes.listpermission on aNoteorcontaineranalysis.occurrences.liston anOccurrence, or a PERMISSION_DENIEDerror otherwise. The resource takes the following formats:projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes (occurrences.setIamPolicy)

Parameters
$resource : string

REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

$postBody : Google_Service_ContainerAnalysis_SetIamPolicyRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ContainerAnalysis_Policy

testIamPermissions()

Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` (occurrences.testIamPermissions)

public testIamPermissions(string $resource, Google_Service_ContainerAnalysis_TestIamPermissionsRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ContainerAnalysis_TestIamPermissionsResponse
Parameters
$resource : string

REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

$postBody : Google_Service_ContainerAnalysis_TestIamPermissionsRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ContainerAnalysis_TestIamPermissionsResponse

convertToArrayAndStripNulls()

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

Search results