Class: OCI::Dif::Models::DataflowUpdateDetail
- Inherits:
-
Object
- Object
- OCI::Dif::Models::DataflowUpdateDetail
- Defined in:
- lib/oci/dif/models/dataflow_update_detail.rb
Overview
Details of the existing dataflow instance to be updated.
Instance Attribute Summary collapse
- #connections ⇒ OCI::Dif::Models::UpdateDataflowConnections
-
#driver_shape ⇒ String
The VM shape for the driver.
- #driver_shape_config ⇒ OCI::Dif::Models::ShapeConfig
-
#executor_shape ⇒ String
The VM shape for the executors.
- #executor_shape_config ⇒ OCI::Dif::Models::ShapeConfig
-
#instance_id ⇒ String
[Required] Instance id of the existing dataflow instance to be updated.
-
#log_bucket_instance_id ⇒ String
InstanceId of log bucket created as part of objectstorage service in stack.
-
#num_executors ⇒ Integer
The number of executor VMs requested.
-
#private_endpoint_id ⇒ String
OCID of the already provisioned dataflow private endpoint.
-
#spark_version ⇒ String
The Spark version utilized to run the application.
-
#warehouse_bucket_instance_id ⇒ String
InstanceId of warehouse bucket created as part of objectstorage service in stack.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DataflowUpdateDetail
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ DataflowUpdateDetail
Initializes the object
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 107 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.instance_id = attributes[:'instanceId'] if attributes[:'instanceId'] raise 'You cannot provide both :instanceId and :instance_id' if attributes.key?(:'instanceId') && attributes.key?(:'instance_id') self.instance_id = attributes[:'instance_id'] if attributes[:'instance_id'] self.spark_version = attributes[:'sparkVersion'] if attributes[:'sparkVersion'] raise 'You cannot provide both :sparkVersion and :spark_version' if attributes.key?(:'sparkVersion') && attributes.key?(:'spark_version') self.spark_version = attributes[:'spark_version'] if attributes[:'spark_version'] self.driver_shape = attributes[:'driverShape'] if attributes[:'driverShape'] raise 'You cannot provide both :driverShape and :driver_shape' if attributes.key?(:'driverShape') && attributes.key?(:'driver_shape') self.driver_shape = attributes[:'driver_shape'] if attributes[:'driver_shape'] self.executor_shape = attributes[:'executorShape'] if attributes[:'executorShape'] raise 'You cannot provide both :executorShape and :executor_shape' if attributes.key?(:'executorShape') && attributes.key?(:'executor_shape') self.executor_shape = attributes[:'executor_shape'] if attributes[:'executor_shape'] self.driver_shape_config = attributes[:'driverShapeConfig'] if attributes[:'driverShapeConfig'] raise 'You cannot provide both :driverShapeConfig and :driver_shape_config' if attributes.key?(:'driverShapeConfig') && attributes.key?(:'driver_shape_config') self.driver_shape_config = attributes[:'driver_shape_config'] if attributes[:'driver_shape_config'] self.executor_shape_config = attributes[:'executorShapeConfig'] if attributes[:'executorShapeConfig'] raise 'You cannot provide both :executorShapeConfig and :executor_shape_config' if attributes.key?(:'executorShapeConfig') && attributes.key?(:'executor_shape_config') self.executor_shape_config = attributes[:'executor_shape_config'] if attributes[:'executor_shape_config'] self.num_executors = attributes[:'numExecutors'] if attributes[:'numExecutors'] raise 'You cannot provide both :numExecutors and :num_executors' if attributes.key?(:'numExecutors') && attributes.key?(:'num_executors') self.num_executors = attributes[:'num_executors'] if attributes[:'num_executors'] self.private_endpoint_id = attributes[:'privateEndpointId'] if attributes[:'privateEndpointId'] raise 'You cannot provide both :privateEndpointId and :private_endpoint_id' if attributes.key?(:'privateEndpointId') && attributes.key?(:'private_endpoint_id') self.private_endpoint_id = attributes[:'private_endpoint_id'] if attributes[:'private_endpoint_id'] self.connections = attributes[:'connections'] if attributes[:'connections'] self.log_bucket_instance_id = attributes[:'logBucketInstanceId'] if attributes[:'logBucketInstanceId'] raise 'You cannot provide both :logBucketInstanceId and :log_bucket_instance_id' if attributes.key?(:'logBucketInstanceId') && attributes.key?(:'log_bucket_instance_id') self.log_bucket_instance_id = attributes[:'log_bucket_instance_id'] if attributes[:'log_bucket_instance_id'] self.warehouse_bucket_instance_id = attributes[:'warehouseBucketInstanceId'] if attributes[:'warehouseBucketInstanceId'] raise 'You cannot provide both :warehouseBucketInstanceId and :warehouse_bucket_instance_id' if attributes.key?(:'warehouseBucketInstanceId') && attributes.key?(:'warehouse_bucket_instance_id') self.warehouse_bucket_instance_id = attributes[:'warehouse_bucket_instance_id'] if attributes[:'warehouse_bucket_instance_id'] end |
Instance Attribute Details
#connections ⇒ OCI::Dif::Models::UpdateDataflowConnections
42 43 44 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 42 def connections @connections end |
#driver_shape ⇒ String
The VM shape for the driver. Sets the driver cores and memory.
21 22 23 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 21 def driver_shape @driver_shape end |
#driver_shape_config ⇒ OCI::Dif::Models::ShapeConfig
28 29 30 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 28 def driver_shape_config @driver_shape_config end |
#executor_shape ⇒ String
The VM shape for the executors. Sets the executor cores and memory.
25 26 27 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 25 def executor_shape @executor_shape end |
#executor_shape_config ⇒ OCI::Dif::Models::ShapeConfig
31 32 33 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 31 def executor_shape_config @executor_shape_config end |
#instance_id ⇒ String
[Required] Instance id of the existing dataflow instance to be updated.
13 14 15 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 13 def instance_id @instance_id end |
#log_bucket_instance_id ⇒ String
InstanceId of log bucket created as part of objectstorage service in stack. Used for storing application run logs.
46 47 48 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 46 def log_bucket_instance_id @log_bucket_instance_id end |
#num_executors ⇒ Integer
The number of executor VMs requested.
35 36 37 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 35 def num_executors @num_executors end |
#private_endpoint_id ⇒ String
OCID of the already provisioned dataflow private endpoint.
39 40 41 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 39 def private_endpoint_id @private_endpoint_id end |
#spark_version ⇒ String
The Spark version utilized to run the application.
17 18 19 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 17 def spark_version @spark_version end |
#warehouse_bucket_instance_id ⇒ String
InstanceId of warehouse bucket created as part of objectstorage service in stack. Mandatory for SQL applications.
50 51 52 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 50 def warehouse_bucket_instance_id @warehouse_bucket_instance_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 53 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'instance_id': :'instanceId', 'spark_version': :'sparkVersion', 'driver_shape': :'driverShape', 'executor_shape': :'executorShape', 'driver_shape_config': :'driverShapeConfig', 'executor_shape_config': :'executorShapeConfig', 'num_executors': :'numExecutors', 'private_endpoint_id': :'privateEndpointId', 'connections': :'connections', 'log_bucket_instance_id': :'logBucketInstanceId', 'warehouse_bucket_instance_id': :'warehouseBucketInstanceId' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 72 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'instance_id': :'String', 'spark_version': :'String', 'driver_shape': :'String', 'executor_shape': :'String', 'driver_shape_config': :'OCI::Dif::Models::ShapeConfig', 'executor_shape_config': :'OCI::Dif::Models::ShapeConfig', 'num_executors': :'Integer', 'private_endpoint_id': :'String', 'connections': :'OCI::Dif::Models::UpdateDataflowConnections', 'log_bucket_instance_id': :'String', 'warehouse_bucket_instance_id': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 183 def ==(other) return true if equal?(other) self.class == other.class && instance_id == other.instance_id && spark_version == other.spark_version && driver_shape == other.driver_shape && executor_shape == other.executor_shape && driver_shape_config == other.driver_shape_config && executor_shape_config == other.executor_shape_config && num_executors == other.num_executors && private_endpoint_id == other.private_endpoint_id && connections == other.connections && log_bucket_instance_id == other.log_bucket_instance_id && warehouse_bucket_instance_id == other.warehouse_bucket_instance_id end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 223 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
203 204 205 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 203 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
212 213 214 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 212 def hash [instance_id, spark_version, driver_shape, executor_shape, driver_shape_config, executor_shape_config, num_executors, private_endpoint_id, connections, log_bucket_instance_id, warehouse_bucket_instance_id].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
256 257 258 259 260 261 262 263 264 265 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 256 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
250 251 252 |
# File 'lib/oci/dif/models/dataflow_update_detail.rb', line 250 def to_s to_hash.to_s end |