oci 2.4.2 → 2.4.3
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/attach_paravirtualized_volume_details.rb +21 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
- data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
- data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
- data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
- data/lib/oci/core/models/drg_attachment.rb +4 -1
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
- data/lib/oci/core/models/launch_instance_details.rb +18 -4
- data/lib/oci/core/models/launch_options.rb +18 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -1
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
- data/lib/oci/core/models/service.rb +1 -1
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
- data/lib/oci/core/models/volume_attachment.rb +18 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -0
- data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
- data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
- data/lib/oci/database/models/autonomous_database.rb +132 -137
- data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
- data/lib/oci/database/models/backup.rb +102 -109
- data/lib/oci/database/models/backup_summary.rb +101 -101
- data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
- data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
- data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
- data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
- data/lib/oci/database/models/create_database_details.rb +62 -62
- data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
- data/lib/oci/database/models/create_db_home_details.rb +21 -21
- data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
- data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
- data/lib/oci/database/models/data_guard_association.rb +132 -144
- data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
- data/lib/oci/database/models/database.rb +100 -108
- data/lib/oci/database/models/database_summary.rb +99 -99
- data/lib/oci/database/models/db_home.rb +39 -51
- data/lib/oci/database/models/db_home_summary.rb +39 -39
- data/lib/oci/database/models/db_node.rb +50 -58
- data/lib/oci/database/models/db_node_summary.rb +49 -49
- data/lib/oci/database/models/db_system.rb +295 -300
- data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
- data/lib/oci/database/models/db_system_summary.rb +295 -280
- data/lib/oci/database/models/db_version_summary.rb +28 -14
- data/lib/oci/database/models/external_backup_job.rb +34 -34
- data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +160 -145
- data/lib/oci/database/models/launch_db_system_details.rb +59 -55
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
- data/lib/oci/database/models/patch.rb +45 -53
- data/lib/oci/database/models/patch_details.rb +14 -14
- data/lib/oci/database/models/patch_history_entry.rb +48 -51
- data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
- data/lib/oci/database/models/patch_summary.rb +44 -44
- data/lib/oci/database/models/restore_database_details.rb +15 -15
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
- data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
- data/lib/oci/database/models/update_database_details.rb +22 -22
- data/lib/oci/database/models/update_db_system_details.rb +38 -38
- data/lib/oci/dns/dns.rb +1 -0
- data/lib/oci/dns/dns_client.rb +14 -13
- data/lib/oci/dns/models/create_zone_details.rb +39 -2
- data/lib/oci/dns/models/external_master.rb +3 -1
- data/lib/oci/dns/models/nameserver.rb +149 -0
- data/lib/oci/dns/models/record.rb +3 -1
- data/lib/oci/dns/models/record_details.rb +3 -1
- data/lib/oci/dns/models/record_operation.rb +3 -1
- data/lib/oci/dns/models/tsig.rb +3 -2
- data/lib/oci/dns/models/update_zone_details.rb +40 -2
- data/lib/oci/dns/models/zone.rb +54 -6
- data/lib/oci/dns/models/zone_summary.rb +79 -5
- data/lib/oci/identity/identity.rb +4 -0
- data/lib/oci/identity/identity_client.rb +176 -0
- data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
- data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
- data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
- data/lib/oci/identity/models/user.rb +42 -4
- data/lib/oci/identity/models/user_capabilities.rb +209 -0
- data/lib/oci/regions.rb +10 -9
- data/lib/oci/version.rb +1 -1
- metadata +8 -2
@@ -5,18 +5,12 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
#
|
9
|
-
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
10
|
-
#
|
11
|
-
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
12
|
-
#
|
8
|
+
# Backup model.
|
13
9
|
class Database::Models::Backup # rubocop:disable Metrics/LineLength
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze,
|
19
|
-
DATABASE_EDITION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
10
|
+
TYPE_ENUM = [
|
11
|
+
TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
|
12
|
+
TYPE_FULL = 'FULL'.freeze,
|
13
|
+
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
20
14
|
].freeze
|
21
15
|
|
22
16
|
LIFECYCLE_STATE_ENUM = [
|
@@ -29,78 +23,80 @@ module OCI
|
|
29
23
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
30
24
|
].freeze
|
31
25
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
26
|
+
DATABASE_EDITION_ENUM = [
|
27
|
+
DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'.freeze,
|
28
|
+
DATABASE_EDITION_ENTERPRISE_EDITION = 'ENTERPRISE_EDITION'.freeze,
|
29
|
+
DATABASE_EDITION_ENTERPRISE_EDITION_HIGH_PERFORMANCE = 'ENTERPRISE_EDITION_HIGH_PERFORMANCE'.freeze,
|
30
|
+
DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze,
|
31
|
+
DATABASE_EDITION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
36
32
|
].freeze
|
37
33
|
|
38
|
-
# The
|
34
|
+
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup.
|
39
35
|
# @return [String]
|
40
|
-
attr_accessor :
|
36
|
+
attr_accessor :id
|
41
37
|
|
42
38
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
43
39
|
# @return [String]
|
44
40
|
attr_accessor :compartment_id
|
45
41
|
|
46
|
-
# The Oracle Database edition of the DB system from which the database backup was taken.
|
47
|
-
#
|
48
|
-
# @return [String]
|
49
|
-
attr_reader :database_edition
|
50
|
-
|
51
42
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
|
52
43
|
# @return [String]
|
53
44
|
attr_accessor :database_id
|
54
45
|
|
55
|
-
# The size of the database in gigabytes at the time the backup was taken.
|
56
|
-
#
|
57
|
-
# @return [Float]
|
58
|
-
attr_accessor :database_size_in_gbs
|
59
|
-
|
60
46
|
# The user-friendly name for the backup. The name does not have to be unique.
|
61
47
|
# @return [String]
|
62
48
|
attr_accessor :display_name
|
63
49
|
|
64
|
-
# The
|
50
|
+
# The type of backup.
|
65
51
|
# @return [String]
|
66
|
-
|
52
|
+
attr_reader :type
|
53
|
+
|
54
|
+
# The date and time the backup started.
|
55
|
+
# @return [DateTime]
|
56
|
+
attr_accessor :time_started
|
57
|
+
|
58
|
+
# The date and time the backup was completed.
|
59
|
+
# @return [DateTime]
|
60
|
+
attr_accessor :time_ended
|
67
61
|
|
68
62
|
# Additional information about the current lifecycleState.
|
69
63
|
# @return [String]
|
70
64
|
attr_accessor :lifecycle_details
|
71
65
|
|
66
|
+
# The name of the availability domain where the database backup is stored.
|
67
|
+
# @return [String]
|
68
|
+
attr_accessor :availability_domain
|
69
|
+
|
72
70
|
# The current state of the backup.
|
73
71
|
# @return [String]
|
74
72
|
attr_reader :lifecycle_state
|
75
73
|
|
76
|
-
# The
|
77
|
-
#
|
78
|
-
attr_accessor :time_ended
|
79
|
-
|
80
|
-
# The date and time the backup started.
|
81
|
-
# @return [DateTime]
|
82
|
-
attr_accessor :time_started
|
83
|
-
|
84
|
-
# The type of backup.
|
74
|
+
# The Oracle Database edition of the DB system from which the database backup was taken.
|
75
|
+
#
|
85
76
|
# @return [String]
|
86
|
-
attr_reader :
|
77
|
+
attr_reader :database_edition
|
78
|
+
|
79
|
+
# The size of the database in gigabytes at the time the backup was taken.
|
80
|
+
#
|
81
|
+
# @return [Float]
|
82
|
+
attr_accessor :database_size_in_gbs
|
87
83
|
|
88
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
89
85
|
def self.attribute_map
|
90
86
|
{
|
91
87
|
# rubocop:disable Style/SymbolLiteral
|
92
|
-
'
|
88
|
+
'id': :'id',
|
93
89
|
'compartment_id': :'compartmentId',
|
94
|
-
'database_edition': :'databaseEdition',
|
95
90
|
'database_id': :'databaseId',
|
96
|
-
'database_size_in_gbs': :'databaseSizeInGBs',
|
97
91
|
'display_name': :'displayName',
|
98
|
-
'
|
92
|
+
'type': :'type',
|
93
|
+
'time_started': :'timeStarted',
|
94
|
+
'time_ended': :'timeEnded',
|
99
95
|
'lifecycle_details': :'lifecycleDetails',
|
96
|
+
'availability_domain': :'availabilityDomain',
|
100
97
|
'lifecycle_state': :'lifecycleState',
|
101
|
-
'
|
102
|
-
'
|
103
|
-
'type': :'type'
|
98
|
+
'database_edition': :'databaseEdition',
|
99
|
+
'database_size_in_gbs': :'databaseSizeInGBs'
|
104
100
|
# rubocop:enable Style/SymbolLiteral
|
105
101
|
}
|
106
102
|
end
|
@@ -109,18 +105,18 @@ module OCI
|
|
109
105
|
def self.swagger_types
|
110
106
|
{
|
111
107
|
# rubocop:disable Style/SymbolLiteral
|
112
|
-
'
|
108
|
+
'id': :'String',
|
113
109
|
'compartment_id': :'String',
|
114
|
-
'database_edition': :'String',
|
115
110
|
'database_id': :'String',
|
116
|
-
'database_size_in_gbs': :'Float',
|
117
111
|
'display_name': :'String',
|
118
|
-
'
|
112
|
+
'type': :'String',
|
113
|
+
'time_started': :'DateTime',
|
114
|
+
'time_ended': :'DateTime',
|
119
115
|
'lifecycle_details': :'String',
|
116
|
+
'availability_domain': :'String',
|
120
117
|
'lifecycle_state': :'String',
|
121
|
-
'
|
122
|
-
'
|
123
|
-
'type': :'String'
|
118
|
+
'database_edition': :'String',
|
119
|
+
'database_size_in_gbs': :'Float'
|
124
120
|
# rubocop:enable Style/SymbolLiteral
|
125
121
|
}
|
126
122
|
end
|
@@ -131,29 +127,22 @@ module OCI
|
|
131
127
|
|
132
128
|
# Initializes the object
|
133
129
|
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @option attributes [String] :
|
130
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
135
131
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
136
|
-
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
137
132
|
# @option attributes [String] :database_id The value to assign to the {#database_id} property
|
138
|
-
# @option attributes [Float] :database_size_in_gbs The value to assign to the {#database_size_in_gbs} property
|
139
133
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
140
|
-
# @option attributes [String] :
|
134
|
+
# @option attributes [String] :type The value to assign to the {#type} property
|
135
|
+
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
136
|
+
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
141
137
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
138
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
142
139
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
143
|
-
# @option attributes [
|
144
|
-
# @option attributes [
|
145
|
-
# @option attributes [String] :type The value to assign to the {#type} property
|
140
|
+
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
141
|
+
# @option attributes [Float] :database_size_in_gbs The value to assign to the {#database_size_in_gbs} property
|
146
142
|
def initialize(attributes = {})
|
147
143
|
return unless attributes.is_a?(Hash)
|
148
144
|
|
149
|
-
|
150
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
151
|
-
|
152
|
-
self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
|
153
|
-
|
154
|
-
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
155
|
-
|
156
|
-
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
145
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
157
146
|
|
158
147
|
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
159
148
|
|
@@ -161,31 +150,31 @@ module OCI
|
|
161
150
|
|
162
151
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
163
152
|
|
164
|
-
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
165
|
-
|
166
|
-
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
167
|
-
|
168
|
-
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
169
|
-
|
170
153
|
self.database_id = attributes[:'databaseId'] if attributes[:'databaseId']
|
171
154
|
|
172
155
|
raise 'You cannot provide both :databaseId and :database_id' if attributes.key?(:'databaseId') && attributes.key?(:'database_id')
|
173
156
|
|
174
157
|
self.database_id = attributes[:'database_id'] if attributes[:'database_id']
|
175
158
|
|
176
|
-
self.database_size_in_gbs = attributes[:'databaseSizeInGBs'] if attributes[:'databaseSizeInGBs']
|
177
|
-
|
178
|
-
raise 'You cannot provide both :databaseSizeInGBs and :database_size_in_gbs' if attributes.key?(:'databaseSizeInGBs') && attributes.key?(:'database_size_in_gbs')
|
179
|
-
|
180
|
-
self.database_size_in_gbs = attributes[:'database_size_in_gbs'] if attributes[:'database_size_in_gbs']
|
181
|
-
|
182
159
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
183
160
|
|
184
161
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
185
162
|
|
186
163
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
187
164
|
|
188
|
-
self.
|
165
|
+
self.type = attributes[:'type'] if attributes[:'type']
|
166
|
+
|
167
|
+
self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
|
168
|
+
|
169
|
+
raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
|
170
|
+
|
171
|
+
self.time_started = attributes[:'time_started'] if attributes[:'time_started']
|
172
|
+
|
173
|
+
self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
|
174
|
+
|
175
|
+
raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
|
176
|
+
|
177
|
+
self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
|
189
178
|
|
190
179
|
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
191
180
|
|
@@ -193,40 +182,44 @@ module OCI
|
|
193
182
|
|
194
183
|
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
195
184
|
|
185
|
+
self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
|
186
|
+
|
187
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
188
|
+
|
189
|
+
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
190
|
+
|
196
191
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
197
192
|
|
198
193
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
199
194
|
|
200
195
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
201
196
|
|
202
|
-
self.
|
203
|
-
|
204
|
-
raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
|
197
|
+
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
205
198
|
|
206
|
-
|
199
|
+
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
207
200
|
|
208
|
-
self.
|
201
|
+
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
209
202
|
|
210
|
-
|
203
|
+
self.database_size_in_gbs = attributes[:'databaseSizeInGBs'] if attributes[:'databaseSizeInGBs']
|
211
204
|
|
212
|
-
|
205
|
+
raise 'You cannot provide both :databaseSizeInGBs and :database_size_in_gbs' if attributes.key?(:'databaseSizeInGBs') && attributes.key?(:'database_size_in_gbs')
|
213
206
|
|
214
|
-
self.
|
207
|
+
self.database_size_in_gbs = attributes[:'database_size_in_gbs'] if attributes[:'database_size_in_gbs']
|
215
208
|
end
|
216
209
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
217
210
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
218
211
|
|
219
212
|
# Custom attribute writer method checking allowed values (enum).
|
220
|
-
# @param [Object]
|
221
|
-
def
|
213
|
+
# @param [Object] type Object to be assigned
|
214
|
+
def type=(type)
|
222
215
|
# rubocop:disable Style/ConditionalAssignment
|
223
|
-
if
|
216
|
+
if type && !TYPE_ENUM.include?(type)
|
224
217
|
# rubocop: disable Metrics/LineLength
|
225
|
-
OCI.logger.debug("Unknown value for '
|
218
|
+
OCI.logger.debug("Unknown value for 'type' [" + type + "]. Mapping to 'TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
226
219
|
# rubocop: enable Metrics/LineLength
|
227
|
-
@
|
220
|
+
@type = TYPE_UNKNOWN_ENUM_VALUE
|
228
221
|
else
|
229
|
-
@
|
222
|
+
@type = type
|
230
223
|
end
|
231
224
|
# rubocop:enable Style/ConditionalAssignment
|
232
225
|
end
|
@@ -247,16 +240,16 @@ module OCI
|
|
247
240
|
end
|
248
241
|
|
249
242
|
# Custom attribute writer method checking allowed values (enum).
|
250
|
-
# @param [Object]
|
251
|
-
def
|
243
|
+
# @param [Object] database_edition Object to be assigned
|
244
|
+
def database_edition=(database_edition)
|
252
245
|
# rubocop:disable Style/ConditionalAssignment
|
253
|
-
if
|
246
|
+
if database_edition && !DATABASE_EDITION_ENUM.include?(database_edition)
|
254
247
|
# rubocop: disable Metrics/LineLength
|
255
|
-
OCI.logger.debug("Unknown value for '
|
248
|
+
OCI.logger.debug("Unknown value for 'database_edition' [" + database_edition + "]. Mapping to 'DATABASE_EDITION_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
256
249
|
# rubocop: enable Metrics/LineLength
|
257
|
-
@
|
250
|
+
@database_edition = DATABASE_EDITION_UNKNOWN_ENUM_VALUE
|
258
251
|
else
|
259
|
-
@
|
252
|
+
@database_edition = database_edition
|
260
253
|
end
|
261
254
|
# rubocop:enable Style/ConditionalAssignment
|
262
255
|
end
|
@@ -270,18 +263,18 @@ module OCI
|
|
270
263
|
return true if equal?(other)
|
271
264
|
|
272
265
|
self.class == other.class &&
|
273
|
-
|
266
|
+
id == other.id &&
|
274
267
|
compartment_id == other.compartment_id &&
|
275
|
-
database_edition == other.database_edition &&
|
276
268
|
database_id == other.database_id &&
|
277
|
-
database_size_in_gbs == other.database_size_in_gbs &&
|
278
269
|
display_name == other.display_name &&
|
279
|
-
|
270
|
+
type == other.type &&
|
271
|
+
time_started == other.time_started &&
|
272
|
+
time_ended == other.time_ended &&
|
280
273
|
lifecycle_details == other.lifecycle_details &&
|
274
|
+
availability_domain == other.availability_domain &&
|
281
275
|
lifecycle_state == other.lifecycle_state &&
|
282
|
-
|
283
|
-
|
284
|
-
type == other.type
|
276
|
+
database_edition == other.database_edition &&
|
277
|
+
database_size_in_gbs == other.database_size_in_gbs
|
285
278
|
end
|
286
279
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
287
280
|
|
@@ -297,7 +290,7 @@ module OCI
|
|
297
290
|
# Calculates hash code according to all attributes.
|
298
291
|
# @return [Fixnum] Hash code
|
299
292
|
def hash
|
300
|
-
[
|
293
|
+
[id, compartment_id, database_id, display_name, type, time_started, time_ended, lifecycle_details, availability_domain, lifecycle_state, database_edition, database_size_in_gbs].hash
|
301
294
|
end
|
302
295
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
303
296
|
|
@@ -11,12 +11,10 @@ module OCI
|
|
11
11
|
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
12
12
|
#
|
13
13
|
class Database::Models::BackupSummary # rubocop:disable Metrics/LineLength
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze,
|
19
|
-
DATABASE_EDITION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
14
|
+
TYPE_ENUM = [
|
15
|
+
TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
|
16
|
+
TYPE_FULL = 'FULL'.freeze,
|
17
|
+
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
20
18
|
].freeze
|
21
19
|
|
22
20
|
LIFECYCLE_STATE_ENUM = [
|
@@ -29,78 +27,80 @@ module OCI
|
|
29
27
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
30
28
|
].freeze
|
31
29
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
DATABASE_EDITION_ENUM = [
|
31
|
+
DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'.freeze,
|
32
|
+
DATABASE_EDITION_ENTERPRISE_EDITION = 'ENTERPRISE_EDITION'.freeze,
|
33
|
+
DATABASE_EDITION_ENTERPRISE_EDITION_HIGH_PERFORMANCE = 'ENTERPRISE_EDITION_HIGH_PERFORMANCE'.freeze,
|
34
|
+
DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze,
|
35
|
+
DATABASE_EDITION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
36
36
|
].freeze
|
37
37
|
|
38
|
-
# The
|
38
|
+
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup.
|
39
39
|
# @return [String]
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :id
|
41
41
|
|
42
42
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
43
43
|
# @return [String]
|
44
44
|
attr_accessor :compartment_id
|
45
45
|
|
46
|
-
# The Oracle Database edition of the DB system from which the database backup was taken.
|
47
|
-
#
|
48
|
-
# @return [String]
|
49
|
-
attr_reader :database_edition
|
50
|
-
|
51
46
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
|
52
47
|
# @return [String]
|
53
48
|
attr_accessor :database_id
|
54
49
|
|
55
|
-
# The size of the database in gigabytes at the time the backup was taken.
|
56
|
-
#
|
57
|
-
# @return [Float]
|
58
|
-
attr_accessor :database_size_in_gbs
|
59
|
-
|
60
50
|
# The user-friendly name for the backup. The name does not have to be unique.
|
61
51
|
# @return [String]
|
62
52
|
attr_accessor :display_name
|
63
53
|
|
64
|
-
# The
|
54
|
+
# The type of backup.
|
65
55
|
# @return [String]
|
66
|
-
|
56
|
+
attr_reader :type
|
57
|
+
|
58
|
+
# The date and time the backup started.
|
59
|
+
# @return [DateTime]
|
60
|
+
attr_accessor :time_started
|
61
|
+
|
62
|
+
# The date and time the backup was completed.
|
63
|
+
# @return [DateTime]
|
64
|
+
attr_accessor :time_ended
|
67
65
|
|
68
66
|
# Additional information about the current lifecycleState.
|
69
67
|
# @return [String]
|
70
68
|
attr_accessor :lifecycle_details
|
71
69
|
|
70
|
+
# The name of the availability domain where the database backup is stored.
|
71
|
+
# @return [String]
|
72
|
+
attr_accessor :availability_domain
|
73
|
+
|
72
74
|
# The current state of the backup.
|
73
75
|
# @return [String]
|
74
76
|
attr_reader :lifecycle_state
|
75
77
|
|
76
|
-
# The
|
77
|
-
#
|
78
|
-
attr_accessor :time_ended
|
79
|
-
|
80
|
-
# The date and time the backup started.
|
81
|
-
# @return [DateTime]
|
82
|
-
attr_accessor :time_started
|
83
|
-
|
84
|
-
# The type of backup.
|
78
|
+
# The Oracle Database edition of the DB system from which the database backup was taken.
|
79
|
+
#
|
85
80
|
# @return [String]
|
86
|
-
attr_reader :
|
81
|
+
attr_reader :database_edition
|
82
|
+
|
83
|
+
# The size of the database in gigabytes at the time the backup was taken.
|
84
|
+
#
|
85
|
+
# @return [Float]
|
86
|
+
attr_accessor :database_size_in_gbs
|
87
87
|
|
88
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
89
89
|
def self.attribute_map
|
90
90
|
{
|
91
91
|
# rubocop:disable Style/SymbolLiteral
|
92
|
-
'
|
92
|
+
'id': :'id',
|
93
93
|
'compartment_id': :'compartmentId',
|
94
|
-
'database_edition': :'databaseEdition',
|
95
94
|
'database_id': :'databaseId',
|
96
|
-
'database_size_in_gbs': :'databaseSizeInGBs',
|
97
95
|
'display_name': :'displayName',
|
98
|
-
'
|
96
|
+
'type': :'type',
|
97
|
+
'time_started': :'timeStarted',
|
98
|
+
'time_ended': :'timeEnded',
|
99
99
|
'lifecycle_details': :'lifecycleDetails',
|
100
|
+
'availability_domain': :'availabilityDomain',
|
100
101
|
'lifecycle_state': :'lifecycleState',
|
101
|
-
'
|
102
|
-
'
|
103
|
-
'type': :'type'
|
102
|
+
'database_edition': :'databaseEdition',
|
103
|
+
'database_size_in_gbs': :'databaseSizeInGBs'
|
104
104
|
# rubocop:enable Style/SymbolLiteral
|
105
105
|
}
|
106
106
|
end
|
@@ -109,18 +109,18 @@ module OCI
|
|
109
109
|
def self.swagger_types
|
110
110
|
{
|
111
111
|
# rubocop:disable Style/SymbolLiteral
|
112
|
-
'
|
112
|
+
'id': :'String',
|
113
113
|
'compartment_id': :'String',
|
114
|
-
'database_edition': :'String',
|
115
114
|
'database_id': :'String',
|
116
|
-
'database_size_in_gbs': :'Float',
|
117
115
|
'display_name': :'String',
|
118
|
-
'
|
116
|
+
'type': :'String',
|
117
|
+
'time_started': :'DateTime',
|
118
|
+
'time_ended': :'DateTime',
|
119
119
|
'lifecycle_details': :'String',
|
120
|
+
'availability_domain': :'String',
|
120
121
|
'lifecycle_state': :'String',
|
121
|
-
'
|
122
|
-
'
|
123
|
-
'type': :'String'
|
122
|
+
'database_edition': :'String',
|
123
|
+
'database_size_in_gbs': :'Float'
|
124
124
|
# rubocop:enable Style/SymbolLiteral
|
125
125
|
}
|
126
126
|
end
|
@@ -131,29 +131,25 @@ module OCI
|
|
131
131
|
|
132
132
|
# Initializes the object
|
133
133
|
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @option attributes [String] :
|
134
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
135
135
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
136
|
-
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
137
136
|
# @option attributes [String] :database_id The value to assign to the {#database_id} property
|
138
|
-
# @option attributes [Float] :database_size_in_gbs The value to assign to the {#database_size_in_gbs} property
|
139
137
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
140
|
-
# @option attributes [String] :
|
138
|
+
# @option attributes [String] :type The value to assign to the {#type} property
|
139
|
+
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
140
|
+
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
141
141
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
142
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
142
143
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
143
|
-
# @option attributes [
|
144
|
-
# @option attributes [
|
145
|
-
# @option attributes [String] :type The value to assign to the {#type} property
|
144
|
+
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
145
|
+
# @option attributes [Float] :database_size_in_gbs The value to assign to the {#database_size_in_gbs} property
|
146
146
|
def initialize(attributes = {})
|
147
147
|
return unless attributes.is_a?(Hash)
|
148
148
|
|
149
149
|
# convert string to symbol for hash key
|
150
150
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
151
151
|
|
152
|
-
self.
|
153
|
-
|
154
|
-
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
155
|
-
|
156
|
-
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
152
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
157
153
|
|
158
154
|
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
159
155
|
|
@@ -161,31 +157,31 @@ module OCI
|
|
161
157
|
|
162
158
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
163
159
|
|
164
|
-
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
165
|
-
|
166
|
-
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
167
|
-
|
168
|
-
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
169
|
-
|
170
160
|
self.database_id = attributes[:'databaseId'] if attributes[:'databaseId']
|
171
161
|
|
172
162
|
raise 'You cannot provide both :databaseId and :database_id' if attributes.key?(:'databaseId') && attributes.key?(:'database_id')
|
173
163
|
|
174
164
|
self.database_id = attributes[:'database_id'] if attributes[:'database_id']
|
175
165
|
|
176
|
-
self.database_size_in_gbs = attributes[:'databaseSizeInGBs'] if attributes[:'databaseSizeInGBs']
|
177
|
-
|
178
|
-
raise 'You cannot provide both :databaseSizeInGBs and :database_size_in_gbs' if attributes.key?(:'databaseSizeInGBs') && attributes.key?(:'database_size_in_gbs')
|
179
|
-
|
180
|
-
self.database_size_in_gbs = attributes[:'database_size_in_gbs'] if attributes[:'database_size_in_gbs']
|
181
|
-
|
182
166
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
183
167
|
|
184
168
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
185
169
|
|
186
170
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
187
171
|
|
188
|
-
self.
|
172
|
+
self.type = attributes[:'type'] if attributes[:'type']
|
173
|
+
|
174
|
+
self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
|
175
|
+
|
176
|
+
raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
|
177
|
+
|
178
|
+
self.time_started = attributes[:'time_started'] if attributes[:'time_started']
|
179
|
+
|
180
|
+
self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
|
181
|
+
|
182
|
+
raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
|
183
|
+
|
184
|
+
self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
|
189
185
|
|
190
186
|
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
191
187
|
|
@@ -193,40 +189,44 @@ module OCI
|
|
193
189
|
|
194
190
|
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
195
191
|
|
192
|
+
self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
|
193
|
+
|
194
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
195
|
+
|
196
|
+
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
197
|
+
|
196
198
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
197
199
|
|
198
200
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
199
201
|
|
200
202
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
201
203
|
|
202
|
-
self.
|
203
|
-
|
204
|
-
raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
|
204
|
+
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
205
205
|
|
206
|
-
|
206
|
+
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
207
207
|
|
208
|
-
self.
|
208
|
+
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
209
209
|
|
210
|
-
|
210
|
+
self.database_size_in_gbs = attributes[:'databaseSizeInGBs'] if attributes[:'databaseSizeInGBs']
|
211
211
|
|
212
|
-
|
212
|
+
raise 'You cannot provide both :databaseSizeInGBs and :database_size_in_gbs' if attributes.key?(:'databaseSizeInGBs') && attributes.key?(:'database_size_in_gbs')
|
213
213
|
|
214
|
-
self.
|
214
|
+
self.database_size_in_gbs = attributes[:'database_size_in_gbs'] if attributes[:'database_size_in_gbs']
|
215
215
|
end
|
216
216
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
217
217
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
218
218
|
|
219
219
|
# Custom attribute writer method checking allowed values (enum).
|
220
|
-
# @param [Object]
|
221
|
-
def
|
220
|
+
# @param [Object] type Object to be assigned
|
221
|
+
def type=(type)
|
222
222
|
# rubocop:disable Style/ConditionalAssignment
|
223
|
-
if
|
223
|
+
if type && !TYPE_ENUM.include?(type)
|
224
224
|
# rubocop: disable Metrics/LineLength
|
225
|
-
OCI.logger.debug("Unknown value for '
|
225
|
+
OCI.logger.debug("Unknown value for 'type' [" + type + "]. Mapping to 'TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
226
226
|
# rubocop: enable Metrics/LineLength
|
227
|
-
@
|
227
|
+
@type = TYPE_UNKNOWN_ENUM_VALUE
|
228
228
|
else
|
229
|
-
@
|
229
|
+
@type = type
|
230
230
|
end
|
231
231
|
# rubocop:enable Style/ConditionalAssignment
|
232
232
|
end
|
@@ -247,16 +247,16 @@ module OCI
|
|
247
247
|
end
|
248
248
|
|
249
249
|
# Custom attribute writer method checking allowed values (enum).
|
250
|
-
# @param [Object]
|
251
|
-
def
|
250
|
+
# @param [Object] database_edition Object to be assigned
|
251
|
+
def database_edition=(database_edition)
|
252
252
|
# rubocop:disable Style/ConditionalAssignment
|
253
|
-
if
|
253
|
+
if database_edition && !DATABASE_EDITION_ENUM.include?(database_edition)
|
254
254
|
# rubocop: disable Metrics/LineLength
|
255
|
-
OCI.logger.debug("Unknown value for '
|
255
|
+
OCI.logger.debug("Unknown value for 'database_edition' [" + database_edition + "]. Mapping to 'DATABASE_EDITION_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
256
256
|
# rubocop: enable Metrics/LineLength
|
257
|
-
@
|
257
|
+
@database_edition = DATABASE_EDITION_UNKNOWN_ENUM_VALUE
|
258
258
|
else
|
259
|
-
@
|
259
|
+
@database_edition = database_edition
|
260
260
|
end
|
261
261
|
# rubocop:enable Style/ConditionalAssignment
|
262
262
|
end
|
@@ -270,18 +270,18 @@ module OCI
|
|
270
270
|
return true if equal?(other)
|
271
271
|
|
272
272
|
self.class == other.class &&
|
273
|
-
|
273
|
+
id == other.id &&
|
274
274
|
compartment_id == other.compartment_id &&
|
275
|
-
database_edition == other.database_edition &&
|
276
275
|
database_id == other.database_id &&
|
277
|
-
database_size_in_gbs == other.database_size_in_gbs &&
|
278
276
|
display_name == other.display_name &&
|
279
|
-
|
277
|
+
type == other.type &&
|
278
|
+
time_started == other.time_started &&
|
279
|
+
time_ended == other.time_ended &&
|
280
280
|
lifecycle_details == other.lifecycle_details &&
|
281
|
+
availability_domain == other.availability_domain &&
|
281
282
|
lifecycle_state == other.lifecycle_state &&
|
282
|
-
|
283
|
-
|
284
|
-
type == other.type
|
283
|
+
database_edition == other.database_edition &&
|
284
|
+
database_size_in_gbs == other.database_size_in_gbs
|
285
285
|
end
|
286
286
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
287
287
|
|
@@ -297,7 +297,7 @@ module OCI
|
|
297
297
|
# Calculates hash code according to all attributes.
|
298
298
|
# @return [Fixnum] Hash code
|
299
299
|
def hash
|
300
|
-
[
|
300
|
+
[id, compartment_id, database_id, display_name, type, time_started, time_ended, lifecycle_details, availability_domain, lifecycle_state, database_edition, database_size_in_gbs].hash
|
301
301
|
end
|
302
302
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
303
303
|
|