Class ProjectsResource.OccurrencesResource
The "occurrences" collection of methods.
Inherited Members
Namespace: Google.Apis.ContainerAnalysis.v1beta1
Assembly: Google.Apis.ContainerAnalysis.v1beta1.dll
Syntax
public class ProjectsResource.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.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 |
Returns
| Type | Description |
|---|---|
| ProjectsResource.OccurrencesResource.BatchCreateRequest |
Create(Occurrence, string)
Creates a new occurrence.
Declaration
public virtual ProjectsResource.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 |
Returns
| Type | Description |
|---|---|
| ProjectsResource.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.OccurrencesResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the occurrence in the form of |
Returns
| Type | Description |
|---|---|
| ProjectsResource.OccurrencesResource.DeleteRequest |
Get(string)
Gets the specified occurrence.
Declaration
public virtual ProjectsResource.OccurrencesResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the occurrence in the form of |
Returns
| Type | Description |
|---|---|
| ProjectsResource.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.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.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.OccurrencesResource.GetNotesRequest GetNotes(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the occurrence in the form of |
Returns
| Type | Description |
|---|---|
| ProjectsResource.OccurrencesResource.GetNotesRequest |
GetVulnerabilitySummary(string)
Gets a summary of the number and severity of occurrences.
Declaration
public virtual ProjectsResource.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
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.OccurrencesResource.GetVulnerabilitySummaryRequest |
List(string)
Lists occurrences for the specified project.
Declaration
public virtual ProjectsResource.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 |
Returns
| Type | Description |
|---|---|
| ProjectsResource.OccurrencesResource.ListRequest |
Patch(Occurrence, string)
Updates the specified occurrence.
Declaration
public virtual ProjectsResource.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 |
Returns
| Type | Description |
|---|---|
| ProjectsResource.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.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.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.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.OccurrencesResource.TestIamPermissionsRequest |