oci 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,7 @@ module OCI
104
104
  # @param [OCI::Core::Models::AttachBootVolumeDetails] attach_boot_volume_details Attach boot volume request
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
107
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
107
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
108
108
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
109
109
  # server error without risk of executing that same action again. Retry tokens expire after 24
110
110
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -120,6 +120,7 @@ module OCI
120
120
  path = '/bootVolumeAttachments/'
121
121
  operation_signing_strategy = :standard
122
122
 
123
+ # rubocop:disable Style/NegatedIf
123
124
  # Query Params
124
125
  query_params = {}
125
126
 
@@ -128,6 +129,7 @@ module OCI
128
129
  header_params['accept'] = 'application/json'
129
130
  header_params['content-type'] = 'application/json'
130
131
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
132
+ # rubocop:enable Style/NegatedIf
131
133
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
132
134
 
133
135
  post_body = @api_client.object_to_http_body(attach_boot_volume_details)
@@ -163,7 +165,7 @@ module OCI
163
165
  # @param [OCI::Core::Models::AttachVnicDetails] attach_vnic_details Attach VNIC details.
164
166
  # @param [Hash] opts the optional parameters
165
167
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
166
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
168
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
167
169
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
168
170
  # server error without risk of executing that same action again. Retry tokens expire after 24
169
171
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -179,6 +181,7 @@ module OCI
179
181
  path = '/vnicAttachments/'
180
182
  operation_signing_strategy = :standard
181
183
 
184
+ # rubocop:disable Style/NegatedIf
182
185
  # Query Params
183
186
  query_params = {}
184
187
 
@@ -187,6 +190,7 @@ module OCI
187
190
  header_params['accept'] = 'application/json'
188
191
  header_params['content-type'] = 'application/json'
189
192
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
193
+ # rubocop:enable Style/NegatedIf
190
194
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
191
195
 
192
196
  post_body = @api_client.object_to_http_body(attach_vnic_details)
@@ -220,7 +224,7 @@ module OCI
220
224
  # @param [OCI::Core::Models::AttachVolumeDetails] attach_volume_details Attach volume request
221
225
  # @param [Hash] opts the optional parameters
222
226
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
223
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
227
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
224
228
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
225
229
  # server error without risk of executing that same action again. Retry tokens expire after 24
226
230
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -236,6 +240,7 @@ module OCI
236
240
  path = '/volumeAttachments/'
237
241
  operation_signing_strategy = :standard
238
242
 
243
+ # rubocop:disable Style/NegatedIf
239
244
  # Query Params
240
245
  query_params = {}
241
246
 
@@ -244,6 +249,7 @@ module OCI
244
249
  header_params['accept'] = 'application/json'
245
250
  header_params['content-type'] = 'application/json'
246
251
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
252
+ # rubocop:enable Style/NegatedIf
247
253
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
248
254
 
249
255
  post_body = @api_client.object_to_http_body(attach_volume_details)
@@ -293,7 +299,7 @@ module OCI
293
299
  # @param [OCI::Core::Models::CaptureConsoleHistoryDetails] capture_console_history_details Console history details
294
300
  # @param [Hash] opts the optional parameters
295
301
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
296
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
302
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
297
303
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
298
304
  # server error without risk of executing that same action again. Retry tokens expire after 24
299
305
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -309,6 +315,7 @@ module OCI
309
315
  path = '/instanceConsoleHistories/'
310
316
  operation_signing_strategy = :standard
311
317
 
318
+ # rubocop:disable Style/NegatedIf
312
319
  # Query Params
313
320
  query_params = {}
314
321
 
@@ -317,6 +324,7 @@ module OCI
317
324
  header_params['accept'] = 'application/json'
318
325
  header_params['content-type'] = 'application/json'
319
326
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
327
+ # rubocop:enable Style/NegatedIf
320
328
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
321
329
 
322
330
  post_body = @api_client.object_to_http_body(capture_console_history_details)
@@ -372,7 +380,7 @@ module OCI
372
380
  # @param [OCI::Core::Models::CreateImageDetails] create_image_details Image creation details
373
381
  # @param [Hash] opts the optional parameters
374
382
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
375
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
383
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
376
384
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
377
385
  # server error without risk of executing that same action again. Retry tokens expire after 24
378
386
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -388,6 +396,7 @@ module OCI
388
396
  path = '/images'
389
397
  operation_signing_strategy = :standard
390
398
 
399
+ # rubocop:disable Style/NegatedIf
391
400
  # Query Params
392
401
  query_params = {}
393
402
 
@@ -396,6 +405,7 @@ module OCI
396
405
  header_params['accept'] = 'application/json'
397
406
  header_params['content-type'] = 'application/json'
398
407
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
408
+ # rubocop:enable Style/NegatedIf
399
409
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
400
410
 
401
411
  post_body = @api_client.object_to_http_body(create_image_details)
@@ -433,7 +443,7 @@ module OCI
433
443
  # @param [OCI::Core::Models::CreateInstanceConsoleConnectionDetails] create_instance_console_connection_details Request object for creating an InstanceConsoleConnection
434
444
  # @param [Hash] opts the optional parameters
435
445
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
436
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
446
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
437
447
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
438
448
  # server error without risk of executing that same action again. Retry tokens expire after 24
439
449
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -449,6 +459,7 @@ module OCI
449
459
  path = '/instanceConsoleConnections'
450
460
  operation_signing_strategy = :standard
451
461
 
462
+ # rubocop:disable Style/NegatedIf
452
463
  # Query Params
453
464
  query_params = {}
454
465
 
@@ -457,6 +468,7 @@ module OCI
457
468
  header_params['accept'] = 'application/json'
458
469
  header_params['content-type'] = 'application/json'
459
470
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
471
+ # rubocop:enable Style/NegatedIf
460
472
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
461
473
 
462
474
  post_body = @api_client.object_to_http_body(create_instance_console_connection_details)
@@ -489,7 +501,7 @@ module OCI
489
501
  # @param [String] instance_console_history_id The OCID of the console history.
490
502
  # @param [Hash] opts the optional parameters
491
503
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
492
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
504
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
493
505
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
494
506
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
495
507
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -504,6 +516,7 @@ module OCI
504
516
  path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
505
517
  operation_signing_strategy = :standard
506
518
 
519
+ # rubocop:disable Style/NegatedIf
507
520
  # Query Params
508
521
  query_params = {}
509
522
 
@@ -512,6 +525,7 @@ module OCI
512
525
  header_params['accept'] = 'application/json'
513
526
  header_params['content-type'] = 'application/json'
514
527
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
528
+ # rubocop:enable Style/NegatedIf
515
529
 
516
530
  post_body = nil
517
531
 
@@ -542,7 +556,7 @@ module OCI
542
556
  # @param [String] image_id The OCID of the image.
543
557
  # @param [Hash] opts the optional parameters
544
558
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
545
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
559
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
546
560
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
547
561
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
548
562
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -557,6 +571,7 @@ module OCI
557
571
  path = '/images/{imageId}'.sub('{imageId}', image_id.to_s)
558
572
  operation_signing_strategy = :standard
559
573
 
574
+ # rubocop:disable Style/NegatedIf
560
575
  # Query Params
561
576
  query_params = {}
562
577
 
@@ -565,6 +580,7 @@ module OCI
565
580
  header_params['accept'] = 'application/json'
566
581
  header_params['content-type'] = 'application/json'
567
582
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
583
+ # rubocop:enable Style/NegatedIf
568
584
 
569
585
  post_body = nil
570
586
 
@@ -595,7 +611,7 @@ module OCI
595
611
  # @param [String] instance_console_connection_id The OCID of the intance console connection
596
612
  # @param [Hash] opts the optional parameters
597
613
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
598
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
614
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
599
615
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
600
616
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
601
617
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -610,6 +626,7 @@ module OCI
610
626
  path = '/instanceConsoleConnections/{instanceConsoleConnectionId}'.sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
611
627
  operation_signing_strategy = :standard
612
628
 
629
+ # rubocop:disable Style/NegatedIf
613
630
  # Query Params
614
631
  query_params = {}
615
632
 
@@ -618,6 +635,7 @@ module OCI
618
635
  header_params['accept'] = 'application/json'
619
636
  header_params['content-type'] = 'application/json'
620
637
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
638
+ # rubocop:enable Style/NegatedIf
621
639
 
622
640
  post_body = nil
623
641
 
@@ -652,7 +670,7 @@ module OCI
652
670
  # @param [String] boot_volume_attachment_id The OCID of the boot volume attachment.
653
671
  # @param [Hash] opts the optional parameters
654
672
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
655
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
673
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
656
674
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
657
675
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
658
676
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -667,6 +685,7 @@ module OCI
667
685
  path = '/bootVolumeAttachments/{bootVolumeAttachmentId}'.sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
668
686
  operation_signing_strategy = :standard
669
687
 
688
+ # rubocop:disable Style/NegatedIf
670
689
  # Query Params
671
690
  query_params = {}
672
691
 
@@ -675,6 +694,7 @@ module OCI
675
694
  header_params['accept'] = 'application/json'
676
695
  header_params['content-type'] = 'application/json'
677
696
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
697
+ # rubocop:enable Style/NegatedIf
678
698
 
679
699
  post_body = nil
680
700
 
@@ -715,7 +735,7 @@ module OCI
715
735
  # @param [String] vnic_attachment_id The OCID of the VNIC attachment.
716
736
  # @param [Hash] opts the optional parameters
717
737
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
718
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
738
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
719
739
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
720
740
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
721
741
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -730,6 +750,7 @@ module OCI
730
750
  path = '/vnicAttachments/{vnicAttachmentId}'.sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
731
751
  operation_signing_strategy = :standard
732
752
 
753
+ # rubocop:disable Style/NegatedIf
733
754
  # Query Params
734
755
  query_params = {}
735
756
 
@@ -738,6 +759,7 @@ module OCI
738
759
  header_params['accept'] = 'application/json'
739
760
  header_params['content-type'] = 'application/json'
740
761
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
762
+ # rubocop:enable Style/NegatedIf
741
763
 
742
764
  post_body = nil
743
765
 
@@ -772,7 +794,7 @@ module OCI
772
794
  # @param [String] volume_attachment_id The OCID of the volume attachment.
773
795
  # @param [Hash] opts the optional parameters
774
796
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
775
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
797
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
776
798
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
777
799
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
778
800
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -787,6 +809,7 @@ module OCI
787
809
  path = '/volumeAttachments/{volumeAttachmentId}'.sub('{volumeAttachmentId}', volume_attachment_id.to_s)
788
810
  operation_signing_strategy = :standard
789
811
 
812
+ # rubocop:disable Style/NegatedIf
790
813
  # Query Params
791
814
  query_params = {}
792
815
 
@@ -795,6 +818,7 @@ module OCI
795
818
  header_params['accept'] = 'application/json'
796
819
  header_params['content-type'] = 'application/json'
797
820
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
821
+ # rubocop:enable Style/NegatedIf
798
822
 
799
823
  post_body = nil
800
824
 
@@ -836,7 +860,7 @@ module OCI
836
860
  # @param [OCI::Core::Models::ExportImageDetails] export_image_details Details for the image export.
837
861
  # @param [Hash] opts the optional parameters
838
862
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
839
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
863
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
840
864
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
841
865
  # server error without risk of executing that same action again. Retry tokens expire after 24
842
866
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -858,6 +882,7 @@ module OCI
858
882
  path = '/images/{imageId}/actions/export'.sub('{imageId}', image_id.to_s)
859
883
  operation_signing_strategy = :standard
860
884
 
885
+ # rubocop:disable Style/NegatedIf
861
886
  # Query Params
862
887
  query_params = {}
863
888
 
@@ -867,6 +892,7 @@ module OCI
867
892
  header_params['content-type'] = 'application/json'
868
893
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
869
894
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
895
+ # rubocop:enable Style/NegatedIf
870
896
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
871
897
 
872
898
  post_body = @api_client.object_to_http_body(export_image_details)
@@ -900,7 +926,7 @@ module OCI
900
926
  # @param [String] boot_volume_attachment_id The OCID of the boot volume attachment.
901
927
  # @param [Hash] opts the optional parameters
902
928
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
903
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
929
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
904
930
  # @return [Response] A Response object with data of type {OCI::Core::Models::BootVolumeAttachment BootVolumeAttachment}
905
931
  def get_boot_volume_attachment(boot_volume_attachment_id, opts = {})
906
932
  logger.debug 'Calling operation ComputeClient#get_boot_volume_attachment.' if logger
@@ -911,6 +937,7 @@ module OCI
911
937
  path = '/bootVolumeAttachments/{bootVolumeAttachmentId}'.sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
912
938
  operation_signing_strategy = :standard
913
939
 
940
+ # rubocop:disable Style/NegatedIf
914
941
  # Query Params
915
942
  query_params = {}
916
943
 
@@ -918,6 +945,7 @@ module OCI
918
945
  header_params = {}
919
946
  header_params['accept'] = 'application/json'
920
947
  header_params['content-type'] = 'application/json'
948
+ # rubocop:enable Style/NegatedIf
921
949
 
922
950
  post_body = nil
923
951
 
@@ -954,7 +982,7 @@ module OCI
954
982
  # @param [String] instance_console_history_id The OCID of the console history.
955
983
  # @param [Hash] opts the optional parameters
956
984
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
957
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
985
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
958
986
  # @return [Response] A Response object with data of type {OCI::Core::Models::ConsoleHistory ConsoleHistory}
959
987
  def get_console_history(instance_console_history_id, opts = {})
960
988
  logger.debug 'Calling operation ComputeClient#get_console_history.' if logger
@@ -965,6 +993,7 @@ module OCI
965
993
  path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
966
994
  operation_signing_strategy = :standard
967
995
 
996
+ # rubocop:disable Style/NegatedIf
968
997
  # Query Params
969
998
  query_params = {}
970
999
 
@@ -972,6 +1001,7 @@ module OCI
972
1001
  header_params = {}
973
1002
  header_params['accept'] = 'application/json'
974
1003
  header_params['content-type'] = 'application/json'
1004
+ # rubocop:enable Style/NegatedIf
975
1005
 
976
1006
  post_body = nil
977
1007
 
@@ -1007,7 +1037,7 @@ module OCI
1007
1037
  # @param [String] instance_console_history_id The OCID of the console history.
1008
1038
  # @param [Hash] opts the optional parameters
1009
1039
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1010
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1040
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1011
1041
  # @option opts [Integer] :offset Offset of the snapshot data to retrieve.
1012
1042
  # @option opts [Integer] :length Length of the snapshot data to retrieve.
1013
1043
  # @return [Response] A Response object with data of type String
@@ -1020,6 +1050,7 @@ module OCI
1020
1050
  path = '/instanceConsoleHistories/{instanceConsoleHistoryId}/data'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
1021
1051
  operation_signing_strategy = :standard
1022
1052
 
1053
+ # rubocop:disable Style/NegatedIf
1023
1054
  # Query Params
1024
1055
  query_params = {}
1025
1056
  query_params[:offset] = opts[:offset] if opts[:offset]
@@ -1029,6 +1060,7 @@ module OCI
1029
1060
  header_params = {}
1030
1061
  header_params['accept'] = 'application/json'
1031
1062
  header_params['content-type'] = 'application/json'
1063
+ # rubocop:enable Style/NegatedIf
1032
1064
 
1033
1065
  post_body = nil
1034
1066
 
@@ -1061,7 +1093,7 @@ module OCI
1061
1093
  # @param [String] image_id The OCID of the image.
1062
1094
  # @param [Hash] opts the optional parameters
1063
1095
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1064
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1096
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1065
1097
  # @return [Response] A Response object with data of type {OCI::Core::Models::Image Image}
1066
1098
  def get_image(image_id, opts = {})
1067
1099
  logger.debug 'Calling operation ComputeClient#get_image.' if logger
@@ -1072,6 +1104,7 @@ module OCI
1072
1104
  path = '/images/{imageId}'.sub('{imageId}', image_id.to_s)
1073
1105
  operation_signing_strategy = :standard
1074
1106
 
1107
+ # rubocop:disable Style/NegatedIf
1075
1108
  # Query Params
1076
1109
  query_params = {}
1077
1110
 
@@ -1079,6 +1112,7 @@ module OCI
1079
1112
  header_params = {}
1080
1113
  header_params['accept'] = 'application/json'
1081
1114
  header_params['content-type'] = 'application/json'
1115
+ # rubocop:enable Style/NegatedIf
1082
1116
 
1083
1117
  post_body = nil
1084
1118
 
@@ -1112,7 +1146,7 @@ module OCI
1112
1146
  # @param [String] instance_id The OCID of the instance.
1113
1147
  # @param [Hash] opts the optional parameters
1114
1148
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1115
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1149
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1116
1150
  # @return [Response] A Response object with data of type {OCI::Core::Models::Instance Instance}
1117
1151
  def get_instance(instance_id, opts = {})
1118
1152
  logger.debug 'Calling operation ComputeClient#get_instance.' if logger
@@ -1123,6 +1157,7 @@ module OCI
1123
1157
  path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
1124
1158
  operation_signing_strategy = :standard
1125
1159
 
1160
+ # rubocop:disable Style/NegatedIf
1126
1161
  # Query Params
1127
1162
  query_params = {}
1128
1163
 
@@ -1130,6 +1165,7 @@ module OCI
1130
1165
  header_params = {}
1131
1166
  header_params['accept'] = 'application/json'
1132
1167
  header_params['content-type'] = 'application/json'
1168
+ # rubocop:enable Style/NegatedIf
1133
1169
 
1134
1170
  post_body = nil
1135
1171
 
@@ -1163,7 +1199,7 @@ module OCI
1163
1199
  # @param [String] instance_console_connection_id The OCID of the intance console connection
1164
1200
  # @param [Hash] opts the optional parameters
1165
1201
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1166
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1202
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1167
1203
  # @return [Response] A Response object with data of type {OCI::Core::Models::InstanceConsoleConnection InstanceConsoleConnection}
1168
1204
  def get_instance_console_connection(instance_console_connection_id, opts = {})
1169
1205
  logger.debug 'Calling operation ComputeClient#get_instance_console_connection.' if logger
@@ -1174,6 +1210,7 @@ module OCI
1174
1210
  path = '/instanceConsoleConnections/{instanceConsoleConnectionId}'.sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
1175
1211
  operation_signing_strategy = :standard
1176
1212
 
1213
+ # rubocop:disable Style/NegatedIf
1177
1214
  # Query Params
1178
1215
  query_params = {}
1179
1216
 
@@ -1181,6 +1218,7 @@ module OCI
1181
1218
  header_params = {}
1182
1219
  header_params['accept'] = 'application/json'
1183
1220
  header_params['content-type'] = 'application/json'
1221
+ # rubocop:enable Style/NegatedIf
1184
1222
 
1185
1223
  post_body = nil
1186
1224
 
@@ -1215,7 +1253,7 @@ module OCI
1215
1253
  # @param [String] vnic_attachment_id The OCID of the VNIC attachment.
1216
1254
  # @param [Hash] opts the optional parameters
1217
1255
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1218
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1256
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1219
1257
  # @return [Response] A Response object with data of type {OCI::Core::Models::VnicAttachment VnicAttachment}
1220
1258
  def get_vnic_attachment(vnic_attachment_id, opts = {})
1221
1259
  logger.debug 'Calling operation ComputeClient#get_vnic_attachment.' if logger
@@ -1226,6 +1264,7 @@ module OCI
1226
1264
  path = '/vnicAttachments/{vnicAttachmentId}'.sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
1227
1265
  operation_signing_strategy = :standard
1228
1266
 
1267
+ # rubocop:disable Style/NegatedIf
1229
1268
  # Query Params
1230
1269
  query_params = {}
1231
1270
 
@@ -1233,6 +1272,7 @@ module OCI
1233
1272
  header_params = {}
1234
1273
  header_params['accept'] = 'application/json'
1235
1274
  header_params['content-type'] = 'application/json'
1275
+ # rubocop:enable Style/NegatedIf
1236
1276
 
1237
1277
  post_body = nil
1238
1278
 
@@ -1266,7 +1306,7 @@ module OCI
1266
1306
  # @param [String] volume_attachment_id The OCID of the volume attachment.
1267
1307
  # @param [Hash] opts the optional parameters
1268
1308
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1269
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1309
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1270
1310
  # @return [Response] A Response object with data of type {OCI::Core::Models::VolumeAttachment VolumeAttachment}
1271
1311
  def get_volume_attachment(volume_attachment_id, opts = {})
1272
1312
  logger.debug 'Calling operation ComputeClient#get_volume_attachment.' if logger
@@ -1277,6 +1317,7 @@ module OCI
1277
1317
  path = '/volumeAttachments/{volumeAttachmentId}'.sub('{volumeAttachmentId}', volume_attachment_id.to_s)
1278
1318
  operation_signing_strategy = :standard
1279
1319
 
1320
+ # rubocop:disable Style/NegatedIf
1280
1321
  # Query Params
1281
1322
  query_params = {}
1282
1323
 
@@ -1284,6 +1325,7 @@ module OCI
1284
1325
  header_params = {}
1285
1326
  header_params['accept'] = 'application/json'
1286
1327
  header_params['content-type'] = 'application/json'
1328
+ # rubocop:enable Style/NegatedIf
1287
1329
 
1288
1330
  post_body = nil
1289
1331
 
@@ -1319,7 +1361,7 @@ module OCI
1319
1361
  # @param [String] instance_id The OCID of the instance.
1320
1362
  # @param [Hash] opts the optional parameters
1321
1363
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1322
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1364
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1323
1365
  # @return [Response] A Response object with data of type {OCI::Core::Models::InstanceCredentials InstanceCredentials}
1324
1366
  def get_windows_instance_initial_credentials(instance_id, opts = {})
1325
1367
  logger.debug 'Calling operation ComputeClient#get_windows_instance_initial_credentials.' if logger
@@ -1330,6 +1372,7 @@ module OCI
1330
1372
  path = '/instances/{instanceId}/initialCredentials'.sub('{instanceId}', instance_id.to_s)
1331
1373
  operation_signing_strategy = :standard
1332
1374
 
1375
+ # rubocop:disable Style/NegatedIf
1333
1376
  # Query Params
1334
1377
  query_params = {}
1335
1378
 
@@ -1337,6 +1380,7 @@ module OCI
1337
1380
  header_params = {}
1338
1381
  header_params['accept'] = 'application/json'
1339
1382
  header_params['content-type'] = 'application/json'
1383
+ # rubocop:enable Style/NegatedIf
1340
1384
 
1341
1385
  post_body = nil
1342
1386
 
@@ -1365,7 +1409,7 @@ module OCI
1365
1409
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1366
1410
 
1367
1411
 
1368
- # Performs one of the power actions (start, stop, softreset, or reset)
1412
+ # Performs one of the power actions (start, stop, softreset, softstop, or reset)
1369
1413
  # on the specified instance.
1370
1414
  #
1371
1415
  # **start** - power on
@@ -1374,16 +1418,18 @@ module OCI
1374
1418
  #
1375
1419
  # **softreset** - ACPI shutdown and power on
1376
1420
  #
1421
+ # **softstop** - signal the instance operating system to shutdown gracefully
1422
+ #
1377
1423
  # **reset** - power off and power on
1378
1424
  #
1379
1425
  # For more information see [Stopping and Starting an Instance](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/restartinginstance.htm).
1380
1426
  #
1381
1427
  # @param [String] instance_id The OCID of the instance.
1382
1428
  # @param [String] action The action to perform on the instance.
1383
- # Allowed values are: STOP, START, SOFTRESET, RESET
1429
+ # Allowed values are: STOP, START, SOFTRESET, RESET, SOFTSTOP
1384
1430
  # @param [Hash] opts the optional parameters
1385
1431
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1386
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1432
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1387
1433
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1388
1434
  # server error without risk of executing that same action again. Retry tokens expire after 24
1389
1435
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -1400,14 +1446,15 @@ module OCI
1400
1446
 
1401
1447
  raise "Missing the required parameter 'instance_id' when calling instance_action." if instance_id.nil?
1402
1448
  raise "Missing the required parameter 'action' when calling instance_action." if action.nil?
1403
- unless %w[STOP START SOFTRESET RESET].include?(action)
1404
- raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
1449
+ unless %w[STOP START SOFTRESET RESET SOFTSTOP].include?(action)
1450
+ raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET, SOFTSTOP."
1405
1451
  end
1406
1452
  raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id)
1407
1453
 
1408
1454
  path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
1409
1455
  operation_signing_strategy = :standard
1410
1456
 
1457
+ # rubocop:disable Style/NegatedIf
1411
1458
  # Query Params
1412
1459
  query_params = {}
1413
1460
  query_params[:action] = action
@@ -1418,6 +1465,7 @@ module OCI
1418
1465
  header_params['content-type'] = 'application/json'
1419
1466
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1420
1467
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1468
+ # rubocop:enable Style/NegatedIf
1421
1469
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1422
1470
 
1423
1471
  post_body = nil
@@ -1481,7 +1529,7 @@ module OCI
1481
1529
  # @param [OCI::Core::Models::LaunchInstanceDetails] launch_instance_details Instance details
1482
1530
  # @param [Hash] opts the optional parameters
1483
1531
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1484
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1532
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1485
1533
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1486
1534
  # server error without risk of executing that same action again. Retry tokens expire after 24
1487
1535
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -1497,6 +1545,7 @@ module OCI
1497
1545
  path = '/instances/'
1498
1546
  operation_signing_strategy = :standard
1499
1547
 
1548
+ # rubocop:disable Style/NegatedIf
1500
1549
  # Query Params
1501
1550
  query_params = {}
1502
1551
 
@@ -1505,6 +1554,7 @@ module OCI
1505
1554
  header_params['accept'] = 'application/json'
1506
1555
  header_params['content-type'] = 'application/json'
1507
1556
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1557
+ # rubocop:enable Style/NegatedIf
1508
1558
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1509
1559
 
1510
1560
  post_body = @api_client.object_to_http_body(launch_instance_details)
@@ -1543,7 +1593,7 @@ module OCI
1543
1593
  # @param [String] compartment_id The OCID of the compartment.
1544
1594
  # @param [Hash] opts the optional parameters
1545
1595
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1546
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1596
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1547
1597
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1548
1598
  #
1549
1599
  # Example: `500`
@@ -1562,6 +1612,7 @@ module OCI
1562
1612
  path = '/bootVolumeAttachments/'
1563
1613
  operation_signing_strategy = :standard
1564
1614
 
1615
+ # rubocop:disable Style/NegatedIf
1565
1616
  # Query Params
1566
1617
  query_params = {}
1567
1618
  query_params[:availabilityDomain] = availability_domain
@@ -1575,6 +1626,7 @@ module OCI
1575
1626
  header_params = {}
1576
1627
  header_params['accept'] = 'application/json'
1577
1628
  header_params['content-type'] = 'application/json'
1629
+ # rubocop:enable Style/NegatedIf
1578
1630
 
1579
1631
  post_body = nil
1580
1632
 
@@ -1607,7 +1659,7 @@ module OCI
1607
1659
  # @param [String] compartment_id The OCID of the compartment.
1608
1660
  # @param [Hash] opts the optional parameters
1609
1661
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1610
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1662
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1611
1663
  # @option opts [String] :availability_domain The name of the Availability Domain.
1612
1664
  #
1613
1665
  # Example: `Uocm:PHX-AD-1`
@@ -1656,6 +1708,7 @@ module OCI
1656
1708
  path = '/instanceConsoleHistories/'
1657
1709
  operation_signing_strategy = :standard
1658
1710
 
1711
+ # rubocop:disable Style/NegatedIf
1659
1712
  # Query Params
1660
1713
  query_params = {}
1661
1714
  query_params[:compartmentId] = compartment_id
@@ -1671,6 +1724,7 @@ module OCI
1671
1724
  header_params = {}
1672
1725
  header_params['accept'] = 'application/json'
1673
1726
  header_params['content-type'] = 'application/json'
1727
+ # rubocop:enable Style/NegatedIf
1674
1728
 
1675
1729
  post_body = nil
1676
1730
 
@@ -1707,7 +1761,7 @@ module OCI
1707
1761
  # @param [String] compartment_id The OCID of the compartment.
1708
1762
  # @param [Hash] opts the optional parameters
1709
1763
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1710
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1764
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1711
1765
  # @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
1712
1766
  #
1713
1767
  # @option opts [String] :operating_system The image's operating system.
@@ -1762,6 +1816,7 @@ module OCI
1762
1816
  path = '/images'
1763
1817
  operation_signing_strategy = :standard
1764
1818
 
1819
+ # rubocop:disable Style/NegatedIf
1765
1820
  # Query Params
1766
1821
  query_params = {}
1767
1822
  query_params[:compartmentId] = compartment_id
@@ -1779,6 +1834,7 @@ module OCI
1779
1834
  header_params = {}
1780
1835
  header_params['accept'] = 'application/json'
1781
1836
  header_params['content-type'] = 'application/json'
1837
+ # rubocop:enable Style/NegatedIf
1782
1838
 
1783
1839
  post_body = nil
1784
1840
 
@@ -1813,7 +1869,7 @@ module OCI
1813
1869
  # @param [String] compartment_id The OCID of the compartment.
1814
1870
  # @param [Hash] opts the optional parameters
1815
1871
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1816
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1872
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1817
1873
  # @option opts [String] :instance_id The OCID of the instance.
1818
1874
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1819
1875
  #
@@ -1830,6 +1886,7 @@ module OCI
1830
1886
  path = '/instanceConsoleConnections'
1831
1887
  operation_signing_strategy = :standard
1832
1888
 
1889
+ # rubocop:disable Style/NegatedIf
1833
1890
  # Query Params
1834
1891
  query_params = {}
1835
1892
  query_params[:compartmentId] = compartment_id
@@ -1841,6 +1898,7 @@ module OCI
1841
1898
  header_params = {}
1842
1899
  header_params['accept'] = 'application/json'
1843
1900
  header_params['content-type'] = 'application/json'
1901
+ # rubocop:enable Style/NegatedIf
1844
1902
 
1845
1903
  post_body = nil
1846
1904
 
@@ -1875,7 +1933,7 @@ module OCI
1875
1933
  # @param [String] compartment_id The OCID of the compartment.
1876
1934
  # @param [Hash] opts the optional parameters
1877
1935
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1878
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1936
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1879
1937
  # @option opts [String] :availability_domain The name of the Availability Domain.
1880
1938
  #
1881
1939
  # Example: `Uocm:PHX-AD-1`
@@ -1925,6 +1983,7 @@ module OCI
1925
1983
  path = '/instances/'
1926
1984
  operation_signing_strategy = :standard
1927
1985
 
1986
+ # rubocop:disable Style/NegatedIf
1928
1987
  # Query Params
1929
1988
  query_params = {}
1930
1989
  query_params[:compartmentId] = compartment_id
@@ -1940,6 +1999,7 @@ module OCI
1940
1999
  header_params = {}
1941
2000
  header_params['accept'] = 'application/json'
1942
2001
  header_params['content-type'] = 'application/json'
2002
+ # rubocop:enable Style/NegatedIf
1943
2003
 
1944
2004
  post_body = nil
1945
2005
 
@@ -1973,7 +2033,7 @@ module OCI
1973
2033
  # @param [String] compartment_id The OCID of the compartment.
1974
2034
  # @param [Hash] opts the optional parameters
1975
2035
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1976
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
2036
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1977
2037
  # @option opts [String] :availability_domain The name of the Availability Domain.
1978
2038
  #
1979
2039
  # Example: `Uocm:PHX-AD-1`
@@ -1994,6 +2054,7 @@ module OCI
1994
2054
  path = '/shapes'
1995
2055
  operation_signing_strategy = :standard
1996
2056
 
2057
+ # rubocop:disable Style/NegatedIf
1997
2058
  # Query Params
1998
2059
  query_params = {}
1999
2060
  query_params[:compartmentId] = compartment_id
@@ -2006,6 +2067,7 @@ module OCI
2006
2067
  header_params = {}
2007
2068
  header_params['accept'] = 'application/json'
2008
2069
  header_params['content-type'] = 'application/json'
2070
+ # rubocop:enable Style/NegatedIf
2009
2071
 
2010
2072
  post_body = nil
2011
2073
 
@@ -2040,7 +2102,7 @@ module OCI
2040
2102
  # @param [String] compartment_id The OCID of the compartment.
2041
2103
  # @param [Hash] opts the optional parameters
2042
2104
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2043
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
2105
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2044
2106
  # @option opts [String] :availability_domain The name of the Availability Domain.
2045
2107
  #
2046
2108
  # Example: `Uocm:PHX-AD-1`
@@ -2062,6 +2124,7 @@ module OCI
2062
2124
  path = '/vnicAttachments/'
2063
2125
  operation_signing_strategy = :standard
2064
2126
 
2127
+ # rubocop:disable Style/NegatedIf
2065
2128
  # Query Params
2066
2129
  query_params = {}
2067
2130
  query_params[:compartmentId] = compartment_id
@@ -2075,6 +2138,7 @@ module OCI
2075
2138
  header_params = {}
2076
2139
  header_params['accept'] = 'application/json'
2077
2140
  header_params['content-type'] = 'application/json'
2141
+ # rubocop:enable Style/NegatedIf
2078
2142
 
2079
2143
  post_body = nil
2080
2144
 
@@ -2111,7 +2175,7 @@ module OCI
2111
2175
  # @param [String] compartment_id The OCID of the compartment.
2112
2176
  # @param [Hash] opts the optional parameters
2113
2177
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2114
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
2178
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2115
2179
  # @option opts [String] :availability_domain The name of the Availability Domain.
2116
2180
  #
2117
2181
  # Example: `Uocm:PHX-AD-1`
@@ -2133,6 +2197,7 @@ module OCI
2133
2197
  path = '/volumeAttachments/'
2134
2198
  operation_signing_strategy = :standard
2135
2199
 
2200
+ # rubocop:disable Style/NegatedIf
2136
2201
  # Query Params
2137
2202
  query_params = {}
2138
2203
  query_params[:compartmentId] = compartment_id
@@ -2146,6 +2211,7 @@ module OCI
2146
2211
  header_params = {}
2147
2212
  header_params['accept'] = 'application/json'
2148
2213
  header_params['content-type'] = 'application/json'
2214
+ # rubocop:enable Style/NegatedIf
2149
2215
 
2150
2216
  post_body = nil
2151
2217
 
@@ -2185,7 +2251,7 @@ module OCI
2185
2251
  # @param [String] instance_id The OCID of the instance.
2186
2252
  # @param [Hash] opts the optional parameters
2187
2253
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2188
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
2254
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2189
2255
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
2190
2256
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
2191
2257
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -2203,15 +2269,17 @@ module OCI
2203
2269
  path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
2204
2270
  operation_signing_strategy = :standard
2205
2271
 
2272
+ # rubocop:disable Style/NegatedIf
2206
2273
  # Query Params
2207
2274
  query_params = {}
2208
- query_params[:preserveBootVolume] = opts[:preserve_boot_volume] if opts[:preserve_boot_volume]
2275
+ query_params[:preserveBootVolume] = opts[:preserve_boot_volume] if !opts[:preserve_boot_volume].nil?
2209
2276
 
2210
2277
  # Header Params
2211
2278
  header_params = {}
2212
2279
  header_params['accept'] = 'application/json'
2213
2280
  header_params['content-type'] = 'application/json'
2214
2281
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2282
+ # rubocop:enable Style/NegatedIf
2215
2283
 
2216
2284
  post_body = nil
2217
2285
 
@@ -2243,7 +2311,7 @@ module OCI
2243
2311
  # @param [OCI::Core::Models::UpdateConsoleHistoryDetails] update_console_history_details Update instance fields
2244
2312
  # @param [Hash] opts the optional parameters
2245
2313
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2246
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
2314
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2247
2315
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
2248
2316
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
2249
2317
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
@@ -2259,6 +2327,7 @@ module OCI
2259
2327
  path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
2260
2328
  operation_signing_strategy = :standard
2261
2329
 
2330
+ # rubocop:disable Style/NegatedIf
2262
2331
  # Query Params
2263
2332
  query_params = {}
2264
2333
 
@@ -2267,6 +2336,7 @@ module OCI
2267
2336
  header_params['accept'] = 'application/json'
2268
2337
  header_params['content-type'] = 'application/json'
2269
2338
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2339
+ # rubocop:enable Style/NegatedIf
2270
2340
 
2271
2341
  post_body = @api_client.object_to_http_body(update_console_history_details)
2272
2342
 
@@ -2299,7 +2369,7 @@ module OCI
2299
2369
  # @param [OCI::Core::Models::UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
2300
2370
  # @param [Hash] opts the optional parameters
2301
2371
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2302
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
2372
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2303
2373
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2304
2374
  # server error without risk of executing that same action again. Retry tokens expire after 24
2305
2375
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -2321,6 +2391,7 @@ module OCI
2321
2391
  path = '/images/{imageId}'.sub('{imageId}', image_id.to_s)
2322
2392
  operation_signing_strategy = :standard
2323
2393
 
2394
+ # rubocop:disable Style/NegatedIf
2324
2395
  # Query Params
2325
2396
  query_params = {}
2326
2397
 
@@ -2330,6 +2401,7 @@ module OCI
2330
2401
  header_params['content-type'] = 'application/json'
2331
2402
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2332
2403
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2404
+ # rubocop:enable Style/NegatedIf
2333
2405
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2334
2406
 
2335
2407
  post_body = @api_client.object_to_http_body(update_image_details)
@@ -2365,7 +2437,7 @@ module OCI
2365
2437
  # @param [OCI::Core::Models::UpdateInstanceDetails] update_instance_details Update instance fields
2366
2438
  # @param [Hash] opts the optional parameters
2367
2439
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2368
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
2440
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2369
2441
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2370
2442
  # server error without risk of executing that same action again. Retry tokens expire after 24
2371
2443
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
@@ -2387,6 +2459,7 @@ module OCI
2387
2459
  path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
2388
2460
  operation_signing_strategy = :standard
2389
2461
 
2462
+ # rubocop:disable Style/NegatedIf
2390
2463
  # Query Params
2391
2464
  query_params = {}
2392
2465
 
@@ -2396,6 +2469,7 @@ module OCI
2396
2469
  header_params['content-type'] = 'application/json'
2397
2470
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2398
2471
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2472
+ # rubocop:enable Style/NegatedIf
2399
2473
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2400
2474
 
2401
2475
  post_body = @api_client.object_to_http_body(update_instance_details)