
target.apidocs.com.google.api.services.containeranalysis.v1.ContainerAnalysis.Projects.Notes.html Maven / Gradle / Ivy
ContainerAnalysis.Projects.Notes (Container Analysis API v1-rev20240614-2.0.0)
com.google.api.services.containeranalysis.v1
Class ContainerAnalysis.Projects.Notes
- java.lang.Object
-
- com.google.api.services.containeranalysis.v1.ContainerAnalysis.Projects.Notes
-
- Enclosing class:
- ContainerAnalysis.Projects
public class ContainerAnalysis.Projects.Notes
extends Object
The "notes" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
ContainerAnalysis.Projects.Notes.BatchCreate
class
ContainerAnalysis.Projects.Notes.Create
class
ContainerAnalysis.Projects.Notes.Delete
class
ContainerAnalysis.Projects.Notes.Get
class
ContainerAnalysis.Projects.Notes.GetIamPolicy
class
ContainerAnalysis.Projects.Notes.List
class
ContainerAnalysis.Projects.Notes.Occurrences
The "occurrences" collection of methods.
class
ContainerAnalysis.Projects.Notes.Patch
class
ContainerAnalysis.Projects.Notes.SetIamPolicy
class
ContainerAnalysis.Projects.Notes.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
Notes()
-
Method Summary
-
-
Method Detail
-
batchCreate
public ContainerAnalysis.Projects.Notes.BatchCreate batchCreate(String parent,
BatchCreateNotesRequest content)
throws IOException
Creates new notes in batch.
Create a request for the method "notes.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 notes are
to be created.
content
- the BatchCreateNotesRequest
- Returns:
- the request
- Throws:
IOException
-
create
public ContainerAnalysis.Projects.Notes.Create create(String parent,
Note content)
throws IOException
Creates a new note.
Create a request for the method "notes.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 note is to
be created.
content
- the Note
- Returns:
- the request
- Throws:
IOException
-
delete
public ContainerAnalysis.Projects.Notes.Delete delete(String name)
throws IOException
Deletes the specified note.
Create a request for the method "notes.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 note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
- Returns:
- the request
- Throws:
IOException
-
get
public ContainerAnalysis.Projects.Notes.Get get(String name)
throws IOException
Gets the specified note.
Create a request for the method "notes.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 note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public ContainerAnalysis.Projects.Notes.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 "notes.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
-
list
public ContainerAnalysis.Projects.Notes.List list(String parent)
throws IOException
Lists notes for the specified project.
Create a request for the method "notes.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 notes for in the form of `projects/[PROJECT_ID]`.
- Returns:
- the request
- Throws:
IOException
-
patch
public ContainerAnalysis.Projects.Notes.Patch patch(String name,
Note content)
throws IOException
Updates the specified note.
Create a request for the method "notes.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 note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
content
- the Note
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public ContainerAnalysis.Projects.Notes.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 "notes.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.Notes.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 "notes.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
-
occurrences
public ContainerAnalysis.Projects.Notes.Occurrences occurrences()
An accessor for creating requests from the Occurrences collection.
The typical use is:
ContainerAnalysis containeranalysis = new ContainerAnalysis(...);
ContainerAnalysis.Occurrences.List request = containeranalysis.occurrences().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy