Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pds-metronome

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pds-metronome

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

metronome

Metronome - the Ruby gem for the Metronome API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

From Ruby gems

gem install ./metronome-1.0.0.gem

or add this to your Gemfile:

gem 'metronome', '~> 1.0.0'

Build this gem

To build the Ruby code into a gem:

gem build metronome.gemspec

Then either install the gem locally:

(for development, run gem install --dev ./metronome-1.0.0.gem to install the development dependencies)

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

Finally add this to a Gemfile for a project that depends on this gem:

gem 'metronome', '~> 1.0.0'

Install from Git

The Ruby gem is hosted at a git repository: https://github.com/Private-Data-Services/metronome-client-libs You can add the following in your Gemfile:

gem 'metronome', :git => 'https://github.com/Private-Data-Services/metronome-client-libs/tree/main/ruby'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Examples are available in the ruby client examples folder

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

# Load the gem
require 'metronome'

# Setup authorization
Metronome.configure do |config|
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
  config.customer_id = "YOUR-CUSTOMER-ID"  # Only characters [a-z0-9\-] allowed.  You invent this value to identify your organisation.
  config.region = "eu-north-1"  # Select from one of our available regions.  Mail info@privatedataservices.com to request a new region.
end

api_instance = Metronome::AccessManagementApi.new
api_key = 'api_key_example' # String | 

begin
  result = api_instance.get_api_key(api_key)
  p result
rescue Metronome::ApiError => e
  puts "Exception when calling AccessManagementApi->get_api_key: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://YOUR-CUSTOMER-ID.api.REGION.privatedataservices.com You should only need to use or know this value when you use the REST API directly. The server name is handled by this client automatically.

ClassMethodHTTP requestDescription
Metronome::AccessManagementApiget_api_keyGET /v1/metronome/api-keys/{api-key}
Metronome::AccessManagementApiget_many_api_keysGET /v1/metronome/api-keys
Metronome::AccessManagementApiput_api_keyPUT /v1/metronome/api-keys/{api-key}
Metronome::AccessManagementApisign_upPUT /v1/metronome/sign-up
Metronome::DataExpiryApiget_expiry_noticesGET /v1/metronome/expiry-notices/{date}
Metronome::ItemAccessApiexpire_itemDELETE /v1/metronome/items/{item-id}
Metronome::ItemAccessApiexpire_sub_itemDELETE /v1/metronome/items/{item-id}/{sub-item-id}
Metronome::ItemAccessApiget_item_logGET /v1/metronome/items/{item-id}/log
Metronome::ItemAccessApiget_item_metadataGET /v1/metronome/items/{item-id}
Metronome::ItemAccessApiget_item_policiesGET /v1/metronome/items/{item-id}/policies
Metronome::ItemAccessApiget_sub_item_logGET /v1/metronome/items/{item-id}/{sub-item-id}/log
Metronome::ItemAccessApiget_sub_item_metadataGET /v1/metronome/items/{item-id}/{sub-item-id}
Metronome::ItemAccessApiget_sub_item_policiesGET /v1/metronome/items/{item-id}/{sub-item-id}/policies
Metronome::PolicyManagementApiget_many_policiesGET /v1/metronome/policies
Metronome::PolicyManagementApiget_policyGET /v1/metronome/policies/{policy-id}
Metronome::PolicyManagementApiget_policy_logGET /v1/metronome/policies/{policy-id}/log
Metronome::PolicyManagementApiget_policy_membersGET /v1/metronome/policies/{policy-id}/members
Metronome::PolicyManagementApiput_policyPUT /v1/metronome/policies/{policy-id}
Metronome::TelemetryApipost_telemetryPOST /v1/metronome/telemetry

Documentation for Models

Documentation for Authorization

API key must always be set during configuration except for the AccessManagementApi->sign_up call.

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc