Method: OneviewSDK::Rest#rest_patch

Defined in:
lib/oneview-sdk/rest.rb

#rest_patch(path, options = {}, api_ver = @api_version) ⇒ NetHTTPResponse

Makes a restful PATCH request to OneView

Parameters:

  • path (String)

    The path for the request. Usually starts with “/rest/”

  • options (Hash) (defaults to: {})

    The options for the request

  • api_ver (Integer) (defaults to: @api_version)

    The api version to use when interracting with this resource

Options Hash (options):

  • :body (String)

    Hash to be converted into json and set as the request body

  • :Content-Type (String) — default: 'application/json'

    Set to nil or :none to have this option removed

  • :X-API-Version (Integer) — default: client.api_version

    API version to use for this request

  • :auth (Integer) — default: client.token

    Authentication token to use for this request

Returns:

  • (NetHTTPResponse)

    Response object



105
106
107
# File 'lib/oneview-sdk/rest.rb', line 105

def rest_patch(path, options = {}, api_ver = @api_version)
  rest_api(:patch, path, options, api_ver)
end