class CybridApiOrganization::OrganizationsOrganizationApi

def get_organization(organization_guid, opts = {})

Returns:
  • (OrganizationOrganizationModel) -

Parameters:
  • opts (Hash) -- the optional parameters
  • organization_guid (String) -- Identifier for the organization.
def get_organization(organization_guid, opts = {})
  data, _status_code, _headers = get_organization_with_http_info(organization_guid, opts)
  data
end

def get_organization_with_http_info(organization_guid, opts = {})

Returns:
  • (Array<(OrganizationOrganizationModel, Integer, Hash)>) - OrganizationOrganizationModel data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
  • organization_guid (String) -- Identifier for the organization.
def get_organization_with_http_info(organization_guid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: OrganizationsOrganizationApi.get_organization ...'
  end
  # verify the required parameter 'organization_guid' is set
  if @api_client.config.client_side_validation && organization_guid.nil?
    fail ArgumentError, "Missing the required parameter 'organization_guid' when calling OrganizationsOrganizationApi.get_organization"
  end
  # resource path
  local_var_path = '/api/organizations/{organization_guid}'.sub('{' + 'organization_guid' + '}', CGI.escape(organization_guid.to_s))
  # query parameters
  query_params = opts[:query_params] || {}
  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # form parameters
  form_params = opts[:form_params] || {}
  # http body (model)
  post_body = opts[:debug_body]
  # return_type
  return_type = opts[:debug_return_type] || 'OrganizationOrganizationModel'
  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth', 'oauth2']
  new_options = opts.merge(
    :operation => :"OrganizationsOrganizationApi.get_organization",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: OrganizationsOrganizationApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

def initialize(api_client = ApiClient.default)

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

def update_organization(organization_guid, patch_organization_organization_model, opts = {})

Returns:
  • (OrganizationOrganizationModel) -

Parameters:
  • opts (Hash) -- the optional parameters
  • patch_organization_organization_model (PatchOrganizationOrganizationModel) --
  • organization_guid (String) -- Identifier for the organization.
def update_organization(organization_guid, patch_organization_organization_model, opts = {})
  data, _status_code, _headers = update_organization_with_http_info(organization_guid, patch_organization_organization_model, opts)
  data
end

def update_organization_with_http_info(organization_guid, patch_organization_organization_model, opts = {})

Returns:
  • (Array<(OrganizationOrganizationModel, Integer, Hash)>) - OrganizationOrganizationModel data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
  • patch_organization_organization_model (PatchOrganizationOrganizationModel) --
  • organization_guid (String) -- Identifier for the organization.
def update_organization_with_http_info(organization_guid, patch_organization_organization_model, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: OrganizationsOrganizationApi.update_organization ...'
  end
  # verify the required parameter 'organization_guid' is set
  if @api_client.config.client_side_validation && organization_guid.nil?
    fail ArgumentError, "Missing the required parameter 'organization_guid' when calling OrganizationsOrganizationApi.update_organization"
  end
  # verify the required parameter 'patch_organization_organization_model' is set
  if @api_client.config.client_side_validation && patch_organization_organization_model.nil?
    fail ArgumentError, "Missing the required parameter 'patch_organization_organization_model' when calling OrganizationsOrganizationApi.update_organization"
  end
  # resource path
  local_var_path = '/api/organizations/{organization_guid}'.sub('{' + 'organization_guid' + '}', CGI.escape(organization_guid.to_s))
  # query parameters
  query_params = opts[:query_params] || {}
  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  # form parameters
  form_params = opts[:form_params] || {}
  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_organization_organization_model)
  # return_type
  return_type = opts[:debug_return_type] || 'OrganizationOrganizationModel'
  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth', 'oauth2']
  new_options = opts.merge(
    :operation => :"OrganizationsOrganizationApi.update_organization",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: OrganizationsOrganizationApi#update_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end