oci 2.5.2 → 2.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,231 @@
1
+ # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+ require_relative 'create_autonomous_database_base'
5
+
6
+ # rubocop:disable Lint/UnneededCopDisableDirective
7
+ module OCI
8
+ # Details to create an Oracle Autonomous Database by cloning an existing Autonomous Database.
9
+ #
10
+ class Database::Models::CreateAutonomousDatabaseCloneDetails < Database::Models::CreateAutonomousDatabaseBase # rubocop:disable Metrics/LineLength
11
+ CLONE_TYPE_ENUM = [
12
+ CLONE_TYPE_FULL = 'FULL'.freeze,
13
+ CLONE_TYPE_METADATA = 'METADATA'.freeze
14
+ ].freeze
15
+
16
+ # **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that you will clone to create a new Autonomous Database.
17
+ # @return [String]
18
+ attr_accessor :source_id
19
+
20
+ # **[Required]** The clone type.
21
+ # @return [String]
22
+ attr_reader :clone_type
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ # rubocop:disable Style/SymbolLiteral
28
+ 'compartment_id': :'compartmentId',
29
+ 'db_name': :'dbName',
30
+ 'cpu_core_count': :'cpuCoreCount',
31
+ 'db_workload': :'dbWorkload',
32
+ 'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
33
+ 'admin_password': :'adminPassword',
34
+ 'display_name': :'displayName',
35
+ 'license_model': :'licenseModel',
36
+ 'freeform_tags': :'freeformTags',
37
+ 'defined_tags': :'definedTags',
38
+ 'source': :'source',
39
+ 'source_id': :'sourceId',
40
+ 'clone_type': :'cloneType'
41
+ # rubocop:enable Style/SymbolLiteral
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.swagger_types
47
+ {
48
+ # rubocop:disable Style/SymbolLiteral
49
+ 'compartment_id': :'String',
50
+ 'db_name': :'String',
51
+ 'cpu_core_count': :'Integer',
52
+ 'db_workload': :'String',
53
+ 'data_storage_size_in_tbs': :'Integer',
54
+ 'admin_password': :'String',
55
+ 'display_name': :'String',
56
+ 'license_model': :'String',
57
+ 'freeform_tags': :'Hash<String, String>',
58
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
59
+ 'source': :'String',
60
+ 'source_id': :'String',
61
+ 'clone_type': :'String'
62
+ # rubocop:enable Style/SymbolLiteral
63
+ }
64
+ end
65
+
66
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
67
+ # rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
68
+
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ # @option attributes [String] :compartment_id The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#compartment_id #compartment_id} proprety
73
+ # @option attributes [String] :db_name The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#db_name #db_name} proprety
74
+ # @option attributes [Integer] :cpu_core_count The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#cpu_core_count #cpu_core_count} proprety
75
+ # @option attributes [String] :db_workload The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#db_workload #db_workload} proprety
76
+ # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#data_storage_size_in_tbs #data_storage_size_in_tbs} proprety
77
+ # @option attributes [String] :admin_password The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#admin_password #admin_password} proprety
78
+ # @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#display_name #display_name} proprety
79
+ # @option attributes [String] :license_model The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#license_model #license_model} proprety
80
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#freeform_tags #freeform_tags} proprety
81
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#defined_tags #defined_tags} proprety
82
+ # @option attributes [String] :source_id The value to assign to the {#source_id} property
83
+ # @option attributes [String] :clone_type The value to assign to the {#clone_type} property
84
+ def initialize(attributes = {})
85
+ return unless attributes.is_a?(Hash)
86
+
87
+ attributes['source'] = 'DATABASE'
88
+
89
+ super(attributes)
90
+
91
+ # convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
93
+
94
+ self.source_id = attributes[:'sourceId'] if attributes[:'sourceId']
95
+
96
+ raise 'You cannot provide both :sourceId and :source_id' if attributes.key?(:'sourceId') && attributes.key?(:'source_id')
97
+
98
+ self.source_id = attributes[:'source_id'] if attributes[:'source_id']
99
+
100
+ self.clone_type = attributes[:'cloneType'] if attributes[:'cloneType']
101
+
102
+ raise 'You cannot provide both :cloneType and :clone_type' if attributes.key?(:'cloneType') && attributes.key?(:'clone_type')
103
+
104
+ self.clone_type = attributes[:'clone_type'] if attributes[:'clone_type']
105
+ end
106
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
107
+ # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
108
+
109
+ # Custom attribute writer method checking allowed values (enum).
110
+ # @param [Object] clone_type Object to be assigned
111
+ def clone_type=(clone_type)
112
+ # rubocop: disable Metrics/LineLength
113
+ raise "Invalid value for 'clone_type': this must be one of the values in CLONE_TYPE_ENUM." if clone_type && !CLONE_TYPE_ENUM.include?(clone_type)
114
+
115
+ # rubocop: enable Metrics/LineLength
116
+ @clone_type = clone_type
117
+ end
118
+
119
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
120
+
121
+
122
+ # Checks equality by comparing each attribute.
123
+ # @param [Object] other the other object to be compared
124
+ def ==(other)
125
+ return true if equal?(other)
126
+
127
+ self.class == other.class &&
128
+ compartment_id == other.compartment_id &&
129
+ db_name == other.db_name &&
130
+ cpu_core_count == other.cpu_core_count &&
131
+ db_workload == other.db_workload &&
132
+ data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
133
+ admin_password == other.admin_password &&
134
+ display_name == other.display_name &&
135
+ license_model == other.license_model &&
136
+ freeform_tags == other.freeform_tags &&
137
+ defined_tags == other.defined_tags &&
138
+ source == other.source &&
139
+ source_id == other.source_id &&
140
+ clone_type == other.clone_type
141
+ end
142
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
143
+
144
+ # @see the `==` method
145
+ # @param [Object] other the other object to be compared
146
+ def eql?(other)
147
+ self == other
148
+ end
149
+
150
+ # rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
151
+
152
+
153
+ # Calculates hash code according to all attributes.
154
+ # @return [Fixnum] Hash code
155
+ def hash
156
+ [compartment_id, db_name, cpu_core_count, db_workload, data_storage_size_in_tbs, admin_password, display_name, license_model, freeform_tags, defined_tags, source, source_id, clone_type].hash
157
+ end
158
+ # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
159
+
160
+ # rubocop:disable Metrics/AbcSize, Layout/EmptyLines
161
+
162
+
163
+ # Builds the object from hash
164
+ # @param [Hash] attributes Model attributes in the form of hash
165
+ # @return [Object] Returns the model itself
166
+ def build_from_hash(attributes)
167
+ return nil unless attributes.is_a?(Hash)
168
+
169
+ self.class.swagger_types.each_pair do |key, type|
170
+ if type =~ /^Array<(.*)>/i
171
+ # check to ensure the input is an array given that the the attribute
172
+ # is documented as an array but the input is not
173
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
174
+ public_method("#{key}=").call(
175
+ attributes[self.class.attribute_map[key]]
176
+ .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
177
+ )
178
+ end
179
+ elsif !attributes[self.class.attribute_map[key]].nil?
180
+ public_method("#{key}=").call(
181
+ OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
182
+ )
183
+ end
184
+ # or else data not found in attributes(hash), not an issue as the data can be optional
185
+ end
186
+
187
+ self
188
+ end
189
+ # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = public_method(attr).call
203
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ private
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+ end
230
+ end
231
+ # rubocop:enable Lint/UnneededCopDisableDirective
@@ -1,74 +1,13 @@
1
1
  # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
+ require_relative 'create_autonomous_database_base'
4
5
 
5
6
  # rubocop:disable Lint/UnneededCopDisableDirective
6
7
  module OCI
7
8
  # Details to create an Oracle Autonomous Database.
8
9
  #
9
- # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
10
- #
11
- class Database::Models::CreateAutonomousDatabaseDetails # rubocop:disable Metrics/LineLength
12
- DB_WORKLOAD_ENUM = [
13
- DB_WORKLOAD_OLTP = 'OLTP'.freeze,
14
- DB_WORKLOAD_DW = 'DW'.freeze
15
- ].freeze
16
-
17
- LICENSE_MODEL_ENUM = [
18
- LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze,
19
- LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze
20
- ].freeze
21
-
22
- # **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment of the autonomous database.
23
- # @return [String]
24
- attr_accessor :compartment_id
25
-
26
- # **[Required]** The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
27
- # @return [String]
28
- attr_accessor :db_name
29
-
30
- # **[Required]** The number of CPU Cores to be made available to the database.
31
- # @return [Integer]
32
- attr_accessor :cpu_core_count
33
-
34
- # The autonomous database workload type.
35
- # @return [String]
36
- attr_reader :db_workload
37
-
38
- # **[Required]** The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed.
39
- #
40
- # @return [Integer]
41
- attr_accessor :data_storage_size_in_tbs
42
-
43
- # **[Required]** The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (\") or the username \"admin\", regardless of casing.
44
- # @return [String]
45
- attr_accessor :admin_password
46
-
47
- # The user-friendly name for the Autonomous Database. The name does not have to be unique.
48
- # @return [String]
49
- attr_accessor :display_name
50
-
51
- # The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE.
52
- #
53
- # @return [String]
54
- attr_reader :license_model
55
-
56
- # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
57
- # For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
58
- #
59
- # Example: `{\"Department\": \"Finance\"}`
60
- #
61
- # @return [Hash<String, String>]
62
- attr_accessor :freeform_tags
63
-
64
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
65
- # For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
66
- #
67
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
68
- #
69
- # @return [Hash<String, Hash<String, Object>>]
70
- attr_accessor :defined_tags
71
-
10
+ class Database::Models::CreateAutonomousDatabaseDetails < Database::Models::CreateAutonomousDatabaseBase # rubocop:disable Metrics/LineLength
72
11
  # Attribute mapping from ruby-style variable name to JSON key.
73
12
  def self.attribute_map
74
13
  {
@@ -82,7 +21,8 @@ module OCI
82
21
  'display_name': :'displayName',
83
22
  'license_model': :'licenseModel',
84
23
  'freeform_tags': :'freeformTags',
85
- 'defined_tags': :'definedTags'
24
+ 'defined_tags': :'definedTags',
25
+ 'source': :'source'
86
26
  # rubocop:enable Style/SymbolLiteral
87
27
  }
88
28
  end
@@ -100,7 +40,8 @@ module OCI
100
40
  'display_name': :'String',
101
41
  'license_model': :'String',
102
42
  'freeform_tags': :'Hash<String, String>',
103
- 'defined_tags': :'Hash<String, Hash<String, Object>>'
43
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
44
+ 'source': :'String'
104
45
  # rubocop:enable Style/SymbolLiteral
105
46
  }
106
47
  end
@@ -111,105 +52,26 @@ module OCI
111
52
 
112
53
  # Initializes the object
113
54
  # @param [Hash] attributes Model attributes in the form of hash
114
- # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
115
- # @option attributes [String] :db_name The value to assign to the {#db_name} property
116
- # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
117
- # @option attributes [String] :db_workload The value to assign to the {#db_workload} property
118
- # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
119
- # @option attributes [String] :admin_password The value to assign to the {#admin_password} property
120
- # @option attributes [String] :display_name The value to assign to the {#display_name} property
121
- # @option attributes [String] :license_model The value to assign to the {#license_model} property
122
- # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
123
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
55
+ # @option attributes [String] :compartment_id The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#compartment_id #compartment_id} proprety
56
+ # @option attributes [String] :db_name The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#db_name #db_name} proprety
57
+ # @option attributes [Integer] :cpu_core_count The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#cpu_core_count #cpu_core_count} proprety
58
+ # @option attributes [String] :db_workload The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#db_workload #db_workload} proprety
59
+ # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#data_storage_size_in_tbs #data_storage_size_in_tbs} proprety
60
+ # @option attributes [String] :admin_password The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#admin_password #admin_password} proprety
61
+ # @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#display_name #display_name} proprety
62
+ # @option attributes [String] :license_model The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#license_model #license_model} proprety
63
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#freeform_tags #freeform_tags} proprety
64
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::Database::Models::CreateAutonomousDatabaseBase#defined_tags #defined_tags} proprety
124
65
  def initialize(attributes = {})
125
66
  return unless attributes.is_a?(Hash)
126
67
 
127
- # convert string to symbol for hash key
128
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
129
-
130
- self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
131
-
132
- raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
133
-
134
- self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
135
-
136
- self.db_name = attributes[:'dbName'] if attributes[:'dbName']
137
-
138
- raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name')
139
-
140
- self.db_name = attributes[:'db_name'] if attributes[:'db_name']
141
-
142
- self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
143
-
144
- raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
145
-
146
- self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
147
-
148
- self.db_workload = attributes[:'dbWorkload'] if attributes[:'dbWorkload']
149
-
150
- raise 'You cannot provide both :dbWorkload and :db_workload' if attributes.key?(:'dbWorkload') && attributes.key?(:'db_workload')
68
+ attributes['source'] = 'NONE'
151
69
 
152
- self.db_workload = attributes[:'db_workload'] if attributes[:'db_workload']
153
-
154
- self.data_storage_size_in_tbs = attributes[:'dataStorageSizeInTBs'] if attributes[:'dataStorageSizeInTBs']
155
-
156
- raise 'You cannot provide both :dataStorageSizeInTBs and :data_storage_size_in_tbs' if attributes.key?(:'dataStorageSizeInTBs') && attributes.key?(:'data_storage_size_in_tbs')
157
-
158
- self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
159
-
160
- self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
161
-
162
- raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
163
-
164
- self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
165
-
166
- self.display_name = attributes[:'displayName'] if attributes[:'displayName']
167
-
168
- raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
169
-
170
- self.display_name = attributes[:'display_name'] if attributes[:'display_name']
171
-
172
- self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
173
-
174
- raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
175
-
176
- self.license_model = attributes[:'license_model'] if attributes[:'license_model']
177
-
178
- self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
179
-
180
- raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
181
-
182
- self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
183
-
184
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
185
-
186
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
187
-
188
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
70
+ super(attributes)
189
71
  end
190
72
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
191
73
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
192
74
 
193
- # Custom attribute writer method checking allowed values (enum).
194
- # @param [Object] db_workload Object to be assigned
195
- def db_workload=(db_workload)
196
- # rubocop: disable Metrics/LineLength
197
- raise "Invalid value for 'db_workload': this must be one of the values in DB_WORKLOAD_ENUM." if db_workload && !DB_WORKLOAD_ENUM.include?(db_workload)
198
-
199
- # rubocop: enable Metrics/LineLength
200
- @db_workload = db_workload
201
- end
202
-
203
- # Custom attribute writer method checking allowed values (enum).
204
- # @param [Object] license_model Object to be assigned
205
- def license_model=(license_model)
206
- # rubocop: disable Metrics/LineLength
207
- raise "Invalid value for 'license_model': this must be one of the values in LICENSE_MODEL_ENUM." if license_model && !LICENSE_MODEL_ENUM.include?(license_model)
208
-
209
- # rubocop: enable Metrics/LineLength
210
- @license_model = license_model
211
- end
212
-
213
75
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
214
76
 
215
77
 
@@ -228,7 +90,8 @@ module OCI
228
90
  display_name == other.display_name &&
229
91
  license_model == other.license_model &&
230
92
  freeform_tags == other.freeform_tags &&
231
- defined_tags == other.defined_tags
93
+ defined_tags == other.defined_tags &&
94
+ source == other.source
232
95
  end
233
96
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
234
97
 
@@ -244,7 +107,7 @@ module OCI
244
107
  # Calculates hash code according to all attributes.
245
108
  # @return [Fixnum] Hash code
246
109
  def hash
247
- [compartment_id, db_name, cpu_core_count, db_workload, data_storage_size_in_tbs, admin_password, display_name, license_model, freeform_tags, defined_tags].hash
110
+ [compartment_id, db_name, cpu_core_count, db_workload, data_storage_size_in_tbs, admin_password, display_name, license_model, freeform_tags, defined_tags, source].hash
248
111
  end
249
112
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
250
113