happyco_json

HappyCo - the Ruby gem for the Merged swaggers

All happy services merged together

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.7.0
  • Package version: 2.7.1
  • Build date: 2020-10-26T14:39:32.259+10:30
  • Build package: class io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build happyco_json.gemspec

Then either install the gem locally:

gem install ./happyco_json-2.7.1.gem

(for development, run gem install --dev ./happyco_json-2.7.1.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'happyco_json', '~> 2.7.1'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'happyco_json', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'happyco_json'

api_instance = HappyCo::AccountProvisioningServiceApi.new

body = HappyCo::V1CreateAccountsRequest.new # V1CreateAccountsRequest | 


begin
  #No longer supported since version 2.7.
  result = api_instance.create_accounts(body)
  p result
rescue HappyCo::ApiError => e
  puts "Exception when calling AccountProvisioningServiceApi->create_accounts: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://test.com/api

Class Method HTTP request Description
HappyCo::AccountProvisioningServiceApi create_accounts POST /api/v1/manage/accounts/create No longer supported since version 2.7.
HappyCo::AccountProvisioningServiceApi update_account_statuses PUT /api/v1/manage/account/statuses/update No longer supported since version 2.7.
HappyCo::AccountServiceApi list_accounts POST /api/v1/manage/accounts/list No longer supported since version 2.7.
HappyCo::AccountServiceApi update_accounts POST /api/v1/manage/accounts/update No longer supported since version 2.7.
HappyCo::AccountUsersServiceApi add_users POST /api/v1/manage/account/users/add * Add users uses email to create or look up a user and add them to the specified account. As of version 2.7, it no longer creates inactive users.
HappyCo::AccountUsersServiceApi list_users POST /api/v1/manage/account/users/list
HappyCo::AccountUsersServiceApi update_user_statuses PUT /api/v1/manage/account/user/statuses/update
HappyCo::AccountUsersServiceApi update_users PUT /api/v1/manage/account/users/update
HappyCo::AssetServiceApi add_asset_photo POST /api/v1/manage/asset/photo/add
HappyCo::AssetServiceApi archive_assets PUT /api/v1/manage/assets/archive
HappyCo::AssetServiceApi create_assets POST /api/v1/manage/assets/create
HappyCo::AssetServiceApi list_assets POST /api/v1/manage/assets/list
HappyCo::AssetServiceApi unarchive_assets PUT /api/v1/manage/assets/unarchive
HappyCo::AssetServiceApi update_assets PUT /api/v1/manage/assets/update
HappyCo::FolderServiceApi create_folders POST /api/v1/manage/folders/create
HappyCo::FolderServiceApi list_folders POST /api/v1/manage/folders/list
HappyCo::FolderServiceApi update_folder_statuses PUT /api/v1/manage/folder/statuses/update
HappyCo::FolderServiceApi update_folders PUT /api/v1/manage/folders/update
HappyCo::InspectionServiceApi add_inspection_photos POST /api/v1/inspect/inspection/photos/add * No longer supported since 2.6.
HappyCo::InspectionServiceApi archive_inspections PUT /api/v1/inspect/inspections/archive * Archive inspections should be used to archive inspections that are no longer wanted. No method for purging archived inspections is available via the API. All inspections must belong to the same folder.
HappyCo::InspectionServiceApi create_delegated_inspection_links POST /api/v1/inspect/inspection/links/create
HappyCo::InspectionServiceApi create_inspections POST /api/v1/inspect/inspections/create * Create inspections can create inspections with any status (normally scheduled).
HappyCo::InspectionServiceApi list_inspections POST /api/v1/inspect/inspections/list * List inspections gets a paginated and optionally filtered list of inspections from one or more folders.
HappyCo::InspectionServiceApi unarchive_inspections PUT /api/v1/inspect/inspections/unarchive * Unarchive inspections should be used if previously archived inspections need to be restored. All inspections must belong to the same folder.
HappyCo::InspectionServiceApi update_inspections PUT /api/v1/inspect/inspections/update * Update inspections can change the contents of inspections. Currently an inspection cannot have its asset_id or template_id updated.
HappyCo::ReportServiceApi list_reports POST /api/v1/inspect/reports/list * List reports gets a paginated and optionally filtered list of reports from one or more folders.
HappyCo::TemplateServiceApi archive_templates PUT /api/v1/inspect/templates/archive
HappyCo::TemplateServiceApi create_templates POST /api/v1/inspect/templates/create
HappyCo::TemplateServiceApi list_templates POST /api/v1/inspect/templates/list
HappyCo::TemplateServiceApi unarchive_templates PUT /api/v1/inspect/templates/unarchive
HappyCo::TemplateServiceApi update_templates PUT /api/v1/inspect/templates/update

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.