oci 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/blockstorage_client.rb +412 -13
  4. data/lib/oci/core/blockstorage_client_composite_operations.rb +158 -0
  5. data/lib/oci/core/compute_client.rb +6 -7
  6. data/lib/oci/core/core.rb +13 -0
  7. data/lib/oci/core/models/boot_volume.rb +68 -1
  8. data/lib/oci/core/models/boot_volume_backup.rb +435 -0
  9. data/lib/oci/core/models/boot_volume_source_details.rb +163 -0
  10. data/lib/oci/core/models/boot_volume_source_from_boot_volume_backup_details.rb +154 -0
  11. data/lib/oci/core/models/boot_volume_source_from_boot_volume_details.rb +154 -0
  12. data/lib/oci/core/models/create_boot_volume_backup_details.rb +227 -0
  13. data/lib/oci/core/models/create_boot_volume_details.rb +250 -0
  14. data/lib/oci/core/models/create_service_gateway_details.rb +228 -0
  15. data/lib/oci/core/models/egress_security_rule.rb +44 -3
  16. data/lib/oci/core/models/ingress_security_rule.rb +47 -3
  17. data/lib/oci/core/models/instance_source_via_image_details.rb +0 -1
  18. data/lib/oci/core/models/route_rule.rb +59 -2
  19. data/lib/oci/core/models/service.rb +185 -0
  20. data/lib/oci/core/models/service_gateway.rb +325 -0
  21. data/lib/oci/core/models/service_id_request_details.rb +151 -0
  22. data/lib/oci/core/models/service_id_response_details.rb +165 -0
  23. data/lib/oci/core/models/update_boot_volume_backup_details.rb +189 -0
  24. data/lib/oci/core/models/update_boot_volume_details.rb +41 -4
  25. data/lib/oci/core/models/update_service_gateway_details.rb +225 -0
  26. data/lib/oci/core/models/volume_group.rb +21 -7
  27. data/lib/oci/core/models/volume_group_backup.rb +39 -7
  28. data/lib/oci/core/models/volume_group_source_from_volumes_details.rb +1 -1
  29. data/lib/oci/core/virtual_network_client.rb +582 -1
  30. data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
  31. data/lib/oci/version.rb +1 -1
  32. metadata +15 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74e11a3369d230ad53a90d5a69a01409142bf910
4
- data.tar.gz: d24081b78b18865bf42f47b8d650e2c0ac24aa5b
3
+ metadata.gz: b1a3978b282dff7d53077c6d7c503f41ee373bd0
4
+ data.tar.gz: 12fa0b73f4d560600e0783e74a8c8585428658f4
5
5
  SHA512:
6
- metadata.gz: 6fd4d70a112e9f49c13908ccefda50f6e155f4335de92daeafd0174bfb7dd2e72bf4af9ec04ad0dc7614c7cc2d6ec8b79b8d93fdbfec5dbaaaac153c4b6d4c1f
7
- data.tar.gz: 06ecbf27fb26d73deaf3f4a82a75f1c437d8a88cfd5a03f9ea3d5ac0a419ea566c7475fbe09a37dbd5b2479681f50a93345ca1af0bb7292e25f63e66a8b6ed73
6
+ metadata.gz: 84739969db3f6bacefc32e0cfeea55448a81faf84e858b15389e0c9fd63f7bae0f8b2960ce6616219751fed1512c4be30b020c494fdd9359c2f8c5416de1f3e8
7
+ data.tar.gz: 525c4ab3c450c109f615d7b7c31ee6133dba5792c3c884270faf97f186ad4f405f9b64a73b82403a81a498b03a0f3f6e137a387c580d694934c33871d3f1c5f5
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.3.0**
2
+ **Version 2.3.1**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -99,8 +99,134 @@ module OCI
99
99
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
100
100
 
101
101
 
102
+ # Creates a new boot volume in the specified compartment from an existing boot volume or a boot volume backup.
103
+ # For general information about boot volumes, see [Boot Volumes](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/bootvolumes.htm).
104
+ # You may optionally specify a *display name* for the volume, which is simply a friendly name or
105
+ # description. It does not have to be unique, and you can change it. Avoid entering confidential information.
106
+ #
107
+ # @param [OCI::Core::Models::CreateBootVolumeDetails] create_boot_volume_details Request to create a new boot volume.
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
110
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
111
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
112
+ # server error without risk of executing that same action again. Retry tokens expire after 24
113
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
114
+ # has been deleted and purged from the system, then a retry of the original creation request
115
+ # may be rejected).
116
+ #
117
+ # @return [Response] A Response object with data of type {OCI::Core::Models::BootVolume BootVolume}
118
+ def create_boot_volume(create_boot_volume_details, opts = {})
119
+ logger.debug 'Calling operation BlockstorageClient#create_boot_volume.' if logger
120
+
121
+ raise "Missing the required parameter 'create_boot_volume_details' when calling create_boot_volume." if create_boot_volume_details.nil?
122
+
123
+ path = '/bootVolumes'
124
+ operation_signing_strategy = :standard
125
+
126
+ # rubocop:disable Style/NegatedIf
127
+ # Query Params
128
+ query_params = {}
129
+
130
+ # Header Params
131
+ header_params = {}
132
+ header_params['accept'] = 'application/json'
133
+ header_params['content-type'] = 'application/json'
134
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
135
+ # rubocop:enable Style/NegatedIf
136
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
137
+
138
+ post_body = @api_client.object_to_http_body(create_boot_volume_details)
139
+
140
+ # rubocop:disable Metrics/BlockLength
141
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#create_boot_volume') do
142
+ @api_client.call_api(
143
+ :POST,
144
+ path,
145
+ endpoint,
146
+ header_params: header_params,
147
+ query_params: query_params,
148
+ operation_signing_strategy: operation_signing_strategy,
149
+ body: post_body,
150
+ return_type: 'OCI::Core::Models::BootVolume'
151
+ )
152
+ end
153
+ # rubocop:enable Metrics/BlockLength
154
+ end
155
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
156
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
157
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
158
+
159
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
160
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
161
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
162
+
163
+
164
+ # Creates a new boot volume backup of the specified boot volume. For general information about boot volume backups,
165
+ # see [Overview of Boot Volume Backups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/bootvolumebackups.htm)
166
+ #
167
+ # When the request is received, the backup object is in a REQUEST_RECEIVED state.
168
+ # When the data is imaged, it goes into a CREATING state.
169
+ # After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state.
170
+ #
171
+ # @param [OCI::Core::Models::CreateBootVolumeBackupDetails] create_boot_volume_backup_details Request to create a new backup of given boot volume.
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
174
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
175
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
176
+ # server error without risk of executing that same action again. Retry tokens expire after 24
177
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
178
+ # has been deleted and purged from the system, then a retry of the original creation request
179
+ # may be rejected).
180
+ #
181
+ # @return [Response] A Response object with data of type {OCI::Core::Models::BootVolumeBackup BootVolumeBackup}
182
+ def create_boot_volume_backup(create_boot_volume_backup_details, opts = {})
183
+ logger.debug 'Calling operation BlockstorageClient#create_boot_volume_backup.' if logger
184
+
185
+ raise "Missing the required parameter 'create_boot_volume_backup_details' when calling create_boot_volume_backup." if create_boot_volume_backup_details.nil?
186
+
187
+ path = '/bootVolumeBackups'
188
+ operation_signing_strategy = :standard
189
+
190
+ # rubocop:disable Style/NegatedIf
191
+ # Query Params
192
+ query_params = {}
193
+
194
+ # Header Params
195
+ header_params = {}
196
+ header_params['accept'] = 'application/json'
197
+ header_params['content-type'] = 'application/json'
198
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
199
+ # rubocop:enable Style/NegatedIf
200
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
201
+
202
+ post_body = @api_client.object_to_http_body(create_boot_volume_backup_details)
203
+
204
+ # rubocop:disable Metrics/BlockLength
205
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#create_boot_volume_backup') do
206
+ @api_client.call_api(
207
+ :POST,
208
+ path,
209
+ endpoint,
210
+ header_params: header_params,
211
+ query_params: query_params,
212
+ operation_signing_strategy: operation_signing_strategy,
213
+ body: post_body,
214
+ return_type: 'OCI::Core::Models::BootVolumeBackup'
215
+ )
216
+ end
217
+ # rubocop:enable Metrics/BlockLength
218
+ end
219
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
220
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
221
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
222
+
223
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
224
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
225
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
226
+
227
+
102
228
  # Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from
103
- # 50 GB (51200 MB) to 16 TB (16777216 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB).
229
+ # 50 GB (51200 MB) to 32 TB (33554432 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB).
104
230
  # For general information about block volumes, see
105
231
  # [Overview of Block Volume Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm).
106
232
  #
@@ -290,12 +416,14 @@ module OCI
290
416
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
291
417
 
292
418
 
293
- # Creates a new volume group in the specified compartment. A volume group can have at most 20 block volumes.
419
+ # Creates a new volume group in the specified compartment.
294
420
  # A volume group is a collection of volumes and may be created from a list of volumes, cloning an existing
295
- # volume group or by restoring a volume group backup.
421
+ # volume group, or by restoring a volume group backup. A volume group can contain up to 64 volumes.
296
422
  # You may optionally specify a *display name* for the volume group, which is simply a friendly name or
297
423
  # description. It does not have to be unique, and you can change it. Avoid entering confidential information.
298
424
  #
425
+ # For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
426
+ #
299
427
  # @param [OCI::Core::Models::CreateVolumeGroupDetails] create_volume_group_details Request to create a new volume group.
300
428
  # @param [Hash] opts the optional parameters
301
429
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -353,7 +481,8 @@ module OCI
353
481
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
354
482
 
355
483
 
356
- # Creates a new group backup of the specified volume group.
484
+ # Creates a new backup volume group of the specified volume group.
485
+ # For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
357
486
  #
358
487
  # @param [OCI::Core::Models::CreateVolumeGroupBackupDetails] create_volume_group_backup_details Request to create a new backup group of given volume group.
359
488
  # @param [Hash] opts the optional parameters
@@ -471,6 +600,61 @@ module OCI
471
600
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
472
601
 
473
602
 
603
+ # Deletes a boot volume backup.
604
+ # @param [String] boot_volume_backup_id The OCID of the boot volume backup.
605
+ # @param [Hash] opts the optional parameters
606
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
607
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
608
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
609
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
610
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
611
+ #
612
+ # @return [Response] A Response object with data of type nil
613
+ def delete_boot_volume_backup(boot_volume_backup_id, opts = {})
614
+ logger.debug 'Calling operation BlockstorageClient#delete_boot_volume_backup.' if logger
615
+
616
+ raise "Missing the required parameter 'boot_volume_backup_id' when calling delete_boot_volume_backup." if boot_volume_backup_id.nil?
617
+ raise "Parameter value for 'boot_volume_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(boot_volume_backup_id)
618
+
619
+ path = '/bootVolumeBackups/{bootVolumeBackupId}'.sub('{bootVolumeBackupId}', boot_volume_backup_id.to_s)
620
+ operation_signing_strategy = :standard
621
+
622
+ # rubocop:disable Style/NegatedIf
623
+ # Query Params
624
+ query_params = {}
625
+
626
+ # Header Params
627
+ header_params = {}
628
+ header_params['accept'] = 'application/json'
629
+ header_params['content-type'] = 'application/json'
630
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
631
+ # rubocop:enable Style/NegatedIf
632
+
633
+ post_body = nil
634
+
635
+ # rubocop:disable Metrics/BlockLength
636
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#delete_boot_volume_backup') do
637
+ @api_client.call_api(
638
+ :DELETE,
639
+ path,
640
+ endpoint,
641
+ header_params: header_params,
642
+ query_params: query_params,
643
+ operation_signing_strategy: operation_signing_strategy,
644
+ body: post_body
645
+ )
646
+ end
647
+ # rubocop:enable Metrics/BlockLength
648
+ end
649
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
650
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
651
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
652
+
653
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
654
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
655
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
656
+
657
+
474
658
  # Deletes the specified volume. The volume cannot have an active connection to an instance.
475
659
  # To disconnect the volume from a connected instance, see
476
660
  # [Disconnecting From a Volume](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/disconnectingfromavolume.htm).
@@ -640,7 +824,8 @@ module OCI
640
824
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
641
825
 
642
826
 
643
- # Deletes the specified volume group. This will NOT delete data volumes.
827
+ # Deletes the specified volume group. Individual volumes are not deleted, only the volume group is deleted.
828
+ # For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
644
829
  #
645
830
  # @param [String] volume_group_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group.
646
831
  # @param [Hash] opts the optional parameters
@@ -696,7 +881,7 @@ module OCI
696
881
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
697
882
 
698
883
 
699
- # Deletes a volume group backup. This will NOT delete backups within the volume group backup.
884
+ # Deletes a volume group backup. This operation deletes all the backups in the volume group. For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
700
885
  # @param [String] volume_group_backup_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup.
701
886
  # @param [Hash] opts the optional parameters
702
887
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -805,6 +990,59 @@ module OCI
805
990
  # rubocop:disable Lint/UnusedMethodArgument
806
991
 
807
992
 
993
+ # Gets information for the specified boot volume backup.
994
+ # @param [String] boot_volume_backup_id The OCID of the boot volume backup.
995
+ # @param [Hash] opts the optional parameters
996
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
997
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
998
+ # @return [Response] A Response object with data of type {OCI::Core::Models::BootVolumeBackup BootVolumeBackup}
999
+ def get_boot_volume_backup(boot_volume_backup_id, opts = {})
1000
+ logger.debug 'Calling operation BlockstorageClient#get_boot_volume_backup.' if logger
1001
+
1002
+ raise "Missing the required parameter 'boot_volume_backup_id' when calling get_boot_volume_backup." if boot_volume_backup_id.nil?
1003
+ raise "Parameter value for 'boot_volume_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(boot_volume_backup_id)
1004
+
1005
+ path = '/bootVolumeBackups/{bootVolumeBackupId}'.sub('{bootVolumeBackupId}', boot_volume_backup_id.to_s)
1006
+ operation_signing_strategy = :standard
1007
+
1008
+ # rubocop:disable Style/NegatedIf
1009
+ # Query Params
1010
+ query_params = {}
1011
+
1012
+ # Header Params
1013
+ header_params = {}
1014
+ header_params['accept'] = 'application/json'
1015
+ header_params['content-type'] = 'application/json'
1016
+ # rubocop:enable Style/NegatedIf
1017
+
1018
+ post_body = nil
1019
+
1020
+ # rubocop:disable Metrics/BlockLength
1021
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#get_boot_volume_backup') do
1022
+ @api_client.call_api(
1023
+ :GET,
1024
+ path,
1025
+ endpoint,
1026
+ header_params: header_params,
1027
+ query_params: query_params,
1028
+ operation_signing_strategy: operation_signing_strategy,
1029
+ body: post_body,
1030
+ return_type: 'OCI::Core::Models::BootVolumeBackup'
1031
+ )
1032
+ end
1033
+ # rubocop:enable Metrics/BlockLength
1034
+ end
1035
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1036
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1037
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1038
+ # rubocop:enable Lint/UnusedMethodArgument
1039
+
1040
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1041
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1042
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1043
+ # rubocop:disable Lint/UnusedMethodArgument
1044
+
1045
+
808
1046
  # Gets information for the specified volume.
809
1047
  # @param [String] volume_id The OCID of the volume.
810
1048
  # @param [Hash] opts the optional parameters
@@ -1079,7 +1317,7 @@ module OCI
1079
1317
  # rubocop:disable Lint/UnusedMethodArgument
1080
1318
 
1081
1319
 
1082
- # Gets information for the specified volume group.
1320
+ # Gets information for the specified volume group. For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
1083
1321
  # @param [String] volume_group_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group.
1084
1322
  # @param [Hash] opts the optional parameters
1085
1323
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -1132,7 +1370,7 @@ module OCI
1132
1370
  # rubocop:disable Lint/UnusedMethodArgument
1133
1371
 
1134
1372
 
1135
- # Gets information for the specified volume group backup.
1373
+ # Gets information for the specified volume group backup. For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
1136
1374
  # @param [String] volume_group_backup_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup.
1137
1375
  # @param [Hash] opts the optional parameters
1138
1376
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -1184,6 +1422,102 @@ module OCI
1184
1422
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1185
1423
 
1186
1424
 
1425
+ # Lists the boot volume backups in the specified compartment. You can filter the results by boot volume.
1426
+ #
1427
+ # @param [String] compartment_id The OCID of the compartment.
1428
+ # @param [Hash] opts the optional parameters
1429
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1430
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1431
+ # @option opts [String] :boot_volume_id The OCID of the boot volume.
1432
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1433
+ #
1434
+ # Example: `500`
1435
+ #
1436
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1437
+ #
1438
+ # @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
1439
+ #
1440
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
1441
+ # TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
1442
+ # sort order is case sensitive.
1443
+ #
1444
+ # **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
1445
+ # optionally filter by Availability Domain if the scope of the resource type is within a
1446
+ # single Availability Domain. If you call one of these \"List\" operations without specifying
1447
+ # an Availability Domain, the resources are grouped by Availability Domain, then sorted.
1448
+ #
1449
+ # Allowed values are: TIMECREATED, DISPLAYNAME
1450
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
1451
+ # is case sensitive.
1452
+ #
1453
+ # Allowed values are: ASC, DESC
1454
+ # @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
1455
+ #
1456
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::BootVolumeBackup BootVolumeBackup}>
1457
+ def list_boot_volume_backups(compartment_id, opts = {})
1458
+ logger.debug 'Calling operation BlockstorageClient#list_boot_volume_backups.' if logger
1459
+
1460
+ raise "Missing the required parameter 'compartment_id' when calling list_boot_volume_backups." if compartment_id.nil?
1461
+
1462
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1463
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1464
+ end
1465
+
1466
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1467
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1468
+ end
1469
+
1470
+ if opts[:lifecycle_state] && !OCI::Core::Models::BootVolumeBackup::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1471
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::BootVolumeBackup::LIFECYCLE_STATE_ENUM.'
1472
+ end
1473
+
1474
+ path = '/bootVolumeBackups'
1475
+ operation_signing_strategy = :standard
1476
+
1477
+ # rubocop:disable Style/NegatedIf
1478
+ # Query Params
1479
+ query_params = {}
1480
+ query_params[:compartmentId] = compartment_id
1481
+ query_params[:bootVolumeId] = opts[:boot_volume_id] if opts[:boot_volume_id]
1482
+ query_params[:limit] = opts[:limit] if opts[:limit]
1483
+ query_params[:page] = opts[:page] if opts[:page]
1484
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1485
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1486
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1487
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1488
+
1489
+ # Header Params
1490
+ header_params = {}
1491
+ header_params['accept'] = 'application/json'
1492
+ header_params['content-type'] = 'application/json'
1493
+ # rubocop:enable Style/NegatedIf
1494
+
1495
+ post_body = nil
1496
+
1497
+ # rubocop:disable Metrics/BlockLength
1498
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#list_boot_volume_backups') do
1499
+ @api_client.call_api(
1500
+ :GET,
1501
+ path,
1502
+ endpoint,
1503
+ header_params: header_params,
1504
+ query_params: query_params,
1505
+ operation_signing_strategy: operation_signing_strategy,
1506
+ body: post_body,
1507
+ return_type: 'Array<OCI::Core::Models::BootVolumeBackup>'
1508
+ )
1509
+ end
1510
+ # rubocop:enable Metrics/BlockLength
1511
+ end
1512
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1513
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1514
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1515
+
1516
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1517
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1518
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1519
+
1520
+
1187
1521
  # Lists the boot volumes in the specified compartment and Availability Domain.
1188
1522
  #
1189
1523
  # @param [String] availability_domain The name of the Availability Domain.
@@ -1404,7 +1738,8 @@ module OCI
1404
1738
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1405
1739
 
1406
1740
 
1407
- # Lists the backups for volume groups in the specified compartment. You can filter the results by volume group.
1741
+ # Lists the volume group backups in the specified compartment. You can filter the results by volume group.
1742
+ # For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
1408
1743
  #
1409
1744
  # @param [String] compartment_id The OCID of the compartment.
1410
1745
  # @param [Hash] opts the optional parameters
@@ -1493,7 +1828,8 @@ module OCI
1493
1828
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1494
1829
 
1495
1830
 
1496
- # Lists the volume groups in the specified compartment and Availability Domain.
1831
+ # Lists the volume groups in the specified compartment and availability domain.
1832
+ # For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
1497
1833
  #
1498
1834
  # @param [String] compartment_id The OCID of the compartment.
1499
1835
  # @param [Hash] opts the optional parameters
@@ -1750,6 +2086,66 @@ module OCI
1750
2086
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1751
2087
 
1752
2088
 
2089
+ # Updates the display name for the specified boot volume backup.
2090
+ # Avoid entering confidential information.
2091
+ #
2092
+ # @param [String] boot_volume_backup_id The OCID of the boot volume backup.
2093
+ # @param [OCI::Core::Models::UpdateBootVolumeBackupDetails] update_boot_volume_backup_details Update boot volume backup fields
2094
+ # @param [Hash] opts the optional parameters
2095
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2096
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2097
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
2098
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
2099
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
2100
+ #
2101
+ # @return [Response] A Response object with data of type {OCI::Core::Models::BootVolumeBackup BootVolumeBackup}
2102
+ def update_boot_volume_backup(boot_volume_backup_id, update_boot_volume_backup_details, opts = {})
2103
+ logger.debug 'Calling operation BlockstorageClient#update_boot_volume_backup.' if logger
2104
+
2105
+ raise "Missing the required parameter 'boot_volume_backup_id' when calling update_boot_volume_backup." if boot_volume_backup_id.nil?
2106
+ raise "Missing the required parameter 'update_boot_volume_backup_details' when calling update_boot_volume_backup." if update_boot_volume_backup_details.nil?
2107
+ raise "Parameter value for 'boot_volume_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(boot_volume_backup_id)
2108
+
2109
+ path = '/bootVolumeBackups/{bootVolumeBackupId}'.sub('{bootVolumeBackupId}', boot_volume_backup_id.to_s)
2110
+ operation_signing_strategy = :standard
2111
+
2112
+ # rubocop:disable Style/NegatedIf
2113
+ # Query Params
2114
+ query_params = {}
2115
+
2116
+ # Header Params
2117
+ header_params = {}
2118
+ header_params['accept'] = 'application/json'
2119
+ header_params['content-type'] = 'application/json'
2120
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2121
+ # rubocop:enable Style/NegatedIf
2122
+
2123
+ post_body = @api_client.object_to_http_body(update_boot_volume_backup_details)
2124
+
2125
+ # rubocop:disable Metrics/BlockLength
2126
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#update_boot_volume_backup') do
2127
+ @api_client.call_api(
2128
+ :PUT,
2129
+ path,
2130
+ endpoint,
2131
+ header_params: header_params,
2132
+ query_params: query_params,
2133
+ operation_signing_strategy: operation_signing_strategy,
2134
+ body: post_body,
2135
+ return_type: 'OCI::Core::Models::BootVolumeBackup'
2136
+ )
2137
+ end
2138
+ # rubocop:enable Metrics/BlockLength
2139
+ end
2140
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2141
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2142
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2143
+
2144
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2145
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2146
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2147
+
2148
+
1753
2149
  # Updates the specified volume's display name.
1754
2150
  # Avoid entering confidential information.
1755
2151
  #
@@ -1870,10 +2266,13 @@ module OCI
1870
2266
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1871
2267
 
1872
2268
 
1873
- # Updates the set of volumes in a volume group along with (optionally) it's display name. This call can be used
1874
- # to add or remove volumes in a volume group. The entire list of volume ids must be specified.
2269
+ # Updates the set of volumes in a volume group along with the display name. Use this operation
2270
+ # to add or remove volumes in a volume group. Specify the full list of volume IDs to include in the
2271
+ # volume group. If the volume ID is not specified in the call, it will be removed from the volume group.
1875
2272
  # Avoid entering confidential information.
1876
2273
  #
2274
+ # For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
2275
+ #
1877
2276
  # @param [String] volume_group_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group.
1878
2277
  # @param [OCI::Core::Models::UpdateVolumeGroupDetails] update_volume_group_details Update volume group's set of volumes and/or display name
1879
2278
  # @param [Hash] opts the optional parameters
@@ -1931,7 +2330,7 @@ module OCI
1931
2330
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1932
2331
 
1933
2332
 
1934
- # Updates the display name for the specified volume group backup.
2333
+ # Updates the display name for the specified volume group backup. For more information, see [Volume Groups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm).
1935
2334
  # @param [String] volume_group_backup_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup.
1936
2335
  # @param [OCI::Core::Models::UpdateVolumeGroupBackupDetails] update_volume_group_backup_details Update volume group backup fields
1937
2336
  # @param [Hash] opts the optional parameters