oci 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/oci.rb +8 -0
  4. data/lib/oci/api_client.rb +11 -5
  5. data/lib/oci/config.rb +3 -2
  6. data/lib/oci/config_file_loader.rb +5 -5
  7. data/lib/oci/core/blockstorage_client.rb +1 -1
  8. data/lib/oci/core/compute_client.rb +58 -4
  9. data/lib/oci/core/core.rb +1 -0
  10. data/lib/oci/core/models/capture_console_history_details.rb +13 -1
  11. data/lib/oci/core/models/create_instance_console_connection_details.rb +2 -2
  12. data/lib/oci/core/models/create_vnic_details.rb +18 -1
  13. data/lib/oci/core/models/create_volume_details.rb +14 -1
  14. data/lib/oci/core/models/instance_console_connection.rb +6 -6
  15. data/lib/oci/core/models/route_rule.rb +4 -1
  16. data/lib/oci/core/models/update_console_history_details.rb +121 -0
  17. data/lib/oci/core/models/update_vnic_details.rb +21 -4
  18. data/lib/oci/core/models/vnic.rb +18 -1
  19. data/lib/oci/core/models/volume.rb +13 -2
  20. data/lib/oci/core/models/volume_backup.rb +29 -2
  21. data/lib/oci/core/virtual_network_client.rb +7 -1
  22. data/lib/oci/database/database.rb +43 -0
  23. data/lib/oci/database/database_client.rb +1246 -0
  24. data/lib/oci/database/models/create_data_guard_association_details.rb +225 -0
  25. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +138 -0
  26. data/lib/oci/database/models/create_database_details.rb +194 -0
  27. data/lib/oci/database/models/create_db_home_details.rb +141 -0
  28. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +152 -0
  29. data/lib/oci/database/models/data_guard_association.rb +374 -0
  30. data/lib/oci/database/models/database.rb +261 -0
  31. data/lib/oci/database/models/database_summary.rb +261 -0
  32. data/lib/oci/database/models/db_home.rb +216 -0
  33. data/lib/oci/database/models/db_home_summary.rb +216 -0
  34. data/lib/oci/database/models/db_node.rb +220 -0
  35. data/lib/oci/database/models/db_node_summary.rb +220 -0
  36. data/lib/oci/database/models/db_system.rb +518 -0
  37. data/lib/oci/database/models/db_system_shape_summary.rb +142 -0
  38. data/lib/oci/database/models/db_system_summary.rb +518 -0
  39. data/lib/oci/database/models/db_version_summary.rb +131 -0
  40. data/lib/oci/database/models/failover_data_guard_association_details.rb +120 -0
  41. data/lib/oci/database/models/launch_db_system_details.rb +394 -0
  42. data/lib/oci/database/models/patch.rb +247 -0
  43. data/lib/oci/database/models/patch_details.rb +144 -0
  44. data/lib/oci/database/models/patch_history_entry.rb +218 -0
  45. data/lib/oci/database/models/patch_history_entry_summary.rb +218 -0
  46. data/lib/oci/database/models/patch_summary.rb +247 -0
  47. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +120 -0
  48. data/lib/oci/database/models/switchover_data_guard_association_details.rb +120 -0
  49. data/lib/oci/database/models/update_db_home_details.rb +119 -0
  50. data/lib/oci/database/models/update_db_system_details.rb +153 -0
  51. data/lib/oci/database/util.rb +1 -0
  52. data/lib/oci/errors.rb +3 -4
  53. data/lib/oci/regions.rb +4 -2
  54. data/lib/oci/response_headers.rb +0 -1
  55. data/lib/oci/signer.rb +8 -7
  56. data/lib/oci/version.rb +1 -1
  57. data/lib/oraclebmc.rb +3 -1
  58. metadata +33 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 488c00cdc5eeffc80b243c41eda2e48a3a636d13
4
- data.tar.gz: dc295148c7edd143d92421cfbe7a4b11c95711e6
3
+ metadata.gz: deead642983dcb680e7023da308d6b99c2194f2c
4
+ data.tar.gz: 94480a7fb20b82892e19d2323a0ebb62d0166ef4
5
5
  SHA512:
6
- metadata.gz: a012d576d2f27aebeef2e26ea37ec52038e51a550aa73b684a816e73c109b2b6686195ac4ebd7c996e6a891a9b4941a71b1ab5ae03a7fc16af758fd3bbf19869
7
- data.tar.gz: 27faeab73bd7fa8359969ce79a54b830597ac310bbe590b294b556759d289ca51581e5d6cabeefc3445304e3657292e875dfa17862517af6df32d74fa4256253
6
+ metadata.gz: 7185a217ff85b513d623f6af44e182c7512ef3c6a471db0a542a32fb6ba22bc738da7013ffbc14004d5a4b2dcf40572a86464b473f2f1333f58ce8bd7f6253bb
7
+ data.tar.gz: a4f3524b1ac8ac683a005df58529087aee58893409d191403b93135eeb5f671957a14cfe733e02b7abb00b628f837e5dc84c1f4340468378964e64611780fd16
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.0.0**
2
+ **Version 2.0.1**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -11,6 +11,7 @@ The Ruby SDK supports the following services:
11
11
  * Identity and Access Management Service
12
12
  * Load Balancing Service
13
13
  * Object Storage Service
14
+ * Database Service
14
15
 
15
16
  **Licensing:** This SDK and sample is dual licensed under the Universal Permissive License 1.0 and the Apache License.
16
17
 
data/lib/oci.rb CHANGED
@@ -17,9 +17,17 @@ require 'oci/core/core'
17
17
  require 'oci/identity/identity'
18
18
  require 'oci/load_balancer/load_balancer'
19
19
  require 'oci/object_storage/object_storage'
20
+ require 'oci/database/database'
20
21
 
21
22
  # Top level module for the Oracle Cloud Infrastructure SDK
22
23
  module OCI
24
+ @@sdk_name = ''
25
+ def self.sdk_name
26
+ @@sdk_name
27
+ end
28
+ def self.sdk_name=(value)
29
+ @@sdk_name = value
30
+ end
23
31
  end
24
32
 
25
33
  OracleBMC = OCI
@@ -101,7 +101,7 @@ module OCI
101
101
 
102
102
  # Build the user agent string to be send with each request.
103
103
  def build_user_agent
104
- agent = "#{build_user_info} (ruby #{RUBY_VERSION}; #{RUBY_PLATFORM})"
104
+ agent = "#{build_user_info}#{OCI.sdk_name} (ruby #{RUBY_VERSION}; #{RUBY_PLATFORM})"
105
105
 
106
106
  if config.additional_user_agent
107
107
  agent = "#{agent} #{config.additional_user_agent}"
@@ -133,6 +133,8 @@ module OCI
133
133
  request = Net::HTTP::Delete.new(uri)
134
134
  elsif http_method == :head
135
135
  request = Net::HTTP::Head.new(uri)
136
+ elsif http_method == :patch
137
+ request = Net::HTTP::Patch.new(uri)
136
138
  else
137
139
  fail "new http method (#{http_method}) needs to be supported!"
138
140
  end
@@ -183,7 +185,7 @@ module OCI
183
185
  # If the response is timeout already, does not make sense to parse the http body because partial
184
186
  # response may be returned, we should skip JSON parser and raise exception immediately
185
187
  if response.is_a? Net::HTTPRequestTimeOut
186
- raise Errors::NetworkError, response.message
188
+ raise Errors::NetworkError.new(response.message, response.code.to_i)
187
189
  end
188
190
 
189
191
  # process headers for opc-meta- key
@@ -216,7 +218,7 @@ module OCI
216
218
  response.header['opc-request-id'],
217
219
  data[:message])
218
220
  else
219
- raise Errors::NetworkError, response.message
221
+ raise Errors::NetworkError.new(response.message, response.code.to_i)
220
222
  end
221
223
  end
222
224
 
@@ -236,7 +238,8 @@ module OCI
236
238
  rescue Errors::NetworkError, Errors::ServiceError, JSON::ParserError
237
239
  raise
238
240
  rescue => ex
239
- raise Errors::NetworkError, ex.message
241
+ puts(ex.inspect)
242
+ raise Errors::NetworkError.new(ex.message, 0)
240
243
  end
241
244
  end
242
245
 
@@ -321,7 +324,10 @@ module OCI
321
324
 
322
325
  return body if (return_type == 'String' && !json_mime?(content_type)) || return_type == 'Stream'
323
326
 
324
- fail "content-type is not supported: #{content_type}" unless json_mime?(content_type)
327
+ # There are some cases, the error is not returned by services but by like gateway, for example in bug
328
+ # https://jira.aka.lgl.grungy.us/browse/DEX-564, gateway timeouts and 504 is returned and content is generated
329
+ # by gateway, so there is no guarantee that the content-type will be application/json.
330
+ raise Errors::NetworkError.new(response.message, response.code.to_i) unless json_mime?(content_type)
325
331
 
326
332
  begin
327
333
  data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
@@ -3,10 +3,11 @@
3
3
  require 'uri'
4
4
 
5
5
  module OCI
6
- # This class contains accessors for configuration attributes needed when using the
7
- # SDK
6
+ # Error which will be thrown which configuration fails validation
8
7
  class InvalidConfigError < RuntimeError; end
9
8
 
9
+ # This class contains accessors for configuration attributes needed when using the
10
+ # SDK
10
11
  class Config
11
12
  # Patterns to use validate value for different attribute
12
13
  PATTERNS = { 'tenancy' => /^([0-9a-zA-Z\-_]+[.:])([0-9a-zA-Z\-_]*[.:]){3,}([0-9a-zA-Z\-_]+)$/,
@@ -82,12 +82,12 @@ module OCI
82
82
  value = File.expand_path(value) if key == 'key_file'
83
83
 
84
84
  # key_content is not allowed in configuration file
85
- if key != 'key_content'
86
- if config.respond_to?("#{key}=") && config.respond_to?(key)
87
- config.instance_variable_set('@' + key, value)
88
- end
89
- # TODO log the key been ignored by Ruby SDK
85
+ next if key == 'key_content'
86
+
87
+ if config.respond_to?("#{key}=") && config.respond_to?(key)
88
+ config.instance_variable_set('@' + key, value)
90
89
  end
90
+ # TODO: log the key been ignored by Ruby SDK
91
91
  end
92
92
  end
93
93
 
@@ -59,7 +59,7 @@ module OCI
59
59
 
60
60
 
61
61
  # Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from
62
- # 50 GB (51200 MB) to 2 TB (2097152 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB).
62
+ # 50 GB (51200 MB) to 16 TB (16777216 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB).
63
63
  # For general information about block volumes, see
64
64
  # [Overview of Block Volume Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm).
65
65
  #
@@ -254,7 +254,14 @@ module OCI
254
254
  :return_type => 'OCI::Core::Models::Image')
255
255
  end
256
256
 
257
- # Create a console connection for an instance.
257
+ # Creates a new serial console connection to the specified instance.
258
+ # Once the serial console connection has been created and is available,
259
+ # you connect to the serial console using an SSH client.
260
+ #
261
+ # The default number of enabled serial console connections per tenancy is 10.
262
+ #
263
+ # For more information about serial console access, see [Accessing the Serial Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
264
+ #
258
265
  # @param [CreateInstanceConsoleConnectionDetails] create_instance_console_connection_details Request object for creating an InstanceConsoleConnection
259
266
  # @param [Hash] opts the optional parameters
260
267
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -362,7 +369,7 @@ module OCI
362
369
  :body => post_body)
363
370
  end
364
371
 
365
- # Delete the console connection for an instance
372
+ # Deletes the specified serial console connection.
366
373
  # @param [String] instance_console_connection_id The OCID of the intance console connection
367
374
  # @param [Hash] opts the optional parameters
368
375
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -402,6 +409,12 @@ module OCI
402
409
  # When you terminate an instance, all attached VNICs (primary
403
410
  # and secondary) are automatically detached and deleted.
404
411
  #
412
+ # **Important:** If the VNIC has a
413
+ # {PrivateIp} that is the
414
+ # [target of a route rule](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip),
415
+ # deleting the VNIC causes that route rule to blackhole and the traffic
416
+ # will be dropped.
417
+ #
405
418
  # @param [String] vnic_attachment_id The OCID of the VNIC attachment.
406
419
  # @param [Hash] opts the optional parameters
407
420
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -664,7 +677,7 @@ module OCI
664
677
  :return_type => 'OCI::Core::Models::Instance')
665
678
  end
666
679
 
667
- # Get the details of an instance console connection
680
+ # Gets the specified serial console connection's information.
668
681
  # @param [String] instance_console_connection_id The OCID of the intance console connection
669
682
  # @param [Hash] opts the optional parameters
670
683
  # @return [Response] A Response object with data of type OCI::Core::Models::InstanceConsoleConnection
@@ -1030,7 +1043,10 @@ module OCI
1030
1043
  :return_type => 'Array<OCI::Core::Models::Image>')
1031
1044
  end
1032
1045
 
1033
- # Lists the console connections for the specified compartment or instance that have not been deleted.
1046
+ # Lists the serial console connections for the specified compartment or instance.
1047
+ #
1048
+ # For more information about serial console access, see [Accessing the Serial Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
1049
+ #
1034
1050
  # @param [String] compartment_id The OCID of the compartment.
1035
1051
  # @param [Hash] opts the optional parameters
1036
1052
  # @option opts [String] :instance_id The OCID of the instance.
@@ -1320,6 +1336,44 @@ module OCI
1320
1336
  :body => post_body)
1321
1337
  end
1322
1338
 
1339
+ # Updates the specified console history metadata.
1340
+ # @param [String] instance_console_history_id The OCID of the console history.
1341
+ # @param [UpdateConsoleHistoryDetails] update_console_history_details Update instance fields
1342
+ # @param [Hash] opts the optional parameters
1343
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1344
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1345
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1346
+ #
1347
+ # @return [Response] A Response object with data of type OCI::Core::Models::ConsoleHistory
1348
+ def update_console_history(instance_console_history_id, update_console_history_details, opts = {})
1349
+ logger.debug "Calling operation ComputeClient#update_console_history." if logger
1350
+
1351
+ fail "Missing the required parameter 'instance_console_history_id' when calling update_console_history." if instance_console_history_id.nil?
1352
+ fail "Missing the required parameter 'update_console_history_details' when calling update_console_history." if update_console_history_details.nil?
1353
+
1354
+ path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
1355
+
1356
+ # Query Params
1357
+ query_params = {}
1358
+
1359
+ # Header Params
1360
+ header_params = {}
1361
+ header_params['accept'] = 'application/json'
1362
+ header_params['content-type'] = 'application/json'
1363
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
1364
+
1365
+ post_body = @api_client.object_to_http_body(update_console_history_details)
1366
+
1367
+ return @api_client.call_api(
1368
+ :PUT,
1369
+ path,
1370
+ endpoint,
1371
+ :header_params => header_params,
1372
+ :query_params => query_params,
1373
+ :body => post_body,
1374
+ :return_type => 'OCI::Core::Models::ConsoleHistory')
1375
+ end
1376
+
1323
1377
  # Updates the display name of the image. Avoid entering confidential information.
1324
1378
  # @param [String] image_id The OCID of the image.
1325
1379
  # @param [UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
@@ -77,6 +77,7 @@ require 'oci/core/models/tcp_options'
77
77
  require 'oci/core/models/tunnel_config'
78
78
  require 'oci/core/models/tunnel_status'
79
79
  require 'oci/core/models/udp_options'
80
+ require 'oci/core/models/update_console_history_details'
80
81
  require 'oci/core/models/update_cpe_details'
81
82
  require 'oci/core/models/update_cross_connect_details'
82
83
  require 'oci/core/models/update_cross_connect_group_details'
@@ -4,6 +4,11 @@ require 'date'
4
4
 
5
5
  module OCI
6
6
  class Core::Models::CaptureConsoleHistoryDetails
7
+ # A user-friendly name. Does not have to be unique, and it's changeable.
8
+ #
9
+ # @return [String]
10
+ attr_accessor :display_name
11
+
7
12
  # The OCID of the instance to get the console history from.
8
13
  # @return [String]
9
14
  attr_accessor :instance_id
@@ -17,6 +22,10 @@ module OCI
17
22
  # convert string to symbol for hash key
18
23
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
19
24
 
25
+ if attributes[:'displayName']
26
+ self.display_name = attributes[:'displayName']
27
+ end
28
+
20
29
  if attributes[:'instanceId']
21
30
  self.instance_id = attributes[:'instanceId']
22
31
  end
@@ -28,6 +37,7 @@ module OCI
28
37
  def ==(other_object)
29
38
  return true if self.equal?(other_object)
30
39
  self.class == other_object.class &&
40
+ display_name == other_object.display_name &&
31
41
  instance_id == other_object.instance_id
32
42
  end
33
43
 
@@ -40,7 +50,7 @@ module OCI
40
50
  # Calculates hash code according to all attributes.
41
51
  # @return [Fixnum] Hash code
42
52
  def hash
43
- [instance_id].hash
53
+ [display_name, instance_id].hash
44
54
  end
45
55
 
46
56
  # Builds the object from hash
@@ -106,6 +116,7 @@ module OCI
106
116
  # Attribute mapping from ruby-style variable name to JSON key.
107
117
  def self.attribute_map
108
118
  {
119
+ :'display_name' => :'displayName',
109
120
  :'instance_id' => :'instanceId'
110
121
  }
111
122
  end
@@ -113,6 +124,7 @@ module OCI
113
124
  # Attribute type mapping.
114
125
  def self.swagger_types
115
126
  {
127
+ :'display_name' => :'String',
116
128
  :'instance_id' => :'String'
117
129
  }
118
130
  end
@@ -4,11 +4,11 @@ require 'date'
4
4
 
5
5
  module OCI
6
6
  class Core::Models::CreateInstanceConsoleConnectionDetails
7
- # The host instance OCID
7
+ # The OCID of the instance to create the serial console connection to.
8
8
  # @return [String]
9
9
  attr_accessor :instance_id
10
10
 
11
- # An ssh public key that will be used to authenticate the console connection.
11
+ # The SSH public key used to authenticate the serial console connection.
12
12
  # @return [String]
13
13
  attr_accessor :public_key
14
14
 
@@ -66,6 +66,16 @@ module OCI
66
66
  # @return [String]
67
67
  attr_accessor :private_ip
68
68
 
69
+ # Whether the source/destination check is disabled on the VNIC.
70
+ # Defaults to `false`, which means the check is performed. For information
71
+ # about why you would skip the source/destination check, see
72
+ # [Using a Private IP as a Route Target](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip).
73
+ #
74
+ # Example: `true`
75
+ #
76
+ # @return [BOOLEAN]
77
+ attr_accessor :skip_source_dest_check
78
+
69
79
  # The OCID of the subnet to create the VNIC in. When launching an instance,
70
80
  # use this `subnetId` instead of the deprecated `subnetId` in
71
81
  # {#launch_instance_details launch_instance_details}.
@@ -99,6 +109,10 @@ module OCI
99
109
  self.private_ip = attributes[:'privateIp']
100
110
  end
101
111
 
112
+ if attributes[:'skipSourceDestCheck']
113
+ self.skip_source_dest_check = attributes[:'skipSourceDestCheck']
114
+ end
115
+
102
116
  if attributes[:'subnetId']
103
117
  self.subnet_id = attributes[:'subnetId']
104
118
  end
@@ -114,6 +128,7 @@ module OCI
114
128
  display_name == other_object.display_name &&
115
129
  hostname_label == other_object.hostname_label &&
116
130
  private_ip == other_object.private_ip &&
131
+ skip_source_dest_check == other_object.skip_source_dest_check &&
117
132
  subnet_id == other_object.subnet_id
118
133
  end
119
134
 
@@ -126,7 +141,7 @@ module OCI
126
141
  # Calculates hash code according to all attributes.
127
142
  # @return [Fixnum] Hash code
128
143
  def hash
129
- [assign_public_ip, display_name, hostname_label, private_ip, subnet_id].hash
144
+ [assign_public_ip, display_name, hostname_label, private_ip, skip_source_dest_check, subnet_id].hash
130
145
  end
131
146
 
132
147
  # Builds the object from hash
@@ -196,6 +211,7 @@ module OCI
196
211
  :'display_name' => :'displayName',
197
212
  :'hostname_label' => :'hostnameLabel',
198
213
  :'private_ip' => :'privateIp',
214
+ :'skip_source_dest_check' => :'skipSourceDestCheck',
199
215
  :'subnet_id' => :'subnetId'
200
216
  }
201
217
  end
@@ -207,6 +223,7 @@ module OCI
207
223
  :'display_name' => :'String',
208
224
  :'hostname_label' => :'String',
209
225
  :'private_ip' => :'String',
226
+ :'skip_source_dest_check' => :'BOOLEAN',
210
227
  :'subnet_id' => :'String'
211
228
  }
212
229
  end
@@ -21,7 +21,13 @@ module OCI
21
21
  # @return [String]
22
22
  attr_accessor :display_name
23
23
 
24
+ # The size of the volume in GBs.
25
+ # @return [Integer]
26
+ attr_accessor :size_in_gbs
27
+
24
28
  # The size of the volume in MBs. The value must be a multiple of 1024.
29
+ # This field is deprecated. Please use sizeInGBs.
30
+ #
25
31
  # @return [Integer]
26
32
  attr_accessor :size_in_mbs
27
33
 
@@ -51,6 +57,10 @@ module OCI
51
57
  self.display_name = attributes[:'displayName']
52
58
  end
53
59
 
60
+ if attributes[:'sizeInGBs']
61
+ self.size_in_gbs = attributes[:'sizeInGBs']
62
+ end
63
+
54
64
  if attributes[:'sizeInMBs']
55
65
  self.size_in_mbs = attributes[:'sizeInMBs']
56
66
  end
@@ -69,6 +79,7 @@ module OCI
69
79
  availability_domain == other_object.availability_domain &&
70
80
  compartment_id == other_object.compartment_id &&
71
81
  display_name == other_object.display_name &&
82
+ size_in_gbs == other_object.size_in_gbs &&
72
83
  size_in_mbs == other_object.size_in_mbs &&
73
84
  volume_backup_id == other_object.volume_backup_id
74
85
  end
@@ -82,7 +93,7 @@ module OCI
82
93
  # Calculates hash code according to all attributes.
83
94
  # @return [Fixnum] Hash code
84
95
  def hash
85
- [availability_domain, compartment_id, display_name, size_in_mbs, volume_backup_id].hash
96
+ [availability_domain, compartment_id, display_name, size_in_gbs, size_in_mbs, volume_backup_id].hash
86
97
  end
87
98
 
88
99
  # Builds the object from hash
@@ -151,6 +162,7 @@ module OCI
151
162
  :'availability_domain' => :'availabilityDomain',
152
163
  :'compartment_id' => :'compartmentId',
153
164
  :'display_name' => :'displayName',
165
+ :'size_in_gbs' => :'sizeInGBs',
154
166
  :'size_in_mbs' => :'sizeInMBs',
155
167
  :'volume_backup_id' => :'volumeBackupId'
156
168
  }
@@ -162,6 +174,7 @@ module OCI
162
174
  :'availability_domain' => :'String',
163
175
  :'compartment_id' => :'String',
164
176
  :'display_name' => :'String',
177
+ :'size_in_gbs' => :'Integer',
165
178
  :'size_in_mbs' => :'Integer',
166
179
  :'volume_backup_id' => :'String'
167
180
  }
@@ -12,27 +12,27 @@ module OCI
12
12
  LIFECYCLE_STATE_FAILED = 'FAILED',
13
13
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
14
14
 
15
- # The OCID of the compartment to contain the ConsoleConnection
15
+ # The OCID of the compartment to contain the serial console connection.
16
16
  # @return [String]
17
17
  attr_accessor :compartment_id
18
18
 
19
- # The ssh connection string to the instance console
19
+ # The SSH connection string for the serial console connection.
20
20
  # @return [String]
21
21
  attr_accessor :connection_string
22
22
 
23
- # The fingerprint of the ssh publicKey.
23
+ # The SSH public key fingerprint for the serial console connection.
24
24
  # @return [String]
25
25
  attr_accessor :fingerprint
26
26
 
27
- # The OCID of the instance console connection
27
+ # The OCID of the serial console connection.
28
28
  # @return [String]
29
29
  attr_accessor :id
30
30
 
31
- # The host instance OCID
31
+ # The OCID of the instance the serial console connection connects to.
32
32
  # @return [String]
33
33
  attr_accessor :instance_id
34
34
 
35
- # The current state of the instance console connection.
35
+ # The current state of the serial console connection.
36
36
  # @return [String]
37
37
  attr_accessor :lifecycle_state
38
38