Skip to content

Commit

Permalink
Merge pull request #2 from StatusCakeDev/update-sdk-input-parameters
Browse files Browse the repository at this point in the history
Update SDK input parameters
  • Loading branch information
tomasbasham authored Nov 10, 2022
2 parents f864a19 + 8bf30eb commit 1cd2c9c
Show file tree
Hide file tree
Showing 60 changed files with 90 additions and 73 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
statuscake-rb (1.0.0.pre.beta.4)
statuscake-rb (1.0.1.pre.beta.1)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
3 changes: 2 additions & 1 deletion lib/statuscake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down Expand Up @@ -53,6 +53,7 @@
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_region'
require 'statuscake/models/pagespeed_test_response'
require 'statuscake/models/pagespeed_test_stats'
require 'statuscake/models/pagespeed_test_throttling'
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/api/contact_groups_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
5 changes: 1 addition & 4 deletions lib/statuscake/api/locations_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down Expand Up @@ -102,7 +102,6 @@ def list_pagespeed_monitoring_locations_with_http_info(opts = {})
# Get all uptime monitoring locations
# Returns a list of locations detailing server information for uptime monitoring servers. This information can be used to create further checks using the API.
# @param [Hash] opts the optional parameters
# @option opts [String] :location Alpha-3 ISO 3166-1 country code
# @option opts [String] :region_code Server region code
# @return [MonitoringLocations]
def list_uptime_monitoring_locations(opts = {})
Expand All @@ -113,7 +112,6 @@ def list_uptime_monitoring_locations(opts = {})
# Get all uptime monitoring locations
# Returns a list of locations detailing server information for uptime monitoring servers. This information can be used to create further checks using the API.
# @param [Hash] opts the optional parameters
# @option opts [String] :location Alpha-3 ISO 3166-1 country code
# @option opts [String] :region_code Server region code
# @return [Array<(MonitoringLocations, Integer, Hash)>] MonitoringLocations data, response status code and response headers
def list_uptime_monitoring_locations_with_http_info(opts = {})
Expand All @@ -125,7 +123,6 @@ def list_uptime_monitoring_locations_with_http_info(opts = {})

# query parameters
query_params = opts[:query_params] || {}
query_params[:'location'] = opts[:'location'] unless opts[:'location'].nil?
query_params[:'region_code'] = opts[:'region_code'] unless opts[:'region_code'].nil?

# header parameters
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/api/maintenance_windows_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
9 changes: 8 additions & 1 deletion lib/statuscake/api/pagespeed_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down Expand Up @@ -290,6 +290,7 @@ def get_pagespeed_test_with_http_info(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of results to return from the series (default to 25)
# @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
# @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
# @return [PagespeedTestHistory]
def list_pagespeed_test_history(test_id, opts = {})
data, _status_code, _headers = list_pagespeed_test_history_with_http_info(test_id, opts)
Expand All @@ -302,6 +303,7 @@ def list_pagespeed_test_history(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of results to return from the series (default to 25)
# @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
# @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
# @return [Array<(PagespeedTestHistory, Integer, Hash)>] PagespeedTestHistory data, response status code and response headers
def list_pagespeed_test_history_with_http_info(test_id, opts = {})
if @api_client.config.debugging
Expand All @@ -323,13 +325,18 @@ def list_pagespeed_test_history_with_http_info(test_id, opts = {})
raise ArgumentError, 'invalid value for "opts[:"before"]" when calling PagespeedApi.list_pagespeed_test_history, must be greater than or equal to 0.'
end

if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
raise ArgumentError, 'invalid value for "opts[:"after"]" when calling PagespeedApi.list_pagespeed_test_history, must be greater than or equal to 0.'
end

# resource path
local_var_path = '/pagespeed/{test_id}/history'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/api/ssl_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
23 changes: 22 additions & 1 deletion lib/statuscake/api/uptime_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down Expand Up @@ -366,6 +366,7 @@ def get_uptime_test_with_http_info(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of uptime alerts to return per page (default to 25)
# @option opts [Integer] :before Only alerts triggered before this UNIX timestamp will be returned
# @option opts [Integer] :after Only alerts triggered after this UNIX timestamp will be returned
# @return [UptimeTestAlerts]
def list_uptime_test_alerts(test_id, opts = {})
data, _status_code, _headers = list_uptime_test_alerts_with_http_info(test_id, opts)
Expand All @@ -378,6 +379,7 @@ def list_uptime_test_alerts(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of uptime alerts to return per page (default to 25)
# @option opts [Integer] :before Only alerts triggered before this UNIX timestamp will be returned
# @option opts [Integer] :after Only alerts triggered after this UNIX timestamp will be returned
# @return [Array<(UptimeTestAlerts, Integer, Hash)>] UptimeTestAlerts data, response status code and response headers
def list_uptime_test_alerts_with_http_info(test_id, opts = {})
if @api_client.config.debugging
Expand All @@ -399,13 +401,18 @@ def list_uptime_test_alerts_with_http_info(test_id, opts = {})
raise ArgumentError, 'invalid value for "opts[:"before"]" when calling UptimeApi.list_uptime_test_alerts, must be greater than or equal to 0.'
end

if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
raise ArgumentError, 'invalid value for "opts[:"after"]" when calling UptimeApi.list_uptime_test_alerts, must be greater than or equal to 0.'
end

# resource path
local_var_path = '/uptime/{test_id}/alerts'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down Expand Up @@ -448,6 +455,7 @@ def list_uptime_test_alerts_with_http_info(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of results to return per page (default to 25)
# @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
# @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
# @return [UptimeTestHistory]
def list_uptime_test_history(test_id, opts = {})
data, _status_code, _headers = list_uptime_test_history_with_http_info(test_id, opts)
Expand All @@ -460,6 +468,7 @@ def list_uptime_test_history(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of results to return per page (default to 25)
# @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
# @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
# @return [Array<(UptimeTestHistory, Integer, Hash)>] UptimeTestHistory data, response status code and response headers
def list_uptime_test_history_with_http_info(test_id, opts = {})
if @api_client.config.debugging
Expand All @@ -481,13 +490,18 @@ def list_uptime_test_history_with_http_info(test_id, opts = {})
raise ArgumentError, 'invalid value for "opts[:"before"]" when calling UptimeApi.list_uptime_test_history, must be greater than or equal to 0.'
end

if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
raise ArgumentError, 'invalid value for "opts[:"after"]" when calling UptimeApi.list_uptime_test_history, must be greater than or equal to 0.'
end

# resource path
local_var_path = '/uptime/{test_id}/history'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down Expand Up @@ -530,6 +544,7 @@ def list_uptime_test_history_with_http_info(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of uptime check periods to return per page (default to 25)
# @option opts [Integer] :before Only check periods created before this UNIX timestamp will be returned
# @option opts [Integer] :after Only check periods created after this UNIX timestamp will be returned
# @return [UptimeTestPeriods]
def list_uptime_test_periods(test_id, opts = {})
data, _status_code, _headers = list_uptime_test_periods_with_http_info(test_id, opts)
Expand All @@ -542,6 +557,7 @@ def list_uptime_test_periods(test_id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of uptime check periods to return per page (default to 25)
# @option opts [Integer] :before Only check periods created before this UNIX timestamp will be returned
# @option opts [Integer] :after Only check periods created after this UNIX timestamp will be returned
# @return [Array<(UptimeTestPeriods, Integer, Hash)>] UptimeTestPeriods data, response status code and response headers
def list_uptime_test_periods_with_http_info(test_id, opts = {})
if @api_client.config.debugging
Expand All @@ -563,13 +579,18 @@ def list_uptime_test_periods_with_http_info(test_id, opts = {})
raise ArgumentError, 'invalid value for "opts[:"before"]" when calling UptimeApi.list_uptime_test_periods, must be greater than or equal to 0.'
end

if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
raise ArgumentError, 'invalid value for "opts[:"after"]" when calling UptimeApi.list_uptime_test_periods, must be greater than or equal to 0.'
end

# resource path
local_var_path = '/uptime/{test_id}/periods'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down
4 changes: 1 addition & 3 deletions lib/statuscake/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down Expand Up @@ -111,8 +111,6 @@ def build_request(http_method, path, opts = {})
form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || true

update_params_for_auth! header_params, query_params, opts[:auth_names]

# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
verify_ssl_host = @config.verify_ssl_host ? 2 : 0

Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
9 changes: 1 addition & 8 deletions lib/statuscake/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down Expand Up @@ -233,13 +233,6 @@ def basic_auth_token
# Returns Auth Settings hash for api client.
def auth_settings
{
'api_key' =>
{
type: 'api_key',
in: 'header',
key: 'Authorization',
value: api_key_with_prefix('api_key'),
},
}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/api_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/api_response_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/contact_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/contact_group_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/contact_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/links.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion lib/statuscake/models/maintenance_window.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# API version: 1.0.0
# API version: 1.0.1
# Contact: [email protected]
#
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Expand Down
Loading

0 comments on commit 1cd2c9c

Please sign in to comment.