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
This API is a prerequisite for leveraging Artifact Analysis scanning capabilities in both Artifact Registry and with Advanced Vulnerability Insights (runtime scanning) in GKE. In addition, the Container Analysis API is an implementation of the Grafeas API, which enables storing, querying, and retrieval of critical metadata about all of your software artifacts.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://containeranalysis.$UNIVERSE_DOMAIN$/"
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.
-
#batch_project_location_note_create(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_project_location_occurrence_create(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.
-
#create_project_location_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_location_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Creates a new occurrence.
-
#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_project_location_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified note.
-
#delete_project_location_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified occurrence.
-
#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.
-
#export_project_location_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ExportSbomResponse
Generates an SBOM for the given resource.
-
#export_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ExportSbomResponse
Generates an SBOM for the given resource.
-
#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_project_location_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Gets the specified note.
-
#get_project_location_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Gets the specified occurrence.
-
#get_project_location_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_location_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.
-
#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_project_location_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_location_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_location_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.
-
#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_location_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_location_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.
-
#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.
51 52 53 54 55 56 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 51 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', 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.
44 45 46 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 44 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.
49 50 51 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 49 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.
642 643 644 645 646 647 648 649 650 651 652 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 642 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.
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1013 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 |
#batch_project_location_note_create(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.
80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 80 def batch_project_location_note_create(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_project_location_occurrence_create(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.
333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 333 def batch_project_location_occurrence_create(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 |
#create_project_location_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.
116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 116 def create_project_location_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_location_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Creates a new occurrence.
367 368 369 370 371 372 373 374 375 376 377 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 367 def create_project_location_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 |
#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.
678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 678 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.
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1047 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_project_location_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified note.
150 151 152 153 154 155 156 157 158 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 150 def delete_project_location_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_location_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.
401 402 403 404 405 406 407 408 409 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 401 def delete_project_location_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 |
#delete_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Empty
Deletes the specified note.
712 713 714 715 716 717 718 719 720 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 712 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.
1081 1082 1083 1084 1085 1086 1087 1088 1089 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1081 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 |
#export_project_location_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ExportSbomResponse
Generates an SBOM for the given resource.
608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 608 def export_project_location_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:exportSBOM', ) command.request_representation = Google::Apis::ContaineranalysisV1::ExportSbomRequest::Representation command.request_object = export_sbom_request_object command.response_representation = Google::Apis::ContaineranalysisV1::ExportSbomResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::ExportSbomResponse 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 |
#export_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::ExportSbomResponse
Generates an SBOM for the given resource.
1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1406 def export_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:exportSBOM', ) command.request_representation = Google::Apis::ContaineranalysisV1::ExportSbomRequest::Representation command.request_object = export_sbom_request_object command.response_representation = Google::Apis::ContaineranalysisV1::ExportSbomResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1::ExportSbomResponse 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.
780 781 782 783 784 785 786 787 788 789 790 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 780 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.
1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1149 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_project_location_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Gets the specified note.
181 182 183 184 185 186 187 188 189 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 181 def get_project_location_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_location_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Occurrence
Gets the specified occurrence.
432 433 434 435 436 437 438 439 440 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 432 def get_project_location_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_location_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.
464 465 466 467 468 469 470 471 472 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 464 def get_project_location_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_location_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.
497 498 499 500 501 502 503 504 505 506 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 497 def get_project_location_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 |
#get_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1::Note
Gets the specified note.
743 744 745 746 747 748 749 750 751 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 743 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.
1112 1113 1114 1115 1116 1117 1118 1119 1120 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1112 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.
1183 1184 1185 1186 1187 1188 1189 1190 1191 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1183 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.
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1216 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_project_location_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.
298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 298 def list_project_location_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_location_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.
219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 219 def list_project_location_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_location_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.
536 537 538 539 540 541 542 543 544 545 546 547 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 536 def list_project_location_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 |
#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.
978 979 980 981 982 983 984 985 986 987 988 989 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 978 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.
820 821 822 823 824 825 826 827 828 829 830 831 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 820 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.
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1255 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_location_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.
256 257 258 259 260 261 262 263 264 265 266 267 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 256 def patch_project_location_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_location_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.
573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 573 def patch_project_location_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 |
#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.
857 858 859 860 861 862 863 864 865 866 867 868 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 857 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.
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1292 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.
898 899 900 901 902 903 904 905 906 907 908 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 898 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.
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1333 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.
937 938 939 940 941 942 943 944 945 946 947 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 937 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.
1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 |
# File 'lib/google/apis/containeranalysis_v1/service.rb', line 1372 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 |