Class: Google::Apis::ContaineranalysisV1beta1::ContainerAnalysisService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::ContaineranalysisV1beta1::ContainerAnalysisService
- Defined in:
- generated/google/apis/containeranalysis_v1beta1/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.
Attributes inherited from Google::Apis::Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse
Creates new occurrences in batch.
-
#create_project_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Note
Creates a new note.
-
#create_project_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Occurrence
Creates a new occurrence.
-
#delete_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Empty
Deletes the specified note.
-
#delete_project_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::Policy
Gets the access control policy for a note or an occurrence resource.
-
#get_project_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Note
Gets the specified note.
-
#get_project_occurrence(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Occurrence
Gets the specified occurrence.
-
#get_project_occurrence_notes(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary
Gets a summary of the number and severity of occurrences.
-
#get_project_scan_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::ScanConfig
Gets the specified scan configuration.
-
#initialize ⇒ ContainerAnalysisService
constructor
A new instance of ContainerAnalysisService.
-
#list_project_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::ListOccurrencesResponse
Lists occurrences for the specified project.
-
#list_project_scan_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse
Lists scan configurations 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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::TestIamPermissionsResponse
Returns the permissions that a caller has on the specified note or occurrence.
-
#update_project_scan_config(name, scan_config_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::ScanConfig
Updates the specified scan configuration.
Methods inherited from Google::Apis::Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Google::Apis::Core::Logging
Constructor Details
#initialize ⇒ ContainerAnalysisService
Returns a new instance of ContainerAnalysisService.
46 47 48 49 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 46 def initialize super('https://containeranalysis.googleapis.com/', '') @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 'generated/google/apis/containeranalysis_v1beta1/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 'generated/google/apis/containeranalysis_v1beta1/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::ContaineranalysisV1beta1::BatchCreateNotesResponse
Creates new notes in batch.
74 75 76 77 78 79 80 81 82 83 84 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 74 def batch_create_notes(parent, batch_create_notes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/notes:batchCreate', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest::Representation command.request_object = batch_create_notes_request_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse
Creates new occurrences in batch.
448 449 450 451 452 453 454 455 456 457 458 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 448 def batch_create_occurrences(parent, batch_create_occurrences_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences:batchCreate', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest::Representation command.request_object = batch_create_occurrences_request_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Note
Creates a new note.
111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 111 def create_project_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/notes', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation command.request_object = note_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::Occurrence
Creates a new occurrence.
483 484 485 486 487 488 489 490 491 492 493 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 483 def create_project_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation command.request_object = occurrence_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Empty
Deletes the specified note.
145 146 147 148 149 150 151 152 153 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 145 def delete_project_note(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
518 519 520 521 522 523 524 525 526 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 518 def delete_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
214 215 216 217 218 219 220 221 222 223 224 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 214 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, 'v1beta1/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
587 588 589 590 591 592 593 594 595 596 597 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 587 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, 'v1beta1/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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_note(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::Note
Gets the specified note.
176 177 178 179 180 181 182 183 184 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 176 def get_project_note(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::Occurrence
Gets the specified occurrence.
549 550 551 552 553 554 555 556 557 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 549 def get_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
621 622 623 624 625 626 627 628 629 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 621 def get_project_occurrence_notes(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}/notes', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary
Gets a summary of the number and severity of occurrences.
655 656 657 658 659 660 661 662 663 664 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 655 def get_project_occurrence_vulnerability_summary(parent, filter: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/occurrences:vulnerabilitySummary', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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_scan_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::ScanConfig
Gets the specified scan configuration.
844 845 846 847 848 849 850 851 852 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 844 def get_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::ScanConfig 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 |
#list_project_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::ListNoteOccurrencesResponse
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
412 413 414 415 416 417 418 419 420 421 422 423 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 412 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, 'v1beta1/{+name}/occurrences', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListNoteOccurrencesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::ListNotesResponse
Lists notes for the specified project.
254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 254 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, 'v1beta1/{+parent}/notes', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListNotesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::ListOccurrencesResponse
Lists occurrences for the specified project.
694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 694 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, 'v1beta1/{+parent}/occurrences', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListOccurrencesResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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_scan_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse
Lists scan configurations for the specified project.
882 883 884 885 886 887 888 889 890 891 892 893 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 882 def list_project_scan_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/scanConfigs', ) command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse 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::ContaineranalysisV1beta1::Note
Updates the specified note.
291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 291 def patch_project_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation command.request_object = note_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::Occurrence
Updates the specified occurrence.
731 732 733 734 735 736 737 738 739 740 741 742 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 731 def patch_project_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation command.request_object = occurrence_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
332 333 334 335 336 337 338 339 340 341 342 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 332 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, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
772 773 774 775 776 777 778 779 780 781 782 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 772 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, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
371 372 373 374 375 376 377 378 379 380 381 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 371 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::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.
811 812 813 814 815 816 817 818 819 820 821 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 811 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::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 |
#update_project_scan_config(name, scan_config_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContaineranalysisV1beta1::ScanConfig
Updates the specified scan configuration.
917 918 919 920 921 922 923 924 925 926 927 |
# File 'generated/google/apis/containeranalysis_v1beta1/service.rb', line 917 def update_project_scan_config(name, scan_config_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation command.request_object = scan_config_object command.response_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation command.response_class = Google::Apis::ContaineranalysisV1beta1::ScanConfig 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 |