Class ProjectsResource.LocationsResource.NotesResource
The "notes" collection of methods.
Inherited Members
Namespace: Google.Apis.ContainerAnalysis.v1beta1
Assembly: Google.Apis.ContainerAnalysis.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.NotesResource
Constructors
NotesResource(IClientService)
Constructs a new resource.
Declaration
public NotesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Occurrences
Gets the Occurrences resource.
Declaration
public virtual ProjectsResource.LocationsResource.NotesResource.OccurrencesResource Occurrences { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.NotesResource.OccurrencesResource |
Methods
BatchCreate(BatchCreateNotesRequest, string)
Creates new notes in batch.
Declaration
public virtual ProjectsResource.LocationsResource.NotesResource.BatchCreateRequest BatchCreate(BatchCreateNotesRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BatchCreateNotesRequest | body | The body of the request. |
string | parent | Required. The name of the project in the form of |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NotesResource.BatchCreateRequest |
Create(Note, string)
Creates a new note.
Declaration
public virtual ProjectsResource.LocationsResource.NotesResource.CreateRequest Create(Note body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Note | body | The body of the request. |
string | parent | Required. The name of the project in the form of |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NotesResource.CreateRequest |
Delete(string)
Deletes the specified note.
Declaration
public virtual ProjectsResource.LocationsResource.NotesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the note in the form of |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NotesResource.DeleteRequest |
Get(string)
Gets the specified note.
Declaration
public virtual ProjectsResource.LocationsResource.NotesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the note in the form of |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NotesResource.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.NotesResource.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.NotesResource.GetIamPolicyRequest |
List(string)
Lists notes for the specified project.
Declaration
public virtual ProjectsResource.LocationsResource.NotesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the project to list notes for in the form of |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NotesResource.ListRequest |
Patch(Note, string)
Updates the specified note.
Declaration
public virtual ProjectsResource.LocationsResource.NotesResource.PatchRequest Patch(Note body, string name)
Parameters
Type | Name | Description |
---|---|---|
Note | body | The body of the request. |
string | name | Required. The name of the note in the form of |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NotesResource.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.NotesResource.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.NotesResource.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.NotesResource.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.NotesResource.TestIamPermissionsRequest |