
target.apidocs.com.google.api.services.containeranalysis.v1.ContainerAnalysis.Projects.Occurrences.html Maven / Gradle / Ivy
ContainerAnalysis.Projects.Occurrences (Container Analysis API v1-rev20240614-2.0.0)
com.google.api.services.containeranalysis.v1
Class ContainerAnalysis.Projects.Occurrences
- java.lang.Object
-
- com.google.api.services.containeranalysis.v1.ContainerAnalysis.Projects.Occurrences
-
- Enclosing class:
- ContainerAnalysis.Projects
public class ContainerAnalysis.Projects.Occurrences
extends Object
The "occurrences" collection of methods.
-
-
Nested Class Summary
-
Constructor Summary
Constructors
Constructor and Description
Occurrences()
-
Method Summary
-
-
Method Detail
-
batchCreate
public ContainerAnalysis.Projects.Occurrences.BatchCreate batchCreate(String parent,
BatchCreateOccurrencesRequest content)
throws IOException
Creates new occurrences in batch.
Create a request for the method "occurrences.batchCreate".
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 in the form of `projects/[PROJECT_ID]`, under which the
occurrences are to be created.
content
- the BatchCreateOccurrencesRequest
- Returns:
- the request
- Throws:
IOException
-
create
public ContainerAnalysis.Projects.Occurrences.Create create(String parent,
Occurrence content)
throws IOException
Creates a new occurrence.
Create a request for the method "occurrences.create".
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 in the form of `projects/[PROJECT_ID]`, under which the occurrence
is to be created.
content
- the Occurrence
- Returns:
- the request
- Throws:
IOException
-
delete
public ContainerAnalysis.Projects.Occurrences.Delete delete(String name)
throws IOException
Deletes the specified occurrence. For example, use this method to delete an occurrence when the
occurrence is no longer applicable for the given resource.
Create a request for the method "occurrences.delete".
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
-
get
public ContainerAnalysis.Projects.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
-
getIamPolicy
public ContainerAnalysis.Projects.Occurrences.GetIamPolicy getIamPolicy(String resource,
GetIamPolicyRequest content)
throws IOException
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.
Create a request for the method "occurrences.getIamPolicy".
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:
resource
- REQUIRED: The resource for which the policy is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
content
- the GetIamPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
getNotes
public ContainerAnalysis.Projects.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.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.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
-
patch
public ContainerAnalysis.Projects.Occurrences.Patch patch(String name,
Occurrence content)
throws IOException
Updates the specified occurrence.
Create a request for the method "occurrences.patch".
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]`.
content
- the Occurrence
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public ContainerAnalysis.Projects.Occurrences.SetIamPolicy setIamPolicy(String resource,
SetIamPolicyRequest content)
throws IOException
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.
Create a request for the method "occurrences.setIamPolicy".
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:
resource
- REQUIRED: The resource for which the policy is being specified. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
content
- the SetIamPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public ContainerAnalysis.Projects.Occurrences.TestIamPermissions testIamPermissions(String resource,
TestIamPermissionsRequest content)
throws IOException
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.
Create a request for the method "occurrences.testIamPermissions".
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:
resource
- REQUIRED: The resource for which the policy detail is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
content
- the TestIamPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy