Class: Falcon::ImageAssessmentPoliciesApi
- Inherits:
-
Object
- Object
- Falcon::ImageAssessmentPoliciesApi
- Defined in:
- lib/crimson-falcon/api/image_assessment_policies_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_policies(body, opts = {}) ⇒ ModelsPolicyEntityResponse
Create Image Assessment policies.
-
#create_policies_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Create Image Assessment policies.
-
#create_policy_groups(body, opts = {}) ⇒ ModelsPolicyGroupEntityResponse
Create Image Assessment Policy Group entities.
-
#create_policy_groups_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyGroupEntityResponse, Integer, Hash)>
Create Image Assessment Policy Group entities.
-
#delete_policy(id, opts = {}) ⇒ CoreEntitiesResponse
Delete Image Assessment Policy by policy UUID.
-
#delete_policy_group(id, opts = {}) ⇒ CoreEntitiesResponse
Delete Image Assessment Policy Group entities.
-
#delete_policy_group_with_http_info(id, opts = {}) ⇒ Array<(CoreEntitiesResponse, Integer, Hash)>
Delete Image Assessment Policy Group entities.
-
#delete_policy_with_http_info(id, opts = {}) ⇒ Array<(CoreEntitiesResponse, Integer, Hash)>
Delete Image Assessment Policy by policy UUID.
-
#initialize(api_client = ApiClient.default) ⇒ ImageAssessmentPoliciesApi
constructor
A new instance of ImageAssessmentPoliciesApi.
-
#read_policies(opts = {}) ⇒ ModelsPolicyEntityResponse
Get all Image Assessment policies.
-
#read_policies_with_http_info(opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Get all Image Assessment policies.
-
#read_policy_exclusions(opts = {}) ⇒ ModelsPolicyExclusionEntityResponse
Retrieve Image Assessment Policy Exclusion entities.
-
#read_policy_exclusions_with_http_info(opts = {}) ⇒ Array<(ModelsPolicyExclusionEntityResponse, Integer, Hash)>
Retrieve Image Assessment Policy Exclusion entities.
-
#read_policy_groups(opts = {}) ⇒ ModelsPolicyGroupEntityResponse
Retrieve Image Assessment Policy Group entities.
-
#read_policy_groups_with_http_info(opts = {}) ⇒ Array<(ModelsPolicyGroupEntityResponse, Integer, Hash)>
Retrieve Image Assessment Policy Group entities.
-
#update_policies(id, body, opts = {}) ⇒ ModelsPolicyEntityResponse
Update Image Assessment Policy entities.
-
#update_policies_with_http_info(id, body, opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Update Image Assessment Policy entities.
-
#update_policy_exclusions(body, opts = {}) ⇒ ModelsPolicyExclusionEntityResponse
Update Image Assessment Policy Exclusion entities.
-
#update_policy_exclusions_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyExclusionEntityResponse, Integer, Hash)>
Update Image Assessment Policy Exclusion entities.
-
#update_policy_groups(id, body, opts = {}) ⇒ ModelsPolicyGroupEntityResponse
Update Image Assessment Policy Group entities.
-
#update_policy_groups_with_http_info(id, body, opts = {}) ⇒ Array<(ModelsPolicyGroupEntityResponse, Integer, Hash)>
Update Image Assessment Policy Group entities.
-
#update_policy_precedence(body, opts = {}) ⇒ ModelsPolicyEntityResponse
Update Image Assessment Policy precedence.
-
#update_policy_precedence_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Update Image Assessment Policy precedence.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ImageAssessmentPoliciesApi
Returns a new instance of ImageAssessmentPoliciesApi.
36 37 38 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 36 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
34 35 36 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 34 def api_client @api_client end |
Instance Method Details
#create_policies(body, opts = {}) ⇒ ModelsPolicyEntityResponse
Create Image Assessment policies
43 44 45 46 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 43 def create_policies(body, opts = {}) data, _status_code, _headers = create_policies_with_http_info(body, opts) data end |
#create_policies_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Create Image Assessment policies
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 52 def create_policies_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.create_policies ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ImageAssessmentPoliciesApi.create_policies" end # resource path local_var_path = '/container-security/entities/image-assessment-policies/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.create_policies", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#create_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_policy_groups(body, opts = {}) ⇒ ModelsPolicyGroupEntityResponse
Create Image Assessment Policy Group entities
109 110 111 112 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 109 def create_policy_groups(body, opts = {}) data, _status_code, _headers = create_policy_groups_with_http_info(body, opts) data end |
#create_policy_groups_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyGroupEntityResponse, Integer, Hash)>
Create Image Assessment Policy Group entities
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 118 def create_policy_groups_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.create_policy_groups ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ImageAssessmentPoliciesApi.create_policy_groups" end # resource path local_var_path = '/container-security/entities/image-assessment-policy-groups/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyGroupEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.create_policy_groups", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#create_policy_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_policy(id, opts = {}) ⇒ CoreEntitiesResponse
Delete Image Assessment Policy by policy UUID
175 176 177 178 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 175 def delete_policy(id, opts = {}) data, _status_code, _headers = delete_policy_with_http_info(id, opts) data end |
#delete_policy_group(id, opts = {}) ⇒ CoreEntitiesResponse
Delete Image Assessment Policy Group entities
237 238 239 240 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 237 def delete_policy_group(id, opts = {}) data, _status_code, _headers = delete_policy_group_with_http_info(id, opts) data end |
#delete_policy_group_with_http_info(id, opts = {}) ⇒ Array<(CoreEntitiesResponse, Integer, Hash)>
Delete Image Assessment Policy Group entities
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 246 def delete_policy_group_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.delete_policy_group ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ImageAssessmentPoliciesApi.delete_policy_group" end # resource path local_var_path = '/container-security/entities/image-assessment-policy-groups/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'CoreEntitiesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.delete_policy_group", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#delete_policy_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_policy_with_http_info(id, opts = {}) ⇒ Array<(CoreEntitiesResponse, Integer, Hash)>
Delete Image Assessment Policy by policy UUID
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 184 def delete_policy_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.delete_policy ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ImageAssessmentPoliciesApi.delete_policy" end # resource path local_var_path = '/container-security/entities/image-assessment-policies/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'CoreEntitiesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.delete_policy", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#delete_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_policies(opts = {}) ⇒ ModelsPolicyEntityResponse
Get all Image Assessment policies
298 299 300 301 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 298 def read_policies(opts = {}) data, _status_code, _headers = read_policies_with_http_info(opts) data end |
#read_policies_with_http_info(opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Get all Image Assessment policies
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 306 def read_policies_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.read_policies ...' end # resource path local_var_path = '/container-security/entities/image-assessment-policies/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.read_policies", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#read_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_policy_exclusions(opts = {}) ⇒ ModelsPolicyExclusionEntityResponse
Retrieve Image Assessment Policy Exclusion entities
353 354 355 356 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 353 def read_policy_exclusions(opts = {}) data, _status_code, _headers = read_policy_exclusions_with_http_info(opts) data end |
#read_policy_exclusions_with_http_info(opts = {}) ⇒ Array<(ModelsPolicyExclusionEntityResponse, Integer, Hash)>
Retrieve Image Assessment Policy Exclusion entities
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 361 def read_policy_exclusions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.read_policy_exclusions ...' end # resource path local_var_path = '/container-security/entities/image-assessment-policy-exclusions/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyExclusionEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.read_policy_exclusions", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#read_policy_exclusions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_policy_groups(opts = {}) ⇒ ModelsPolicyGroupEntityResponse
Retrieve Image Assessment Policy Group entities
408 409 410 411 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 408 def read_policy_groups(opts = {}) data, _status_code, _headers = read_policy_groups_with_http_info(opts) data end |
#read_policy_groups_with_http_info(opts = {}) ⇒ Array<(ModelsPolicyGroupEntityResponse, Integer, Hash)>
Retrieve Image Assessment Policy Group entities
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 416 def read_policy_groups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.read_policy_groups ...' end # resource path local_var_path = '/container-security/entities/image-assessment-policy-groups/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyGroupEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.read_policy_groups", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#read_policy_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_policies(id, body, opts = {}) ⇒ ModelsPolicyEntityResponse
Update Image Assessment Policy entities
465 466 467 468 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 465 def update_policies(id, body, opts = {}) data, _status_code, _headers = update_policies_with_http_info(id, body, opts) data end |
#update_policies_with_http_info(id, body, opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Update Image Assessment Policy entities
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 475 def update_policies_with_http_info(id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.update_policies ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ImageAssessmentPoliciesApi.update_policies" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ImageAssessmentPoliciesApi.update_policies" end # resource path local_var_path = '/container-security/entities/image-assessment-policies/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.update_policies", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_policy_exclusions(body, opts = {}) ⇒ ModelsPolicyExclusionEntityResponse
Update Image Assessment Policy Exclusion entities
537 538 539 540 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 537 def update_policy_exclusions(body, opts = {}) data, _status_code, _headers = update_policy_exclusions_with_http_info(body, opts) data end |
#update_policy_exclusions_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyExclusionEntityResponse, Integer, Hash)>
Update Image Assessment Policy Exclusion entities
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 546 def update_policy_exclusions_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.update_policy_exclusions ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ImageAssessmentPoliciesApi.update_policy_exclusions" end # resource path local_var_path = '/container-security/entities/image-assessment-policy-exclusions/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyExclusionEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.update_policy_exclusions", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#update_policy_exclusions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_policy_groups(id, body, opts = {}) ⇒ ModelsPolicyGroupEntityResponse
Update Image Assessment Policy Group entities
604 605 606 607 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 604 def update_policy_groups(id, body, opts = {}) data, _status_code, _headers = update_policy_groups_with_http_info(id, body, opts) data end |
#update_policy_groups_with_http_info(id, body, opts = {}) ⇒ Array<(ModelsPolicyGroupEntityResponse, Integer, Hash)>
Update Image Assessment Policy Group entities
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 614 def update_policy_groups_with_http_info(id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.update_policy_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ImageAssessmentPoliciesApi.update_policy_groups" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ImageAssessmentPoliciesApi.update_policy_groups" end # resource path local_var_path = '/container-security/entities/image-assessment-policy-groups/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'id'] = id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyGroupEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.update_policy_groups", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#update_policy_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_policy_precedence(body, opts = {}) ⇒ ModelsPolicyEntityResponse
Update Image Assessment Policy precedence
676 677 678 679 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 676 def update_policy_precedence(body, opts = {}) data, _status_code, _headers = update_policy_precedence_with_http_info(body, opts) data end |
#update_policy_precedence_with_http_info(body, opts = {}) ⇒ Array<(ModelsPolicyEntityResponse, Integer, Hash)>
Update Image Assessment Policy precedence
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 |
# File 'lib/crimson-falcon/api/image_assessment_policies_api.rb', line 685 def update_policy_precedence_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ImageAssessmentPoliciesApi.update_policy_precedence ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ImageAssessmentPoliciesApi.update_policy_precedence" end # resource path local_var_path = '/container-security/entities/image-assessment-policy-precedence/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'ModelsPolicyEntityResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ImageAssessmentPoliciesApi.update_policy_precedence", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ImageAssessmentPoliciesApi#update_policy_precedence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |