Skip to content

Commit

Permalink
Add StatusCake client code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbasham committed Sep 7, 2022
1 parent 3ffa021 commit 39d14b5
Show file tree
Hide file tree
Showing 59 changed files with 15,194 additions and 0 deletions.
69 changes: 69 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
PATH
remote: .
specs:
statuscake-rb (1.0.0.pre.beta.4)
typhoeus (~> 1.0, >= 1.0.1)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
diff-lcs (1.5.0)
ethon (0.15.0)
ffi (>= 1.15.0)
ffi (1.15.5)
json (2.6.2)
parallel (1.22.1)
parser (3.1.2.1)
ast (~> 2.4.1)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.5.0)
rexml (3.2.5)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rubocop (1.36.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.20.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.21.0)
parser (>= 3.1.1.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.12.1)
rubocop (~> 1.31)
ruby-progressbar (1.11.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (2.2.0)

PLATFORMS
x86_64-linux

DEPENDENCIES
rake (~> 13.0, >= 13.0.1)
rspec (~> 3.6, >= 3.6.0)
rubocop (~> 1.36, >= 1.36.0)
rubocop-rake (~> 0.5, >= 0.5.1)
rubocop-rspec (~> 2.12, >= 2.12.1)
statuscake-rb!

BUNDLED WITH
2.3.7
34 changes: 34 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# frozen_string_literal: true

# StatusCake API
#
# Copyright (c) 2022
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# Contact: support@statuscake.com
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
task default: :spec
107 changes: 107 additions & 0 deletions lib/statuscake.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# frozen_string_literal: true

# StatusCake API
#
# Copyright (c) 2022
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# Contact: support@statuscake.com
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

# Common files
require 'statuscake/api_client'
require 'statuscake/api_error'
require 'statuscake/version'
require 'statuscake/configuration'

# Models
require 'statuscake/models/api_error'
require 'statuscake/models/api_response'
require 'statuscake/models/api_response_data'
require 'statuscake/models/contact_group'
require 'statuscake/models/contact_group_response'
require 'statuscake/models/contact_groups'
require 'statuscake/models/links'
require 'statuscake/models/maintenance_window'
require 'statuscake/models/maintenance_window_repeat_interval'
require 'statuscake/models/maintenance_window_response'
require 'statuscake/models/maintenance_window_state'
require 'statuscake/models/maintenance_windows'
require 'statuscake/models/monitoring_location'
require 'statuscake/models/monitoring_location_status'
require 'statuscake/models/monitoring_locations'
require 'statuscake/models/pagespeed_test'
require 'statuscake/models/pagespeed_test_check_rate'
require 'statuscake/models/pagespeed_test_history'
require 'statuscake/models/pagespeed_test_history_result'
require 'statuscake/models/pagespeed_test_response'
require 'statuscake/models/pagespeed_test_stats'
require 'statuscake/models/pagespeed_test_throttling'
require 'statuscake/models/pagespeed_tests'
require 'statuscake/models/pagination'
require 'statuscake/models/ssl_test'
require 'statuscake/models/ssl_test_check_rate'
require 'statuscake/models/ssl_test_flags'
require 'statuscake/models/ssl_test_mixed_content'
require 'statuscake/models/ssl_test_response'
require 'statuscake/models/ssl_tests'
require 'statuscake/models/uptime_test'
require 'statuscake/models/uptime_test_alert'
require 'statuscake/models/uptime_test_alerts'
require 'statuscake/models/uptime_test_check_rate'
require 'statuscake/models/uptime_test_history'
require 'statuscake/models/uptime_test_history_result'
require 'statuscake/models/uptime_test_overview'
require 'statuscake/models/uptime_test_period'
require 'statuscake/models/uptime_test_periods'
require 'statuscake/models/uptime_test_processing_state'
require 'statuscake/models/uptime_test_response'
require 'statuscake/models/uptime_test_status'
require 'statuscake/models/uptime_test_type'
require 'statuscake/models/uptime_tests'

# APIs
require 'statuscake/api/contact_groups_api'
require 'statuscake/api/locations_api'
require 'statuscake/api/maintenance_windows_api'
require 'statuscake/api/pagespeed_api'
require 'statuscake/api/ssl_api'
require 'statuscake/api/uptime_api'

# :nodoc
module StatusCake
class << self
# Customize default settings for the SDK using block.
# StatusCake.configure do |config|
# config.username = "xxx"
# config.password = "xxx"
# end
# If no block given, return the default Configuration object.
def configure
if block_given?
yield(Configuration.default)
else
Configuration.default
end
end
end
end
Loading

0 comments on commit 39d14b5

Please sign in to comment.