oci 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
  4. data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
  5. data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
  6. data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
  7. data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
  8. data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
  9. data/lib/oci/core/models/drg_attachment.rb +4 -1
  10. data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
  11. data/lib/oci/core/models/launch_instance_details.rb +18 -4
  12. data/lib/oci/core/models/launch_options.rb +18 -4
  13. data/lib/oci/core/models/local_peering_gateway.rb +4 -1
  14. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
  15. data/lib/oci/core/models/service.rb +1 -1
  16. data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
  17. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
  18. data/lib/oci/core/models/volume_attachment.rb +18 -4
  19. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  20. data/lib/oci/core/virtual_network_client.rb +1 -1
  21. data/lib/oci/database/database.rb +1 -0
  22. data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
  23. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
  24. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
  25. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
  26. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
  27. data/lib/oci/database/models/autonomous_database.rb +132 -137
  28. data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
  29. data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
  30. data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
  31. data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
  32. data/lib/oci/database/models/backup.rb +102 -109
  33. data/lib/oci/database/models/backup_summary.rb +101 -101
  34. data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
  35. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
  36. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
  37. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
  38. data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
  39. data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
  40. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
  41. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
  42. data/lib/oci/database/models/create_database_details.rb +62 -62
  43. data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
  44. data/lib/oci/database/models/create_db_home_details.rb +21 -21
  45. data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
  46. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
  47. data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
  48. data/lib/oci/database/models/data_guard_association.rb +132 -144
  49. data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
  50. data/lib/oci/database/models/database.rb +100 -108
  51. data/lib/oci/database/models/database_summary.rb +99 -99
  52. data/lib/oci/database/models/db_home.rb +39 -51
  53. data/lib/oci/database/models/db_home_summary.rb +39 -39
  54. data/lib/oci/database/models/db_node.rb +50 -58
  55. data/lib/oci/database/models/db_node_summary.rb +49 -49
  56. data/lib/oci/database/models/db_system.rb +295 -300
  57. data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
  58. data/lib/oci/database/models/db_system_summary.rb +295 -280
  59. data/lib/oci/database/models/db_version_summary.rb +28 -14
  60. data/lib/oci/database/models/external_backup_job.rb +34 -34
  61. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  62. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  63. data/lib/oci/database/models/launch_db_system_base.rb +160 -145
  64. data/lib/oci/database/models/launch_db_system_details.rb +59 -55
  65. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
  66. data/lib/oci/database/models/patch.rb +45 -53
  67. data/lib/oci/database/models/patch_details.rb +14 -14
  68. data/lib/oci/database/models/patch_history_entry.rb +48 -51
  69. data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
  70. data/lib/oci/database/models/patch_summary.rb +44 -44
  71. data/lib/oci/database/models/restore_database_details.rb +15 -15
  72. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
  73. data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
  74. data/lib/oci/database/models/update_database_details.rb +22 -22
  75. data/lib/oci/database/models/update_db_system_details.rb +38 -38
  76. data/lib/oci/dns/dns.rb +1 -0
  77. data/lib/oci/dns/dns_client.rb +14 -13
  78. data/lib/oci/dns/models/create_zone_details.rb +39 -2
  79. data/lib/oci/dns/models/external_master.rb +3 -1
  80. data/lib/oci/dns/models/nameserver.rb +149 -0
  81. data/lib/oci/dns/models/record.rb +3 -1
  82. data/lib/oci/dns/models/record_details.rb +3 -1
  83. data/lib/oci/dns/models/record_operation.rb +3 -1
  84. data/lib/oci/dns/models/tsig.rb +3 -2
  85. data/lib/oci/dns/models/update_zone_details.rb +40 -2
  86. data/lib/oci/dns/models/zone.rb +54 -6
  87. data/lib/oci/dns/models/zone_summary.rb +79 -5
  88. data/lib/oci/identity/identity.rb +4 -0
  89. data/lib/oci/identity/identity_client.rb +176 -0
  90. data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
  91. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
  92. data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
  93. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
  94. data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
  95. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
  96. data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
  97. data/lib/oci/identity/models/user.rb +42 -4
  98. data/lib/oci/identity/models/user_capabilities.rb +209 -0
  99. data/lib/oci/regions.rb +10 -9
  100. data/lib/oci/version.rb +1 -1
  101. metadata +8 -2
@@ -14,20 +14,20 @@ module OCI
14
14
  ACTION_PRECHECK = 'PRECHECK'.freeze
15
15
  ].freeze
16
16
 
17
- # The action to perform on the patch.
18
- # @return [String]
19
- attr_reader :action
20
-
21
17
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
22
18
  # @return [String]
23
19
  attr_accessor :patch_id
24
20
 
21
+ # The action to perform on the patch.
22
+ # @return [String]
23
+ attr_reader :action
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
28
  # rubocop:disable Style/SymbolLiteral
29
- 'action': :'action',
30
- 'patch_id': :'patchId'
29
+ 'patch_id': :'patchId',
30
+ 'action': :'action'
31
31
  # rubocop:enable Style/SymbolLiteral
32
32
  }
33
33
  end
@@ -36,8 +36,8 @@ module OCI
36
36
  def self.swagger_types
37
37
  {
38
38
  # rubocop:disable Style/SymbolLiteral
39
- 'action': :'String',
40
- 'patch_id': :'String'
39
+ 'patch_id': :'String',
40
+ 'action': :'String'
41
41
  # rubocop:enable Style/SymbolLiteral
42
42
  }
43
43
  end
@@ -48,21 +48,21 @@ module OCI
48
48
 
49
49
  # Initializes the object
50
50
  # @param [Hash] attributes Model attributes in the form of hash
51
- # @option attributes [String] :action The value to assign to the {#action} property
52
51
  # @option attributes [String] :patch_id The value to assign to the {#patch_id} property
52
+ # @option attributes [String] :action The value to assign to the {#action} property
53
53
  def initialize(attributes = {})
54
54
  return unless attributes.is_a?(Hash)
55
55
 
56
56
  # convert string to symbol for hash key
57
57
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
58
 
59
- self.action = attributes[:'action'] if attributes[:'action']
60
-
61
59
  self.patch_id = attributes[:'patchId'] if attributes[:'patchId']
62
60
 
63
61
  raise 'You cannot provide both :patchId and :patch_id' if attributes.key?(:'patchId') && attributes.key?(:'patch_id')
64
62
 
65
63
  self.patch_id = attributes[:'patch_id'] if attributes[:'patch_id']
64
+
65
+ self.action = attributes[:'action'] if attributes[:'action']
66
66
  end
67
67
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
68
68
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -86,8 +86,8 @@ module OCI
86
86
  return true if equal?(other)
87
87
 
88
88
  self.class == other.class &&
89
- action == other.action &&
90
- patch_id == other.patch_id
89
+ patch_id == other.patch_id &&
90
+ action == other.action
91
91
  end
92
92
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
93
93
 
@@ -103,7 +103,7 @@ module OCI
103
103
  # Calculates hash code according to all attributes.
104
104
  # @return [Fixnum] Hash code
105
105
  def hash
106
- [action, patch_id].hash
106
+ [patch_id, action].hash
107
107
  end
108
108
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
109
109
 
@@ -5,7 +5,7 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # The record of a patch action on a specified target.
8
+ # PatchHistoryEntry model.
9
9
  class Database::Models::PatchHistoryEntry # rubocop:disable Metrics/LineLength
10
10
  ACTION_ENUM = [
11
11
  ACTION_APPLY = 'APPLY'.freeze,
@@ -20,13 +20,21 @@ module OCI
20
20
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
21
21
  ].freeze
22
22
 
23
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry.
24
+ # @return [String]
25
+ attr_accessor :id
26
+
27
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
28
+ # @return [String]
29
+ attr_accessor :patch_id
30
+
23
31
  # The action being performed or was completed.
24
32
  # @return [String]
25
33
  attr_reader :action
26
34
 
27
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry.
35
+ # **[Required]** The current state of the action.
28
36
  # @return [String]
29
- attr_accessor :id
37
+ attr_reader :lifecycle_state
30
38
 
31
39
  # A descriptive text associated with the lifecycleState.
32
40
  # Typically contains additional displayable text.
@@ -34,33 +42,25 @@ module OCI
34
42
  # @return [String]
35
43
  attr_accessor :lifecycle_details
36
44
 
37
- # **[Required]** The current state of the action.
38
- # @return [String]
39
- attr_reader :lifecycle_state
40
-
41
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
42
- # @return [String]
43
- attr_accessor :patch_id
45
+ # **[Required]** The date and time when the patch action started.
46
+ # @return [DateTime]
47
+ attr_accessor :time_started
44
48
 
45
49
  # The date and time when the patch action completed.
46
50
  # @return [DateTime]
47
51
  attr_accessor :time_ended
48
52
 
49
- # **[Required]** The date and time when the patch action started.
50
- # @return [DateTime]
51
- attr_accessor :time_started
52
-
53
53
  # Attribute mapping from ruby-style variable name to JSON key.
54
54
  def self.attribute_map
55
55
  {
56
56
  # rubocop:disable Style/SymbolLiteral
57
- 'action': :'action',
58
57
  'id': :'id',
59
- 'lifecycle_details': :'lifecycleDetails',
60
- 'lifecycle_state': :'lifecycleState',
61
58
  'patch_id': :'patchId',
62
- 'time_ended': :'timeEnded',
63
- 'time_started': :'timeStarted'
59
+ 'action': :'action',
60
+ 'lifecycle_state': :'lifecycleState',
61
+ 'lifecycle_details': :'lifecycleDetails',
62
+ 'time_started': :'timeStarted',
63
+ 'time_ended': :'timeEnded'
64
64
  # rubocop:enable Style/SymbolLiteral
65
65
  }
66
66
  end
@@ -69,13 +69,13 @@ module OCI
69
69
  def self.swagger_types
70
70
  {
71
71
  # rubocop:disable Style/SymbolLiteral
72
- 'action': :'String',
73
72
  'id': :'String',
74
- 'lifecycle_details': :'String',
75
- 'lifecycle_state': :'String',
76
73
  'patch_id': :'String',
77
- 'time_ended': :'DateTime',
78
- 'time_started': :'DateTime'
74
+ 'action': :'String',
75
+ 'lifecycle_state': :'String',
76
+ 'lifecycle_details': :'String',
77
+ 'time_started': :'DateTime',
78
+ 'time_ended': :'DateTime'
79
79
  # rubocop:enable Style/SymbolLiteral
80
80
  }
81
81
  end
@@ -86,28 +86,25 @@ module OCI
86
86
 
87
87
  # Initializes the object
88
88
  # @param [Hash] attributes Model attributes in the form of hash
89
- # @option attributes [String] :action The value to assign to the {#action} property
90
89
  # @option attributes [String] :id The value to assign to the {#id} property
91
- # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
92
- # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
93
90
  # @option attributes [String] :patch_id The value to assign to the {#patch_id} property
94
- # @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
91
+ # @option attributes [String] :action The value to assign to the {#action} property
92
+ # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
93
+ # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
95
94
  # @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
95
+ # @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
96
96
  def initialize(attributes = {})
97
97
  return unless attributes.is_a?(Hash)
98
98
 
99
- # convert string to symbol for hash key
100
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
101
-
102
- self.action = attributes[:'action'] if attributes[:'action']
103
-
104
99
  self.id = attributes[:'id'] if attributes[:'id']
105
100
 
106
- self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
101
+ self.patch_id = attributes[:'patchId'] if attributes[:'patchId']
107
102
 
108
- raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
103
+ raise 'You cannot provide both :patchId and :patch_id' if attributes.key?(:'patchId') && attributes.key?(:'patch_id')
109
104
 
110
- self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
105
+ self.patch_id = attributes[:'patch_id'] if attributes[:'patch_id']
106
+
107
+ self.action = attributes[:'action'] if attributes[:'action']
111
108
 
112
109
  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
113
110
 
@@ -115,23 +112,23 @@ module OCI
115
112
 
116
113
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
117
114
 
118
- self.patch_id = attributes[:'patchId'] if attributes[:'patchId']
119
-
120
- raise 'You cannot provide both :patchId and :patch_id' if attributes.key?(:'patchId') && attributes.key?(:'patch_id')
121
-
122
- self.patch_id = attributes[:'patch_id'] if attributes[:'patch_id']
123
-
124
- self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
115
+ self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
125
116
 
126
- raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
117
+ raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
127
118
 
128
- self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
119
+ self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
129
120
 
130
121
  self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
131
122
 
132
123
  raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
133
124
 
134
125
  self.time_started = attributes[:'time_started'] if attributes[:'time_started']
126
+
127
+ self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
128
+
129
+ raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
130
+
131
+ self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
135
132
  end
136
133
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
137
134
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -175,13 +172,13 @@ module OCI
175
172
  return true if equal?(other)
176
173
 
177
174
  self.class == other.class &&
178
- action == other.action &&
179
175
  id == other.id &&
180
- lifecycle_details == other.lifecycle_details &&
181
- lifecycle_state == other.lifecycle_state &&
182
176
  patch_id == other.patch_id &&
183
- time_ended == other.time_ended &&
184
- time_started == other.time_started
177
+ action == other.action &&
178
+ lifecycle_state == other.lifecycle_state &&
179
+ lifecycle_details == other.lifecycle_details &&
180
+ time_started == other.time_started &&
181
+ time_ended == other.time_ended
185
182
  end
186
183
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
187
184
 
@@ -197,7 +194,7 @@ module OCI
197
194
  # Calculates hash code according to all attributes.
198
195
  # @return [Fixnum] Hash code
199
196
  def hash
200
- [action, id, lifecycle_details, lifecycle_state, patch_id, time_ended, time_started].hash
197
+ [id, patch_id, action, lifecycle_state, lifecycle_details, time_started, time_ended].hash
201
198
  end
202
199
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
203
200
 
@@ -20,13 +20,21 @@ module OCI
20
20
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
21
21
  ].freeze
22
22
 
23
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry.
24
+ # @return [String]
25
+ attr_accessor :id
26
+
27
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
28
+ # @return [String]
29
+ attr_accessor :patch_id
30
+
23
31
  # The action being performed or was completed.
24
32
  # @return [String]
25
33
  attr_reader :action
26
34
 
27
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry.
35
+ # **[Required]** The current state of the action.
28
36
  # @return [String]
29
- attr_accessor :id
37
+ attr_reader :lifecycle_state
30
38
 
31
39
  # A descriptive text associated with the lifecycleState.
32
40
  # Typically contains additional displayable text.
@@ -34,33 +42,25 @@ module OCI
34
42
  # @return [String]
35
43
  attr_accessor :lifecycle_details
36
44
 
37
- # **[Required]** The current state of the action.
38
- # @return [String]
39
- attr_reader :lifecycle_state
40
-
41
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
42
- # @return [String]
43
- attr_accessor :patch_id
45
+ # **[Required]** The date and time when the patch action started.
46
+ # @return [DateTime]
47
+ attr_accessor :time_started
44
48
 
45
49
  # The date and time when the patch action completed.
46
50
  # @return [DateTime]
47
51
  attr_accessor :time_ended
48
52
 
49
- # **[Required]** The date and time when the patch action started.
50
- # @return [DateTime]
51
- attr_accessor :time_started
52
-
53
53
  # Attribute mapping from ruby-style variable name to JSON key.
54
54
  def self.attribute_map
55
55
  {
56
56
  # rubocop:disable Style/SymbolLiteral
57
- 'action': :'action',
58
57
  'id': :'id',
59
- 'lifecycle_details': :'lifecycleDetails',
60
- 'lifecycle_state': :'lifecycleState',
61
58
  'patch_id': :'patchId',
62
- 'time_ended': :'timeEnded',
63
- 'time_started': :'timeStarted'
59
+ 'action': :'action',
60
+ 'lifecycle_state': :'lifecycleState',
61
+ 'lifecycle_details': :'lifecycleDetails',
62
+ 'time_started': :'timeStarted',
63
+ 'time_ended': :'timeEnded'
64
64
  # rubocop:enable Style/SymbolLiteral
65
65
  }
66
66
  end
@@ -69,13 +69,13 @@ module OCI
69
69
  def self.swagger_types
70
70
  {
71
71
  # rubocop:disable Style/SymbolLiteral
72
- 'action': :'String',
73
72
  'id': :'String',
74
- 'lifecycle_details': :'String',
75
- 'lifecycle_state': :'String',
76
73
  'patch_id': :'String',
77
- 'time_ended': :'DateTime',
78
- 'time_started': :'DateTime'
74
+ 'action': :'String',
75
+ 'lifecycle_state': :'String',
76
+ 'lifecycle_details': :'String',
77
+ 'time_started': :'DateTime',
78
+ 'time_ended': :'DateTime'
79
79
  # rubocop:enable Style/SymbolLiteral
80
80
  }
81
81
  end
@@ -86,28 +86,28 @@ module OCI
86
86
 
87
87
  # Initializes the object
88
88
  # @param [Hash] attributes Model attributes in the form of hash
89
- # @option attributes [String] :action The value to assign to the {#action} property
90
89
  # @option attributes [String] :id The value to assign to the {#id} property
91
- # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
92
- # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
93
90
  # @option attributes [String] :patch_id The value to assign to the {#patch_id} property
94
- # @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
91
+ # @option attributes [String] :action The value to assign to the {#action} property
92
+ # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
93
+ # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
95
94
  # @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
95
+ # @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
96
96
  def initialize(attributes = {})
97
97
  return unless attributes.is_a?(Hash)
98
98
 
99
99
  # convert string to symbol for hash key
100
100
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
101
101
 
102
- self.action = attributes[:'action'] if attributes[:'action']
103
-
104
102
  self.id = attributes[:'id'] if attributes[:'id']
105
103
 
106
- self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
104
+ self.patch_id = attributes[:'patchId'] if attributes[:'patchId']
107
105
 
108
- raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
106
+ raise 'You cannot provide both :patchId and :patch_id' if attributes.key?(:'patchId') && attributes.key?(:'patch_id')
109
107
 
110
- self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
108
+ self.patch_id = attributes[:'patch_id'] if attributes[:'patch_id']
109
+
110
+ self.action = attributes[:'action'] if attributes[:'action']
111
111
 
112
112
  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
113
113
 
@@ -115,23 +115,23 @@ module OCI
115
115
 
116
116
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
117
117
 
118
- self.patch_id = attributes[:'patchId'] if attributes[:'patchId']
119
-
120
- raise 'You cannot provide both :patchId and :patch_id' if attributes.key?(:'patchId') && attributes.key?(:'patch_id')
121
-
122
- self.patch_id = attributes[:'patch_id'] if attributes[:'patch_id']
123
-
124
- self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
118
+ self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
125
119
 
126
- raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
120
+ raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
127
121
 
128
- self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
122
+ self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
129
123
 
130
124
  self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
131
125
 
132
126
  raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
133
127
 
134
128
  self.time_started = attributes[:'time_started'] if attributes[:'time_started']
129
+
130
+ self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
131
+
132
+ raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended')
133
+
134
+ self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
135
135
  end
136
136
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
137
137
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -175,13 +175,13 @@ module OCI
175
175
  return true if equal?(other)
176
176
 
177
177
  self.class == other.class &&
178
- action == other.action &&
179
178
  id == other.id &&
180
- lifecycle_details == other.lifecycle_details &&
181
- lifecycle_state == other.lifecycle_state &&
182
179
  patch_id == other.patch_id &&
183
- time_ended == other.time_ended &&
184
- time_started == other.time_started
180
+ action == other.action &&
181
+ lifecycle_state == other.lifecycle_state &&
182
+ lifecycle_details == other.lifecycle_details &&
183
+ time_started == other.time_started &&
184
+ time_ended == other.time_ended
185
185
  end
186
186
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
187
187
 
@@ -197,7 +197,7 @@ module OCI
197
197
  # Calculates hash code according to all attributes.
198
198
  # @return [Fixnum] Hash code
199
199
  def hash
200
- [action, id, lifecycle_details, lifecycle_state, patch_id, time_ended, time_started].hash
200
+ [id, patch_id, action, lifecycle_state, lifecycle_details, time_started, time_ended].hash
201
201
  end
202
202
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
203
203