Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.OccurrencesResource

The "occurrences" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.OccurrencesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ContainerAnalysis.v1beta1
Assembly: Google.Apis.ContainerAnalysis.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.OccurrencesResource

Constructors

OccurrencesResource(IClientService)

Constructs a new resource.

Declaration
public OccurrencesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

BatchCreate(BatchCreateOccurrencesRequest, string)

Creates new occurrences in batch.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.BatchCreateRequest BatchCreate(BatchCreateOccurrencesRequest body, string parent)
Parameters
Type Name Description
BatchCreateOccurrencesRequest body

The body of the request.

string parent

Required. The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.BatchCreateRequest

Create(Occurrence, string)

Creates a new occurrence.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.CreateRequest Create(Occurrence body, string parent)
Parameters
Type Name Description
Occurrence body

The body of the request.

string parent

Required. The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.CreateRequest

Delete(string)

Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.DeleteRequest

Get(string)

Gets the specified occurrence.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.GetRequest

GetIamPolicy(GetIamPolicyRequest, string)

Gets the access control policy for a note or an occurrence resource. Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a note or occurrence, respectively. The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

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

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.GetIamPolicyRequest

GetNotes(string)

Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.GetNotesRequest GetNotes(string name)
Parameters
Type Name Description
string name

Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.GetNotesRequest

GetVulnerabilitySummary(string)

Gets a summary of the number and severity of occurrences.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.GetVulnerabilitySummaryRequest GetVulnerabilitySummary(string parent)
Parameters
Type Name Description
string parent

Required. The name of the project to get a vulnerability summary for in the form of projects/[PROJECT_ID].

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.GetVulnerabilitySummaryRequest

List(string)

Lists occurrences for the specified project.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The name of the project to list occurrences for in the form of projects/[PROJECT_ID].

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.ListRequest

Patch(Occurrence, string)

Updates the specified occurrence.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.PatchRequest Patch(Occurrence body, string name)
Parameters
Type Name Description
Occurrence body

The body of the request.

string name

Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.PatchRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets the access control policy on the specified note or occurrence. Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a note or an occurrence, respectively. The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

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

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, containeranalysis.notes.list). The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.

Declaration
public virtual ProjectsResource.LocationsResource.OccurrencesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

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

Returns
Type Description
ProjectsResource.LocationsResource.OccurrencesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX