Class: Ovh::Api::Models::StorageNetAppShareExtendOrShrink
- Inherits:
-
Object
- Object
- Ovh::Api::Models::StorageNetAppShareExtendOrShrink
- Includes:
- Serializable, Validations
- Defined in:
- lib/ovh-api/models/storage_net_app_share_extend_or_shrink.rb
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ StorageNetAppShareExtendOrShrink
constructor
A new instance of StorageNetAppShareExtendOrShrink.
Methods included from Validations
included, #list_invalid_properties, #valid?
Methods included from Serializable
#==, #hash, serialize, #to_body, #to_hash, #to_json, #to_s
Constructor Details
#initialize(**attrs) ⇒ StorageNetAppShareExtendOrShrink
Returns a new instance of StorageNetAppShareExtendOrShrink.
19 20 21 22 23 24 25 26 |
# File 'lib/ovh-api/models/storage_net_app_share_extend_or_shrink.rb', line 19 def initialize(**attrs) attrs.each do |k, v| raise ArgumentError, "unknown attribute: #{k}" unless respond_to?("#{k}=") public_send("#{k}=", v) end raise ArgumentError, list_invalid_properties.join(', ') unless valid? end |