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
@@ -6,11 +6,14 @@ require 'logger'
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
8
|
# An Autonomous Data Warehouse backup.
|
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
9
|
#
|
13
10
|
class Database::Models::AutonomousDataWarehouseBackup # rubocop:disable Metrics/LineLength
|
11
|
+
TYPE_ENUM = [
|
12
|
+
TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
|
13
|
+
TYPE_FULL = 'FULL'.freeze,
|
14
|
+
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
15
|
+
].freeze
|
16
|
+
|
14
17
|
LIFECYCLE_STATE_ENUM = [
|
15
18
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
16
19
|
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
@@ -20,66 +23,60 @@ module OCI
|
|
20
23
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
21
24
|
].freeze
|
22
25
|
|
23
|
-
|
24
|
-
TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
|
25
|
-
TYPE_FULL = 'FULL'.freeze,
|
26
|
-
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
27
|
-
].freeze
|
28
|
-
|
29
|
-
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
|
26
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
|
30
27
|
# @return [String]
|
31
|
-
attr_accessor :
|
28
|
+
attr_accessor :id
|
32
29
|
|
33
30
|
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
34
31
|
# @return [String]
|
35
32
|
attr_accessor :compartment_id
|
36
33
|
|
34
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
|
35
|
+
# @return [String]
|
36
|
+
attr_accessor :autonomous_data_warehouse_id
|
37
|
+
|
37
38
|
# **[Required]** The user-friendly name for the backup. The name does not have to be unique.
|
38
39
|
# @return [String]
|
39
40
|
attr_accessor :display_name
|
40
41
|
|
41
|
-
# **[Required]** The
|
42
|
+
# **[Required]** The type of backup.
|
42
43
|
# @return [String]
|
43
|
-
|
44
|
+
attr_reader :type
|
44
45
|
|
45
46
|
# **[Required]** Indicates whether the backup is user-initiated or automatic.
|
46
47
|
# @return [BOOLEAN]
|
47
48
|
attr_accessor :is_automatic
|
48
49
|
|
49
|
-
#
|
50
|
-
# @return [
|
51
|
-
attr_accessor :
|
52
|
-
|
53
|
-
# **[Required]** The current state of the backup.
|
54
|
-
# @return [String]
|
55
|
-
attr_reader :lifecycle_state
|
50
|
+
# The date and time the backup started.
|
51
|
+
# @return [DateTime]
|
52
|
+
attr_accessor :time_started
|
56
53
|
|
57
54
|
# The date and time the backup completed.
|
58
55
|
# @return [DateTime]
|
59
56
|
attr_accessor :time_ended
|
60
57
|
|
61
|
-
#
|
62
|
-
# @return [
|
63
|
-
attr_accessor :
|
58
|
+
# Additional information about the current lifecycle state.
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :lifecycle_details
|
64
61
|
|
65
|
-
# **[Required]** The
|
62
|
+
# **[Required]** The current state of the backup.
|
66
63
|
# @return [String]
|
67
|
-
attr_reader :
|
64
|
+
attr_reader :lifecycle_state
|
68
65
|
|
69
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
70
67
|
def self.attribute_map
|
71
68
|
{
|
72
69
|
# rubocop:disable Style/SymbolLiteral
|
73
|
-
'
|
70
|
+
'id': :'id',
|
74
71
|
'compartment_id': :'compartmentId',
|
72
|
+
'autonomous_data_warehouse_id': :'autonomousDataWarehouseId',
|
75
73
|
'display_name': :'displayName',
|
76
|
-
'
|
74
|
+
'type': :'type',
|
77
75
|
'is_automatic': :'isAutomatic',
|
78
|
-
'lifecycle_details': :'lifecycleDetails',
|
79
|
-
'lifecycle_state': :'lifecycleState',
|
80
|
-
'time_ended': :'timeEnded',
|
81
76
|
'time_started': :'timeStarted',
|
82
|
-
'
|
77
|
+
'time_ended': :'timeEnded',
|
78
|
+
'lifecycle_details': :'lifecycleDetails',
|
79
|
+
'lifecycle_state': :'lifecycleState'
|
83
80
|
# rubocop:enable Style/SymbolLiteral
|
84
81
|
}
|
85
82
|
end
|
@@ -88,16 +85,16 @@ module OCI
|
|
88
85
|
def self.swagger_types
|
89
86
|
{
|
90
87
|
# rubocop:disable Style/SymbolLiteral
|
91
|
-
'
|
88
|
+
'id': :'String',
|
92
89
|
'compartment_id': :'String',
|
90
|
+
'autonomous_data_warehouse_id': :'String',
|
93
91
|
'display_name': :'String',
|
94
|
-
'
|
92
|
+
'type': :'String',
|
95
93
|
'is_automatic': :'BOOLEAN',
|
96
|
-
'lifecycle_details': :'String',
|
97
|
-
'lifecycle_state': :'String',
|
98
|
-
'time_ended': :'DateTime',
|
99
94
|
'time_started': :'DateTime',
|
100
|
-
'
|
95
|
+
'time_ended': :'DateTime',
|
96
|
+
'lifecycle_details': :'String',
|
97
|
+
'lifecycle_state': :'String'
|
101
98
|
# rubocop:enable Style/SymbolLiteral
|
102
99
|
}
|
103
100
|
end
|
@@ -108,27 +105,20 @@ module OCI
|
|
108
105
|
|
109
106
|
# Initializes the object
|
110
107
|
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
-
# @option attributes [String] :
|
108
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
112
109
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
110
|
+
# @option attributes [String] :autonomous_data_warehouse_id The value to assign to the {#autonomous_data_warehouse_id} property
|
113
111
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
114
|
-
# @option attributes [String] :
|
112
|
+
# @option attributes [String] :type The value to assign to the {#type} property
|
115
113
|
# @option attributes [BOOLEAN] :is_automatic The value to assign to the {#is_automatic} property
|
114
|
+
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
115
|
+
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
116
116
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
117
117
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
118
|
-
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
119
|
-
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
120
|
-
# @option attributes [String] :type The value to assign to the {#type} property
|
121
118
|
def initialize(attributes = {})
|
122
119
|
return unless attributes.is_a?(Hash)
|
123
120
|
|
124
|
-
|
125
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
126
|
-
|
127
|
-
self.autonomous_data_warehouse_id = attributes[:'autonomousDataWarehouseId'] if attributes[:'autonomousDataWarehouseId']
|
128
|
-
|
129
|
-
raise 'You cannot provide both :autonomousDataWarehouseId and :autonomous_data_warehouse_id' if attributes.key?(:'autonomousDataWarehouseId') && attributes.key?(:'autonomous_data_warehouse_id')
|
130
|
-
|
131
|
-
self.autonomous_data_warehouse_id = attributes[:'autonomous_data_warehouse_id'] if attributes[:'autonomous_data_warehouse_id']
|
121
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
132
122
|
|
133
123
|
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
134
124
|
|
@@ -136,13 +126,19 @@ module OCI
|
|
136
126
|
|
137
127
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
138
128
|
|
129
|
+
self.autonomous_data_warehouse_id = attributes[:'autonomousDataWarehouseId'] if attributes[:'autonomousDataWarehouseId']
|
130
|
+
|
131
|
+
raise 'You cannot provide both :autonomousDataWarehouseId and :autonomous_data_warehouse_id' if attributes.key?(:'autonomousDataWarehouseId') && attributes.key?(:'autonomous_data_warehouse_id')
|
132
|
+
|
133
|
+
self.autonomous_data_warehouse_id = attributes[:'autonomous_data_warehouse_id'] if attributes[:'autonomous_data_warehouse_id']
|
134
|
+
|
139
135
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
140
136
|
|
141
137
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
142
138
|
|
143
139
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
144
140
|
|
145
|
-
self.
|
141
|
+
self.type = attributes[:'type'] if attributes[:'type']
|
146
142
|
|
147
143
|
self.is_automatic = attributes[:'isAutomatic'] unless attributes[:'isAutomatic'].nil?
|
148
144
|
|
@@ -150,17 +146,11 @@ module OCI
|
|
150
146
|
|
151
147
|
self.is_automatic = attributes[:'is_automatic'] unless attributes[:'is_automatic'].nil?
|
152
148
|
|
153
|
-
self.
|
154
|
-
|
155
|
-
raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
|
156
|
-
|
157
|
-
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
158
|
-
|
159
|
-
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
149
|
+
self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
|
160
150
|
|
161
|
-
raise 'You cannot provide both :
|
151
|
+
raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
|
162
152
|
|
163
|
-
self.
|
153
|
+
self.time_started = attributes[:'time_started'] if attributes[:'time_started']
|
164
154
|
|
165
155
|
self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
|
166
156
|
|
@@ -168,43 +158,47 @@ module OCI
|
|
168
158
|
|
169
159
|
self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
|
170
160
|
|
171
|
-
self.
|
161
|
+
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
172
162
|
|
173
|
-
raise 'You cannot provide both :
|
163
|
+
raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
|
174
164
|
|
175
|
-
self.
|
165
|
+
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
176
166
|
|
177
|
-
self.
|
167
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
168
|
+
|
169
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
170
|
+
|
171
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
178
172
|
end
|
179
173
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
180
174
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
181
175
|
|
182
176
|
# Custom attribute writer method checking allowed values (enum).
|
183
|
-
# @param [Object]
|
184
|
-
def
|
177
|
+
# @param [Object] type Object to be assigned
|
178
|
+
def type=(type)
|
185
179
|
# rubocop:disable Style/ConditionalAssignment
|
186
|
-
if
|
180
|
+
if type && !TYPE_ENUM.include?(type)
|
187
181
|
# rubocop: disable Metrics/LineLength
|
188
|
-
OCI.logger.debug("Unknown value for '
|
182
|
+
OCI.logger.debug("Unknown value for 'type' [" + type + "]. Mapping to 'TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
189
183
|
# rubocop: enable Metrics/LineLength
|
190
|
-
@
|
184
|
+
@type = TYPE_UNKNOWN_ENUM_VALUE
|
191
185
|
else
|
192
|
-
@
|
186
|
+
@type = type
|
193
187
|
end
|
194
188
|
# rubocop:enable Style/ConditionalAssignment
|
195
189
|
end
|
196
190
|
|
197
191
|
# Custom attribute writer method checking allowed values (enum).
|
198
|
-
# @param [Object]
|
199
|
-
def
|
192
|
+
# @param [Object] lifecycle_state Object to be assigned
|
193
|
+
def lifecycle_state=(lifecycle_state)
|
200
194
|
# rubocop:disable Style/ConditionalAssignment
|
201
|
-
if
|
195
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
202
196
|
# rubocop: disable Metrics/LineLength
|
203
|
-
OCI.logger.debug("Unknown value for '
|
197
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
204
198
|
# rubocop: enable Metrics/LineLength
|
205
|
-
@
|
199
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
206
200
|
else
|
207
|
-
@
|
201
|
+
@lifecycle_state = lifecycle_state
|
208
202
|
end
|
209
203
|
# rubocop:enable Style/ConditionalAssignment
|
210
204
|
end
|
@@ -218,16 +212,16 @@ module OCI
|
|
218
212
|
return true if equal?(other)
|
219
213
|
|
220
214
|
self.class == other.class &&
|
221
|
-
|
215
|
+
id == other.id &&
|
222
216
|
compartment_id == other.compartment_id &&
|
217
|
+
autonomous_data_warehouse_id == other.autonomous_data_warehouse_id &&
|
223
218
|
display_name == other.display_name &&
|
224
|
-
|
219
|
+
type == other.type &&
|
225
220
|
is_automatic == other.is_automatic &&
|
226
|
-
lifecycle_details == other.lifecycle_details &&
|
227
|
-
lifecycle_state == other.lifecycle_state &&
|
228
|
-
time_ended == other.time_ended &&
|
229
221
|
time_started == other.time_started &&
|
230
|
-
|
222
|
+
time_ended == other.time_ended &&
|
223
|
+
lifecycle_details == other.lifecycle_details &&
|
224
|
+
lifecycle_state == other.lifecycle_state
|
231
225
|
end
|
232
226
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
233
227
|
|
@@ -243,7 +237,7 @@ module OCI
|
|
243
237
|
# Calculates hash code according to all attributes.
|
244
238
|
# @return [Fixnum] Hash code
|
245
239
|
def hash
|
246
|
-
[
|
240
|
+
[id, compartment_id, autonomous_data_warehouse_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, lifecycle_state].hash
|
247
241
|
end
|
248
242
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
249
243
|
|
@@ -11,6 +11,12 @@ 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::AutonomousDataWarehouseBackupSummary # rubocop:disable Metrics/LineLength
|
14
|
+
TYPE_ENUM = [
|
15
|
+
TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
|
16
|
+
TYPE_FULL = 'FULL'.freeze,
|
17
|
+
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
18
|
+
].freeze
|
19
|
+
|
14
20
|
LIFECYCLE_STATE_ENUM = [
|
15
21
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
16
22
|
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
@@ -20,66 +26,60 @@ module OCI
|
|
20
26
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
21
27
|
].freeze
|
22
28
|
|
23
|
-
|
24
|
-
TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
|
25
|
-
TYPE_FULL = 'FULL'.freeze,
|
26
|
-
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
27
|
-
].freeze
|
28
|
-
|
29
|
-
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
|
29
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
|
30
30
|
# @return [String]
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :id
|
32
32
|
|
33
33
|
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
34
34
|
# @return [String]
|
35
35
|
attr_accessor :compartment_id
|
36
36
|
|
37
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :autonomous_data_warehouse_id
|
40
|
+
|
37
41
|
# **[Required]** The user-friendly name for the backup. The name does not have to be unique.
|
38
42
|
# @return [String]
|
39
43
|
attr_accessor :display_name
|
40
44
|
|
41
|
-
# **[Required]** The
|
45
|
+
# **[Required]** The type of backup.
|
42
46
|
# @return [String]
|
43
|
-
|
47
|
+
attr_reader :type
|
44
48
|
|
45
49
|
# **[Required]** Indicates whether the backup is user-initiated or automatic.
|
46
50
|
# @return [BOOLEAN]
|
47
51
|
attr_accessor :is_automatic
|
48
52
|
|
49
|
-
#
|
50
|
-
# @return [
|
51
|
-
attr_accessor :
|
52
|
-
|
53
|
-
# **[Required]** The current state of the backup.
|
54
|
-
# @return [String]
|
55
|
-
attr_reader :lifecycle_state
|
53
|
+
# The date and time the backup started.
|
54
|
+
# @return [DateTime]
|
55
|
+
attr_accessor :time_started
|
56
56
|
|
57
57
|
# The date and time the backup completed.
|
58
58
|
# @return [DateTime]
|
59
59
|
attr_accessor :time_ended
|
60
60
|
|
61
|
-
#
|
62
|
-
# @return [
|
63
|
-
attr_accessor :
|
61
|
+
# Additional information about the current lifecycle state.
|
62
|
+
# @return [String]
|
63
|
+
attr_accessor :lifecycle_details
|
64
64
|
|
65
|
-
# **[Required]** The
|
65
|
+
# **[Required]** The current state of the backup.
|
66
66
|
# @return [String]
|
67
|
-
attr_reader :
|
67
|
+
attr_reader :lifecycle_state
|
68
68
|
|
69
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|
70
70
|
def self.attribute_map
|
71
71
|
{
|
72
72
|
# rubocop:disable Style/SymbolLiteral
|
73
|
-
'
|
73
|
+
'id': :'id',
|
74
74
|
'compartment_id': :'compartmentId',
|
75
|
+
'autonomous_data_warehouse_id': :'autonomousDataWarehouseId',
|
75
76
|
'display_name': :'displayName',
|
76
|
-
'
|
77
|
+
'type': :'type',
|
77
78
|
'is_automatic': :'isAutomatic',
|
78
|
-
'lifecycle_details': :'lifecycleDetails',
|
79
|
-
'lifecycle_state': :'lifecycleState',
|
80
|
-
'time_ended': :'timeEnded',
|
81
79
|
'time_started': :'timeStarted',
|
82
|
-
'
|
80
|
+
'time_ended': :'timeEnded',
|
81
|
+
'lifecycle_details': :'lifecycleDetails',
|
82
|
+
'lifecycle_state': :'lifecycleState'
|
83
83
|
# rubocop:enable Style/SymbolLiteral
|
84
84
|
}
|
85
85
|
end
|
@@ -88,16 +88,16 @@ module OCI
|
|
88
88
|
def self.swagger_types
|
89
89
|
{
|
90
90
|
# rubocop:disable Style/SymbolLiteral
|
91
|
-
'
|
91
|
+
'id': :'String',
|
92
92
|
'compartment_id': :'String',
|
93
|
+
'autonomous_data_warehouse_id': :'String',
|
93
94
|
'display_name': :'String',
|
94
|
-
'
|
95
|
+
'type': :'String',
|
95
96
|
'is_automatic': :'BOOLEAN',
|
96
|
-
'lifecycle_details': :'String',
|
97
|
-
'lifecycle_state': :'String',
|
98
|
-
'time_ended': :'DateTime',
|
99
97
|
'time_started': :'DateTime',
|
100
|
-
'
|
98
|
+
'time_ended': :'DateTime',
|
99
|
+
'lifecycle_details': :'String',
|
100
|
+
'lifecycle_state': :'String'
|
101
101
|
# rubocop:enable Style/SymbolLiteral
|
102
102
|
}
|
103
103
|
end
|
@@ -108,27 +108,23 @@ module OCI
|
|
108
108
|
|
109
109
|
# Initializes the object
|
110
110
|
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
-
# @option attributes [String] :
|
111
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
112
112
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
113
|
+
# @option attributes [String] :autonomous_data_warehouse_id The value to assign to the {#autonomous_data_warehouse_id} property
|
113
114
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
114
|
-
# @option attributes [String] :
|
115
|
+
# @option attributes [String] :type The value to assign to the {#type} property
|
115
116
|
# @option attributes [BOOLEAN] :is_automatic The value to assign to the {#is_automatic} property
|
117
|
+
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
118
|
+
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
116
119
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
117
120
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
118
|
-
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
119
|
-
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
120
|
-
# @option attributes [String] :type The value to assign to the {#type} property
|
121
121
|
def initialize(attributes = {})
|
122
122
|
return unless attributes.is_a?(Hash)
|
123
123
|
|
124
124
|
# convert string to symbol for hash key
|
125
125
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
126
126
|
|
127
|
-
self.
|
128
|
-
|
129
|
-
raise 'You cannot provide both :autonomousDataWarehouseId and :autonomous_data_warehouse_id' if attributes.key?(:'autonomousDataWarehouseId') && attributes.key?(:'autonomous_data_warehouse_id')
|
130
|
-
|
131
|
-
self.autonomous_data_warehouse_id = attributes[:'autonomous_data_warehouse_id'] if attributes[:'autonomous_data_warehouse_id']
|
127
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
132
128
|
|
133
129
|
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
134
130
|
|
@@ -136,13 +132,19 @@ module OCI
|
|
136
132
|
|
137
133
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
138
134
|
|
135
|
+
self.autonomous_data_warehouse_id = attributes[:'autonomousDataWarehouseId'] if attributes[:'autonomousDataWarehouseId']
|
136
|
+
|
137
|
+
raise 'You cannot provide both :autonomousDataWarehouseId and :autonomous_data_warehouse_id' if attributes.key?(:'autonomousDataWarehouseId') && attributes.key?(:'autonomous_data_warehouse_id')
|
138
|
+
|
139
|
+
self.autonomous_data_warehouse_id = attributes[:'autonomous_data_warehouse_id'] if attributes[:'autonomous_data_warehouse_id']
|
140
|
+
|
139
141
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
140
142
|
|
141
143
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
142
144
|
|
143
145
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
144
146
|
|
145
|
-
self.
|
147
|
+
self.type = attributes[:'type'] if attributes[:'type']
|
146
148
|
|
147
149
|
self.is_automatic = attributes[:'isAutomatic'] unless attributes[:'isAutomatic'].nil?
|
148
150
|
|
@@ -150,17 +152,11 @@ module OCI
|
|
150
152
|
|
151
153
|
self.is_automatic = attributes[:'is_automatic'] unless attributes[:'is_automatic'].nil?
|
152
154
|
|
153
|
-
self.
|
154
|
-
|
155
|
-
raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
|
156
|
-
|
157
|
-
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
158
|
-
|
159
|
-
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
155
|
+
self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
|
160
156
|
|
161
|
-
raise 'You cannot provide both :
|
157
|
+
raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
|
162
158
|
|
163
|
-
self.
|
159
|
+
self.time_started = attributes[:'time_started'] if attributes[:'time_started']
|
164
160
|
|
165
161
|
self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
|
166
162
|
|
@@ -168,43 +164,47 @@ module OCI
|
|
168
164
|
|
169
165
|
self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
|
170
166
|
|
171
|
-
self.
|
167
|
+
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
172
168
|
|
173
|
-
raise 'You cannot provide both :
|
169
|
+
raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
|
174
170
|
|
175
|
-
self.
|
171
|
+
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
176
172
|
|
177
|
-
self.
|
173
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
174
|
+
|
175
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
176
|
+
|
177
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
178
178
|
end
|
179
179
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
180
180
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
181
181
|
|
182
182
|
# Custom attribute writer method checking allowed values (enum).
|
183
|
-
# @param [Object]
|
184
|
-
def
|
183
|
+
# @param [Object] type Object to be assigned
|
184
|
+
def type=(type)
|
185
185
|
# rubocop:disable Style/ConditionalAssignment
|
186
|
-
if
|
186
|
+
if type && !TYPE_ENUM.include?(type)
|
187
187
|
# rubocop: disable Metrics/LineLength
|
188
|
-
OCI.logger.debug("Unknown value for '
|
188
|
+
OCI.logger.debug("Unknown value for 'type' [" + type + "]. Mapping to 'TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
189
189
|
# rubocop: enable Metrics/LineLength
|
190
|
-
@
|
190
|
+
@type = TYPE_UNKNOWN_ENUM_VALUE
|
191
191
|
else
|
192
|
-
@
|
192
|
+
@type = type
|
193
193
|
end
|
194
194
|
# rubocop:enable Style/ConditionalAssignment
|
195
195
|
end
|
196
196
|
|
197
197
|
# Custom attribute writer method checking allowed values (enum).
|
198
|
-
# @param [Object]
|
199
|
-
def
|
198
|
+
# @param [Object] lifecycle_state Object to be assigned
|
199
|
+
def lifecycle_state=(lifecycle_state)
|
200
200
|
# rubocop:disable Style/ConditionalAssignment
|
201
|
-
if
|
201
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
202
202
|
# rubocop: disable Metrics/LineLength
|
203
|
-
OCI.logger.debug("Unknown value for '
|
203
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
204
204
|
# rubocop: enable Metrics/LineLength
|
205
|
-
@
|
205
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
206
206
|
else
|
207
|
-
@
|
207
|
+
@lifecycle_state = lifecycle_state
|
208
208
|
end
|
209
209
|
# rubocop:enable Style/ConditionalAssignment
|
210
210
|
end
|
@@ -218,16 +218,16 @@ module OCI
|
|
218
218
|
return true if equal?(other)
|
219
219
|
|
220
220
|
self.class == other.class &&
|
221
|
-
|
221
|
+
id == other.id &&
|
222
222
|
compartment_id == other.compartment_id &&
|
223
|
+
autonomous_data_warehouse_id == other.autonomous_data_warehouse_id &&
|
223
224
|
display_name == other.display_name &&
|
224
|
-
|
225
|
+
type == other.type &&
|
225
226
|
is_automatic == other.is_automatic &&
|
226
|
-
lifecycle_details == other.lifecycle_details &&
|
227
|
-
lifecycle_state == other.lifecycle_state &&
|
228
|
-
time_ended == other.time_ended &&
|
229
227
|
time_started == other.time_started &&
|
230
|
-
|
228
|
+
time_ended == other.time_ended &&
|
229
|
+
lifecycle_details == other.lifecycle_details &&
|
230
|
+
lifecycle_state == other.lifecycle_state
|
231
231
|
end
|
232
232
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
233
233
|
|
@@ -243,7 +243,7 @@ module OCI
|
|
243
243
|
# Calculates hash code according to all attributes.
|
244
244
|
# @return [Fixnum] Hash code
|
245
245
|
def hash
|
246
|
-
[
|
246
|
+
[id, compartment_id, autonomous_data_warehouse_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, lifecycle_state].hash
|
247
247
|
end
|
248
248
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
249
249
|
|