Class: Ovh::Api::Api::Nutanix::Vrack
- Inherits:
-
Object
- Object
- Ovh::Api::Api::Nutanix::Vrack
- Defined in:
- lib/ovh-api/api/nutanix/vrack.rb
Instance Method Summary collapse
- #bulk_update(service_name:, nutanix_vrack:) ⇒ Object
-
#initialize(connection) ⇒ Vrack
constructor
A new instance of Vrack.
Constructor Details
#initialize(connection) ⇒ Vrack
Returns a new instance of Vrack.
6 7 8 |
# File 'lib/ovh-api/api/nutanix/vrack.rb', line 6 def initialize(connection) @connection = connection end |
Instance Method Details
#bulk_update(service_name:, nutanix_vrack:) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ovh-api/api/nutanix/vrack.rb', line 10 def bulk_update(service_name:, nutanix_vrack:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'nutanix_vrack is required' if nutanix_vrack.nil? @connection.call( :PUT, '/nutanix/{serviceName}/vrack' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: nutanix_vrack ) end |