oci 2.3.4 → 2.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +1 -1
- data/lib/oci/core/models/update_boot_volume_details.rb +18 -4
- data/lib/oci/core/models/update_volume_details.rb +18 -4
- data/lib/oci/core/models/virtual_circuit.rb +1 -1
- data/lib/oci/core/models/vnic.rb +1 -1
- data/lib/oci/core/models/volume_group.rb +18 -4
- data/lib/oci/database/database.rb +18 -0
- data/lib/oci/database/database_client.rb +1779 -427
- data/lib/oci/database/database_client_composite_operations.rb +316 -0
- data/lib/oci/database/models/autonomous_data_warehouse.rb +391 -0
- data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +316 -0
- data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +316 -0
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +167 -0
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +391 -0
- data/lib/oci/database/models/autonomous_database.rb +391 -0
- data/lib/oci/database/models/autonomous_database_backup.rb +316 -0
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +316 -0
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +167 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +391 -0
- data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +165 -0
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +287 -0
- data/lib/oci/database/models/create_autonomous_database_backup_details.rb +165 -0
- data/lib/oci/database/models/create_autonomous_database_details.rb +287 -0
- data/lib/oci/database/models/db_system.rb +1 -1
- data/lib/oci/database/models/db_system_summary.rb +1 -1
- data/lib/oci/database/models/launch_db_system_details.rb +1 -1
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +1 -1
- data/lib/oci/database/models/restore_autonomous_data_warehouse_details.rb +147 -0
- data/lib/oci/database/models/restore_autonomous_database_details.rb +147 -0
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +230 -0
- data/lib/oci/database/models/update_autonomous_database_details.rb +230 -0
- data/lib/oci/identity/identity.rb +1 -0
- data/lib/oci/identity/identity_client.rb +64 -1
- data/lib/oci/identity/models/availability_domain.rb +11 -1
- data/lib/oci/identity/models/fault_domain.rb +187 -0
- data/lib/oci/version.rb +1 -1
- metadata +21 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5871f1e11e2fc66eee6c157ee4d8fed1d4ed94d1
|
4
|
+
data.tar.gz: b2b42bc879420922bfc5818b7426cbb9cef1cc69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ff4baf651bb4a6309f5a5aeba5cc5b529b3cb342a6044cee7e8ae6f924a96e78dbf1d060b8a192ddcd68ce666b9c1e03cdaeb479d244164754046d9efbd72f1
|
7
|
+
data.tar.gz: 0a18846b6f009b003b5667bc81cbda85283cce6f1a2a89285714fe7497e4f7b82f3d67f7020dad6b89077ca171a107a7ab83a77c6698ef782ff8137f9c039976
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ module OCI
|
|
7
7
|
# CreateVirtualCircuitPublicPrefixDetails model.
|
8
8
|
class Core::Models::CreateVirtualCircuitPublicPrefixDetails # rubocop:disable Metrics/LineLength
|
9
9
|
# **[Required]** An individual public IP prefix (CIDR) to add to the public virtual circuit.
|
10
|
-
# Must be /
|
10
|
+
# Must be /31 or less specific.
|
11
11
|
#
|
12
12
|
# @return [String]
|
13
13
|
attr_accessor :cidr_block
|
@@ -29,13 +29,18 @@ module OCI
|
|
29
29
|
# @return [Hash<String, String>]
|
30
30
|
attr_accessor :freeform_tags
|
31
31
|
|
32
|
+
# The size to resize the volume to in GBs. Has to be larger than the current size.
|
33
|
+
# @return [Integer]
|
34
|
+
attr_accessor :size_in_gbs
|
35
|
+
|
32
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
37
|
def self.attribute_map
|
34
38
|
{
|
35
39
|
# rubocop:disable Style/SymbolLiteral
|
36
40
|
'defined_tags': :'definedTags',
|
37
41
|
'display_name': :'displayName',
|
38
|
-
'freeform_tags': :'freeformTags'
|
42
|
+
'freeform_tags': :'freeformTags',
|
43
|
+
'size_in_gbs': :'sizeInGBs'
|
39
44
|
# rubocop:enable Style/SymbolLiteral
|
40
45
|
}
|
41
46
|
end
|
@@ -46,7 +51,8 @@ module OCI
|
|
46
51
|
# rubocop:disable Style/SymbolLiteral
|
47
52
|
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
48
53
|
'display_name': :'String',
|
49
|
-
'freeform_tags': :'Hash<String, String>'
|
54
|
+
'freeform_tags': :'Hash<String, String>',
|
55
|
+
'size_in_gbs': :'Integer'
|
50
56
|
# rubocop:enable Style/SymbolLiteral
|
51
57
|
}
|
52
58
|
end
|
@@ -60,6 +66,7 @@ module OCI
|
|
60
66
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
61
67
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
62
68
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
69
|
+
# @option attributes [Integer] :size_in_gbs The value to assign to the {#size_in_gbs} property
|
63
70
|
def initialize(attributes = {})
|
64
71
|
return unless attributes.is_a?(Hash)
|
65
72
|
|
@@ -83,6 +90,12 @@ module OCI
|
|
83
90
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
84
91
|
|
85
92
|
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
93
|
+
|
94
|
+
self.size_in_gbs = attributes[:'sizeInGBs'] if attributes[:'sizeInGBs']
|
95
|
+
|
96
|
+
raise 'You cannot provide both :sizeInGBs and :size_in_gbs' if attributes.key?(:'sizeInGBs') && attributes.key?(:'size_in_gbs')
|
97
|
+
|
98
|
+
self.size_in_gbs = attributes[:'size_in_gbs'] if attributes[:'size_in_gbs']
|
86
99
|
end
|
87
100
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
88
101
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -97,7 +110,8 @@ module OCI
|
|
97
110
|
self.class == other.class &&
|
98
111
|
defined_tags == other.defined_tags &&
|
99
112
|
display_name == other.display_name &&
|
100
|
-
freeform_tags == other.freeform_tags
|
113
|
+
freeform_tags == other.freeform_tags &&
|
114
|
+
size_in_gbs == other.size_in_gbs
|
101
115
|
end
|
102
116
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
103
117
|
|
@@ -113,7 +127,7 @@ module OCI
|
|
113
127
|
# Calculates hash code according to all attributes.
|
114
128
|
# @return [Fixnum] Hash code
|
115
129
|
def hash
|
116
|
-
[defined_tags, display_name, freeform_tags].hash
|
130
|
+
[defined_tags, display_name, freeform_tags, size_in_gbs].hash
|
117
131
|
end
|
118
132
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
119
133
|
|
@@ -29,13 +29,18 @@ module OCI
|
|
29
29
|
# @return [Hash<String, String>]
|
30
30
|
attr_accessor :freeform_tags
|
31
31
|
|
32
|
+
# The size to resize the volume to in GBs. Has to be larger than the current size.
|
33
|
+
# @return [Integer]
|
34
|
+
attr_accessor :size_in_gbs
|
35
|
+
|
32
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
37
|
def self.attribute_map
|
34
38
|
{
|
35
39
|
# rubocop:disable Style/SymbolLiteral
|
36
40
|
'defined_tags': :'definedTags',
|
37
41
|
'display_name': :'displayName',
|
38
|
-
'freeform_tags': :'freeformTags'
|
42
|
+
'freeform_tags': :'freeformTags',
|
43
|
+
'size_in_gbs': :'sizeInGBs'
|
39
44
|
# rubocop:enable Style/SymbolLiteral
|
40
45
|
}
|
41
46
|
end
|
@@ -46,7 +51,8 @@ module OCI
|
|
46
51
|
# rubocop:disable Style/SymbolLiteral
|
47
52
|
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
48
53
|
'display_name': :'String',
|
49
|
-
'freeform_tags': :'Hash<String, String>'
|
54
|
+
'freeform_tags': :'Hash<String, String>',
|
55
|
+
'size_in_gbs': :'Integer'
|
50
56
|
# rubocop:enable Style/SymbolLiteral
|
51
57
|
}
|
52
58
|
end
|
@@ -60,6 +66,7 @@ module OCI
|
|
60
66
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
61
67
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
62
68
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
69
|
+
# @option attributes [Integer] :size_in_gbs The value to assign to the {#size_in_gbs} property
|
63
70
|
def initialize(attributes = {})
|
64
71
|
return unless attributes.is_a?(Hash)
|
65
72
|
|
@@ -83,6 +90,12 @@ module OCI
|
|
83
90
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
84
91
|
|
85
92
|
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
93
|
+
|
94
|
+
self.size_in_gbs = attributes[:'sizeInGBs'] if attributes[:'sizeInGBs']
|
95
|
+
|
96
|
+
raise 'You cannot provide both :sizeInGBs and :size_in_gbs' if attributes.key?(:'sizeInGBs') && attributes.key?(:'size_in_gbs')
|
97
|
+
|
98
|
+
self.size_in_gbs = attributes[:'size_in_gbs'] if attributes[:'size_in_gbs']
|
86
99
|
end
|
87
100
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
88
101
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -97,7 +110,8 @@ module OCI
|
|
97
110
|
self.class == other.class &&
|
98
111
|
defined_tags == other.defined_tags &&
|
99
112
|
display_name == other.display_name &&
|
100
|
-
freeform_tags == other.freeform_tags
|
113
|
+
freeform_tags == other.freeform_tags &&
|
114
|
+
size_in_gbs == other.size_in_gbs
|
101
115
|
end
|
102
116
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
103
117
|
|
@@ -113,7 +127,7 @@ module OCI
|
|
113
127
|
# Calculates hash code according to all attributes.
|
114
128
|
# @return [Fixnum] Hash code
|
115
129
|
def hash
|
116
|
-
[defined_tags, display_name, freeform_tags].hash
|
130
|
+
[defined_tags, display_name, freeform_tags, size_in_gbs].hash
|
117
131
|
end
|
118
132
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
119
133
|
|
@@ -160,7 +160,7 @@ module OCI
|
|
160
160
|
attr_reader :provider_state
|
161
161
|
|
162
162
|
# For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to
|
163
|
-
# advertise across the connection. Each prefix must be /
|
163
|
+
# advertise across the connection. Each prefix must be /31 or less specific.
|
164
164
|
#
|
165
165
|
# @return [Array<String>]
|
166
166
|
attr_accessor :public_prefixes
|
data/lib/oci/core/models/vnic.rb
CHANGED
@@ -100,7 +100,7 @@ module OCI
|
|
100
100
|
# @return [String]
|
101
101
|
attr_accessor :mac_address
|
102
102
|
|
103
|
-
#
|
103
|
+
# The private IP address of the primary `privateIp` object on the VNIC.
|
104
104
|
# The address is within the CIDR of the VNIC's subnet.
|
105
105
|
#
|
106
106
|
# Example: `10.0.3.3`
|
@@ -75,6 +75,10 @@ module OCI
|
|
75
75
|
# @return [Array<String>]
|
76
76
|
attr_accessor :volume_ids
|
77
77
|
|
78
|
+
# Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup.
|
79
|
+
# @return [BOOLEAN]
|
80
|
+
attr_accessor :is_hydrated
|
81
|
+
|
78
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
79
83
|
def self.attribute_map
|
80
84
|
{
|
@@ -90,7 +94,8 @@ module OCI
|
|
90
94
|
'size_in_gbs': :'sizeInGBs',
|
91
95
|
'source_details': :'sourceDetails',
|
92
96
|
'time_created': :'timeCreated',
|
93
|
-
'volume_ids': :'volumeIds'
|
97
|
+
'volume_ids': :'volumeIds',
|
98
|
+
'is_hydrated': :'isHydrated'
|
94
99
|
# rubocop:enable Style/SymbolLiteral
|
95
100
|
}
|
96
101
|
end
|
@@ -110,7 +115,8 @@ module OCI
|
|
110
115
|
'size_in_gbs': :'Integer',
|
111
116
|
'source_details': :'OCI::Core::Models::VolumeGroupSourceDetails',
|
112
117
|
'time_created': :'DateTime',
|
113
|
-
'volume_ids': :'Array<String>'
|
118
|
+
'volume_ids': :'Array<String>',
|
119
|
+
'is_hydrated': :'BOOLEAN'
|
114
120
|
# rubocop:enable Style/SymbolLiteral
|
115
121
|
}
|
116
122
|
end
|
@@ -133,6 +139,7 @@ module OCI
|
|
133
139
|
# @option attributes [OCI::Core::Models::VolumeGroupSourceDetails] :source_details The value to assign to the {#source_details} property
|
134
140
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
135
141
|
# @option attributes [Array<String>] :volume_ids The value to assign to the {#volume_ids} property
|
142
|
+
# @option attributes [BOOLEAN] :is_hydrated The value to assign to the {#is_hydrated} property
|
136
143
|
def initialize(attributes = {})
|
137
144
|
return unless attributes.is_a?(Hash)
|
138
145
|
|
@@ -206,6 +213,12 @@ module OCI
|
|
206
213
|
raise 'You cannot provide both :volumeIds and :volume_ids' if attributes.key?(:'volumeIds') && attributes.key?(:'volume_ids')
|
207
214
|
|
208
215
|
self.volume_ids = attributes[:'volume_ids'] if attributes[:'volume_ids']
|
216
|
+
|
217
|
+
self.is_hydrated = attributes[:'isHydrated'] unless attributes[:'isHydrated'].nil?
|
218
|
+
|
219
|
+
raise 'You cannot provide both :isHydrated and :is_hydrated' if attributes.key?(:'isHydrated') && attributes.key?(:'is_hydrated')
|
220
|
+
|
221
|
+
self.is_hydrated = attributes[:'is_hydrated'] unless attributes[:'is_hydrated'].nil?
|
209
222
|
end
|
210
223
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
211
224
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -244,7 +257,8 @@ module OCI
|
|
244
257
|
size_in_gbs == other.size_in_gbs &&
|
245
258
|
source_details == other.source_details &&
|
246
259
|
time_created == other.time_created &&
|
247
|
-
volume_ids == other.volume_ids
|
260
|
+
volume_ids == other.volume_ids &&
|
261
|
+
is_hydrated == other.is_hydrated
|
248
262
|
end
|
249
263
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
250
264
|
|
@@ -260,7 +274,7 @@ module OCI
|
|
260
274
|
# Calculates hash code according to all attributes.
|
261
275
|
# @return [Fixnum] Hash code
|
262
276
|
def hash
|
263
|
-
[availability_domain, compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, size_in_mbs, size_in_gbs, source_details, time_created, volume_ids].hash
|
277
|
+
[availability_domain, compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, size_in_mbs, size_in_gbs, source_details, time_created, volume_ids, is_hydrated].hash
|
264
278
|
end
|
265
279
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
266
280
|
|
@@ -10,8 +10,22 @@ module OCI
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# Require models
|
13
|
+
require 'oci/database/models/autonomous_data_warehouse'
|
14
|
+
require 'oci/database/models/autonomous_data_warehouse_backup'
|
15
|
+
require 'oci/database/models/autonomous_data_warehouse_backup_summary'
|
16
|
+
require 'oci/database/models/autonomous_data_warehouse_connection_strings'
|
17
|
+
require 'oci/database/models/autonomous_data_warehouse_summary'
|
18
|
+
require 'oci/database/models/autonomous_database'
|
19
|
+
require 'oci/database/models/autonomous_database_backup'
|
20
|
+
require 'oci/database/models/autonomous_database_backup_summary'
|
21
|
+
require 'oci/database/models/autonomous_database_connection_strings'
|
22
|
+
require 'oci/database/models/autonomous_database_summary'
|
13
23
|
require 'oci/database/models/backup'
|
14
24
|
require 'oci/database/models/backup_summary'
|
25
|
+
require 'oci/database/models/create_autonomous_data_warehouse_backup_details'
|
26
|
+
require 'oci/database/models/create_autonomous_data_warehouse_details'
|
27
|
+
require 'oci/database/models/create_autonomous_database_backup_details'
|
28
|
+
require 'oci/database/models/create_autonomous_database_details'
|
15
29
|
require 'oci/database/models/create_backup_details'
|
16
30
|
require 'oci/database/models/create_data_guard_association_details'
|
17
31
|
require 'oci/database/models/create_data_guard_association_to_existing_db_system_details'
|
@@ -45,8 +59,12 @@ require 'oci/database/models/patch_history_entry'
|
|
45
59
|
require 'oci/database/models/patch_history_entry_summary'
|
46
60
|
require 'oci/database/models/patch_summary'
|
47
61
|
require 'oci/database/models/reinstate_data_guard_association_details'
|
62
|
+
require 'oci/database/models/restore_autonomous_data_warehouse_details'
|
63
|
+
require 'oci/database/models/restore_autonomous_database_details'
|
48
64
|
require 'oci/database/models/restore_database_details'
|
49
65
|
require 'oci/database/models/switchover_data_guard_association_details'
|
66
|
+
require 'oci/database/models/update_autonomous_data_warehouse_details'
|
67
|
+
require 'oci/database/models/update_autonomous_database_details'
|
50
68
|
require 'oci/database/models/update_database_details'
|
51
69
|
require 'oci/database/models/update_db_home_details'
|
52
70
|
require 'oci/database/models/update_db_system_details'
|
@@ -99,6 +99,242 @@ module OCI
|
|
99
99
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
100
100
|
|
101
101
|
|
102
|
+
# Creates a new Autonomous Data Warehouse.
|
103
|
+
#
|
104
|
+
# @param [OCI::Database::Models::CreateAutonomousDataWarehouseDetails] create_autonomous_data_warehouse_details Request to create a new Autonomous Data Warehouse.
|
105
|
+
# @param [Hash] opts the optional parameters
|
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 the operation will not retry
|
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
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
110
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
111
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
112
|
+
# may be rejected).
|
113
|
+
#
|
114
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouse AutonomousDataWarehouse}
|
115
|
+
def create_autonomous_data_warehouse(create_autonomous_data_warehouse_details, opts = {})
|
116
|
+
logger.debug 'Calling operation DatabaseClient#create_autonomous_data_warehouse.' if logger
|
117
|
+
|
118
|
+
raise "Missing the required parameter 'create_autonomous_data_warehouse_details' when calling create_autonomous_data_warehouse." if create_autonomous_data_warehouse_details.nil?
|
119
|
+
|
120
|
+
path = '/autonomousDataWarehouses'
|
121
|
+
operation_signing_strategy = :standard
|
122
|
+
|
123
|
+
# rubocop:disable Style/NegatedIf
|
124
|
+
# Query Params
|
125
|
+
query_params = {}
|
126
|
+
|
127
|
+
# Header Params
|
128
|
+
header_params = {}
|
129
|
+
header_params['accept'] = 'application/json'
|
130
|
+
header_params['content-type'] = 'application/json'
|
131
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
132
|
+
# rubocop:enable Style/NegatedIf
|
133
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
134
|
+
|
135
|
+
post_body = @api_client.object_to_http_body(create_autonomous_data_warehouse_details)
|
136
|
+
|
137
|
+
# rubocop:disable Metrics/BlockLength
|
138
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_autonomous_data_warehouse') do
|
139
|
+
@api_client.call_api(
|
140
|
+
:POST,
|
141
|
+
path,
|
142
|
+
endpoint,
|
143
|
+
header_params: header_params,
|
144
|
+
query_params: query_params,
|
145
|
+
operation_signing_strategy: operation_signing_strategy,
|
146
|
+
body: post_body,
|
147
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouse'
|
148
|
+
)
|
149
|
+
end
|
150
|
+
# rubocop:enable Metrics/BlockLength
|
151
|
+
end
|
152
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
153
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
154
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
155
|
+
|
156
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
157
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
158
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
159
|
+
|
160
|
+
|
161
|
+
# Creates a new Autonomous Data Warehouse backup for the specified database based on the provided request parameters.
|
162
|
+
#
|
163
|
+
# @param [OCI::Database::Models::CreateAutonomousDataWarehouseBackupDetails] create_autonomous_data_warehouse_backup_details Request to create a new Autonomous Data Warehouse backup.
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @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 the operation will not retry
|
167
|
+
# @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
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
169
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
170
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
171
|
+
# may be rejected).
|
172
|
+
#
|
173
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouseBackup AutonomousDataWarehouseBackup}
|
174
|
+
def create_autonomous_data_warehouse_backup(create_autonomous_data_warehouse_backup_details, opts = {})
|
175
|
+
logger.debug 'Calling operation DatabaseClient#create_autonomous_data_warehouse_backup.' if logger
|
176
|
+
|
177
|
+
raise "Missing the required parameter 'create_autonomous_data_warehouse_backup_details' when calling create_autonomous_data_warehouse_backup." if create_autonomous_data_warehouse_backup_details.nil?
|
178
|
+
|
179
|
+
path = '/autonomousDataWarehouseBackups'
|
180
|
+
operation_signing_strategy = :standard
|
181
|
+
|
182
|
+
# rubocop:disable Style/NegatedIf
|
183
|
+
# Query Params
|
184
|
+
query_params = {}
|
185
|
+
|
186
|
+
# Header Params
|
187
|
+
header_params = {}
|
188
|
+
header_params['accept'] = 'application/json'
|
189
|
+
header_params['content-type'] = 'application/json'
|
190
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
191
|
+
# rubocop:enable Style/NegatedIf
|
192
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
193
|
+
|
194
|
+
post_body = @api_client.object_to_http_body(create_autonomous_data_warehouse_backup_details)
|
195
|
+
|
196
|
+
# rubocop:disable Metrics/BlockLength
|
197
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_autonomous_data_warehouse_backup') do
|
198
|
+
@api_client.call_api(
|
199
|
+
:POST,
|
200
|
+
path,
|
201
|
+
endpoint,
|
202
|
+
header_params: header_params,
|
203
|
+
query_params: query_params,
|
204
|
+
operation_signing_strategy: operation_signing_strategy,
|
205
|
+
body: post_body,
|
206
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouseBackup'
|
207
|
+
)
|
208
|
+
end
|
209
|
+
# rubocop:enable Metrics/BlockLength
|
210
|
+
end
|
211
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
212
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
213
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
214
|
+
|
215
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
216
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
217
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
218
|
+
|
219
|
+
|
220
|
+
# Creates a new Autonomous Database.
|
221
|
+
#
|
222
|
+
# @param [OCI::Database::Models::CreateAutonomousDatabaseDetails] create_autonomous_database_details Request to create a new Autonomous Database.
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
225
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
226
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
227
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
228
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
229
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
230
|
+
# may be rejected).
|
231
|
+
#
|
232
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabase AutonomousDatabase}
|
233
|
+
def create_autonomous_database(create_autonomous_database_details, opts = {})
|
234
|
+
logger.debug 'Calling operation DatabaseClient#create_autonomous_database.' if logger
|
235
|
+
|
236
|
+
raise "Missing the required parameter 'create_autonomous_database_details' when calling create_autonomous_database." if create_autonomous_database_details.nil?
|
237
|
+
|
238
|
+
path = '/autonomousDatabases'
|
239
|
+
operation_signing_strategy = :standard
|
240
|
+
|
241
|
+
# rubocop:disable Style/NegatedIf
|
242
|
+
# Query Params
|
243
|
+
query_params = {}
|
244
|
+
|
245
|
+
# Header Params
|
246
|
+
header_params = {}
|
247
|
+
header_params['accept'] = 'application/json'
|
248
|
+
header_params['content-type'] = 'application/json'
|
249
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
250
|
+
# rubocop:enable Style/NegatedIf
|
251
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
252
|
+
|
253
|
+
post_body = @api_client.object_to_http_body(create_autonomous_database_details)
|
254
|
+
|
255
|
+
# rubocop:disable Metrics/BlockLength
|
256
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_autonomous_database') do
|
257
|
+
@api_client.call_api(
|
258
|
+
:POST,
|
259
|
+
path,
|
260
|
+
endpoint,
|
261
|
+
header_params: header_params,
|
262
|
+
query_params: query_params,
|
263
|
+
operation_signing_strategy: operation_signing_strategy,
|
264
|
+
body: post_body,
|
265
|
+
return_type: 'OCI::Database::Models::AutonomousDatabase'
|
266
|
+
)
|
267
|
+
end
|
268
|
+
# rubocop:enable Metrics/BlockLength
|
269
|
+
end
|
270
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
271
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
272
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
273
|
+
|
274
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
275
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
276
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
277
|
+
|
278
|
+
|
279
|
+
# Creates a new Autonomous Database backup for the specified database based on the provided request parameters.
|
280
|
+
#
|
281
|
+
# @param [OCI::Database::Models::CreateAutonomousDatabaseBackupDetails] create_autonomous_database_backup_details Request to create a new Autonomous Database backup.
|
282
|
+
# @param [Hash] opts the optional parameters
|
283
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
284
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
285
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
286
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
287
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
288
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
289
|
+
# may be rejected).
|
290
|
+
#
|
291
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabaseBackup AutonomousDatabaseBackup}
|
292
|
+
def create_autonomous_database_backup(create_autonomous_database_backup_details, opts = {})
|
293
|
+
logger.debug 'Calling operation DatabaseClient#create_autonomous_database_backup.' if logger
|
294
|
+
|
295
|
+
raise "Missing the required parameter 'create_autonomous_database_backup_details' when calling create_autonomous_database_backup." if create_autonomous_database_backup_details.nil?
|
296
|
+
|
297
|
+
path = '/autonomousDatabaseBackups'
|
298
|
+
operation_signing_strategy = :standard
|
299
|
+
|
300
|
+
# rubocop:disable Style/NegatedIf
|
301
|
+
# Query Params
|
302
|
+
query_params = {}
|
303
|
+
|
304
|
+
# Header Params
|
305
|
+
header_params = {}
|
306
|
+
header_params['accept'] = 'application/json'
|
307
|
+
header_params['content-type'] = 'application/json'
|
308
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
309
|
+
# rubocop:enable Style/NegatedIf
|
310
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
311
|
+
|
312
|
+
post_body = @api_client.object_to_http_body(create_autonomous_database_backup_details)
|
313
|
+
|
314
|
+
# rubocop:disable Metrics/BlockLength
|
315
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_autonomous_database_backup') do
|
316
|
+
@api_client.call_api(
|
317
|
+
:POST,
|
318
|
+
path,
|
319
|
+
endpoint,
|
320
|
+
header_params: header_params,
|
321
|
+
query_params: query_params,
|
322
|
+
operation_signing_strategy: operation_signing_strategy,
|
323
|
+
body: post_body,
|
324
|
+
return_type: 'OCI::Database::Models::AutonomousDatabaseBackup'
|
325
|
+
)
|
326
|
+
end
|
327
|
+
# rubocop:enable Metrics/BlockLength
|
328
|
+
end
|
329
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
330
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
331
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
332
|
+
|
333
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
334
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
335
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
336
|
+
|
337
|
+
|
102
338
|
# Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
|
103
339
|
#
|
104
340
|
# @param [OCI::Database::Models::CreateBackupDetails] create_backup_details Request to create a new database backup.
|
@@ -372,8 +608,9 @@ module OCI
|
|
372
608
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
373
609
|
|
374
610
|
|
375
|
-
# Deletes
|
376
|
-
#
|
611
|
+
# Deletes the specified Autonomous Data Warehouse.
|
612
|
+
#
|
613
|
+
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
377
614
|
# @param [Hash] opts the optional parameters
|
378
615
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
379
616
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -382,13 +619,13 @@ module OCI
|
|
382
619
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
383
620
|
#
|
384
621
|
# @return [Response] A Response object with data of type nil
|
385
|
-
def
|
386
|
-
logger.debug 'Calling operation DatabaseClient#
|
622
|
+
def delete_autonomous_data_warehouse(autonomous_data_warehouse_id, opts = {})
|
623
|
+
logger.debug 'Calling operation DatabaseClient#delete_autonomous_data_warehouse.' if logger
|
387
624
|
|
388
|
-
raise "Missing the required parameter '
|
389
|
-
raise "Parameter value for '
|
625
|
+
raise "Missing the required parameter 'autonomous_data_warehouse_id' when calling delete_autonomous_data_warehouse." if autonomous_data_warehouse_id.nil?
|
626
|
+
raise "Parameter value for 'autonomous_data_warehouse_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_data_warehouse_id)
|
390
627
|
|
391
|
-
path = '/
|
628
|
+
path = '/autonomousDataWarehouses/{autonomousDataWarehouseId}'.sub('{autonomousDataWarehouseId}', autonomous_data_warehouse_id.to_s)
|
392
629
|
operation_signing_strategy = :standard
|
393
630
|
|
394
631
|
# rubocop:disable Style/NegatedIf
|
@@ -405,7 +642,7 @@ module OCI
|
|
405
642
|
post_body = nil
|
406
643
|
|
407
644
|
# rubocop:disable Metrics/BlockLength
|
408
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
645
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#delete_autonomous_data_warehouse') do
|
409
646
|
@api_client.call_api(
|
410
647
|
:DELETE,
|
411
648
|
path,
|
@@ -427,9 +664,9 @@ module OCI
|
|
427
664
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
428
665
|
|
429
666
|
|
430
|
-
# Deletes
|
667
|
+
# Deletes the specified Autonomous Database.
|
431
668
|
#
|
432
|
-
# @param [String]
|
669
|
+
# @param [String] autonomous_database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
433
670
|
# @param [Hash] opts the optional parameters
|
434
671
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
435
672
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -437,21 +674,19 @@ module OCI
|
|
437
674
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
438
675
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
439
676
|
#
|
440
|
-
# @option opts [BOOLEAN] :perform_final_backup Whether to perform a final backup of the database or not. Default is false. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
|
441
677
|
# @return [Response] A Response object with data of type nil
|
442
|
-
def
|
443
|
-
logger.debug 'Calling operation DatabaseClient#
|
678
|
+
def delete_autonomous_database(autonomous_database_id, opts = {})
|
679
|
+
logger.debug 'Calling operation DatabaseClient#delete_autonomous_database.' if logger
|
444
680
|
|
445
|
-
raise "Missing the required parameter '
|
446
|
-
raise "Parameter value for '
|
681
|
+
raise "Missing the required parameter 'autonomous_database_id' when calling delete_autonomous_database." if autonomous_database_id.nil?
|
682
|
+
raise "Parameter value for 'autonomous_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_database_id)
|
447
683
|
|
448
|
-
path = '/
|
684
|
+
path = '/autonomousDatabases/{autonomousDatabaseId}'.sub('{autonomousDatabaseId}', autonomous_database_id.to_s)
|
449
685
|
operation_signing_strategy = :standard
|
450
686
|
|
451
687
|
# rubocop:disable Style/NegatedIf
|
452
688
|
# Query Params
|
453
689
|
query_params = {}
|
454
|
-
query_params[:performFinalBackup] = opts[:perform_final_backup] if !opts[:perform_final_backup].nil?
|
455
690
|
|
456
691
|
# Header Params
|
457
692
|
header_params = {}
|
@@ -463,7 +698,7 @@ module OCI
|
|
463
698
|
post_body = nil
|
464
699
|
|
465
700
|
# rubocop:disable Metrics/BlockLength
|
466
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
701
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#delete_autonomous_database') do
|
467
702
|
@api_client.call_api(
|
468
703
|
:DELETE,
|
469
704
|
path,
|
@@ -485,15 +720,8 @@ module OCI
|
|
485
720
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
486
721
|
|
487
722
|
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
# A failover might result in data loss depending on the protection mode in effect at the time of the primary
|
492
|
-
# database failure.
|
493
|
-
#
|
494
|
-
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
495
|
-
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
496
|
-
# @param [OCI::Database::Models::FailoverDataGuardAssociationDetails] failover_data_guard_association_details A request to perform a failover, transitioning a standby database into a primary database.
|
723
|
+
# Deletes a full backup. You cannot delete automatic backups using this API.
|
724
|
+
# @param [String] backup_id The backup OCID.
|
497
725
|
# @param [Hash] opts the optional parameters
|
498
726
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
499
727
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -501,17 +729,14 @@ module OCI
|
|
501
729
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
502
730
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
503
731
|
#
|
504
|
-
# @return [Response] A Response object with data of type
|
505
|
-
def
|
506
|
-
logger.debug 'Calling operation DatabaseClient#
|
732
|
+
# @return [Response] A Response object with data of type nil
|
733
|
+
def delete_backup(backup_id, opts = {})
|
734
|
+
logger.debug 'Calling operation DatabaseClient#delete_backup.' if logger
|
507
735
|
|
508
|
-
raise "Missing the required parameter '
|
509
|
-
raise "
|
510
|
-
raise "Missing the required parameter 'failover_data_guard_association_details' when calling failover_data_guard_association." if failover_data_guard_association_details.nil?
|
511
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
512
|
-
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
736
|
+
raise "Missing the required parameter 'backup_id' when calling delete_backup." if backup_id.nil?
|
737
|
+
raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util.blank_string?(backup_id)
|
513
738
|
|
514
|
-
path = '/
|
739
|
+
path = '/backups/{backupId}'.sub('{backupId}', backup_id.to_s)
|
515
740
|
operation_signing_strategy = :standard
|
516
741
|
|
517
742
|
# rubocop:disable Style/NegatedIf
|
@@ -525,19 +750,18 @@ module OCI
|
|
525
750
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
526
751
|
# rubocop:enable Style/NegatedIf
|
527
752
|
|
528
|
-
post_body =
|
753
|
+
post_body = nil
|
529
754
|
|
530
755
|
# rubocop:disable Metrics/BlockLength
|
531
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
756
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#delete_backup') do
|
532
757
|
@api_client.call_api(
|
533
|
-
:
|
758
|
+
:DELETE,
|
534
759
|
path,
|
535
760
|
endpoint,
|
536
761
|
header_params: header_params,
|
537
762
|
query_params: query_params,
|
538
763
|
operation_signing_strategy: operation_signing_strategy,
|
539
|
-
body: post_body
|
540
|
-
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
764
|
+
body: post_body
|
541
765
|
)
|
542
766
|
end
|
543
767
|
# rubocop:enable Metrics/BlockLength
|
@@ -549,47 +773,53 @@ module OCI
|
|
549
773
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
550
774
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
551
775
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
552
|
-
# rubocop:disable Lint/UnusedMethodArgument
|
553
776
|
|
554
777
|
|
555
|
-
#
|
556
|
-
#
|
778
|
+
# Deletes a DB Home. The DB Home and its database data are local to the DB System and will be lost when it is deleted. Oracle recommends that you back up any data in the DB System prior to deleting it.
|
779
|
+
#
|
780
|
+
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
557
781
|
# @param [Hash] opts the optional parameters
|
558
782
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
559
783
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
560
|
-
# @
|
561
|
-
|
562
|
-
|
784
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
785
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
786
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
787
|
+
#
|
788
|
+
# @option opts [BOOLEAN] :perform_final_backup Whether to perform a final backup of the database or not. Default is false. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
|
789
|
+
# @return [Response] A Response object with data of type nil
|
790
|
+
def delete_db_home(db_home_id, opts = {})
|
791
|
+
logger.debug 'Calling operation DatabaseClient#delete_db_home.' if logger
|
563
792
|
|
564
|
-
raise "Missing the required parameter '
|
565
|
-
raise "Parameter value for '
|
793
|
+
raise "Missing the required parameter 'db_home_id' when calling delete_db_home." if db_home_id.nil?
|
794
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
566
795
|
|
567
|
-
path = '/
|
796
|
+
path = '/dbHomes/{dbHomeId}'.sub('{dbHomeId}', db_home_id.to_s)
|
568
797
|
operation_signing_strategy = :standard
|
569
798
|
|
570
799
|
# rubocop:disable Style/NegatedIf
|
571
800
|
# Query Params
|
572
801
|
query_params = {}
|
802
|
+
query_params[:performFinalBackup] = opts[:perform_final_backup] if !opts[:perform_final_backup].nil?
|
573
803
|
|
574
804
|
# Header Params
|
575
805
|
header_params = {}
|
576
806
|
header_params['accept'] = 'application/json'
|
577
807
|
header_params['content-type'] = 'application/json'
|
808
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
578
809
|
# rubocop:enable Style/NegatedIf
|
579
810
|
|
580
811
|
post_body = nil
|
581
812
|
|
582
813
|
# rubocop:disable Metrics/BlockLength
|
583
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
814
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#delete_db_home') do
|
584
815
|
@api_client.call_api(
|
585
|
-
:
|
816
|
+
:DELETE,
|
586
817
|
path,
|
587
818
|
endpoint,
|
588
819
|
header_params: header_params,
|
589
820
|
query_params: query_params,
|
590
821
|
operation_signing_strategy: operation_signing_strategy,
|
591
|
-
body: post_body
|
592
|
-
return_type: 'OCI::Database::Models::Backup'
|
822
|
+
body: post_body
|
593
823
|
)
|
594
824
|
end
|
595
825
|
# rubocop:enable Metrics/BlockLength
|
@@ -597,31 +827,39 @@ module OCI
|
|
597
827
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
598
828
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
599
829
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
600
|
-
# rubocop:enable Lint/UnusedMethodArgument
|
601
830
|
|
602
831
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
603
832
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
604
833
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
605
|
-
# rubocop:disable Lint/UnusedMethodArgument
|
606
834
|
|
607
835
|
|
608
|
-
#
|
836
|
+
# Performs a failover to transition the standby database identified by the `databaseId` parameter into the
|
837
|
+
# specified Data Guard association's primary role after the existing primary database fails or becomes unreachable.
|
838
|
+
#
|
839
|
+
# A failover might result in data loss depending on the protection mode in effect at the time of the primary
|
840
|
+
# database failure.
|
609
841
|
#
|
610
842
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
611
843
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
844
|
+
# @param [OCI::Database::Models::FailoverDataGuardAssociationDetails] failover_data_guard_association_details A request to perform a failover, transitioning a standby database into a primary database.
|
612
845
|
# @param [Hash] opts the optional parameters
|
613
846
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
614
847
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
848
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
849
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
850
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
851
|
+
#
|
615
852
|
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
616
|
-
def
|
617
|
-
logger.debug 'Calling operation DatabaseClient#
|
853
|
+
def failover_data_guard_association(database_id, data_guard_association_id, failover_data_guard_association_details, opts = {})
|
854
|
+
logger.debug 'Calling operation DatabaseClient#failover_data_guard_association.' if logger
|
618
855
|
|
619
|
-
raise "Missing the required parameter 'database_id' when calling
|
620
|
-
raise "Missing the required parameter 'data_guard_association_id' when calling
|
856
|
+
raise "Missing the required parameter 'database_id' when calling failover_data_guard_association." if database_id.nil?
|
857
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling failover_data_guard_association." if data_guard_association_id.nil?
|
858
|
+
raise "Missing the required parameter 'failover_data_guard_association_details' when calling failover_data_guard_association." if failover_data_guard_association_details.nil?
|
621
859
|
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
622
860
|
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
623
861
|
|
624
|
-
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
862
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/failover'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
625
863
|
operation_signing_strategy = :standard
|
626
864
|
|
627
865
|
# rubocop:disable Style/NegatedIf
|
@@ -632,14 +870,15 @@ module OCI
|
|
632
870
|
header_params = {}
|
633
871
|
header_params['accept'] = 'application/json'
|
634
872
|
header_params['content-type'] = 'application/json'
|
873
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
635
874
|
# rubocop:enable Style/NegatedIf
|
636
875
|
|
637
|
-
post_body =
|
876
|
+
post_body = @api_client.object_to_http_body(failover_data_guard_association_details)
|
638
877
|
|
639
878
|
# rubocop:disable Metrics/BlockLength
|
640
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
879
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#failover_data_guard_association') do
|
641
880
|
@api_client.call_api(
|
642
|
-
:
|
881
|
+
:POST,
|
643
882
|
path,
|
644
883
|
endpoint,
|
645
884
|
header_params: header_params,
|
@@ -654,7 +893,6 @@ module OCI
|
|
654
893
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
655
894
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
656
895
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
657
|
-
# rubocop:enable Lint/UnusedMethodArgument
|
658
896
|
|
659
897
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
660
898
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -662,19 +900,20 @@ module OCI
|
|
662
900
|
# rubocop:disable Lint/UnusedMethodArgument
|
663
901
|
|
664
902
|
|
665
|
-
# Gets
|
666
|
-
#
|
903
|
+
# Gets the details of the specified Autonomous Data Warehouse.
|
904
|
+
#
|
905
|
+
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
667
906
|
# @param [Hash] opts the optional parameters
|
668
907
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
669
908
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
670
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
671
|
-
def
|
672
|
-
logger.debug 'Calling operation DatabaseClient#
|
909
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouse AutonomousDataWarehouse}
|
910
|
+
def get_autonomous_data_warehouse(autonomous_data_warehouse_id, opts = {})
|
911
|
+
logger.debug 'Calling operation DatabaseClient#get_autonomous_data_warehouse.' if logger
|
673
912
|
|
674
|
-
raise "Missing the required parameter '
|
675
|
-
raise "Parameter value for '
|
913
|
+
raise "Missing the required parameter 'autonomous_data_warehouse_id' when calling get_autonomous_data_warehouse." if autonomous_data_warehouse_id.nil?
|
914
|
+
raise "Parameter value for 'autonomous_data_warehouse_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_data_warehouse_id)
|
676
915
|
|
677
|
-
path = '/
|
916
|
+
path = '/autonomousDataWarehouses/{autonomousDataWarehouseId}'.sub('{autonomousDataWarehouseId}', autonomous_data_warehouse_id.to_s)
|
678
917
|
operation_signing_strategy = :standard
|
679
918
|
|
680
919
|
# rubocop:disable Style/NegatedIf
|
@@ -690,7 +929,7 @@ module OCI
|
|
690
929
|
post_body = nil
|
691
930
|
|
692
931
|
# rubocop:disable Metrics/BlockLength
|
693
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
932
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_autonomous_data_warehouse') do
|
694
933
|
@api_client.call_api(
|
695
934
|
:GET,
|
696
935
|
path,
|
@@ -699,7 +938,7 @@ module OCI
|
|
699
938
|
query_params: query_params,
|
700
939
|
operation_signing_strategy: operation_signing_strategy,
|
701
940
|
body: post_body,
|
702
|
-
return_type: 'OCI::Database::Models::
|
941
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouse'
|
703
942
|
)
|
704
943
|
end
|
705
944
|
# rubocop:enable Metrics/BlockLength
|
@@ -715,19 +954,19 @@ module OCI
|
|
715
954
|
# rubocop:disable Lint/UnusedMethodArgument
|
716
955
|
|
717
956
|
|
718
|
-
# Gets information about the specified
|
719
|
-
# @param [String]
|
957
|
+
# Gets information about the specified Autonomous Data Warehouse backup.
|
958
|
+
# @param [String] autonomous_data_warehouse_backup_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
|
720
959
|
# @param [Hash] opts the optional parameters
|
721
960
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
722
961
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
723
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
724
|
-
def
|
725
|
-
logger.debug 'Calling operation DatabaseClient#
|
962
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouseBackup AutonomousDataWarehouseBackup}
|
963
|
+
def get_autonomous_data_warehouse_backup(autonomous_data_warehouse_backup_id, opts = {})
|
964
|
+
logger.debug 'Calling operation DatabaseClient#get_autonomous_data_warehouse_backup.' if logger
|
726
965
|
|
727
|
-
raise "Missing the required parameter '
|
728
|
-
raise "Parameter value for '
|
966
|
+
raise "Missing the required parameter 'autonomous_data_warehouse_backup_id' when calling get_autonomous_data_warehouse_backup." if autonomous_data_warehouse_backup_id.nil?
|
967
|
+
raise "Parameter value for 'autonomous_data_warehouse_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_data_warehouse_backup_id)
|
729
968
|
|
730
|
-
path = '/
|
969
|
+
path = '/autonomousDataWarehouseBackups/{autonomousDataWarehouseBackupId}'.sub('{autonomousDataWarehouseBackupId}', autonomous_data_warehouse_backup_id.to_s)
|
731
970
|
operation_signing_strategy = :standard
|
732
971
|
|
733
972
|
# rubocop:disable Style/NegatedIf
|
@@ -743,7 +982,7 @@ module OCI
|
|
743
982
|
post_body = nil
|
744
983
|
|
745
984
|
# rubocop:disable Metrics/BlockLength
|
746
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
985
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_autonomous_data_warehouse_backup') do
|
747
986
|
@api_client.call_api(
|
748
987
|
:GET,
|
749
988
|
path,
|
@@ -752,7 +991,7 @@ module OCI
|
|
752
991
|
query_params: query_params,
|
753
992
|
operation_signing_strategy: operation_signing_strategy,
|
754
993
|
body: post_body,
|
755
|
-
return_type: 'OCI::Database::Models::
|
994
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouseBackup'
|
756
995
|
)
|
757
996
|
end
|
758
997
|
# rubocop:enable Metrics/BlockLength
|
@@ -768,23 +1007,20 @@ module OCI
|
|
768
1007
|
# rubocop:disable Lint/UnusedMethodArgument
|
769
1008
|
|
770
1009
|
|
771
|
-
# Gets
|
1010
|
+
# Gets the details of the specified Autonomous Database.
|
772
1011
|
#
|
773
|
-
# @param [String]
|
774
|
-
# @param [String] patch_id The OCID of the patch.
|
1012
|
+
# @param [String] autonomous_database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
775
1013
|
# @param [Hash] opts the optional parameters
|
776
1014
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
777
1015
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
778
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
779
|
-
def
|
780
|
-
logger.debug 'Calling operation DatabaseClient#
|
1016
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabase AutonomousDatabase}
|
1017
|
+
def get_autonomous_database(autonomous_database_id, opts = {})
|
1018
|
+
logger.debug 'Calling operation DatabaseClient#get_autonomous_database.' if logger
|
781
1019
|
|
782
|
-
raise "Missing the required parameter '
|
783
|
-
raise "
|
784
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
785
|
-
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_id)
|
1020
|
+
raise "Missing the required parameter 'autonomous_database_id' when calling get_autonomous_database." if autonomous_database_id.nil?
|
1021
|
+
raise "Parameter value for 'autonomous_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_database_id)
|
786
1022
|
|
787
|
-
path = '/
|
1023
|
+
path = '/autonomousDatabases/{autonomousDatabaseId}'.sub('{autonomousDatabaseId}', autonomous_database_id.to_s)
|
788
1024
|
operation_signing_strategy = :standard
|
789
1025
|
|
790
1026
|
# rubocop:disable Style/NegatedIf
|
@@ -800,7 +1036,7 @@ module OCI
|
|
800
1036
|
post_body = nil
|
801
1037
|
|
802
1038
|
# rubocop:disable Metrics/BlockLength
|
803
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
1039
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_autonomous_database') do
|
804
1040
|
@api_client.call_api(
|
805
1041
|
:GET,
|
806
1042
|
path,
|
@@ -809,7 +1045,7 @@ module OCI
|
|
809
1045
|
query_params: query_params,
|
810
1046
|
operation_signing_strategy: operation_signing_strategy,
|
811
1047
|
body: post_body,
|
812
|
-
return_type: 'OCI::Database::Models::
|
1048
|
+
return_type: 'OCI::Database::Models::AutonomousDatabase'
|
813
1049
|
)
|
814
1050
|
end
|
815
1051
|
# rubocop:enable Metrics/BlockLength
|
@@ -825,23 +1061,19 @@ module OCI
|
|
825
1061
|
# rubocop:disable Lint/UnusedMethodArgument
|
826
1062
|
|
827
1063
|
|
828
|
-
# Gets
|
829
|
-
#
|
830
|
-
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
831
|
-
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
1064
|
+
# Gets information about the specified Autonomous Database backup.
|
1065
|
+
# @param [String] autonomous_database_backup_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
|
832
1066
|
# @param [Hash] opts the optional parameters
|
833
1067
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
834
1068
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
835
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
836
|
-
def
|
837
|
-
logger.debug 'Calling operation DatabaseClient#
|
1069
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabaseBackup AutonomousDatabaseBackup}
|
1070
|
+
def get_autonomous_database_backup(autonomous_database_backup_id, opts = {})
|
1071
|
+
logger.debug 'Calling operation DatabaseClient#get_autonomous_database_backup.' if logger
|
838
1072
|
|
839
|
-
raise "Missing the required parameter '
|
840
|
-
raise "
|
841
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
842
|
-
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_history_entry_id)
|
1073
|
+
raise "Missing the required parameter 'autonomous_database_backup_id' when calling get_autonomous_database_backup." if autonomous_database_backup_id.nil?
|
1074
|
+
raise "Parameter value for 'autonomous_database_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_database_backup_id)
|
843
1075
|
|
844
|
-
path = '/
|
1076
|
+
path = '/autonomousDatabaseBackups/{autonomousDatabaseBackupId}'.sub('{autonomousDatabaseBackupId}', autonomous_database_backup_id.to_s)
|
845
1077
|
operation_signing_strategy = :standard
|
846
1078
|
|
847
1079
|
# rubocop:disable Style/NegatedIf
|
@@ -857,7 +1089,7 @@ module OCI
|
|
857
1089
|
post_body = nil
|
858
1090
|
|
859
1091
|
# rubocop:disable Metrics/BlockLength
|
860
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
1092
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_autonomous_database_backup') do
|
861
1093
|
@api_client.call_api(
|
862
1094
|
:GET,
|
863
1095
|
path,
|
@@ -866,7 +1098,7 @@ module OCI
|
|
866
1098
|
query_params: query_params,
|
867
1099
|
operation_signing_strategy: operation_signing_strategy,
|
868
1100
|
body: post_body,
|
869
|
-
return_type: 'OCI::Database::Models::
|
1101
|
+
return_type: 'OCI::Database::Models::AutonomousDatabaseBackup'
|
870
1102
|
)
|
871
1103
|
end
|
872
1104
|
# rubocop:enable Metrics/BlockLength
|
@@ -882,19 +1114,19 @@ module OCI
|
|
882
1114
|
# rubocop:disable Lint/UnusedMethodArgument
|
883
1115
|
|
884
1116
|
|
885
|
-
# Gets information about the specified
|
886
|
-
# @param [String]
|
1117
|
+
# Gets information about the specified backup.
|
1118
|
+
# @param [String] backup_id The backup OCID.
|
887
1119
|
# @param [Hash] opts the optional parameters
|
888
1120
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
889
1121
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
890
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
891
|
-
def
|
892
|
-
logger.debug 'Calling operation DatabaseClient#
|
1122
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Backup Backup}
|
1123
|
+
def get_backup(backup_id, opts = {})
|
1124
|
+
logger.debug 'Calling operation DatabaseClient#get_backup.' if logger
|
893
1125
|
|
894
|
-
raise "Missing the required parameter '
|
895
|
-
raise "Parameter value for '
|
1126
|
+
raise "Missing the required parameter 'backup_id' when calling get_backup." if backup_id.nil?
|
1127
|
+
raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util.blank_string?(backup_id)
|
896
1128
|
|
897
|
-
path = '/
|
1129
|
+
path = '/backups/{backupId}'.sub('{backupId}', backup_id.to_s)
|
898
1130
|
operation_signing_strategy = :standard
|
899
1131
|
|
900
1132
|
# rubocop:disable Style/NegatedIf
|
@@ -910,7 +1142,7 @@ module OCI
|
|
910
1142
|
post_body = nil
|
911
1143
|
|
912
1144
|
# rubocop:disable Metrics/BlockLength
|
913
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
1145
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_backup') do
|
914
1146
|
@api_client.call_api(
|
915
1147
|
:GET,
|
916
1148
|
path,
|
@@ -919,7 +1151,7 @@ module OCI
|
|
919
1151
|
query_params: query_params,
|
920
1152
|
operation_signing_strategy: operation_signing_strategy,
|
921
1153
|
body: post_body,
|
922
|
-
return_type: 'OCI::Database::Models::
|
1154
|
+
return_type: 'OCI::Database::Models::Backup'
|
923
1155
|
)
|
924
1156
|
end
|
925
1157
|
# rubocop:enable Metrics/BlockLength
|
@@ -935,19 +1167,23 @@ module OCI
|
|
935
1167
|
# rubocop:disable Lint/UnusedMethodArgument
|
936
1168
|
|
937
1169
|
|
938
|
-
# Gets
|
939
|
-
#
|
1170
|
+
# Gets the specified Data Guard association's configuration information.
|
1171
|
+
#
|
1172
|
+
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1173
|
+
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
940
1174
|
# @param [Hash] opts the optional parameters
|
941
1175
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
942
1176
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
943
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
944
|
-
def
|
945
|
-
logger.debug 'Calling operation DatabaseClient#
|
1177
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
1178
|
+
def get_data_guard_association(database_id, data_guard_association_id, opts = {})
|
1179
|
+
logger.debug 'Calling operation DatabaseClient#get_data_guard_association.' if logger
|
946
1180
|
|
947
|
-
raise "Missing the required parameter '
|
948
|
-
raise "
|
1181
|
+
raise "Missing the required parameter 'database_id' when calling get_data_guard_association." if database_id.nil?
|
1182
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling get_data_guard_association." if data_guard_association_id.nil?
|
1183
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1184
|
+
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
949
1185
|
|
950
|
-
path = '/
|
1186
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
951
1187
|
operation_signing_strategy = :standard
|
952
1188
|
|
953
1189
|
# rubocop:disable Style/NegatedIf
|
@@ -963,7 +1199,7 @@ module OCI
|
|
963
1199
|
post_body = nil
|
964
1200
|
|
965
1201
|
# rubocop:disable Metrics/BlockLength
|
966
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
1202
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_data_guard_association') do
|
967
1203
|
@api_client.call_api(
|
968
1204
|
:GET,
|
969
1205
|
path,
|
@@ -972,7 +1208,7 @@ module OCI
|
|
972
1208
|
query_params: query_params,
|
973
1209
|
operation_signing_strategy: operation_signing_strategy,
|
974
1210
|
body: post_body,
|
975
|
-
return_type: 'OCI::Database::Models::
|
1211
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
976
1212
|
)
|
977
1213
|
end
|
978
1214
|
# rubocop:enable Metrics/BlockLength
|
@@ -988,23 +1224,19 @@ module OCI
|
|
988
1224
|
# rubocop:disable Lint/UnusedMethodArgument
|
989
1225
|
|
990
1226
|
|
991
|
-
# Gets information about a
|
992
|
-
#
|
993
|
-
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
994
|
-
# @param [String] patch_id The OCID of the patch.
|
1227
|
+
# Gets information about a specific database.
|
1228
|
+
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
995
1229
|
# @param [Hash] opts the optional parameters
|
996
1230
|
# @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
1231
|
# 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::Database::Models::
|
999
|
-
def
|
1000
|
-
logger.debug 'Calling operation DatabaseClient#
|
1232
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Database Database}
|
1233
|
+
def get_database(database_id, opts = {})
|
1234
|
+
logger.debug 'Calling operation DatabaseClient#get_database.' if logger
|
1001
1235
|
|
1002
|
-
raise "Missing the required parameter '
|
1003
|
-
raise "
|
1004
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1005
|
-
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_id)
|
1236
|
+
raise "Missing the required parameter 'database_id' when calling get_database." if database_id.nil?
|
1237
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1006
1238
|
|
1007
|
-
path = '/
|
1239
|
+
path = '/databases/{databaseId}'.sub('{databaseId}', database_id.to_s)
|
1008
1240
|
operation_signing_strategy = :standard
|
1009
1241
|
|
1010
1242
|
# rubocop:disable Style/NegatedIf
|
@@ -1020,7 +1252,7 @@ module OCI
|
|
1020
1252
|
post_body = nil
|
1021
1253
|
|
1022
1254
|
# rubocop:disable Metrics/BlockLength
|
1023
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
1255
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_database') do
|
1024
1256
|
@api_client.call_api(
|
1025
1257
|
:GET,
|
1026
1258
|
path,
|
@@ -1029,7 +1261,7 @@ module OCI
|
|
1029
1261
|
query_params: query_params,
|
1030
1262
|
operation_signing_strategy: operation_signing_strategy,
|
1031
1263
|
body: post_body,
|
1032
|
-
return_type: 'OCI::Database::Models::
|
1264
|
+
return_type: 'OCI::Database::Models::Database'
|
1033
1265
|
)
|
1034
1266
|
end
|
1035
1267
|
# rubocop:enable Metrics/BlockLength
|
@@ -1045,23 +1277,19 @@ module OCI
|
|
1045
1277
|
# rubocop:disable Lint/UnusedMethodArgument
|
1046
1278
|
|
1047
1279
|
|
1048
|
-
# Gets
|
1049
|
-
#
|
1050
|
-
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1051
|
-
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
1280
|
+
# Gets information about the specified database home.
|
1281
|
+
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1052
1282
|
# @param [Hash] opts the optional parameters
|
1053
1283
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1054
1284
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1055
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
1056
|
-
def
|
1057
|
-
logger.debug 'Calling operation DatabaseClient#
|
1285
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbHome DbHome}
|
1286
|
+
def get_db_home(db_home_id, opts = {})
|
1287
|
+
logger.debug 'Calling operation DatabaseClient#get_db_home.' if logger
|
1058
1288
|
|
1059
|
-
raise "Missing the required parameter '
|
1060
|
-
raise "
|
1061
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1062
|
-
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_history_entry_id)
|
1289
|
+
raise "Missing the required parameter 'db_home_id' when calling get_db_home." if db_home_id.nil?
|
1290
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
1063
1291
|
|
1064
|
-
path = '/
|
1292
|
+
path = '/dbHomes/{dbHomeId}'.sub('{dbHomeId}', db_home_id.to_s)
|
1065
1293
|
operation_signing_strategy = :standard
|
1066
1294
|
|
1067
1295
|
# rubocop:disable Style/NegatedIf
|
@@ -1077,7 +1305,7 @@ module OCI
|
|
1077
1305
|
post_body = nil
|
1078
1306
|
|
1079
1307
|
# rubocop:disable Metrics/BlockLength
|
1080
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
1308
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_home') do
|
1081
1309
|
@api_client.call_api(
|
1082
1310
|
:GET,
|
1083
1311
|
path,
|
@@ -1086,7 +1314,7 @@ module OCI
|
|
1086
1314
|
query_params: query_params,
|
1087
1315
|
operation_signing_strategy: operation_signing_strategy,
|
1088
1316
|
body: post_body,
|
1089
|
-
return_type: 'OCI::Database::Models::
|
1317
|
+
return_type: 'OCI::Database::Models::DbHome'
|
1090
1318
|
)
|
1091
1319
|
end
|
1092
1320
|
# rubocop:enable Metrics/BlockLength
|
@@ -1099,36 +1327,26 @@ module OCI
|
|
1099
1327
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1100
1328
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1101
1329
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1330
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1102
1331
|
|
1103
1332
|
|
1104
|
-
#
|
1105
|
-
# Database Edition that applies to all the databases on that DB System. The selected edition cannot be changed.
|
1106
|
-
#
|
1107
|
-
# An initial database is created on the DB System based on the request parameters you provide and some default
|
1108
|
-
# options. For more information,
|
1109
|
-
# see [Default Options for the Initial Database](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/launchingDB.htm#Default_Options_for_the_Initial_Database).
|
1110
|
-
#
|
1111
|
-
# The DB System will include a command line interface (CLI) that you can use to create additional databases and
|
1112
|
-
# manage existing databases. For more information, see the
|
1113
|
-
# [Oracle Database CLI Reference](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/References/odacli.htm#Oracle_Database_CLI_Reference).
|
1333
|
+
# Gets information about a specified patch package.
|
1114
1334
|
#
|
1115
|
-
# @param [
|
1335
|
+
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1336
|
+
# @param [String] patch_id The OCID of the patch.
|
1116
1337
|
# @param [Hash] opts the optional parameters
|
1117
1338
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1118
1339
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1119
|
-
# @
|
1120
|
-
|
1121
|
-
|
1122
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1123
|
-
# may be rejected).
|
1124
|
-
#
|
1125
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::DbSystem DbSystem}
|
1126
|
-
def launch_db_system(launch_db_system_details, opts = {})
|
1127
|
-
logger.debug 'Calling operation DatabaseClient#launch_db_system.' if logger
|
1340
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Patch Patch}
|
1341
|
+
def get_db_home_patch(db_home_id, patch_id, opts = {})
|
1342
|
+
logger.debug 'Calling operation DatabaseClient#get_db_home_patch.' if logger
|
1128
1343
|
|
1129
|
-
raise "Missing the required parameter '
|
1344
|
+
raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch." if db_home_id.nil?
|
1345
|
+
raise "Missing the required parameter 'patch_id' when calling get_db_home_patch." if patch_id.nil?
|
1346
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
1347
|
+
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_id)
|
1130
1348
|
|
1131
|
-
path = '/
|
1349
|
+
path = '/dbHomes/{dbHomeId}/patches/{patchId}'.sub('{dbHomeId}', db_home_id.to_s).sub('{patchId}', patch_id.to_s)
|
1132
1350
|
operation_signing_strategy = :standard
|
1133
1351
|
|
1134
1352
|
# rubocop:disable Style/NegatedIf
|
@@ -1139,23 +1357,21 @@ module OCI
|
|
1139
1357
|
header_params = {}
|
1140
1358
|
header_params['accept'] = 'application/json'
|
1141
1359
|
header_params['content-type'] = 'application/json'
|
1142
|
-
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1143
1360
|
# rubocop:enable Style/NegatedIf
|
1144
|
-
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1145
1361
|
|
1146
|
-
post_body =
|
1362
|
+
post_body = nil
|
1147
1363
|
|
1148
1364
|
# rubocop:disable Metrics/BlockLength
|
1149
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
1365
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_home_patch') do
|
1150
1366
|
@api_client.call_api(
|
1151
|
-
:
|
1367
|
+
:GET,
|
1152
1368
|
path,
|
1153
1369
|
endpoint,
|
1154
1370
|
header_params: header_params,
|
1155
1371
|
query_params: query_params,
|
1156
1372
|
operation_signing_strategy: operation_signing_strategy,
|
1157
1373
|
body: post_body,
|
1158
|
-
return_type: 'OCI::Database::Models::
|
1374
|
+
return_type: 'OCI::Database::Models::Patch'
|
1159
1375
|
)
|
1160
1376
|
end
|
1161
1377
|
# rubocop:enable Metrics/BlockLength
|
@@ -1163,34 +1379,1051 @@ module OCI
|
|
1163
1379
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1164
1380
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1165
1381
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1382
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1166
1383
|
|
1167
1384
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1168
1385
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1169
1386
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1387
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1170
1388
|
|
1171
1389
|
|
1172
|
-
# Gets
|
1390
|
+
# Gets the patch history details for the specified patchHistoryEntryId
|
1173
1391
|
#
|
1392
|
+
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1393
|
+
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
1174
1394
|
# @param [Hash] opts the optional parameters
|
1175
1395
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1176
1396
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1177
|
-
# @
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1397
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::PatchHistoryEntry PatchHistoryEntry}
|
1398
|
+
def get_db_home_patch_history_entry(db_home_id, patch_history_entry_id, opts = {})
|
1399
|
+
logger.debug 'Calling operation DatabaseClient#get_db_home_patch_history_entry.' if logger
|
1400
|
+
|
1401
|
+
raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch_history_entry." if db_home_id.nil?
|
1402
|
+
raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_home_patch_history_entry." if patch_history_entry_id.nil?
|
1403
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
1404
|
+
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_history_entry_id)
|
1405
|
+
|
1406
|
+
path = '/dbHomes/{dbHomeId}/patchHistoryEntries/{patchHistoryEntryId}'.sub('{dbHomeId}', db_home_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
|
1407
|
+
operation_signing_strategy = :standard
|
1408
|
+
|
1409
|
+
# rubocop:disable Style/NegatedIf
|
1410
|
+
# Query Params
|
1411
|
+
query_params = {}
|
1412
|
+
|
1413
|
+
# Header Params
|
1414
|
+
header_params = {}
|
1415
|
+
header_params['accept'] = 'application/json'
|
1416
|
+
header_params['content-type'] = 'application/json'
|
1417
|
+
# rubocop:enable Style/NegatedIf
|
1418
|
+
|
1419
|
+
post_body = nil
|
1420
|
+
|
1421
|
+
# rubocop:disable Metrics/BlockLength
|
1422
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_home_patch_history_entry') do
|
1423
|
+
@api_client.call_api(
|
1424
|
+
:GET,
|
1425
|
+
path,
|
1426
|
+
endpoint,
|
1427
|
+
header_params: header_params,
|
1428
|
+
query_params: query_params,
|
1429
|
+
operation_signing_strategy: operation_signing_strategy,
|
1430
|
+
body: post_body,
|
1431
|
+
return_type: 'OCI::Database::Models::PatchHistoryEntry'
|
1432
|
+
)
|
1433
|
+
end
|
1434
|
+
# rubocop:enable Metrics/BlockLength
|
1435
|
+
end
|
1436
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1437
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1438
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1439
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1440
|
+
|
1441
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1442
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1443
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1444
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1445
|
+
|
1446
|
+
|
1447
|
+
# Gets information about the specified database node.
|
1448
|
+
# @param [String] db_node_id The database node [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1449
|
+
# @param [Hash] opts the optional parameters
|
1450
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1451
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1452
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbNode DbNode}
|
1453
|
+
def get_db_node(db_node_id, opts = {})
|
1454
|
+
logger.debug 'Calling operation DatabaseClient#get_db_node.' if logger
|
1455
|
+
|
1456
|
+
raise "Missing the required parameter 'db_node_id' when calling get_db_node." if db_node_id.nil?
|
1457
|
+
raise "Parameter value for 'db_node_id' must not be blank" if OCI::Internal::Util.blank_string?(db_node_id)
|
1458
|
+
|
1459
|
+
path = '/dbNodes/{dbNodeId}'.sub('{dbNodeId}', db_node_id.to_s)
|
1460
|
+
operation_signing_strategy = :standard
|
1461
|
+
|
1462
|
+
# rubocop:disable Style/NegatedIf
|
1463
|
+
# Query Params
|
1464
|
+
query_params = {}
|
1465
|
+
|
1466
|
+
# Header Params
|
1467
|
+
header_params = {}
|
1468
|
+
header_params['accept'] = 'application/json'
|
1469
|
+
header_params['content-type'] = 'application/json'
|
1470
|
+
# rubocop:enable Style/NegatedIf
|
1471
|
+
|
1472
|
+
post_body = nil
|
1473
|
+
|
1474
|
+
# rubocop:disable Metrics/BlockLength
|
1475
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_node') do
|
1476
|
+
@api_client.call_api(
|
1477
|
+
:GET,
|
1478
|
+
path,
|
1479
|
+
endpoint,
|
1480
|
+
header_params: header_params,
|
1481
|
+
query_params: query_params,
|
1482
|
+
operation_signing_strategy: operation_signing_strategy,
|
1483
|
+
body: post_body,
|
1484
|
+
return_type: 'OCI::Database::Models::DbNode'
|
1485
|
+
)
|
1486
|
+
end
|
1487
|
+
# rubocop:enable Metrics/BlockLength
|
1488
|
+
end
|
1489
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1490
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1491
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1492
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1493
|
+
|
1494
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1495
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1496
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1497
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1498
|
+
|
1499
|
+
|
1500
|
+
# Gets information about the specified DB System.
|
1501
|
+
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1502
|
+
# @param [Hash] opts the optional parameters
|
1503
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1504
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1505
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbSystem DbSystem}
|
1506
|
+
def get_db_system(db_system_id, opts = {})
|
1507
|
+
logger.debug 'Calling operation DatabaseClient#get_db_system.' if logger
|
1508
|
+
|
1509
|
+
raise "Missing the required parameter 'db_system_id' when calling get_db_system." if db_system_id.nil?
|
1510
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1511
|
+
|
1512
|
+
path = '/dbSystems/{dbSystemId}'.sub('{dbSystemId}', db_system_id.to_s)
|
1513
|
+
operation_signing_strategy = :standard
|
1514
|
+
|
1515
|
+
# rubocop:disable Style/NegatedIf
|
1516
|
+
# Query Params
|
1517
|
+
query_params = {}
|
1518
|
+
|
1519
|
+
# Header Params
|
1520
|
+
header_params = {}
|
1521
|
+
header_params['accept'] = 'application/json'
|
1522
|
+
header_params['content-type'] = 'application/json'
|
1523
|
+
# rubocop:enable Style/NegatedIf
|
1524
|
+
|
1525
|
+
post_body = nil
|
1526
|
+
|
1527
|
+
# rubocop:disable Metrics/BlockLength
|
1528
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_system') do
|
1529
|
+
@api_client.call_api(
|
1530
|
+
:GET,
|
1531
|
+
path,
|
1532
|
+
endpoint,
|
1533
|
+
header_params: header_params,
|
1534
|
+
query_params: query_params,
|
1535
|
+
operation_signing_strategy: operation_signing_strategy,
|
1536
|
+
body: post_body,
|
1537
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
1538
|
+
)
|
1539
|
+
end
|
1540
|
+
# rubocop:enable Metrics/BlockLength
|
1541
|
+
end
|
1542
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1543
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1544
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1545
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1546
|
+
|
1547
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1548
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1549
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1550
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1551
|
+
|
1552
|
+
|
1553
|
+
# Gets information about a specified patch package.
|
1554
|
+
#
|
1555
|
+
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1556
|
+
# @param [String] patch_id The OCID of the patch.
|
1557
|
+
# @param [Hash] opts the optional parameters
|
1558
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1559
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1560
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Patch Patch}
|
1561
|
+
def get_db_system_patch(db_system_id, patch_id, opts = {})
|
1562
|
+
logger.debug 'Calling operation DatabaseClient#get_db_system_patch.' if logger
|
1563
|
+
|
1564
|
+
raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch." if db_system_id.nil?
|
1565
|
+
raise "Missing the required parameter 'patch_id' when calling get_db_system_patch." if patch_id.nil?
|
1566
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1567
|
+
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_id)
|
1568
|
+
|
1569
|
+
path = '/dbSystems/{dbSystemId}/patches/{patchId}'.sub('{dbSystemId}', db_system_id.to_s).sub('{patchId}', patch_id.to_s)
|
1570
|
+
operation_signing_strategy = :standard
|
1571
|
+
|
1572
|
+
# rubocop:disable Style/NegatedIf
|
1573
|
+
# Query Params
|
1574
|
+
query_params = {}
|
1575
|
+
|
1576
|
+
# Header Params
|
1577
|
+
header_params = {}
|
1578
|
+
header_params['accept'] = 'application/json'
|
1579
|
+
header_params['content-type'] = 'application/json'
|
1580
|
+
# rubocop:enable Style/NegatedIf
|
1581
|
+
|
1582
|
+
post_body = nil
|
1583
|
+
|
1584
|
+
# rubocop:disable Metrics/BlockLength
|
1585
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_system_patch') do
|
1586
|
+
@api_client.call_api(
|
1587
|
+
:GET,
|
1588
|
+
path,
|
1589
|
+
endpoint,
|
1590
|
+
header_params: header_params,
|
1591
|
+
query_params: query_params,
|
1592
|
+
operation_signing_strategy: operation_signing_strategy,
|
1593
|
+
body: post_body,
|
1594
|
+
return_type: 'OCI::Database::Models::Patch'
|
1595
|
+
)
|
1596
|
+
end
|
1597
|
+
# rubocop:enable Metrics/BlockLength
|
1598
|
+
end
|
1599
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1600
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1601
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1602
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1603
|
+
|
1604
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1605
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1606
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1607
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1608
|
+
|
1609
|
+
|
1610
|
+
# Gets the patch history details for the specified patchHistoryEntryId.
|
1611
|
+
#
|
1612
|
+
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1613
|
+
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
1614
|
+
# @param [Hash] opts the optional parameters
|
1615
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1616
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1617
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::PatchHistoryEntry PatchHistoryEntry}
|
1618
|
+
def get_db_system_patch_history_entry(db_system_id, patch_history_entry_id, opts = {})
|
1619
|
+
logger.debug 'Calling operation DatabaseClient#get_db_system_patch_history_entry.' if logger
|
1620
|
+
|
1621
|
+
raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch_history_entry." if db_system_id.nil?
|
1622
|
+
raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_system_patch_history_entry." if patch_history_entry_id.nil?
|
1623
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1624
|
+
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_history_entry_id)
|
1625
|
+
|
1626
|
+
path = '/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}'.sub('{dbSystemId}', db_system_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
|
1627
|
+
operation_signing_strategy = :standard
|
1628
|
+
|
1629
|
+
# rubocop:disable Style/NegatedIf
|
1630
|
+
# Query Params
|
1631
|
+
query_params = {}
|
1632
|
+
|
1633
|
+
# Header Params
|
1634
|
+
header_params = {}
|
1635
|
+
header_params['accept'] = 'application/json'
|
1636
|
+
header_params['content-type'] = 'application/json'
|
1637
|
+
# rubocop:enable Style/NegatedIf
|
1638
|
+
|
1639
|
+
post_body = nil
|
1640
|
+
|
1641
|
+
# rubocop:disable Metrics/BlockLength
|
1642
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_system_patch_history_entry') do
|
1643
|
+
@api_client.call_api(
|
1644
|
+
:GET,
|
1645
|
+
path,
|
1646
|
+
endpoint,
|
1647
|
+
header_params: header_params,
|
1648
|
+
query_params: query_params,
|
1649
|
+
operation_signing_strategy: operation_signing_strategy,
|
1650
|
+
body: post_body,
|
1651
|
+
return_type: 'OCI::Database::Models::PatchHistoryEntry'
|
1652
|
+
)
|
1653
|
+
end
|
1654
|
+
# rubocop:enable Metrics/BlockLength
|
1655
|
+
end
|
1656
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1657
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1658
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1659
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1660
|
+
|
1661
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1662
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1663
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1664
|
+
|
1665
|
+
|
1666
|
+
# Launches a new DB System in the specified compartment and Availability Domain. You'll specify a single Oracle
|
1667
|
+
# Database Edition that applies to all the databases on that DB System. The selected edition cannot be changed.
|
1668
|
+
#
|
1669
|
+
# An initial database is created on the DB System based on the request parameters you provide and some default
|
1670
|
+
# options. For more information,
|
1671
|
+
# see [Default Options for the Initial Database](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/launchingDB.htm#Default_Options_for_the_Initial_Database).
|
1672
|
+
#
|
1673
|
+
# The DB System will include a command line interface (CLI) that you can use to create additional databases and
|
1674
|
+
# manage existing databases. For more information, see the
|
1675
|
+
# [Oracle Database CLI Reference](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/References/odacli.htm#Oracle_Database_CLI_Reference).
|
1676
|
+
#
|
1677
|
+
# @param [OCI::Database::Models::LaunchDbSystemBase] launch_db_system_details Request to launch a DB System.
|
1678
|
+
# @param [Hash] opts the optional parameters
|
1679
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1680
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1681
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1682
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1683
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
1684
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
1685
|
+
# may be rejected).
|
1686
|
+
#
|
1687
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbSystem DbSystem}
|
1688
|
+
def launch_db_system(launch_db_system_details, opts = {})
|
1689
|
+
logger.debug 'Calling operation DatabaseClient#launch_db_system.' if logger
|
1690
|
+
|
1691
|
+
raise "Missing the required parameter 'launch_db_system_details' when calling launch_db_system." if launch_db_system_details.nil?
|
1692
|
+
|
1693
|
+
path = '/dbSystems'
|
1694
|
+
operation_signing_strategy = :standard
|
1695
|
+
|
1696
|
+
# rubocop:disable Style/NegatedIf
|
1697
|
+
# Query Params
|
1698
|
+
query_params = {}
|
1699
|
+
|
1700
|
+
# Header Params
|
1701
|
+
header_params = {}
|
1702
|
+
header_params['accept'] = 'application/json'
|
1703
|
+
header_params['content-type'] = 'application/json'
|
1704
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1705
|
+
# rubocop:enable Style/NegatedIf
|
1706
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1707
|
+
|
1708
|
+
post_body = @api_client.object_to_http_body(launch_db_system_details)
|
1709
|
+
|
1710
|
+
# rubocop:disable Metrics/BlockLength
|
1711
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#launch_db_system') do
|
1712
|
+
@api_client.call_api(
|
1713
|
+
:POST,
|
1714
|
+
path,
|
1715
|
+
endpoint,
|
1716
|
+
header_params: header_params,
|
1717
|
+
query_params: query_params,
|
1718
|
+
operation_signing_strategy: operation_signing_strategy,
|
1719
|
+
body: post_body,
|
1720
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
1721
|
+
)
|
1722
|
+
end
|
1723
|
+
# rubocop:enable Metrics/BlockLength
|
1724
|
+
end
|
1725
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1726
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1727
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1728
|
+
|
1729
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1730
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1731
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1732
|
+
|
1733
|
+
|
1734
|
+
# Gets a list of Autonomous Data Warehouse backups based on either the `autonomousDataWarehouseId` or `compartmentId` specified as a query parameter.
|
1735
|
+
#
|
1736
|
+
# @param [Hash] opts the optional parameters
|
1737
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1738
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1739
|
+
# @option opts [String] :autonomous_data_warehouse_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1740
|
+
# @option opts [String] :compartment_id The compartment OCID.
|
1741
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1742
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
1743
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
1744
|
+
#
|
1745
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
1746
|
+
#
|
1747
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
1748
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1749
|
+
# Allowed values are: ASC, DESC
|
1750
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
1751
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
1752
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousDataWarehouseBackupSummary AutonomousDataWarehouseBackupSummary}>
|
1753
|
+
def list_autonomous_data_warehouse_backups(opts = {})
|
1754
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_data_warehouse_backups.' if logger
|
1755
|
+
|
1756
|
+
|
1757
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
1758
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
1759
|
+
end
|
1760
|
+
|
1761
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1762
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::AutonomousDataWarehouseBackupSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
1766
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::AutonomousDataWarehouseBackupSummary::LIFECYCLE_STATE_ENUM.'
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
path = '/autonomousDataWarehouseBackups'
|
1770
|
+
operation_signing_strategy = :standard
|
1771
|
+
|
1772
|
+
# rubocop:disable Style/NegatedIf
|
1773
|
+
# Query Params
|
1774
|
+
query_params = {}
|
1775
|
+
query_params[:autonomousDataWarehouseId] = opts[:autonomous_data_warehouse_id] if opts[:autonomous_data_warehouse_id]
|
1776
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
1777
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1778
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1779
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1780
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1781
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1782
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1783
|
+
|
1784
|
+
# Header Params
|
1785
|
+
header_params = {}
|
1786
|
+
header_params['accept'] = 'application/json'
|
1787
|
+
header_params['content-type'] = 'application/json'
|
1788
|
+
# rubocop:enable Style/NegatedIf
|
1789
|
+
|
1790
|
+
post_body = nil
|
1791
|
+
|
1792
|
+
# rubocop:disable Metrics/BlockLength
|
1793
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_data_warehouse_backups') do
|
1794
|
+
@api_client.call_api(
|
1795
|
+
:GET,
|
1796
|
+
path,
|
1797
|
+
endpoint,
|
1798
|
+
header_params: header_params,
|
1799
|
+
query_params: query_params,
|
1800
|
+
operation_signing_strategy: operation_signing_strategy,
|
1801
|
+
body: post_body,
|
1802
|
+
return_type: 'Array<OCI::Database::Models::AutonomousDataWarehouseBackupSummary>'
|
1803
|
+
)
|
1804
|
+
end
|
1805
|
+
# rubocop:enable Metrics/BlockLength
|
1806
|
+
end
|
1807
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1808
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1809
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1810
|
+
|
1811
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1812
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1813
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1814
|
+
|
1815
|
+
|
1816
|
+
# Gets a list of Autonomous Data Warehouses.
|
1817
|
+
#
|
1818
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1819
|
+
# @param [Hash] opts the optional parameters
|
1820
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1821
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1822
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1823
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
1824
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
1825
|
+
#
|
1826
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
1827
|
+
#
|
1828
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
1829
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1830
|
+
# Allowed values are: ASC, DESC
|
1831
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
1832
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
1833
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousDataWarehouseSummary AutonomousDataWarehouseSummary}>
|
1834
|
+
def list_autonomous_data_warehouses(compartment_id, opts = {})
|
1835
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_data_warehouses.' if logger
|
1836
|
+
|
1837
|
+
raise "Missing the required parameter 'compartment_id' when calling list_autonomous_data_warehouses." if compartment_id.nil?
|
1838
|
+
|
1839
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
1840
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1844
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1845
|
+
end
|
1846
|
+
|
1847
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::AutonomousDataWarehouseSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
1848
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::AutonomousDataWarehouseSummary::LIFECYCLE_STATE_ENUM.'
|
1849
|
+
end
|
1850
|
+
|
1851
|
+
path = '/autonomousDataWarehouses'
|
1852
|
+
operation_signing_strategy = :standard
|
1853
|
+
|
1854
|
+
# rubocop:disable Style/NegatedIf
|
1855
|
+
# Query Params
|
1856
|
+
query_params = {}
|
1857
|
+
query_params[:compartmentId] = compartment_id
|
1858
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1859
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1860
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1861
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1862
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1863
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1864
|
+
|
1865
|
+
# Header Params
|
1866
|
+
header_params = {}
|
1867
|
+
header_params['accept'] = 'application/json'
|
1868
|
+
header_params['content-type'] = 'application/json'
|
1869
|
+
# rubocop:enable Style/NegatedIf
|
1870
|
+
|
1871
|
+
post_body = nil
|
1872
|
+
|
1873
|
+
# rubocop:disable Metrics/BlockLength
|
1874
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_data_warehouses') do
|
1875
|
+
@api_client.call_api(
|
1876
|
+
:GET,
|
1877
|
+
path,
|
1878
|
+
endpoint,
|
1879
|
+
header_params: header_params,
|
1880
|
+
query_params: query_params,
|
1881
|
+
operation_signing_strategy: operation_signing_strategy,
|
1882
|
+
body: post_body,
|
1883
|
+
return_type: 'Array<OCI::Database::Models::AutonomousDataWarehouseSummary>'
|
1884
|
+
)
|
1885
|
+
end
|
1886
|
+
# rubocop:enable Metrics/BlockLength
|
1887
|
+
end
|
1888
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1889
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1890
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1891
|
+
|
1892
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1893
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1894
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1895
|
+
|
1896
|
+
|
1897
|
+
# Gets a list of Autonomous Database backups based on either the `autonomousDatabaseId` or `compartmentId` specified as a query parameter.
|
1898
|
+
#
|
1899
|
+
# @param [Hash] opts the optional parameters
|
1900
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1901
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1902
|
+
# @option opts [String] :autonomous_database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1903
|
+
# @option opts [String] :compartment_id The compartment OCID.
|
1904
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1905
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
1906
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
1907
|
+
#
|
1908
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
1909
|
+
#
|
1910
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
1911
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1912
|
+
# Allowed values are: ASC, DESC
|
1913
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
1914
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
1915
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousDatabaseBackupSummary AutonomousDatabaseBackupSummary}>
|
1916
|
+
def list_autonomous_database_backups(opts = {})
|
1917
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_database_backups.' if logger
|
1918
|
+
|
1919
|
+
|
1920
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
1921
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
1922
|
+
end
|
1923
|
+
|
1924
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1925
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::AutonomousDatabaseBackupSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
1929
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::AutonomousDatabaseBackupSummary::LIFECYCLE_STATE_ENUM.'
|
1930
|
+
end
|
1931
|
+
|
1932
|
+
path = '/autonomousDatabaseBackups'
|
1933
|
+
operation_signing_strategy = :standard
|
1934
|
+
|
1935
|
+
# rubocop:disable Style/NegatedIf
|
1936
|
+
# Query Params
|
1937
|
+
query_params = {}
|
1938
|
+
query_params[:autonomousDatabaseId] = opts[:autonomous_database_id] if opts[:autonomous_database_id]
|
1939
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
1940
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1941
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1942
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1943
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1944
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1945
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1946
|
+
|
1947
|
+
# Header Params
|
1948
|
+
header_params = {}
|
1949
|
+
header_params['accept'] = 'application/json'
|
1950
|
+
header_params['content-type'] = 'application/json'
|
1951
|
+
# rubocop:enable Style/NegatedIf
|
1952
|
+
|
1953
|
+
post_body = nil
|
1954
|
+
|
1955
|
+
# rubocop:disable Metrics/BlockLength
|
1956
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_database_backups') do
|
1957
|
+
@api_client.call_api(
|
1958
|
+
:GET,
|
1959
|
+
path,
|
1960
|
+
endpoint,
|
1961
|
+
header_params: header_params,
|
1962
|
+
query_params: query_params,
|
1963
|
+
operation_signing_strategy: operation_signing_strategy,
|
1964
|
+
body: post_body,
|
1965
|
+
return_type: 'Array<OCI::Database::Models::AutonomousDatabaseBackupSummary>'
|
1966
|
+
)
|
1967
|
+
end
|
1968
|
+
# rubocop:enable Metrics/BlockLength
|
1969
|
+
end
|
1970
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1971
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1972
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1973
|
+
|
1974
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1975
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1976
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1977
|
+
|
1978
|
+
|
1979
|
+
# Gets a list of Autonomous Databases.
|
1980
|
+
#
|
1981
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1982
|
+
# @param [Hash] opts the optional parameters
|
1983
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1984
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1985
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1986
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
1987
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
1988
|
+
#
|
1989
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
1990
|
+
#
|
1991
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
1992
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1993
|
+
# Allowed values are: ASC, DESC
|
1994
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
1995
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
1996
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousDatabaseSummary AutonomousDatabaseSummary}>
|
1997
|
+
def list_autonomous_databases(compartment_id, opts = {})
|
1998
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_databases.' if logger
|
1999
|
+
|
2000
|
+
raise "Missing the required parameter 'compartment_id' when calling list_autonomous_databases." if compartment_id.nil?
|
2001
|
+
|
2002
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2003
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
2004
|
+
end
|
2005
|
+
|
2006
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
2007
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
2008
|
+
end
|
2009
|
+
|
2010
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::AutonomousDatabaseSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
2011
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::AutonomousDatabaseSummary::LIFECYCLE_STATE_ENUM.'
|
2012
|
+
end
|
2013
|
+
|
2014
|
+
path = '/autonomousDatabases'
|
2015
|
+
operation_signing_strategy = :standard
|
2016
|
+
|
2017
|
+
# rubocop:disable Style/NegatedIf
|
2018
|
+
# Query Params
|
2019
|
+
query_params = {}
|
2020
|
+
query_params[:compartmentId] = compartment_id
|
2021
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2022
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2023
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2024
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2025
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
2026
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
2027
|
+
|
2028
|
+
# Header Params
|
2029
|
+
header_params = {}
|
2030
|
+
header_params['accept'] = 'application/json'
|
2031
|
+
header_params['content-type'] = 'application/json'
|
2032
|
+
# rubocop:enable Style/NegatedIf
|
2033
|
+
|
2034
|
+
post_body = nil
|
2035
|
+
|
2036
|
+
# rubocop:disable Metrics/BlockLength
|
2037
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_databases') do
|
2038
|
+
@api_client.call_api(
|
2039
|
+
:GET,
|
2040
|
+
path,
|
2041
|
+
endpoint,
|
2042
|
+
header_params: header_params,
|
2043
|
+
query_params: query_params,
|
2044
|
+
operation_signing_strategy: operation_signing_strategy,
|
2045
|
+
body: post_body,
|
2046
|
+
return_type: 'Array<OCI::Database::Models::AutonomousDatabaseSummary>'
|
2047
|
+
)
|
2048
|
+
end
|
2049
|
+
# rubocop:enable Metrics/BlockLength
|
2050
|
+
end
|
2051
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2052
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2053
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2054
|
+
|
2055
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2056
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2057
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2058
|
+
|
2059
|
+
|
2060
|
+
# Gets a list of backups based on the databaseId or compartmentId specified. Either one of the query parameters must be provided.
|
2061
|
+
#
|
2062
|
+
# @param [Hash] opts the optional parameters
|
2063
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2064
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2065
|
+
# @option opts [String] :database_id The OCID of the database.
|
2066
|
+
# @option opts [String] :compartment_id The compartment OCID.
|
2067
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2068
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2069
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::BackupSummary BackupSummary}>
|
2070
|
+
def list_backups(opts = {})
|
2071
|
+
logger.debug 'Calling operation DatabaseClient#list_backups.' if logger
|
2072
|
+
|
2073
|
+
|
2074
|
+
path = '/backups'
|
2075
|
+
operation_signing_strategy = :standard
|
2076
|
+
|
2077
|
+
# rubocop:disable Style/NegatedIf
|
2078
|
+
# Query Params
|
2079
|
+
query_params = {}
|
2080
|
+
query_params[:databaseId] = opts[:database_id] if opts[:database_id]
|
2081
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
2082
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2083
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2084
|
+
|
2085
|
+
# Header Params
|
2086
|
+
header_params = {}
|
2087
|
+
header_params['accept'] = 'application/json'
|
2088
|
+
header_params['content-type'] = 'application/json'
|
2089
|
+
# rubocop:enable Style/NegatedIf
|
2090
|
+
|
2091
|
+
post_body = nil
|
2092
|
+
|
2093
|
+
# rubocop:disable Metrics/BlockLength
|
2094
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_backups') do
|
2095
|
+
@api_client.call_api(
|
2096
|
+
:GET,
|
2097
|
+
path,
|
2098
|
+
endpoint,
|
2099
|
+
header_params: header_params,
|
2100
|
+
query_params: query_params,
|
2101
|
+
operation_signing_strategy: operation_signing_strategy,
|
2102
|
+
body: post_body,
|
2103
|
+
return_type: 'Array<OCI::Database::Models::BackupSummary>'
|
2104
|
+
)
|
2105
|
+
end
|
2106
|
+
# rubocop:enable Metrics/BlockLength
|
2107
|
+
end
|
2108
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2109
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2110
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2111
|
+
|
2112
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2113
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2114
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2115
|
+
|
2116
|
+
|
2117
|
+
# Lists all Data Guard associations for the specified database.
|
2118
|
+
#
|
2119
|
+
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2120
|
+
# @param [Hash] opts the optional parameters
|
2121
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2122
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2123
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2124
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2125
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DataGuardAssociationSummary DataGuardAssociationSummary}>
|
2126
|
+
def list_data_guard_associations(database_id, opts = {})
|
2127
|
+
logger.debug 'Calling operation DatabaseClient#list_data_guard_associations.' if logger
|
2128
|
+
|
2129
|
+
raise "Missing the required parameter 'database_id' when calling list_data_guard_associations." if database_id.nil?
|
2130
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
2131
|
+
|
2132
|
+
path = '/databases/{databaseId}/dataGuardAssociations'.sub('{databaseId}', database_id.to_s)
|
2133
|
+
operation_signing_strategy = :standard
|
2134
|
+
|
2135
|
+
# rubocop:disable Style/NegatedIf
|
2136
|
+
# Query Params
|
2137
|
+
query_params = {}
|
2138
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2139
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2140
|
+
|
2141
|
+
# Header Params
|
2142
|
+
header_params = {}
|
2143
|
+
header_params['accept'] = 'application/json'
|
2144
|
+
header_params['content-type'] = 'application/json'
|
2145
|
+
# rubocop:enable Style/NegatedIf
|
2146
|
+
|
2147
|
+
post_body = nil
|
2148
|
+
|
2149
|
+
# rubocop:disable Metrics/BlockLength
|
2150
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_data_guard_associations') do
|
2151
|
+
@api_client.call_api(
|
2152
|
+
:GET,
|
2153
|
+
path,
|
2154
|
+
endpoint,
|
2155
|
+
header_params: header_params,
|
2156
|
+
query_params: query_params,
|
2157
|
+
operation_signing_strategy: operation_signing_strategy,
|
2158
|
+
body: post_body,
|
2159
|
+
return_type: 'Array<OCI::Database::Models::DataGuardAssociationSummary>'
|
2160
|
+
)
|
2161
|
+
end
|
2162
|
+
# rubocop:enable Metrics/BlockLength
|
2163
|
+
end
|
2164
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2165
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2166
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2167
|
+
|
2168
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2169
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2170
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2171
|
+
|
2172
|
+
|
2173
|
+
# Gets a list of the databases in the specified database home.
|
2174
|
+
#
|
2175
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2176
|
+
# @param [String] db_home_id A database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2177
|
+
# @param [Hash] opts the optional parameters
|
2178
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2179
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2180
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2181
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2182
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DatabaseSummary DatabaseSummary}>
|
2183
|
+
def list_databases(compartment_id, db_home_id, opts = {})
|
2184
|
+
logger.debug 'Calling operation DatabaseClient#list_databases.' if logger
|
2185
|
+
|
2186
|
+
raise "Missing the required parameter 'compartment_id' when calling list_databases." if compartment_id.nil?
|
2187
|
+
raise "Missing the required parameter 'db_home_id' when calling list_databases." if db_home_id.nil?
|
2188
|
+
|
2189
|
+
path = '/databases'
|
2190
|
+
operation_signing_strategy = :standard
|
2191
|
+
|
2192
|
+
# rubocop:disable Style/NegatedIf
|
2193
|
+
# Query Params
|
2194
|
+
query_params = {}
|
2195
|
+
query_params[:compartmentId] = compartment_id
|
2196
|
+
query_params[:dbHomeId] = db_home_id
|
2197
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2198
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2199
|
+
|
2200
|
+
# Header Params
|
2201
|
+
header_params = {}
|
2202
|
+
header_params['accept'] = 'application/json'
|
2203
|
+
header_params['content-type'] = 'application/json'
|
2204
|
+
# rubocop:enable Style/NegatedIf
|
2205
|
+
|
2206
|
+
post_body = nil
|
2207
|
+
|
2208
|
+
# rubocop:disable Metrics/BlockLength
|
2209
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_databases') do
|
2210
|
+
@api_client.call_api(
|
2211
|
+
:GET,
|
2212
|
+
path,
|
2213
|
+
endpoint,
|
2214
|
+
header_params: header_params,
|
2215
|
+
query_params: query_params,
|
2216
|
+
operation_signing_strategy: operation_signing_strategy,
|
2217
|
+
body: post_body,
|
2218
|
+
return_type: 'Array<OCI::Database::Models::DatabaseSummary>'
|
2219
|
+
)
|
2220
|
+
end
|
2221
|
+
# rubocop:enable Metrics/BlockLength
|
2222
|
+
end
|
2223
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2224
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2225
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2226
|
+
|
2227
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2228
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2229
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2230
|
+
|
2231
|
+
|
2232
|
+
# Gets history of the actions taken for patches for the specified database home.
|
2233
|
+
#
|
2234
|
+
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2235
|
+
# @param [Hash] opts the optional parameters
|
2236
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2237
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2238
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2239
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2240
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchHistoryEntrySummary PatchHistoryEntrySummary}>
|
2241
|
+
def list_db_home_patch_history_entries(db_home_id, opts = {})
|
2242
|
+
logger.debug 'Calling operation DatabaseClient#list_db_home_patch_history_entries.' if logger
|
2243
|
+
|
2244
|
+
raise "Missing the required parameter 'db_home_id' when calling list_db_home_patch_history_entries." if db_home_id.nil?
|
2245
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
2246
|
+
|
2247
|
+
path = '/dbHomes/{dbHomeId}/patchHistoryEntries'.sub('{dbHomeId}', db_home_id.to_s)
|
2248
|
+
operation_signing_strategy = :standard
|
2249
|
+
|
2250
|
+
# rubocop:disable Style/NegatedIf
|
2251
|
+
# Query Params
|
2252
|
+
query_params = {}
|
2253
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2254
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2255
|
+
|
2256
|
+
# Header Params
|
2257
|
+
header_params = {}
|
2258
|
+
header_params['accept'] = 'application/json'
|
2259
|
+
header_params['content-type'] = 'application/json'
|
2260
|
+
# rubocop:enable Style/NegatedIf
|
2261
|
+
|
2262
|
+
post_body = nil
|
2263
|
+
|
2264
|
+
# rubocop:disable Metrics/BlockLength
|
2265
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_home_patch_history_entries') do
|
2266
|
+
@api_client.call_api(
|
2267
|
+
:GET,
|
2268
|
+
path,
|
2269
|
+
endpoint,
|
2270
|
+
header_params: header_params,
|
2271
|
+
query_params: query_params,
|
2272
|
+
operation_signing_strategy: operation_signing_strategy,
|
2273
|
+
body: post_body,
|
2274
|
+
return_type: 'Array<OCI::Database::Models::PatchHistoryEntrySummary>'
|
2275
|
+
)
|
2276
|
+
end
|
2277
|
+
# rubocop:enable Metrics/BlockLength
|
2278
|
+
end
|
2279
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2280
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2281
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2282
|
+
|
2283
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2284
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2285
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2286
|
+
|
2287
|
+
|
2288
|
+
# Lists patches applicable to the requested database home.
|
2289
|
+
#
|
2290
|
+
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2291
|
+
# @param [Hash] opts the optional parameters
|
2292
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2293
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2294
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2295
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2296
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchSummary PatchSummary}>
|
2297
|
+
def list_db_home_patches(db_home_id, opts = {})
|
2298
|
+
logger.debug 'Calling operation DatabaseClient#list_db_home_patches.' if logger
|
2299
|
+
|
2300
|
+
raise "Missing the required parameter 'db_home_id' when calling list_db_home_patches." if db_home_id.nil?
|
2301
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
2302
|
+
|
2303
|
+
path = '/dbHomes/{dbHomeId}/patches'.sub('{dbHomeId}', db_home_id.to_s)
|
2304
|
+
operation_signing_strategy = :standard
|
2305
|
+
|
2306
|
+
# rubocop:disable Style/NegatedIf
|
2307
|
+
# Query Params
|
2308
|
+
query_params = {}
|
2309
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2310
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2311
|
+
|
2312
|
+
# Header Params
|
2313
|
+
header_params = {}
|
2314
|
+
header_params['accept'] = 'application/json'
|
2315
|
+
header_params['content-type'] = 'application/json'
|
2316
|
+
# rubocop:enable Style/NegatedIf
|
2317
|
+
|
2318
|
+
post_body = nil
|
2319
|
+
|
2320
|
+
# rubocop:disable Metrics/BlockLength
|
2321
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_home_patches') do
|
2322
|
+
@api_client.call_api(
|
2323
|
+
:GET,
|
2324
|
+
path,
|
2325
|
+
endpoint,
|
2326
|
+
header_params: header_params,
|
2327
|
+
query_params: query_params,
|
2328
|
+
operation_signing_strategy: operation_signing_strategy,
|
2329
|
+
body: post_body,
|
2330
|
+
return_type: 'Array<OCI::Database::Models::PatchSummary>'
|
2331
|
+
)
|
2332
|
+
end
|
2333
|
+
# rubocop:enable Metrics/BlockLength
|
2334
|
+
end
|
2335
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2336
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2337
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2338
|
+
|
2339
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2340
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2341
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2342
|
+
|
2343
|
+
|
2344
|
+
# Gets a list of database homes in the specified DB System and compartment. A database home is a directory where Oracle database software is installed.
|
2345
|
+
#
|
2346
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2347
|
+
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System.
|
2348
|
+
# @param [Hash] opts the optional parameters
|
2349
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2350
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2351
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2352
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2353
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbHomeSummary DbHomeSummary}>
|
2354
|
+
def list_db_homes(compartment_id, db_system_id, opts = {})
|
2355
|
+
logger.debug 'Calling operation DatabaseClient#list_db_homes.' if logger
|
2356
|
+
|
2357
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_homes." if compartment_id.nil?
|
2358
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_homes." if db_system_id.nil?
|
2359
|
+
|
2360
|
+
path = '/dbHomes'
|
2361
|
+
operation_signing_strategy = :standard
|
2362
|
+
|
2363
|
+
# rubocop:disable Style/NegatedIf
|
2364
|
+
# Query Params
|
2365
|
+
query_params = {}
|
2366
|
+
query_params[:compartmentId] = compartment_id
|
2367
|
+
query_params[:dbSystemId] = db_system_id
|
2368
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2369
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2370
|
+
|
2371
|
+
# Header Params
|
2372
|
+
header_params = {}
|
2373
|
+
header_params['accept'] = 'application/json'
|
2374
|
+
header_params['content-type'] = 'application/json'
|
2375
|
+
# rubocop:enable Style/NegatedIf
|
2376
|
+
|
2377
|
+
post_body = nil
|
2378
|
+
|
2379
|
+
# rubocop:disable Metrics/BlockLength
|
2380
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_homes') do
|
2381
|
+
@api_client.call_api(
|
2382
|
+
:GET,
|
2383
|
+
path,
|
2384
|
+
endpoint,
|
2385
|
+
header_params: header_params,
|
2386
|
+
query_params: query_params,
|
2387
|
+
operation_signing_strategy: operation_signing_strategy,
|
2388
|
+
body: post_body,
|
2389
|
+
return_type: 'Array<OCI::Database::Models::DbHomeSummary>'
|
2390
|
+
)
|
2391
|
+
end
|
2392
|
+
# rubocop:enable Metrics/BlockLength
|
2393
|
+
end
|
2394
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2395
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2396
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1185
2397
|
|
1186
|
-
|
2398
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2399
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2400
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2401
|
+
|
2402
|
+
|
2403
|
+
# Gets a list of database nodes in the specified DB System and compartment. A database node is a server running database software.
|
2404
|
+
#
|
2405
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2406
|
+
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System.
|
2407
|
+
# @param [Hash] opts the optional parameters
|
2408
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2409
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2410
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2411
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2412
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbNodeSummary DbNodeSummary}>
|
2413
|
+
def list_db_nodes(compartment_id, db_system_id, opts = {})
|
2414
|
+
logger.debug 'Calling operation DatabaseClient#list_db_nodes.' if logger
|
2415
|
+
|
2416
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_nodes." if compartment_id.nil?
|
2417
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_nodes." if db_system_id.nil?
|
2418
|
+
|
2419
|
+
path = '/dbNodes'
|
1187
2420
|
operation_signing_strategy = :standard
|
1188
2421
|
|
1189
2422
|
# rubocop:disable Style/NegatedIf
|
1190
2423
|
# Query Params
|
1191
2424
|
query_params = {}
|
1192
|
-
query_params[:
|
1193
|
-
query_params[:
|
2425
|
+
query_params[:compartmentId] = compartment_id
|
2426
|
+
query_params[:dbSystemId] = db_system_id
|
1194
2427
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
1195
2428
|
query_params[:page] = opts[:page] if opts[:page]
|
1196
2429
|
|
@@ -1203,7 +2436,7 @@ module OCI
|
|
1203
2436
|
post_body = nil
|
1204
2437
|
|
1205
2438
|
# rubocop:disable Metrics/BlockLength
|
1206
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2439
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_nodes') do
|
1207
2440
|
@api_client.call_api(
|
1208
2441
|
:GET,
|
1209
2442
|
path,
|
@@ -1212,7 +2445,7 @@ module OCI
|
|
1212
2445
|
query_params: query_params,
|
1213
2446
|
operation_signing_strategy: operation_signing_strategy,
|
1214
2447
|
body: post_body,
|
1215
|
-
return_type: 'Array<OCI::Database::Models::
|
2448
|
+
return_type: 'Array<OCI::Database::Models::DbNodeSummary>'
|
1216
2449
|
)
|
1217
2450
|
end
|
1218
2451
|
# rubocop:enable Metrics/BlockLength
|
@@ -1226,22 +2459,22 @@ module OCI
|
|
1226
2459
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1227
2460
|
|
1228
2461
|
|
1229
|
-
#
|
2462
|
+
# Gets the history of the patch actions performed on the specified DB System.
|
1230
2463
|
#
|
1231
|
-
# @param [String]
|
2464
|
+
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1232
2465
|
# @param [Hash] opts the optional parameters
|
1233
2466
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1234
2467
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1235
2468
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1236
2469
|
# @option opts [String] :page The pagination token to continue listing from.
|
1237
|
-
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::
|
1238
|
-
def
|
1239
|
-
logger.debug 'Calling operation DatabaseClient#
|
2470
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchHistoryEntrySummary PatchHistoryEntrySummary}>
|
2471
|
+
def list_db_system_patch_history_entries(db_system_id, opts = {})
|
2472
|
+
logger.debug 'Calling operation DatabaseClient#list_db_system_patch_history_entries.' if logger
|
1240
2473
|
|
1241
|
-
raise "Missing the required parameter '
|
1242
|
-
raise "Parameter value for '
|
2474
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_system_patch_history_entries." if db_system_id.nil?
|
2475
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1243
2476
|
|
1244
|
-
path = '/
|
2477
|
+
path = '/dbSystems/{dbSystemId}/patchHistoryEntries'.sub('{dbSystemId}', db_system_id.to_s)
|
1245
2478
|
operation_signing_strategy = :standard
|
1246
2479
|
|
1247
2480
|
# rubocop:disable Style/NegatedIf
|
@@ -1259,7 +2492,7 @@ module OCI
|
|
1259
2492
|
post_body = nil
|
1260
2493
|
|
1261
2494
|
# rubocop:disable Metrics/BlockLength
|
1262
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2495
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_system_patch_history_entries') do
|
1263
2496
|
@api_client.call_api(
|
1264
2497
|
:GET,
|
1265
2498
|
path,
|
@@ -1268,7 +2501,7 @@ module OCI
|
|
1268
2501
|
query_params: query_params,
|
1269
2502
|
operation_signing_strategy: operation_signing_strategy,
|
1270
2503
|
body: post_body,
|
1271
|
-
return_type: 'Array<OCI::Database::Models::
|
2504
|
+
return_type: 'Array<OCI::Database::Models::PatchHistoryEntrySummary>'
|
1272
2505
|
)
|
1273
2506
|
end
|
1274
2507
|
# rubocop:enable Metrics/BlockLength
|
@@ -1282,30 +2515,27 @@ module OCI
|
|
1282
2515
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1283
2516
|
|
1284
2517
|
|
1285
|
-
#
|
2518
|
+
# Lists the patches applicable to the requested DB System.
|
1286
2519
|
#
|
1287
|
-
# @param [String]
|
1288
|
-
# @param [String] db_home_id A database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2520
|
+
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1289
2521
|
# @param [Hash] opts the optional parameters
|
1290
2522
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1291
2523
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1292
2524
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1293
2525
|
# @option opts [String] :page The pagination token to continue listing from.
|
1294
|
-
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::
|
1295
|
-
def
|
1296
|
-
logger.debug 'Calling operation DatabaseClient#
|
2526
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchSummary PatchSummary}>
|
2527
|
+
def list_db_system_patches(db_system_id, opts = {})
|
2528
|
+
logger.debug 'Calling operation DatabaseClient#list_db_system_patches.' if logger
|
1297
2529
|
|
1298
|
-
raise "Missing the required parameter '
|
1299
|
-
raise "
|
2530
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_system_patches." if db_system_id.nil?
|
2531
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1300
2532
|
|
1301
|
-
path = '/
|
2533
|
+
path = '/dbSystems/{dbSystemId}/patches'.sub('{dbSystemId}', db_system_id.to_s)
|
1302
2534
|
operation_signing_strategy = :standard
|
1303
2535
|
|
1304
2536
|
# rubocop:disable Style/NegatedIf
|
1305
2537
|
# Query Params
|
1306
2538
|
query_params = {}
|
1307
|
-
query_params[:compartmentId] = compartment_id
|
1308
|
-
query_params[:dbHomeId] = db_home_id
|
1309
2539
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
1310
2540
|
query_params[:page] = opts[:page] if opts[:page]
|
1311
2541
|
|
@@ -1318,7 +2548,7 @@ module OCI
|
|
1318
2548
|
post_body = nil
|
1319
2549
|
|
1320
2550
|
# rubocop:disable Metrics/BlockLength
|
1321
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2551
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_system_patches') do
|
1322
2552
|
@api_client.call_api(
|
1323
2553
|
:GET,
|
1324
2554
|
path,
|
@@ -1327,7 +2557,7 @@ module OCI
|
|
1327
2557
|
query_params: query_params,
|
1328
2558
|
operation_signing_strategy: operation_signing_strategy,
|
1329
2559
|
body: post_body,
|
1330
|
-
return_type: 'Array<OCI::Database::Models::
|
2560
|
+
return_type: 'Array<OCI::Database::Models::PatchSummary>'
|
1331
2561
|
)
|
1332
2562
|
end
|
1333
2563
|
# rubocop:enable Metrics/BlockLength
|
@@ -1341,27 +2571,29 @@ module OCI
|
|
1341
2571
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1342
2572
|
|
1343
2573
|
|
1344
|
-
# Gets
|
1345
|
-
#
|
1346
|
-
# @param [String]
|
2574
|
+
# Gets a list of the shapes that can be used to launch a new DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes.
|
2575
|
+
# @param [String] availability_domain The name of the Availability Domain.
|
2576
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1347
2577
|
# @param [Hash] opts the optional parameters
|
1348
2578
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1349
2579
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1350
2580
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1351
2581
|
# @option opts [String] :page The pagination token to continue listing from.
|
1352
|
-
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::
|
1353
|
-
def
|
1354
|
-
logger.debug 'Calling operation DatabaseClient#
|
2582
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbSystemShapeSummary DbSystemShapeSummary}>
|
2583
|
+
def list_db_system_shapes(availability_domain, compartment_id, opts = {})
|
2584
|
+
logger.debug 'Calling operation DatabaseClient#list_db_system_shapes.' if logger
|
1355
2585
|
|
1356
|
-
raise "Missing the required parameter '
|
1357
|
-
raise "
|
2586
|
+
raise "Missing the required parameter 'availability_domain' when calling list_db_system_shapes." if availability_domain.nil?
|
2587
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_system_shapes." if compartment_id.nil?
|
1358
2588
|
|
1359
|
-
path = '/
|
2589
|
+
path = '/dbSystemShapes'
|
1360
2590
|
operation_signing_strategy = :standard
|
1361
2591
|
|
1362
2592
|
# rubocop:disable Style/NegatedIf
|
1363
2593
|
# Query Params
|
1364
2594
|
query_params = {}
|
2595
|
+
query_params[:availabilityDomain] = availability_domain
|
2596
|
+
query_params[:compartmentId] = compartment_id
|
1365
2597
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
1366
2598
|
query_params[:page] = opts[:page] if opts[:page]
|
1367
2599
|
|
@@ -1374,7 +2606,7 @@ module OCI
|
|
1374
2606
|
post_body = nil
|
1375
2607
|
|
1376
2608
|
# rubocop:disable Metrics/BlockLength
|
1377
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2609
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_system_shapes') do
|
1378
2610
|
@api_client.call_api(
|
1379
2611
|
:GET,
|
1380
2612
|
path,
|
@@ -1383,7 +2615,7 @@ module OCI
|
|
1383
2615
|
query_params: query_params,
|
1384
2616
|
operation_signing_strategy: operation_signing_strategy,
|
1385
2617
|
body: post_body,
|
1386
|
-
return_type: 'Array<OCI::Database::Models::
|
2618
|
+
return_type: 'Array<OCI::Database::Models::DbSystemShapeSummary>'
|
1387
2619
|
)
|
1388
2620
|
end
|
1389
2621
|
# rubocop:enable Metrics/BlockLength
|
@@ -1397,29 +2629,32 @@ module OCI
|
|
1397
2629
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1398
2630
|
|
1399
2631
|
|
1400
|
-
#
|
2632
|
+
# Gets a list of the DB Systems in the specified compartment. You can specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment.
|
1401
2633
|
#
|
1402
|
-
#
|
2634
|
+
#
|
2635
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1403
2636
|
# @param [Hash] opts the optional parameters
|
1404
2637
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1405
2638
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1406
2639
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1407
2640
|
# @option opts [String] :page The pagination token to continue listing from.
|
1408
|
-
# @
|
1409
|
-
|
1410
|
-
|
2641
|
+
# @option opts [String] :backup_id The OCID of the backup. Specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment.
|
2642
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbSystemSummary DbSystemSummary}>
|
2643
|
+
def list_db_systems(compartment_id, opts = {})
|
2644
|
+
logger.debug 'Calling operation DatabaseClient#list_db_systems.' if logger
|
1411
2645
|
|
1412
|
-
raise "Missing the required parameter '
|
1413
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
2646
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_systems." if compartment_id.nil?
|
1414
2647
|
|
1415
|
-
path = '/
|
2648
|
+
path = '/dbSystems'
|
1416
2649
|
operation_signing_strategy = :standard
|
1417
2650
|
|
1418
2651
|
# rubocop:disable Style/NegatedIf
|
1419
2652
|
# Query Params
|
1420
2653
|
query_params = {}
|
2654
|
+
query_params[:compartmentId] = compartment_id
|
1421
2655
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
1422
2656
|
query_params[:page] = opts[:page] if opts[:page]
|
2657
|
+
query_params[:backupId] = opts[:backup_id] if opts[:backup_id]
|
1423
2658
|
|
1424
2659
|
# Header Params
|
1425
2660
|
header_params = {}
|
@@ -1430,7 +2665,7 @@ module OCI
|
|
1430
2665
|
post_body = nil
|
1431
2666
|
|
1432
2667
|
# rubocop:disable Metrics/BlockLength
|
1433
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2668
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_systems') do
|
1434
2669
|
@api_client.call_api(
|
1435
2670
|
:GET,
|
1436
2671
|
path,
|
@@ -1439,7 +2674,7 @@ module OCI
|
|
1439
2674
|
query_params: query_params,
|
1440
2675
|
operation_signing_strategy: operation_signing_strategy,
|
1441
2676
|
body: post_body,
|
1442
|
-
return_type: 'Array<OCI::Database::Models::
|
2677
|
+
return_type: 'Array<OCI::Database::Models::DbSystemSummary>'
|
1443
2678
|
)
|
1444
2679
|
end
|
1445
2680
|
# rubocop:enable Metrics/BlockLength
|
@@ -1453,52 +2688,173 @@ module OCI
|
|
1453
2688
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1454
2689
|
|
1455
2690
|
|
1456
|
-
# Gets a list of
|
1457
|
-
#
|
2691
|
+
# Gets a list of supported Oracle database versions.
|
1458
2692
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1459
|
-
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System.
|
1460
2693
|
# @param [Hash] opts the optional parameters
|
1461
2694
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1462
2695
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1463
2696
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1464
2697
|
# @option opts [String] :page The pagination token to continue listing from.
|
1465
|
-
# @
|
1466
|
-
|
1467
|
-
|
2698
|
+
# @option opts [String] :db_system_shape If provided, filters the results to the set of database versions which are supported for the given shape.
|
2699
|
+
# @option opts [String] :db_system_id The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
|
2700
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbVersionSummary DbVersionSummary}>
|
2701
|
+
def list_db_versions(compartment_id, opts = {})
|
2702
|
+
logger.debug 'Calling operation DatabaseClient#list_db_versions.' if logger
|
2703
|
+
|
2704
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_versions." if compartment_id.nil?
|
2705
|
+
|
2706
|
+
path = '/dbVersions'
|
2707
|
+
operation_signing_strategy = :standard
|
2708
|
+
|
2709
|
+
# rubocop:disable Style/NegatedIf
|
2710
|
+
# Query Params
|
2711
|
+
query_params = {}
|
2712
|
+
query_params[:compartmentId] = compartment_id
|
2713
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2714
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2715
|
+
query_params[:dbSystemShape] = opts[:db_system_shape] if opts[:db_system_shape]
|
2716
|
+
query_params[:dbSystemId] = opts[:db_system_id] if opts[:db_system_id]
|
2717
|
+
|
2718
|
+
# Header Params
|
2719
|
+
header_params = {}
|
2720
|
+
header_params['accept'] = 'application/json'
|
2721
|
+
header_params['content-type'] = 'application/json'
|
2722
|
+
# rubocop:enable Style/NegatedIf
|
2723
|
+
|
2724
|
+
post_body = nil
|
2725
|
+
|
2726
|
+
# rubocop:disable Metrics/BlockLength
|
2727
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_versions') do
|
2728
|
+
@api_client.call_api(
|
2729
|
+
:GET,
|
2730
|
+
path,
|
2731
|
+
endpoint,
|
2732
|
+
header_params: header_params,
|
2733
|
+
query_params: query_params,
|
2734
|
+
operation_signing_strategy: operation_signing_strategy,
|
2735
|
+
body: post_body,
|
2736
|
+
return_type: 'Array<OCI::Database::Models::DbVersionSummary>'
|
2737
|
+
)
|
2738
|
+
end
|
2739
|
+
# rubocop:enable Metrics/BlockLength
|
2740
|
+
end
|
2741
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2742
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2743
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2744
|
+
|
2745
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2746
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2747
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2748
|
+
|
2749
|
+
|
2750
|
+
# Reinstates the database identified by the `databaseId` parameter into the standby role in a Data Guard association.
|
2751
|
+
#
|
2752
|
+
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2753
|
+
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2754
|
+
# @param [OCI::Database::Models::ReinstateDataGuardAssociationDetails] reinstate_data_guard_association_details A request to reinstate a database in a standby role.
|
2755
|
+
# @param [Hash] opts the optional parameters
|
2756
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2757
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2758
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2759
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2760
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2761
|
+
#
|
2762
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
2763
|
+
def reinstate_data_guard_association(database_id, data_guard_association_id, reinstate_data_guard_association_details, opts = {})
|
2764
|
+
logger.debug 'Calling operation DatabaseClient#reinstate_data_guard_association.' if logger
|
2765
|
+
|
2766
|
+
raise "Missing the required parameter 'database_id' when calling reinstate_data_guard_association." if database_id.nil?
|
2767
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling reinstate_data_guard_association." if data_guard_association_id.nil?
|
2768
|
+
raise "Missing the required parameter 'reinstate_data_guard_association_details' when calling reinstate_data_guard_association." if reinstate_data_guard_association_details.nil?
|
2769
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
2770
|
+
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
2771
|
+
|
2772
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/reinstate'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
2773
|
+
operation_signing_strategy = :standard
|
2774
|
+
|
2775
|
+
# rubocop:disable Style/NegatedIf
|
2776
|
+
# Query Params
|
2777
|
+
query_params = {}
|
2778
|
+
|
2779
|
+
# Header Params
|
2780
|
+
header_params = {}
|
2781
|
+
header_params['accept'] = 'application/json'
|
2782
|
+
header_params['content-type'] = 'application/json'
|
2783
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2784
|
+
# rubocop:enable Style/NegatedIf
|
2785
|
+
|
2786
|
+
post_body = @api_client.object_to_http_body(reinstate_data_guard_association_details)
|
2787
|
+
|
2788
|
+
# rubocop:disable Metrics/BlockLength
|
2789
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#reinstate_data_guard_association') do
|
2790
|
+
@api_client.call_api(
|
2791
|
+
:POST,
|
2792
|
+
path,
|
2793
|
+
endpoint,
|
2794
|
+
header_params: header_params,
|
2795
|
+
query_params: query_params,
|
2796
|
+
operation_signing_strategy: operation_signing_strategy,
|
2797
|
+
body: post_body,
|
2798
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
2799
|
+
)
|
2800
|
+
end
|
2801
|
+
# rubocop:enable Metrics/BlockLength
|
2802
|
+
end
|
2803
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2804
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2805
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2806
|
+
|
2807
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2808
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2809
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2810
|
+
|
2811
|
+
|
2812
|
+
# Restores an Autonomous Data Warehouse based on the provided request parameters.
|
2813
|
+
#
|
2814
|
+
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2815
|
+
# @param [OCI::Database::Models::RestoreAutonomousDataWarehouseDetails] restore_autonomous_data_warehouse_details Request to perform an Autonomous Data Warehouse restore.
|
2816
|
+
# @param [Hash] opts the optional parameters
|
2817
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2818
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2819
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2820
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2821
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2822
|
+
#
|
2823
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouse AutonomousDataWarehouse}
|
2824
|
+
def restore_autonomous_data_warehouse(autonomous_data_warehouse_id, restore_autonomous_data_warehouse_details, opts = {})
|
2825
|
+
logger.debug 'Calling operation DatabaseClient#restore_autonomous_data_warehouse.' if logger
|
1468
2826
|
|
1469
|
-
raise "Missing the required parameter '
|
1470
|
-
raise "Missing the required parameter '
|
2827
|
+
raise "Missing the required parameter 'autonomous_data_warehouse_id' when calling restore_autonomous_data_warehouse." if autonomous_data_warehouse_id.nil?
|
2828
|
+
raise "Missing the required parameter 'restore_autonomous_data_warehouse_details' when calling restore_autonomous_data_warehouse." if restore_autonomous_data_warehouse_details.nil?
|
2829
|
+
raise "Parameter value for 'autonomous_data_warehouse_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_data_warehouse_id)
|
1471
2830
|
|
1472
|
-
path = '/
|
2831
|
+
path = '/autonomousDataWarehouses/{autonomousDataWarehouseId}/actions/restore'.sub('{autonomousDataWarehouseId}', autonomous_data_warehouse_id.to_s)
|
1473
2832
|
operation_signing_strategy = :standard
|
1474
2833
|
|
1475
2834
|
# rubocop:disable Style/NegatedIf
|
1476
2835
|
# Query Params
|
1477
2836
|
query_params = {}
|
1478
|
-
query_params[:compartmentId] = compartment_id
|
1479
|
-
query_params[:dbSystemId] = db_system_id
|
1480
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1481
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1482
2837
|
|
1483
2838
|
# Header Params
|
1484
2839
|
header_params = {}
|
1485
2840
|
header_params['accept'] = 'application/json'
|
1486
2841
|
header_params['content-type'] = 'application/json'
|
2842
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1487
2843
|
# rubocop:enable Style/NegatedIf
|
1488
2844
|
|
1489
|
-
post_body =
|
2845
|
+
post_body = @api_client.object_to_http_body(restore_autonomous_data_warehouse_details)
|
1490
2846
|
|
1491
2847
|
# rubocop:disable Metrics/BlockLength
|
1492
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2848
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#restore_autonomous_data_warehouse') do
|
1493
2849
|
@api_client.call_api(
|
1494
|
-
:
|
2850
|
+
:POST,
|
1495
2851
|
path,
|
1496
2852
|
endpoint,
|
1497
2853
|
header_params: header_params,
|
1498
2854
|
query_params: query_params,
|
1499
2855
|
operation_signing_strategy: operation_signing_strategy,
|
1500
2856
|
body: post_body,
|
1501
|
-
return_type: '
|
2857
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouse'
|
1502
2858
|
)
|
1503
2859
|
end
|
1504
2860
|
# rubocop:enable Metrics/BlockLength
|
@@ -1512,52 +2868,52 @@ module OCI
|
|
1512
2868
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1513
2869
|
|
1514
2870
|
|
1515
|
-
#
|
2871
|
+
# Restores an Autonomous Database based on the provided request parameters.
|
1516
2872
|
#
|
1517
|
-
# @param [String]
|
1518
|
-
# @param [
|
2873
|
+
# @param [String] autonomous_database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2874
|
+
# @param [OCI::Database::Models::RestoreAutonomousDatabaseDetails] restore_autonomous_database_details Request to perform an Autonomous Database restore.
|
1519
2875
|
# @param [Hash] opts the optional parameters
|
1520
2876
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1521
2877
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1522
|
-
# @option opts [
|
1523
|
-
#
|
1524
|
-
#
|
1525
|
-
|
1526
|
-
|
2878
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2879
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2880
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2881
|
+
#
|
2882
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabase AutonomousDatabase}
|
2883
|
+
def restore_autonomous_database(autonomous_database_id, restore_autonomous_database_details, opts = {})
|
2884
|
+
logger.debug 'Calling operation DatabaseClient#restore_autonomous_database.' if logger
|
1527
2885
|
|
1528
|
-
raise "Missing the required parameter '
|
1529
|
-
raise "Missing the required parameter '
|
2886
|
+
raise "Missing the required parameter 'autonomous_database_id' when calling restore_autonomous_database." if autonomous_database_id.nil?
|
2887
|
+
raise "Missing the required parameter 'restore_autonomous_database_details' when calling restore_autonomous_database." if restore_autonomous_database_details.nil?
|
2888
|
+
raise "Parameter value for 'autonomous_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_database_id)
|
1530
2889
|
|
1531
|
-
path = '/
|
2890
|
+
path = '/autonomousDatabases/{autonomousDatabaseId}/actions/restore'.sub('{autonomousDatabaseId}', autonomous_database_id.to_s)
|
1532
2891
|
operation_signing_strategy = :standard
|
1533
2892
|
|
1534
2893
|
# rubocop:disable Style/NegatedIf
|
1535
2894
|
# Query Params
|
1536
2895
|
query_params = {}
|
1537
|
-
query_params[:compartmentId] = compartment_id
|
1538
|
-
query_params[:dbSystemId] = db_system_id
|
1539
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1540
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1541
2896
|
|
1542
2897
|
# Header Params
|
1543
2898
|
header_params = {}
|
1544
2899
|
header_params['accept'] = 'application/json'
|
1545
2900
|
header_params['content-type'] = 'application/json'
|
2901
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1546
2902
|
# rubocop:enable Style/NegatedIf
|
1547
2903
|
|
1548
|
-
post_body =
|
2904
|
+
post_body = @api_client.object_to_http_body(restore_autonomous_database_details)
|
1549
2905
|
|
1550
2906
|
# rubocop:disable Metrics/BlockLength
|
1551
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2907
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#restore_autonomous_database') do
|
1552
2908
|
@api_client.call_api(
|
1553
|
-
:
|
2909
|
+
:POST,
|
1554
2910
|
path,
|
1555
2911
|
endpoint,
|
1556
2912
|
header_params: header_params,
|
1557
2913
|
query_params: query_params,
|
1558
2914
|
operation_signing_strategy: operation_signing_strategy,
|
1559
2915
|
body: post_body,
|
1560
|
-
return_type: '
|
2916
|
+
return_type: 'OCI::Database::Models::AutonomousDatabase'
|
1561
2917
|
)
|
1562
2918
|
end
|
1563
2919
|
# rubocop:enable Metrics/BlockLength
|
@@ -1571,49 +2927,52 @@ module OCI
|
|
1571
2927
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1572
2928
|
|
1573
2929
|
|
1574
|
-
#
|
2930
|
+
# Restore a Database based on the request parameters you provide.
|
1575
2931
|
#
|
1576
|
-
# @param [String]
|
2932
|
+
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2933
|
+
# @param [OCI::Database::Models::RestoreDatabaseDetails] restore_database_details Request to perform database restore.
|
1577
2934
|
# @param [Hash] opts the optional parameters
|
1578
2935
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1579
2936
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1580
|
-
# @option opts [
|
1581
|
-
#
|
1582
|
-
#
|
1583
|
-
|
1584
|
-
|
2937
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2938
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2939
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2940
|
+
#
|
2941
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Database Database}
|
2942
|
+
def restore_database(database_id, restore_database_details, opts = {})
|
2943
|
+
logger.debug 'Calling operation DatabaseClient#restore_database.' if logger
|
1585
2944
|
|
1586
|
-
raise "Missing the required parameter '
|
1587
|
-
raise "
|
2945
|
+
raise "Missing the required parameter 'database_id' when calling restore_database." if database_id.nil?
|
2946
|
+
raise "Missing the required parameter 'restore_database_details' when calling restore_database." if restore_database_details.nil?
|
2947
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1588
2948
|
|
1589
|
-
path = '/
|
2949
|
+
path = '/databases/{databaseId}/actions/restore'.sub('{databaseId}', database_id.to_s)
|
1590
2950
|
operation_signing_strategy = :standard
|
1591
2951
|
|
1592
2952
|
# rubocop:disable Style/NegatedIf
|
1593
2953
|
# Query Params
|
1594
2954
|
query_params = {}
|
1595
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1596
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1597
2955
|
|
1598
2956
|
# Header Params
|
1599
2957
|
header_params = {}
|
1600
2958
|
header_params['accept'] = 'application/json'
|
1601
2959
|
header_params['content-type'] = 'application/json'
|
2960
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1602
2961
|
# rubocop:enable Style/NegatedIf
|
1603
2962
|
|
1604
|
-
post_body =
|
2963
|
+
post_body = @api_client.object_to_http_body(restore_database_details)
|
1605
2964
|
|
1606
2965
|
# rubocop:disable Metrics/BlockLength
|
1607
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2966
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#restore_database') do
|
1608
2967
|
@api_client.call_api(
|
1609
|
-
:
|
2968
|
+
:POST,
|
1610
2969
|
path,
|
1611
2970
|
endpoint,
|
1612
2971
|
header_params: header_params,
|
1613
2972
|
query_params: query_params,
|
1614
2973
|
operation_signing_strategy: operation_signing_strategy,
|
1615
2974
|
body: post_body,
|
1616
|
-
return_type: '
|
2975
|
+
return_type: 'OCI::Database::Models::Database'
|
1617
2976
|
)
|
1618
2977
|
end
|
1619
2978
|
# rubocop:enable Metrics/BlockLength
|
@@ -1627,49 +2986,50 @@ module OCI
|
|
1627
2986
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1628
2987
|
|
1629
2988
|
|
1630
|
-
#
|
2989
|
+
# Starts the specified autonomous Data Warehouse.
|
1631
2990
|
#
|
1632
|
-
# @param [String]
|
2991
|
+
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1633
2992
|
# @param [Hash] opts the optional parameters
|
1634
2993
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1635
2994
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1636
|
-
# @option opts [
|
1637
|
-
#
|
1638
|
-
#
|
1639
|
-
|
1640
|
-
|
2995
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2996
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2997
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2998
|
+
#
|
2999
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouse AutonomousDataWarehouse}
|
3000
|
+
def start_autonomous_data_warehouse(autonomous_data_warehouse_id, opts = {})
|
3001
|
+
logger.debug 'Calling operation DatabaseClient#start_autonomous_data_warehouse.' if logger
|
1641
3002
|
|
1642
|
-
raise "Missing the required parameter '
|
1643
|
-
raise "Parameter value for '
|
3003
|
+
raise "Missing the required parameter 'autonomous_data_warehouse_id' when calling start_autonomous_data_warehouse." if autonomous_data_warehouse_id.nil?
|
3004
|
+
raise "Parameter value for 'autonomous_data_warehouse_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_data_warehouse_id)
|
1644
3005
|
|
1645
|
-
path = '/
|
3006
|
+
path = '/autonomousDataWarehouses/{autonomousDataWarehouseId}/actions/start'.sub('{autonomousDataWarehouseId}', autonomous_data_warehouse_id.to_s)
|
1646
3007
|
operation_signing_strategy = :standard
|
1647
3008
|
|
1648
3009
|
# rubocop:disable Style/NegatedIf
|
1649
3010
|
# Query Params
|
1650
3011
|
query_params = {}
|
1651
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1652
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1653
3012
|
|
1654
3013
|
# Header Params
|
1655
3014
|
header_params = {}
|
1656
3015
|
header_params['accept'] = 'application/json'
|
1657
3016
|
header_params['content-type'] = 'application/json'
|
3017
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1658
3018
|
# rubocop:enable Style/NegatedIf
|
1659
3019
|
|
1660
3020
|
post_body = nil
|
1661
3021
|
|
1662
3022
|
# rubocop:disable Metrics/BlockLength
|
1663
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3023
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#start_autonomous_data_warehouse') do
|
1664
3024
|
@api_client.call_api(
|
1665
|
-
:
|
3025
|
+
:POST,
|
1666
3026
|
path,
|
1667
3027
|
endpoint,
|
1668
3028
|
header_params: header_params,
|
1669
3029
|
query_params: query_params,
|
1670
3030
|
operation_signing_strategy: operation_signing_strategy,
|
1671
3031
|
body: post_body,
|
1672
|
-
return_type: '
|
3032
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouse'
|
1673
3033
|
)
|
1674
3034
|
end
|
1675
3035
|
# rubocop:enable Metrics/BlockLength
|
@@ -1683,51 +3043,50 @@ module OCI
|
|
1683
3043
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1684
3044
|
|
1685
3045
|
|
1686
|
-
#
|
1687
|
-
#
|
1688
|
-
# @param [String]
|
3046
|
+
# Starts the specified Autonomous Database.
|
3047
|
+
#
|
3048
|
+
# @param [String] autonomous_database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1689
3049
|
# @param [Hash] opts the optional parameters
|
1690
3050
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1691
3051
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1692
|
-
# @option opts [
|
1693
|
-
#
|
1694
|
-
#
|
1695
|
-
|
1696
|
-
|
3052
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3053
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3054
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
3055
|
+
#
|
3056
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabase AutonomousDatabase}
|
3057
|
+
def start_autonomous_database(autonomous_database_id, opts = {})
|
3058
|
+
logger.debug 'Calling operation DatabaseClient#start_autonomous_database.' if logger
|
1697
3059
|
|
1698
|
-
raise "Missing the required parameter '
|
1699
|
-
raise "
|
3060
|
+
raise "Missing the required parameter 'autonomous_database_id' when calling start_autonomous_database." if autonomous_database_id.nil?
|
3061
|
+
raise "Parameter value for 'autonomous_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_database_id)
|
1700
3062
|
|
1701
|
-
path = '/
|
3063
|
+
path = '/autonomousDatabases/{autonomousDatabaseId}/actions/start'.sub('{autonomousDatabaseId}', autonomous_database_id.to_s)
|
1702
3064
|
operation_signing_strategy = :standard
|
1703
3065
|
|
1704
3066
|
# rubocop:disable Style/NegatedIf
|
1705
3067
|
# Query Params
|
1706
3068
|
query_params = {}
|
1707
|
-
query_params[:availabilityDomain] = availability_domain
|
1708
|
-
query_params[:compartmentId] = compartment_id
|
1709
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1710
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1711
3069
|
|
1712
3070
|
# Header Params
|
1713
3071
|
header_params = {}
|
1714
3072
|
header_params['accept'] = 'application/json'
|
1715
3073
|
header_params['content-type'] = 'application/json'
|
3074
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1716
3075
|
# rubocop:enable Style/NegatedIf
|
1717
3076
|
|
1718
3077
|
post_body = nil
|
1719
3078
|
|
1720
3079
|
# rubocop:disable Metrics/BlockLength
|
1721
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3080
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#start_autonomous_database') do
|
1722
3081
|
@api_client.call_api(
|
1723
|
-
:
|
3082
|
+
:POST,
|
1724
3083
|
path,
|
1725
3084
|
endpoint,
|
1726
3085
|
header_params: header_params,
|
1727
3086
|
query_params: query_params,
|
1728
3087
|
operation_signing_strategy: operation_signing_strategy,
|
1729
3088
|
body: post_body,
|
1730
|
-
return_type: '
|
3089
|
+
return_type: 'OCI::Database::Models::AutonomousDatabase'
|
1731
3090
|
)
|
1732
3091
|
end
|
1733
3092
|
# rubocop:enable Metrics/BlockLength
|
@@ -1741,52 +3100,50 @@ module OCI
|
|
1741
3100
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1742
3101
|
|
1743
3102
|
|
1744
|
-
#
|
3103
|
+
# Stops the specified Autonomous Data Warehouse.
|
1745
3104
|
#
|
1746
|
-
#
|
1747
|
-
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
3105
|
+
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1748
3106
|
# @param [Hash] opts the optional parameters
|
1749
3107
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1750
3108
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1751
|
-
# @option opts [
|
1752
|
-
#
|
1753
|
-
#
|
1754
|
-
#
|
1755
|
-
|
1756
|
-
|
3109
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3110
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3111
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
3112
|
+
#
|
3113
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouse AutonomousDataWarehouse}
|
3114
|
+
def stop_autonomous_data_warehouse(autonomous_data_warehouse_id, opts = {})
|
3115
|
+
logger.debug 'Calling operation DatabaseClient#stop_autonomous_data_warehouse.' if logger
|
1757
3116
|
|
1758
|
-
raise "Missing the required parameter '
|
3117
|
+
raise "Missing the required parameter 'autonomous_data_warehouse_id' when calling stop_autonomous_data_warehouse." if autonomous_data_warehouse_id.nil?
|
3118
|
+
raise "Parameter value for 'autonomous_data_warehouse_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_data_warehouse_id)
|
1759
3119
|
|
1760
|
-
path = '/
|
3120
|
+
path = '/autonomousDataWarehouses/{autonomousDataWarehouseId}/actions/stop'.sub('{autonomousDataWarehouseId}', autonomous_data_warehouse_id.to_s)
|
1761
3121
|
operation_signing_strategy = :standard
|
1762
3122
|
|
1763
3123
|
# rubocop:disable Style/NegatedIf
|
1764
3124
|
# Query Params
|
1765
3125
|
query_params = {}
|
1766
|
-
query_params[:compartmentId] = compartment_id
|
1767
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1768
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1769
|
-
query_params[:backupId] = opts[:backup_id] if opts[:backup_id]
|
1770
3126
|
|
1771
3127
|
# Header Params
|
1772
3128
|
header_params = {}
|
1773
3129
|
header_params['accept'] = 'application/json'
|
1774
3130
|
header_params['content-type'] = 'application/json'
|
3131
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1775
3132
|
# rubocop:enable Style/NegatedIf
|
1776
3133
|
|
1777
3134
|
post_body = nil
|
1778
3135
|
|
1779
3136
|
# rubocop:disable Metrics/BlockLength
|
1780
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3137
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#stop_autonomous_data_warehouse') do
|
1781
3138
|
@api_client.call_api(
|
1782
|
-
:
|
3139
|
+
:POST,
|
1783
3140
|
path,
|
1784
3141
|
endpoint,
|
1785
3142
|
header_params: header_params,
|
1786
3143
|
query_params: query_params,
|
1787
3144
|
operation_signing_strategy: operation_signing_strategy,
|
1788
3145
|
body: post_body,
|
1789
|
-
return_type: '
|
3146
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouse'
|
1790
3147
|
)
|
1791
3148
|
end
|
1792
3149
|
# rubocop:enable Metrics/BlockLength
|
@@ -1800,52 +3157,50 @@ module OCI
|
|
1800
3157
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1801
3158
|
|
1802
3159
|
|
1803
|
-
#
|
1804
|
-
#
|
3160
|
+
# Stops the specified Autonomous Database.
|
3161
|
+
#
|
3162
|
+
# @param [String] autonomous_database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1805
3163
|
# @param [Hash] opts the optional parameters
|
1806
3164
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1807
3165
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1808
|
-
# @option opts [
|
1809
|
-
#
|
1810
|
-
#
|
1811
|
-
#
|
1812
|
-
# @return [Response] A Response object with data of type
|
1813
|
-
def
|
1814
|
-
logger.debug 'Calling operation DatabaseClient#
|
3166
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3167
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3168
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
3169
|
+
#
|
3170
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabase AutonomousDatabase}
|
3171
|
+
def stop_autonomous_database(autonomous_database_id, opts = {})
|
3172
|
+
logger.debug 'Calling operation DatabaseClient#stop_autonomous_database.' if logger
|
1815
3173
|
|
1816
|
-
raise "Missing the required parameter '
|
3174
|
+
raise "Missing the required parameter 'autonomous_database_id' when calling stop_autonomous_database." if autonomous_database_id.nil?
|
3175
|
+
raise "Parameter value for 'autonomous_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_database_id)
|
1817
3176
|
|
1818
|
-
path = '/
|
3177
|
+
path = '/autonomousDatabases/{autonomousDatabaseId}/actions/stop'.sub('{autonomousDatabaseId}', autonomous_database_id.to_s)
|
1819
3178
|
operation_signing_strategy = :standard
|
1820
3179
|
|
1821
3180
|
# rubocop:disable Style/NegatedIf
|
1822
3181
|
# Query Params
|
1823
3182
|
query_params = {}
|
1824
|
-
query_params[:compartmentId] = compartment_id
|
1825
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1826
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1827
|
-
query_params[:dbSystemShape] = opts[:db_system_shape] if opts[:db_system_shape]
|
1828
|
-
query_params[:dbSystemId] = opts[:db_system_id] if opts[:db_system_id]
|
1829
3183
|
|
1830
3184
|
# Header Params
|
1831
3185
|
header_params = {}
|
1832
3186
|
header_params['accept'] = 'application/json'
|
1833
3187
|
header_params['content-type'] = 'application/json'
|
3188
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1834
3189
|
# rubocop:enable Style/NegatedIf
|
1835
3190
|
|
1836
3191
|
post_body = nil
|
1837
3192
|
|
1838
3193
|
# rubocop:disable Metrics/BlockLength
|
1839
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3194
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#stop_autonomous_database') do
|
1840
3195
|
@api_client.call_api(
|
1841
|
-
:
|
3196
|
+
:POST,
|
1842
3197
|
path,
|
1843
3198
|
endpoint,
|
1844
3199
|
header_params: header_params,
|
1845
3200
|
query_params: query_params,
|
1846
3201
|
operation_signing_strategy: operation_signing_strategy,
|
1847
3202
|
body: post_body,
|
1848
|
-
return_type: '
|
3203
|
+
return_type: 'OCI::Database::Models::AutonomousDatabase'
|
1849
3204
|
)
|
1850
3205
|
end
|
1851
3206
|
# rubocop:enable Metrics/BlockLength
|
@@ -1859,11 +3214,14 @@ module OCI
|
|
1859
3214
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1860
3215
|
|
1861
3216
|
|
1862
|
-
#
|
3217
|
+
# Performs a switchover to transition the primary database of a Data Guard association into a standby role. The
|
3218
|
+
# standby database associated with the `dataGuardAssociationId` assumes the primary database role.
|
3219
|
+
#
|
3220
|
+
# A switchover guarantees no data loss.
|
1863
3221
|
#
|
1864
3222
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1865
3223
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1866
|
-
# @param [OCI::Database::Models::
|
3224
|
+
# @param [OCI::Database::Models::SwitchoverDataGuardAssociationDetails] switchover_data_guard_association_details Request to swtichover a primary to a standby.
|
1867
3225
|
# @param [Hash] opts the optional parameters
|
1868
3226
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1869
3227
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -1872,16 +3230,16 @@ module OCI
|
|
1872
3230
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1873
3231
|
#
|
1874
3232
|
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
1875
|
-
def
|
1876
|
-
logger.debug 'Calling operation DatabaseClient#
|
3233
|
+
def switchover_data_guard_association(database_id, data_guard_association_id, switchover_data_guard_association_details, opts = {})
|
3234
|
+
logger.debug 'Calling operation DatabaseClient#switchover_data_guard_association.' if logger
|
1877
3235
|
|
1878
|
-
raise "Missing the required parameter 'database_id' when calling
|
1879
|
-
raise "Missing the required parameter 'data_guard_association_id' when calling
|
1880
|
-
raise "Missing the required parameter '
|
3236
|
+
raise "Missing the required parameter 'database_id' when calling switchover_data_guard_association." if database_id.nil?
|
3237
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling switchover_data_guard_association." if data_guard_association_id.nil?
|
3238
|
+
raise "Missing the required parameter 'switchover_data_guard_association_details' when calling switchover_data_guard_association." if switchover_data_guard_association_details.nil?
|
1881
3239
|
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1882
3240
|
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
1883
3241
|
|
1884
|
-
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/
|
3242
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/switchover'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
1885
3243
|
operation_signing_strategy = :standard
|
1886
3244
|
|
1887
3245
|
# rubocop:disable Style/NegatedIf
|
@@ -1895,10 +3253,10 @@ module OCI
|
|
1895
3253
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1896
3254
|
# rubocop:enable Style/NegatedIf
|
1897
3255
|
|
1898
|
-
post_body = @api_client.object_to_http_body(
|
3256
|
+
post_body = @api_client.object_to_http_body(switchover_data_guard_association_details)
|
1899
3257
|
|
1900
3258
|
# rubocop:disable Metrics/BlockLength
|
1901
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3259
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#switchover_data_guard_association') do
|
1902
3260
|
@api_client.call_api(
|
1903
3261
|
:POST,
|
1904
3262
|
path,
|
@@ -1921,10 +3279,8 @@ module OCI
|
|
1921
3279
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1922
3280
|
|
1923
3281
|
|
1924
|
-
#
|
1925
|
-
#
|
1926
|
-
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1927
|
-
# @param [OCI::Database::Models::RestoreDatabaseDetails] restore_database_details Request to perform database restore.
|
3282
|
+
# Terminates a DB System and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB System and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB System prior to terminating it.
|
3283
|
+
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1928
3284
|
# @param [Hash] opts the optional parameters
|
1929
3285
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1930
3286
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -1932,15 +3288,14 @@ module OCI
|
|
1932
3288
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1933
3289
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1934
3290
|
#
|
1935
|
-
# @return [Response] A Response object with data of type
|
1936
|
-
def
|
1937
|
-
logger.debug 'Calling operation DatabaseClient#
|
3291
|
+
# @return [Response] A Response object with data of type nil
|
3292
|
+
def terminate_db_system(db_system_id, opts = {})
|
3293
|
+
logger.debug 'Calling operation DatabaseClient#terminate_db_system.' if logger
|
1938
3294
|
|
1939
|
-
raise "Missing the required parameter '
|
1940
|
-
raise "
|
1941
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
3295
|
+
raise "Missing the required parameter 'db_system_id' when calling terminate_db_system." if db_system_id.nil?
|
3296
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1942
3297
|
|
1943
|
-
path = '/
|
3298
|
+
path = '/dbSystems/{dbSystemId}'.sub('{dbSystemId}', db_system_id.to_s)
|
1944
3299
|
operation_signing_strategy = :standard
|
1945
3300
|
|
1946
3301
|
# rubocop:disable Style/NegatedIf
|
@@ -1954,19 +3309,18 @@ module OCI
|
|
1954
3309
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1955
3310
|
# rubocop:enable Style/NegatedIf
|
1956
3311
|
|
1957
|
-
post_body =
|
3312
|
+
post_body = nil
|
1958
3313
|
|
1959
3314
|
# rubocop:disable Metrics/BlockLength
|
1960
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3315
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#terminate_db_system') do
|
1961
3316
|
@api_client.call_api(
|
1962
|
-
:
|
3317
|
+
:DELETE,
|
1963
3318
|
path,
|
1964
3319
|
endpoint,
|
1965
3320
|
header_params: header_params,
|
1966
3321
|
query_params: query_params,
|
1967
3322
|
operation_signing_strategy: operation_signing_strategy,
|
1968
|
-
body: post_body
|
1969
|
-
return_type: 'OCI::Database::Models::Database'
|
3323
|
+
body: post_body
|
1970
3324
|
)
|
1971
3325
|
end
|
1972
3326
|
# rubocop:enable Metrics/BlockLength
|
@@ -1980,14 +3334,10 @@ module OCI
|
|
1980
3334
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1981
3335
|
|
1982
3336
|
|
1983
|
-
#
|
1984
|
-
# standby database associated with the `dataGuardAssociationId` assumes the primary database role.
|
1985
|
-
#
|
1986
|
-
# A switchover guarantees no data loss.
|
3337
|
+
# Updates the specified Autonomous Data Warehouse with a new CPU core count and size.
|
1987
3338
|
#
|
1988
|
-
# @param [String]
|
1989
|
-
# @param [
|
1990
|
-
# @param [OCI::Database::Models::SwitchoverDataGuardAssociationDetails] switchover_data_guard_association_details Request to swtichover a primary to a standby.
|
3339
|
+
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
3340
|
+
# @param [OCI::Database::Models::UpdateAutonomousDataWarehouseDetails] update_autonomous_data_warehouse_details Request to update the properties of an Autonomous Data Warehouse.
|
1991
3341
|
# @param [Hash] opts the optional parameters
|
1992
3342
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1993
3343
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -1995,17 +3345,15 @@ module OCI
|
|
1995
3345
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1996
3346
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1997
3347
|
#
|
1998
|
-
# @return [Response] A Response object with data of type {OCI::Database::Models::
|
1999
|
-
def
|
2000
|
-
logger.debug 'Calling operation DatabaseClient#
|
3348
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDataWarehouse AutonomousDataWarehouse}
|
3349
|
+
def update_autonomous_data_warehouse(autonomous_data_warehouse_id, update_autonomous_data_warehouse_details, opts = {})
|
3350
|
+
logger.debug 'Calling operation DatabaseClient#update_autonomous_data_warehouse.' if logger
|
2001
3351
|
|
2002
|
-
raise "Missing the required parameter '
|
2003
|
-
raise "Missing the required parameter '
|
2004
|
-
raise "
|
2005
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
2006
|
-
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
3352
|
+
raise "Missing the required parameter 'autonomous_data_warehouse_id' when calling update_autonomous_data_warehouse." if autonomous_data_warehouse_id.nil?
|
3353
|
+
raise "Missing the required parameter 'update_autonomous_data_warehouse_details' when calling update_autonomous_data_warehouse." if update_autonomous_data_warehouse_details.nil?
|
3354
|
+
raise "Parameter value for 'autonomous_data_warehouse_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_data_warehouse_id)
|
2007
3355
|
|
2008
|
-
path = '/
|
3356
|
+
path = '/autonomousDataWarehouses/{autonomousDataWarehouseId}'.sub('{autonomousDataWarehouseId}', autonomous_data_warehouse_id.to_s)
|
2009
3357
|
operation_signing_strategy = :standard
|
2010
3358
|
|
2011
3359
|
# rubocop:disable Style/NegatedIf
|
@@ -2019,19 +3367,19 @@ module OCI
|
|
2019
3367
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2020
3368
|
# rubocop:enable Style/NegatedIf
|
2021
3369
|
|
2022
|
-
post_body = @api_client.object_to_http_body(
|
3370
|
+
post_body = @api_client.object_to_http_body(update_autonomous_data_warehouse_details)
|
2023
3371
|
|
2024
3372
|
# rubocop:disable Metrics/BlockLength
|
2025
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3373
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_autonomous_data_warehouse') do
|
2026
3374
|
@api_client.call_api(
|
2027
|
-
:
|
3375
|
+
:PUT,
|
2028
3376
|
path,
|
2029
3377
|
endpoint,
|
2030
3378
|
header_params: header_params,
|
2031
3379
|
query_params: query_params,
|
2032
3380
|
operation_signing_strategy: operation_signing_strategy,
|
2033
3381
|
body: post_body,
|
2034
|
-
return_type: 'OCI::Database::Models::
|
3382
|
+
return_type: 'OCI::Database::Models::AutonomousDataWarehouse'
|
2035
3383
|
)
|
2036
3384
|
end
|
2037
3385
|
# rubocop:enable Metrics/BlockLength
|
@@ -2045,8 +3393,10 @@ module OCI
|
|
2045
3393
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2046
3394
|
|
2047
3395
|
|
2048
|
-
#
|
2049
|
-
#
|
3396
|
+
# Updates the specified Autonomous Database with a new CPU core count and size.
|
3397
|
+
#
|
3398
|
+
# @param [String] autonomous_database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
3399
|
+
# @param [OCI::Database::Models::UpdateAutonomousDatabaseDetails] update_autonomous_database_details Request to update the properties of an Autonomous Database.
|
2050
3400
|
# @param [Hash] opts the optional parameters
|
2051
3401
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2052
3402
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -2054,14 +3404,15 @@ module OCI
|
|
2054
3404
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2055
3405
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2056
3406
|
#
|
2057
|
-
# @return [Response] A Response object with data of type
|
2058
|
-
def
|
2059
|
-
logger.debug 'Calling operation DatabaseClient#
|
3407
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousDatabase AutonomousDatabase}
|
3408
|
+
def update_autonomous_database(autonomous_database_id, update_autonomous_database_details, opts = {})
|
3409
|
+
logger.debug 'Calling operation DatabaseClient#update_autonomous_database.' if logger
|
2060
3410
|
|
2061
|
-
raise "Missing the required parameter '
|
2062
|
-
raise "
|
3411
|
+
raise "Missing the required parameter 'autonomous_database_id' when calling update_autonomous_database." if autonomous_database_id.nil?
|
3412
|
+
raise "Missing the required parameter 'update_autonomous_database_details' when calling update_autonomous_database." if update_autonomous_database_details.nil?
|
3413
|
+
raise "Parameter value for 'autonomous_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_database_id)
|
2063
3414
|
|
2064
|
-
path = '/
|
3415
|
+
path = '/autonomousDatabases/{autonomousDatabaseId}'.sub('{autonomousDatabaseId}', autonomous_database_id.to_s)
|
2065
3416
|
operation_signing_strategy = :standard
|
2066
3417
|
|
2067
3418
|
# rubocop:disable Style/NegatedIf
|
@@ -2075,18 +3426,19 @@ module OCI
|
|
2075
3426
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2076
3427
|
# rubocop:enable Style/NegatedIf
|
2077
3428
|
|
2078
|
-
post_body =
|
3429
|
+
post_body = @api_client.object_to_http_body(update_autonomous_database_details)
|
2079
3430
|
|
2080
3431
|
# rubocop:disable Metrics/BlockLength
|
2081
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
3432
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_autonomous_database') do
|
2082
3433
|
@api_client.call_api(
|
2083
|
-
:
|
3434
|
+
:PUT,
|
2084
3435
|
path,
|
2085
3436
|
endpoint,
|
2086
3437
|
header_params: header_params,
|
2087
3438
|
query_params: query_params,
|
2088
3439
|
operation_signing_strategy: operation_signing_strategy,
|
2089
|
-
body: post_body
|
3440
|
+
body: post_body,
|
3441
|
+
return_type: 'OCI::Database::Models::AutonomousDatabase'
|
2090
3442
|
)
|
2091
3443
|
end
|
2092
3444
|
# rubocop:enable Metrics/BlockLength
|