Class ProjectsResource.NotesResource
The "notes" collection of methods.
Inherited Members
Namespace: Google.Apis.ContainerAnalysis.v1beta1
Assembly: Google.Apis.ContainerAnalysis.v1beta1.dll
Syntax
public class ProjectsResource.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.NotesResource.OccurrencesResource Occurrences { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.NotesResource.OccurrencesResource |
Methods
BatchCreate(BatchCreateNotesRequest, string)
Creates new notes in batch.
Declaration
public virtual ProjectsResource.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.NotesResource.BatchCreateRequest |
Create(Note, string)
Creates a new note.
Declaration
public virtual ProjectsResource.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.NotesResource.CreateRequest |
Delete(string)
Deletes the specified note.
Declaration
public virtual ProjectsResource.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.NotesResource.DeleteRequest |
Get(string)
Gets the specified note.
Declaration
public virtual ProjectsResource.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.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.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.NotesResource.GetIamPolicyRequest |
List(string)
Lists notes for the specified project.
Declaration
public virtual ProjectsResource.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.NotesResource.ListRequest |
Patch(Note, string)
Updates the specified note.
Declaration
public virtual ProjectsResource.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.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.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.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.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.NotesResource.TestIamPermissionsRequest |