
target.apidocs.com.google.api.services.containeranalysis.v1.ContainerAnalysis.Projects.Locations.Occurrences.html Maven / Gradle / Ivy
ContainerAnalysis.Projects.Locations.Occurrences (Container Analysis API v1-rev20240614-2.0.0)
com.google.api.services.containeranalysis.v1
Class ContainerAnalysis.Projects.Locations.Occurrences
- java.lang.Object
-
- com.google.api.services.containeranalysis.v1.ContainerAnalysis.Projects.Locations.Occurrences
-
- Enclosing class:
- ContainerAnalysis.Projects.Locations
public class ContainerAnalysis.Projects.Locations.Occurrences
extends Object
The "occurrences" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
ContainerAnalysis.Projects.Locations.Occurrences.Get
class
ContainerAnalysis.Projects.Locations.Occurrences.GetNotes
class
ContainerAnalysis.Projects.Locations.Occurrences.GetVulnerabilitySummary
class
ContainerAnalysis.Projects.Locations.Occurrences.List
-
Constructor Summary
Constructors
Constructor and Description
Occurrences()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ContainerAnalysis.Projects.Locations.Occurrences.Get
get(String name)
Gets the specified occurrence.
ContainerAnalysis.Projects.Locations.Occurrences.GetNotes
getNotes(String name)
Gets the note attached to the specified occurrence.
ContainerAnalysis.Projects.Locations.Occurrences.GetVulnerabilitySummary
getVulnerabilitySummary(String parent)
Gets a summary of the number and severity of occurrences.
ContainerAnalysis.Projects.Locations.Occurrences.List
list(String parent)
Lists occurrences for the specified project.
-
-
Method Detail
-
get
public ContainerAnalysis.Projects.Locations.Occurrences.Get get(String name)
throws IOException
Gets the specified occurrence.
Create a request for the method "occurrences.get".
This request holds the parameters needed by the containeranalysis server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The name of the occurrence in the form of
`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
- Returns:
- the request
- Throws:
IOException
-
getNotes
public ContainerAnalysis.Projects.Locations.Occurrences.GetNotes getNotes(String name)
throws IOException
Gets the note attached to the specified occurrence. Consumer projects can use this method to get
a note that belongs to a provider project.
Create a request for the method "occurrences.getNotes".
This request holds the parameters needed by the containeranalysis server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The name of the occurrence in the form of
`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
- Returns:
- the request
- Throws:
IOException
-
getVulnerabilitySummary
public ContainerAnalysis.Projects.Locations.Occurrences.GetVulnerabilitySummary getVulnerabilitySummary(String parent)
throws IOException
Gets a summary of the number and severity of occurrences.
Create a request for the method "occurrences.getVulnerabilitySummary".
This request holds the parameters needed by the containeranalysis server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the
remote operation.
- Parameters:
parent
- Required. The name of the project to get a vulnerability summary for in the form of
`projects/[PROJECT_ID]`.
- Returns:
- the request
- Throws:
IOException
-
list
public ContainerAnalysis.Projects.Locations.Occurrences.List list(String parent)
throws IOException
Lists occurrences for the specified project.
Create a request for the method "occurrences.list".
This request holds the parameters needed by the containeranalysis server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy