Class: Google::Apis::ContaineranalysisV1::ContainerAnalysisService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::ContaineranalysisV1::ContainerAnalysisService
- Defined in:
- lib/google/apis/containeranalysis_v1/service.rb
Overview
Container Analysis API
An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#batch_create_notes(parent, batch_create_notes_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::BatchCreateNotesResponse
Creates new notes in batch.
-
#batch_create_occurrences(parent, batch_create_occurrences_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::BatchCreateOccurrencesResponse
Creates new occurrences in batch.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Creates a new note.
-
#create_project_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Creates a new occurrence.
-
#delete_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes a long-running operation.
-
#delete_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified note.
-
#delete_project_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified occurrence.
-
#get_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
Gets the access control policy for a note or an occurrence resource.
-
#get_occurrence_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
Gets the access control policy for a note or an occurrence resource.
-
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Gets the specified note.
-
#get_project_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Gets the specified occurrence.
-
#get_project_occurrence_notes(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Gets the note attached to the specified occurrence.
-
#get_project_occurrence_vulnerability_summary(parent, filter: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary
Gets a summary of the number and severity of occurrences.
-
#initialize ⇒ ContainerAnalysisService
constructor
A new instance of ContainerAnalysisService.
-
#list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse
Lists occurrences referencing the specified note.
-
#list_project_notes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListNotesResponse
Lists notes for the specified project.
-
#list_project_occurrences(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListOccurrencesResponse
Lists occurrences for the specified project.
-
#patch_project_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Updates the specified note.
-
#patch_project_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Updates the specified occurrence.
-
#set_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
Sets the access control policy on the specified note or occurrence.
-
#set_occurrence_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
Sets the access control policy on the specified note or occurrence.
-
#test_note_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse
Returns the permissions that a caller has on the specified note or occurrence.
-
#test_occurrence_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse
Returns the permissions that a caller has on the specified note or occurrence.
Constructor Details
#initialize ⇒ ContainerAnalysisService
Returns a new instance of ContainerAnalysisService.
46 47 48 49 50 51 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 46 def initialize super('https://containeranalysis.googleapis.com/', '', client_name: 'google-apis-containeranalysis_v1', client_version: Google::Apis::ContaineranalysisV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#batch_create_notes(parent, batch_create_notes_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::BatchCreateNotesResponse
Creates new notes in batch.
225 226 227 228 229 230 231 232 233 234 235 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 225 def batch_create_notes(parent, batch_create_notes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/notes:batchCreate', ) command.request_representation = Google::Apis::ContaineranalysisV1::BatchCreateNotesRequest::Representation command.request_object = batch_create_notes_request_object command.response_representation = Google::Apis::ContaineranalysisV1::BatchCreateNotesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::BatchCreateNotesResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#batch_create_occurrences(parent, batch_create_occurrences_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::BatchCreateOccurrencesResponse
Creates new occurrences in batch.
593 594 595 596 597 598 599 600 601 602 603 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 593 def batch_create_occurrences(parent, batch_create_occurrences_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/occurrences:batchCreate', ) command.request_representation = Google::Apis::ContaineranalysisV1::BatchCreateOccurrencesRequest::Representation command.request_object = batch_create_occurrences_request_object command.response_representation = Google::Apis::ContaineranalysisV1::BatchCreateOccurrencesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::BatchCreateOccurrencesResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 81 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::ContaineranalysisV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation command.response_class = Google::Apis::ContaineranalysisV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Creates a new note.
261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 261 def create_project_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/notes', ) command.request_representation = Google::Apis::ContaineranalysisV1::Note::Representation command.request_object = note_object command.response_representation = Google::Apis::ContaineranalysisV1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1::Note command.params['parent'] = parent unless parent.nil? command.query['noteId'] = note_id unless note_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Creates a new occurrence.
627 628 629 630 631 632 633 634 635 636 637 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 627 def create_project_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/occurrences', ) command.request_representation = Google::Apis::ContaineranalysisV1::Occurrence::Representation command.request_object = occurrence_object command.response_representation = Google::Apis::ContaineranalysisV1::Occurrence::Representation command.response_class = Google::Apis::ContaineranalysisV1::Occurrence command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 116 def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation command.response_class = Google::Apis::ContaineranalysisV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified note.
295 296 297 298 299 300 301 302 303 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 295 def delete_project_note(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation command.response_class = Google::Apis::ContaineranalysisV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
661 662 663 664 665 666 667 668 669 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 661 def delete_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation command.response_class = Google::Apis::ContaineranalysisV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
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.
362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 362 def get_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_occurrence_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
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.
728 729 730 731 732 733 734 735 736 737 738 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 728 def get_occurrence_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
147 148 149 150 151 152 153 154 155 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 147 def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1::Operation::Representation command.response_class = Google::Apis::ContaineranalysisV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Gets the specified note.
326 327 328 329 330 331 332 333 334 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 326 def get_project_note(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1::Note command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Gets the specified occurrence.
692 693 694 695 696 697 698 699 700 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 692 def get_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1::Occurrence::Representation command.response_class = Google::Apis::ContaineranalysisV1::Occurrence command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_occurrence_notes(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
762 763 764 765 766 767 768 769 770 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 762 def get_project_occurrence_notes(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/notes', ) command.response_representation = Google::Apis::ContaineranalysisV1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1::Note command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_occurrence_vulnerability_summary(parent, filter: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary
Gets a summary of the number and severity of occurrences.
795 796 797 798 799 800 801 802 803 804 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 795 def get_project_occurrence_vulnerability_summary(parent, filter: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/occurrences:vulnerabilitySummary', ) command.response_representation = Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary::Representation command.response_class = Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED. NOTE: the name
binding allows API services to override the binding to use different resource
name schemes, such as users/*/operations. To override the binding, API
services can add a binding such as "/v1/name=users/*/operations" to their
service configuration. For backwards compatibility, the default name includes
the operations collection id, however overriding users must ensure the name
binding is the parent resource, without the operations collection id.
190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 190 def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1::ListOperationsResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
558 559 560 561 562 563 564 565 566 567 568 569 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 558 def list_project_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/occurrences', ) command.response_representation = Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_notes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListNotesResponse
Lists notes for the specified project.
402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 402 def list_project_notes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/notes', ) command.response_representation = Google::Apis::ContaineranalysisV1::ListNotesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::ListNotesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_occurrences(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ListOccurrencesResponse
Lists occurrences for the specified project.
834 835 836 837 838 839 840 841 842 843 844 845 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 834 def list_project_occurrences(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/occurrences', ) command.response_representation = Google::Apis::ContaineranalysisV1::ListOccurrencesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::ListOccurrencesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Updates the specified note.
439 440 441 442 443 444 445 446 447 448 449 450 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 439 def patch_project_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::ContaineranalysisV1::Note::Representation command.request_object = note_object command.response_representation = Google::Apis::ContaineranalysisV1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1::Note command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Updates the specified occurrence.
871 872 873 874 875 876 877 878 879 880 881 882 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 871 def patch_project_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::ContaineranalysisV1::Occurrence::Representation command.request_object = occurrence_object command.response_representation = Google::Apis::ContaineranalysisV1::Occurrence::Representation command.response_class = Google::Apis::ContaineranalysisV1::Occurrence command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
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.
479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 479 def set_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_occurrence_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Policy
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.
911 912 913 914 915 916 917 918 919 920 921 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 911 def set_occurrence_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_note_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse
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.
517 518 519 520 521 522 523 524 525 526 527 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 517 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_occurrence_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse
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.
949 950 951 952 953 954 955 956 957 958 959 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 949 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |