diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
commit | 3b1af5cc7ed2666ff18b718ce5d30fa5a2756674 (patch) | |
tree | 3bc4a40e0ee51ec27eabf917c537033c0c5b14d4 /vendor | |
parent | 9bba14be3f2c211bf79e15769cd9b77bc73a13bc (diff) |
Add latest changes from gitlab-org/gitlab@16-1-stable-eev16.1.0-rc42
Diffstat (limited to 'vendor')
56 files changed, 2612 insertions, 128 deletions
diff --git a/vendor/assets/javascripts/vue-virtual-scroller/src/components/DynamicScroller.vue b/vendor/assets/javascripts/vue-virtual-scroller/src/components/DynamicScroller.vue index 2d354d605f8..d8f5023555c 100644 --- a/vendor/assets/javascripts/vue-virtual-scroller/src/components/DynamicScroller.vue +++ b/vendor/assets/javascripts/vue-virtual-scroller/src/components/DynamicScroller.vue @@ -45,19 +45,21 @@ export default { provide () { if (typeof ResizeObserver !== 'undefined') { this.$_resizeObserver = new ResizeObserver(entries => { - for (const entry of entries) { - if (entry.target) { - const event = new CustomEvent( - 'resize', - { - detail: { - contentRect: entry.contentRect, + requestAnimationFrame(() => { + for (const entry of entries) { + if (entry.target) { + const event = new CustomEvent( + 'resize', + { + detail: { + contentRect: entry.contentRect, + }, }, - }, - ) - entry.target.dispatchEvent(event) + ) + entry.target.dispatchEvent(event) + } } - } + }); }) } diff --git a/vendor/gems/README.md b/vendor/gems/README.md new file mode 100644 index 00000000000..f55ae7224a6 --- /dev/null +++ b/vendor/gems/README.md @@ -0,0 +1,18 @@ +# Vendored Gems + +This folder is used to store externally pulled dependencies. + +## Development guidelines + +The data stored in this directory should adhere to the following rules: + +- MUST: Contain `GITLAB.md` to indicate where this data was pulled + from with a description of what changes were made. +- MUST: Be added to `.gitlab/ci/vendored-gems.gitlab-ci.yml`. +- MUST NOT: Reference source code from outside of `vendor/gems/` or `require_relative "../../lib"`. +- MUST NOT: Require other gems that would result in circular dependencies. +- SHOULD NOT: Be published to RubyGems under our name. +- SHOULD: Be used with `gem <name>, path: "vendor/mail-smtp_pool"`. +- RECOMMENDED: Be added to `CODEOWNERS`. +- MAY: Reference other Gems in `vendor/gems/` with `gem <name>, path: "../mail-smtp_pool"`. +- MAY: Contain our patches to make them work with the GitLab monorepo, for example to continue to support deprecated or unmaintained dependences. diff --git a/vendor/gems/attr_encrypted/.gitlab-ci.yml b/vendor/gems/attr_encrypted/.gitlab-ci.yml index 42b2b9e1e01..7d954de43a0 100644 --- a/vendor/gems/attr_encrypted/.gitlab-ci.yml +++ b/vendor/gems/attr_encrypted/.gitlab-ci.yml @@ -23,4 +23,4 @@ rspec: - bundle exec rake test parallel: matrix: - - RUBY_VERSION: ["2.7", "3.0"] + - RUBY_VERSION: ["2.7", "3.0", "3.1"] diff --git a/vendor/gems/bundler-checksum/lib/bundler_checksum/command.rb b/vendor/gems/bundler-checksum/lib/bundler_checksum/command.rb index c6c71431538..b84abd932fb 100644 --- a/vendor/gems/bundler-checksum/lib/bundler_checksum/command.rb +++ b/vendor/gems/bundler-checksum/lib/bundler_checksum/command.rb @@ -3,19 +3,27 @@ module BundlerChecksum module Command autoload :Init, File.expand_path("command/init", __dir__) + autoload :Lint, File.expand_path("command/lint", __dir__) autoload :Verify, File.expand_path("command/verify", __dir__) autoload :Helper, File.expand_path("command/helper", __dir__) def self.execute(args) if args.empty? - $stderr.puts 'A command must be given [init,update,verify]' + $stderr.puts 'A command must be given [init,update,verify,lint]' end - if args.first == 'init' + case args.first + when 'init' Init.execute - elsif args.first == 'update' + when 'update' $stderr.puts 'Not implemented, please use init' - elsif args.first == 'verify' + when 'lint' + linted = Lint.execute + + unless linted + exit 1 + end + when 'verify' verified = Verify.execute unless verified diff --git a/vendor/gems/bundler-checksum/lib/bundler_checksum/command/lint.rb b/vendor/gems/bundler-checksum/lib/bundler_checksum/command/lint.rb new file mode 100644 index 00000000000..01da04ce27c --- /dev/null +++ b/vendor/gems/bundler-checksum/lib/bundler_checksum/command/lint.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +require 'set' + +module BundlerChecksum::Command + module Lint + extend self + + def execute + linted = true + + Bundler.definition.resolve.sort_by(&:name).each do |spec| + next unless spec.source.is_a?(Bundler::Source::Rubygems) + + unless checksum_for?(spec.name) + $stderr.puts "ERROR: Missing checksum for gem `#{spec.name}`" + linted = false + end + end + + unless linted + $stderr.puts <<~MSG + + Please run `bundle exec bundler-checksum init` to add missing checksums. + MSG + end + + linted + end + + private + + def checksum_for?(name) + gems_with_checksums.include?(name) + end + + def gems_with_checksums + @gems_with_checksums ||= local_checksums.map { |hash| hash[:name] }.to_set + end + + def local_checksums + ::BundlerChecksum.checksums_from_file + end + end +end diff --git a/vendor/gems/bundler-checksum/test/project_with_checksum_lock/scripts/test b/vendor/gems/bundler-checksum/test/project_with_checksum_lock/scripts/test index bb256449226..9b6d83591f8 100755 --- a/vendor/gems/bundler-checksum/test/project_with_checksum_lock/scripts/test +++ b/vendor/gems/bundler-checksum/test/project_with_checksum_lock/scripts/test @@ -3,6 +3,9 @@ set -x set -e +# Ensure that each gem has a checksum entry +ruby -I ../../lib ../../bin/bundler-checksum lint + # Check there's no differences after re-initialising ruby -I ../../lib ../../bin/bundler-checksum init git diff --exit-code Gemfile.checksum diff --git a/vendor/gems/error_tracking_open_api/.openapi-generator/FILES b/vendor/gems/error_tracking_open_api/.openapi-generator/FILES index cf42a5d9e36..dac42207e8b 100644 --- a/vendor/gems/error_tracking_open_api/.openapi-generator/FILES +++ b/vendor/gems/error_tracking_open_api/.openapi-generator/FILES @@ -8,29 +8,53 @@ README.md Rakefile docs/Error.md docs/ErrorEvent.md +docs/ErrorStats.md docs/ErrorUpdatePayload.md +docs/ErrorV2.md docs/ErrorsApi.md +docs/ErrorsV2Api.md docs/EventsApi.md +docs/MessageEvent.md +docs/MessagesApi.md +docs/Project.md docs/ProjectsApi.md +docs/StatsObject.md +docs/StatsObjectGroupInner.md error_tracking_open_api.gemspec git_push.sh lib/error_tracking_open_api.rb lib/error_tracking_open_api/api/errors_api.rb +lib/error_tracking_open_api/api/errors_v2_api.rb lib/error_tracking_open_api/api/events_api.rb +lib/error_tracking_open_api/api/messages_api.rb lib/error_tracking_open_api/api/projects_api.rb lib/error_tracking_open_api/api_client.rb lib/error_tracking_open_api/api_error.rb lib/error_tracking_open_api/configuration.rb lib/error_tracking_open_api/models/error.rb lib/error_tracking_open_api/models/error_event.rb +lib/error_tracking_open_api/models/error_stats.rb lib/error_tracking_open_api/models/error_update_payload.rb +lib/error_tracking_open_api/models/error_v2.rb +lib/error_tracking_open_api/models/message_event.rb +lib/error_tracking_open_api/models/project.rb +lib/error_tracking_open_api/models/stats_object.rb +lib/error_tracking_open_api/models/stats_object_group_inner.rb lib/error_tracking_open_api/version.rb spec/api/errors_api_spec.rb +spec/api/errors_v2_api_spec.rb spec/api/events_api_spec.rb +spec/api/messages_api_spec.rb spec/api/projects_api_spec.rb spec/api_client_spec.rb spec/configuration_spec.rb spec/models/error_event_spec.rb spec/models/error_spec.rb +spec/models/error_stats_spec.rb spec/models/error_update_payload_spec.rb +spec/models/error_v2_spec.rb +spec/models/message_event_spec.rb +spec/models/project_spec.rb +spec/models/stats_object_group_inner_spec.rb +spec/models/stats_object_spec.rb spec/spec_helper.rb diff --git a/vendor/gems/error_tracking_open_api/LICENSE b/vendor/gems/error_tracking_open_api/LICENSE index aafb7f79450..6ea83cb3a5d 100644 --- a/vendor/gems/error_tracking_open_api/LICENSE +++ b/vendor/gems/error_tracking_open_api/LICENSE @@ -1,4 +1,4 @@ -Copyright 2022 GitLab B.V. +Copyright 2022-2023 GitLab B.V. 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: diff --git a/vendor/gems/error_tracking_open_api/README.md b/vendor/gems/error_tracking_open_api/README.md index 1d7c3df8526..7591f0eb38a 100644 --- a/vendor/gems/error_tracking_open_api/README.md +++ b/vendor/gems/error_tracking_open_api/README.md @@ -1,10 +1,10 @@ -# Generated by `rake gems:error_tracking_open_api:generate` on 2022-07-18 +# Generated by `rake gems:error_tracking_open_api:generate` on 2023-06-08 See https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/development/rake_tasks.md#update-openapi-client-for-error-tracking-feature # error_tracking_open_api -ErrorTrackingOpenAPI - the Ruby gem for the Error Trackig REST API +ErrorTrackingOpenAPI - the Ruby gem for the Error Tracking REST API This schema describes the API endpoints for the error tracking feature @@ -92,9 +92,13 @@ Class | Method | HTTP request | Description *ErrorTrackingOpenAPI::ErrorsApi* | [**list_errors**](docs/ErrorsApi.md#list_errors) | **GET** /projects/{projectId}/errors | List of errors *ErrorTrackingOpenAPI::ErrorsApi* | [**list_events**](docs/ErrorsApi.md#list_events) | **GET** /projects/{projectId}/errors/{fingerprint}/events | Get information about the events related to the error *ErrorTrackingOpenAPI::ErrorsApi* | [**update_error**](docs/ErrorsApi.md#update_error) | **PUT** /projects/{projectId}/errors/{fingerprint} | Update the status of the error +*ErrorTrackingOpenAPI::ErrorsV2Api* | [**get_stats_v2**](docs/ErrorsV2Api.md#get_stats_v2) | **GET** /api/0/organizations/{groupId}/stats_v2 | Stats of events received for the group +*ErrorTrackingOpenAPI::ErrorsV2Api* | [**list_errors_v2**](docs/ErrorsV2Api.md#list_errors_v2) | **GET** /api/0/organizations/{groupId}/issues/ | List of errors(V2) +*ErrorTrackingOpenAPI::ErrorsV2Api* | [**list_projects**](docs/ErrorsV2Api.md#list_projects) | **GET** /api/0/organizations/{groupId}/projects/ | List of projects *ErrorTrackingOpenAPI::EventsApi* | [**list_events**](docs/EventsApi.md#list_events) | **GET** /projects/{projectId}/errors/{fingerprint}/events | Get information about the events related to the error *ErrorTrackingOpenAPI::EventsApi* | [**projects_api_project_id_envelope_post**](docs/EventsApi.md#projects_api_project_id_envelope_post) | **POST** /projects/api/{projectId}/envelope | Ingestion endpoint for error events sent from client SDKs *ErrorTrackingOpenAPI::EventsApi* | [**projects_api_project_id_store_post**](docs/EventsApi.md#projects_api_project_id_store_post) | **POST** /projects/api/{projectId}/store | Ingestion endpoint for error events sent from client SDKs +*ErrorTrackingOpenAPI::MessagesApi* | [**list_messages**](docs/MessagesApi.md#list_messages) | **GET** /projects/{projectId}/messages | List of messages *ErrorTrackingOpenAPI::ProjectsApi* | [**delete_project**](docs/ProjectsApi.md#delete_project) | **DELETE** /projects/{id} | Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects. @@ -102,7 +106,13 @@ Class | Method | HTTP request | Description - [ErrorTrackingOpenAPI::Error](docs/Error.md) - [ErrorTrackingOpenAPI::ErrorEvent](docs/ErrorEvent.md) + - [ErrorTrackingOpenAPI::ErrorStats](docs/ErrorStats.md) - [ErrorTrackingOpenAPI::ErrorUpdatePayload](docs/ErrorUpdatePayload.md) + - [ErrorTrackingOpenAPI::ErrorV2](docs/ErrorV2.md) + - [ErrorTrackingOpenAPI::MessageEvent](docs/MessageEvent.md) + - [ErrorTrackingOpenAPI::Project](docs/Project.md) + - [ErrorTrackingOpenAPI::StatsObject](docs/StatsObject.md) + - [ErrorTrackingOpenAPI::StatsObjectGroupInner](docs/StatsObjectGroupInner.md) ## Documentation for Authorization diff --git a/vendor/gems/error_tracking_open_api/docs/Error.md b/vendor/gems/error_tracking_open_api/docs/Error.md index 45aa4cf6b8a..55a013ebfb7 100644 --- a/vendor/gems/error_tracking_open_api/docs/Error.md +++ b/vendor/gems/error_tracking_open_api/docs/Error.md @@ -14,6 +14,7 @@ | **last_seen_at** | **Time** | | [optional] | | **first_seen_at** | **Time** | | [optional] | | **status** | **String** | Status of the error | [optional] | +| **stats** | [**ErrorStats**](ErrorStats.md) | | [optional] | ## Example @@ -30,7 +31,8 @@ instance = ErrorTrackingOpenAPI::Error.new( approximated_user_count: null, last_seen_at: null, first_seen_at: null, - status: null + status: null, + stats: null ) ``` diff --git a/vendor/gems/error_tracking_open_api/docs/ErrorStats.md b/vendor/gems/error_tracking_open_api/docs/ErrorStats.md new file mode 100644 index 00000000000..3b8ab24b54b --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/ErrorStats.md @@ -0,0 +1,18 @@ +# ErrorTrackingOpenAPI::ErrorStats + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **frequency** | **Object** | | [optional] | + +## Example + +```ruby +require 'error_tracking_open_api' + +instance = ErrorTrackingOpenAPI::ErrorStats.new( + frequency: null +) +``` + diff --git a/vendor/gems/error_tracking_open_api/docs/ErrorV2.md b/vendor/gems/error_tracking_open_api/docs/ErrorV2.md new file mode 100644 index 00000000000..77aa58e601c --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/ErrorV2.md @@ -0,0 +1,34 @@ +# ErrorTrackingOpenAPI::ErrorV2 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | | [optional] | +| **project** | [**Project**](Project.md) | | [optional] | +| **title** | **String** | | [optional] | +| **actor** | **String** | | [optional] | +| **count** | **String** | | [optional] | +| **user_count** | **Integer** | | [optional] | +| **last_seen** | **Time** | | [optional] | +| **first_seen** | **Time** | | [optional] | +| **status** | **String** | Status of the error | [optional] | + +## Example + +```ruby +require 'error_tracking_open_api' + +instance = ErrorTrackingOpenAPI::ErrorV2.new( + id: null, + project: null, + title: ActionView::MissingTemplate, + actor: PostsController#edit, + count: null, + user_count: null, + last_seen: null, + first_seen: null, + status: null +) +``` + diff --git a/vendor/gems/error_tracking_open_api/docs/ErrorsApi.md b/vendor/gems/error_tracking_open_api/docs/ErrorsApi.md index b9b7d2f6421..fc7f35e8d03 100644 --- a/vendor/gems/error_tracking_open_api/docs/ErrorsApi.md +++ b/vendor/gems/error_tracking_open_api/docs/ErrorsApi.md @@ -107,7 +107,9 @@ opts = { status: 'unresolved', # String | query: 'query_example', # String | cursor: 'cursor_example', # String | Base64 encoded information for pagination - limit: 56 # Integer | Number of entries to return + limit: 56, # Integer | Number of entries to return + stats_period: '15m', # String | + query_period: '15m' # String | } begin @@ -147,6 +149,8 @@ end | **query** | **String** | | [optional] | | **cursor** | **String** | Base64 encoded information for pagination | [optional] | | **limit** | **Integer** | Number of entries to return | [optional][default to 20] | +| **stats_period** | **String** | | [optional][default to '24h'] | +| **query_period** | **String** | | [optional][default to '30d'] | ### Return type diff --git a/vendor/gems/error_tracking_open_api/docs/ErrorsV2Api.md b/vendor/gems/error_tracking_open_api/docs/ErrorsV2Api.md new file mode 100644 index 00000000000..23f3e43bdf8 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/ErrorsV2Api.md @@ -0,0 +1,235 @@ +# ErrorTrackingOpenAPI::ErrorsV2Api + +All URIs are relative to *https://localhost/errortracking/api/v1* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**get_stats_v2**](ErrorsV2Api.md#get_stats_v2) | **GET** /api/0/organizations/{groupId}/stats_v2 | Stats of events received for the group | +| [**list_errors_v2**](ErrorsV2Api.md#list_errors_v2) | **GET** /api/0/organizations/{groupId}/issues/ | List of errors(V2) | +| [**list_projects**](ErrorsV2Api.md#list_projects) | **GET** /api/0/organizations/{groupId}/projects/ | List of projects | + + +## get_stats_v2 + +> <Array<StatsObject>> get_stats_v2(group_id) + +Stats of events received for the group + +### Examples + +```ruby +require 'time' +require 'error_tracking_open_api' +# setup authorization +ErrorTrackingOpenAPI.configure do |config| + # Configure API key authorization: internalToken + config.api_key['internalToken'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['internalToken'] = 'Bearer' +end + +api_instance = ErrorTrackingOpenAPI::ErrorsV2Api.new +group_id = 56 # Integer | ID of the group + +begin + # Stats of events received for the group + result = api_instance.get_stats_v2(group_id) + p result +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling ErrorsV2Api->get_stats_v2: #{e}" +end +``` + +#### Using the get_stats_v2_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> <Array(<Array<StatsObject>>, Integer, Hash)> get_stats_v2_with_http_info(group_id) + +```ruby +begin + # Stats of events received for the group + data, status_code, headers = api_instance.get_stats_v2_with_http_info(group_id) + p status_code # => 2xx + p headers # => { ... } + p data # => <Array<StatsObject>> +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling ErrorsV2Api->get_stats_v2_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **group_id** | **Integer** | ID of the group | | + +### Return type + +[**Array<StatsObject>**](StatsObject.md) + +### Authorization + +[internalToken](../README.md#internalToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + + +## list_errors_v2 + +> <Array<ErrorV2>> list_errors_v2(project, group_id, opts) + +List of errors(V2) + +### Examples + +```ruby +require 'time' +require 'error_tracking_open_api' +# setup authorization +ErrorTrackingOpenAPI.configure do |config| + # Configure API key authorization: internalToken + config.api_key['internalToken'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['internalToken'] = 'Bearer' +end + +api_instance = ErrorTrackingOpenAPI::ErrorsV2Api.new +project = [37] # Array<Integer> | ID of the project where the error was created +group_id = 56 # Integer | ID of the group +opts = { + status: 'unresolved', # String | + query: 'query_example', # String | + start: 'start_example', # String | Optional start of the stat period in format 2006-01-02T15:04:05 + _end: '_end_example', # String | Optional end of the stat period in format 2006-01-02T15:04:05 + environment: 'environment_example', # String | + limit: 56, # Integer | Number of entries to return + sort: 'date' # String | Optional sorting column of the entries +} + +begin + # List of errors(V2) + result = api_instance.list_errors_v2(project, group_id, opts) + p result +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling ErrorsV2Api->list_errors_v2: #{e}" +end +``` + +#### Using the list_errors_v2_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> <Array(<Array<ErrorV2>>, Integer, Hash)> list_errors_v2_with_http_info(project, group_id, opts) + +```ruby +begin + # List of errors(V2) + data, status_code, headers = api_instance.list_errors_v2_with_http_info(project, group_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => <Array<ErrorV2>> +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling ErrorsV2Api->list_errors_v2_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **project** | [**Array<Integer>**](Integer.md) | ID of the project where the error was created | | +| **group_id** | **Integer** | ID of the group | | +| **status** | **String** | | [optional][default to 'unresolved'] | +| **query** | **String** | | [optional] | +| **start** | **String** | Optional start of the stat period in format 2006-01-02T15:04:05 | [optional] | +| **_end** | **String** | Optional end of the stat period in format 2006-01-02T15:04:05 | [optional] | +| **environment** | **String** | | [optional] | +| **limit** | **Integer** | Number of entries to return | [optional][default to 20] | +| **sort** | **String** | Optional sorting column of the entries | [optional][default to 'date'] | + +### Return type + +[**Array<ErrorV2>**](ErrorV2.md) + +### Authorization + +[internalToken](../README.md#internalToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + + +## list_projects + +> <Array<Project>> list_projects(group_id) + +List of projects + +### Examples + +```ruby +require 'time' +require 'error_tracking_open_api' +# setup authorization +ErrorTrackingOpenAPI.configure do |config| + # Configure API key authorization: internalToken + config.api_key['internalToken'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['internalToken'] = 'Bearer' +end + +api_instance = ErrorTrackingOpenAPI::ErrorsV2Api.new +group_id = 56 # Integer | ID of the group + +begin + # List of projects + result = api_instance.list_projects(group_id) + p result +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling ErrorsV2Api->list_projects: #{e}" +end +``` + +#### Using the list_projects_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> <Array(<Array<Project>>, Integer, Hash)> list_projects_with_http_info(group_id) + +```ruby +begin + # List of projects + data, status_code, headers = api_instance.list_projects_with_http_info(group_id) + p status_code # => 2xx + p headers # => { ... } + p data # => <Array<Project>> +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling ErrorsV2Api->list_projects_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **group_id** | **Integer** | ID of the group | | + +### Return type + +[**Array<Project>**](Project.md) + +### Authorization + +[internalToken](../README.md#internalToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + diff --git a/vendor/gems/error_tracking_open_api/docs/MessageEvent.md b/vendor/gems/error_tracking_open_api/docs/MessageEvent.md new file mode 100644 index 00000000000..d96974b150e --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/MessageEvent.md @@ -0,0 +1,32 @@ +# ErrorTrackingOpenAPI::MessageEvent + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **project_id** | **Integer** | | [optional] | +| **event_id** | **String** | | [optional] | +| **timestamp** | **Time** | | [optional] | +| **level** | **String** | | [optional] | +| **message** | **String** | | [optional] | +| **release** | **String** | | [optional] | +| **environment** | **String** | | [optional] | +| **platform** | **String** | | [optional] | + +## Example + +```ruby +require 'error_tracking_open_api' + +instance = ErrorTrackingOpenAPI::MessageEvent.new( + project_id: null, + event_id: null, + timestamp: null, + level: info, + message: some message from the SDK, + release: v1.0.0, + environment: production, + platform: ruby +) +``` + diff --git a/vendor/gems/error_tracking_open_api/docs/MessagesApi.md b/vendor/gems/error_tracking_open_api/docs/MessagesApi.md new file mode 100644 index 00000000000..abaf2f9dbe6 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/MessagesApi.md @@ -0,0 +1,81 @@ +# ErrorTrackingOpenAPI::MessagesApi + +All URIs are relative to *https://localhost/errortracking/api/v1* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**list_messages**](MessagesApi.md#list_messages) | **GET** /projects/{projectId}/messages | List of messages | + + +## list_messages + +> <Array<MessageEvent>> list_messages(project_id, opts) + +List of messages + +### Examples + +```ruby +require 'time' +require 'error_tracking_open_api' +# setup authorization +ErrorTrackingOpenAPI.configure do |config| + # Configure API key authorization: internalToken + config.api_key['internalToken'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['internalToken'] = 'Bearer' +end + +api_instance = ErrorTrackingOpenAPI::MessagesApi.new +project_id = 56 # Integer | ID of the project where the message was created +opts = { + limit: 56 # Integer | Number of entries to return +} + +begin + # List of messages + result = api_instance.list_messages(project_id, opts) + p result +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling MessagesApi->list_messages: #{e}" +end +``` + +#### Using the list_messages_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> <Array(<Array<MessageEvent>>, Integer, Hash)> list_messages_with_http_info(project_id, opts) + +```ruby +begin + # List of messages + data, status_code, headers = api_instance.list_messages_with_http_info(project_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => <Array<MessageEvent>> +rescue ErrorTrackingOpenAPI::ApiError => e + puts "Error when calling MessagesApi->list_messages_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **project_id** | **Integer** | ID of the project where the message was created | | +| **limit** | **Integer** | Number of entries to return | [optional][default to 20] | + +### Return type + +[**Array<MessageEvent>**](MessageEvent.md) + +### Authorization + +[internalToken](../README.md#internalToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + diff --git a/vendor/gems/error_tracking_open_api/docs/Project.md b/vendor/gems/error_tracking_open_api/docs/Project.md new file mode 100644 index 00000000000..fbaeb7e6986 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/Project.md @@ -0,0 +1,22 @@ +# ErrorTrackingOpenAPI::Project + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | ID of the project | [optional] | +| **name** | **String** | Name of the project | [optional] | +| **slug** | **String** | Slug of the project | [optional] | + +## Example + +```ruby +require 'error_tracking_open_api' + +instance = ErrorTrackingOpenAPI::Project.new( + id: null, + name: null, + slug: null +) +``` + diff --git a/vendor/gems/error_tracking_open_api/docs/StatsObject.md b/vendor/gems/error_tracking_open_api/docs/StatsObject.md new file mode 100644 index 00000000000..ef3007aecd0 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/StatsObject.md @@ -0,0 +1,24 @@ +# ErrorTrackingOpenAPI::StatsObject + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **start** | **String** | ID of the project | [optional] | +| **_end** | **String** | Name of the project | [optional] | +| **interval** | **Array<String>** | Slug of the project | [optional] | +| **group** | [**Array<StatsObjectGroupInner>**](StatsObjectGroupInner.md) | | [optional] | + +## Example + +```ruby +require 'error_tracking_open_api' + +instance = ErrorTrackingOpenAPI::StatsObject.new( + start: null, + _end: null, + interval: null, + group: null +) +``` + diff --git a/vendor/gems/error_tracking_open_api/docs/StatsObjectGroupInner.md b/vendor/gems/error_tracking_open_api/docs/StatsObjectGroupInner.md new file mode 100644 index 00000000000..c72da9c6616 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/docs/StatsObjectGroupInner.md @@ -0,0 +1,22 @@ +# ErrorTrackingOpenAPI::StatsObjectGroupInner + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **by** | **Hash<String, Object>** | | [optional] | +| **totals** | **Hash<String, Object>** | | [optional] | +| **series** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'error_tracking_open_api' + +instance = ErrorTrackingOpenAPI::StatsObjectGroupInner.new( + by: null, + totals: null, + series: null +) +``` + diff --git a/vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec b/vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec index 45f07204725..1eed64d49ad 100644 --- a/vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec +++ b/vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.authors = ["OpenAPI-Generator"] s.email = [""] s.homepage = "https://openapi-generator.tech" - s.summary = "Error Trackig REST API Ruby Gem" + s.summary = "Error Tracking REST API Ruby Gem" s.description = "This schema describes the API endpoints for the error tracking feature" s.license = "MIT" s.required_ruby_version = ">= 2.4" diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb index 9107f44414d..63ad3ce7194 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature @@ -19,11 +19,19 @@ require 'error_tracking_open_api/configuration' # Models require 'error_tracking_open_api/models/error' require 'error_tracking_open_api/models/error_event' +require 'error_tracking_open_api/models/error_stats' require 'error_tracking_open_api/models/error_update_payload' +require 'error_tracking_open_api/models/error_v2' +require 'error_tracking_open_api/models/message_event' +require 'error_tracking_open_api/models/project' +require 'error_tracking_open_api/models/stats_object' +require 'error_tracking_open_api/models/stats_object_group_inner' # APIs require 'error_tracking_open_api/api/errors_api' +require 'error_tracking_open_api/api/errors_v2_api' require 'error_tracking_open_api/api/events_api' +require 'error_tracking_open_api/api/messages_api' require 'error_tracking_open_api/api/projects_api' module ErrorTrackingOpenAPI diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb index 992d37abb6c..6b4aae416b3 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature @@ -94,6 +94,8 @@ module ErrorTrackingOpenAPI # @option opts [String] :query # @option opts [String] :cursor Base64 encoded information for pagination # @option opts [Integer] :limit Number of entries to return (default to 20) + # @option opts [String] :stats_period (default to '24h') + # @option opts [String] :query_period (default to '30d') # @return [Array<Error>] def list_errors(project_id, opts = {}) data, _status_code, _headers = list_errors_with_http_info(project_id, opts) @@ -108,6 +110,8 @@ module ErrorTrackingOpenAPI # @option opts [String] :query # @option opts [String] :cursor Base64 encoded information for pagination # @option opts [Integer] :limit Number of entries to return (default to 20) + # @option opts [String] :stats_period (default to '24h') + # @option opts [String] :query_period (default to '30d') # @return [Array<(Array<Error>, Integer, Hash)>] Array<Error> data, response status code and response headers def list_errors_with_http_info(project_id, opts = {}) if @api_client.config.debugging @@ -133,6 +137,14 @@ module ErrorTrackingOpenAPI fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ErrorsApi.list_errors, must be greater than or equal to 1.' end + allowable_values = ["15m", "30m", "1h", "24h", "7d", "14d", "30d"] + if @api_client.config.client_side_validation && opts[:'stats_period'] && !allowable_values.include?(opts[:'stats_period']) + fail ArgumentError, "invalid value for \"stats_period\", must be one of #{allowable_values}" + end + allowable_values = ["15m", "30m", "1h", "1d", "7d", "14d", "30d"] + if @api_client.config.client_side_validation && opts[:'query_period'] && !allowable_values.include?(opts[:'query_period']) + fail ArgumentError, "invalid value for \"query_period\", must be one of #{allowable_values}" + end # resource path local_var_path = '/projects/{projectId}/errors'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)) @@ -143,6 +155,8 @@ module ErrorTrackingOpenAPI query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'statsPeriod'] = opts[:'stats_period'] if !opts[:'stats_period'].nil? + query_params[:'queryPeriod'] = opts[:'query_period'] if !opts[:'query_period'].nil? # header parameters header_params = opts[:header_params] || {} diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_v2_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_v2_api.rb new file mode 100644 index 00000000000..e7ebfdbef99 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_v2_api.rb @@ -0,0 +1,249 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'cgi' + +module ErrorTrackingOpenAPI + class ErrorsV2Api + attr_accessor :api_client + + def initialize(api_client = ApiClient.default) + @api_client = api_client + end + # Stats of events received for the group + # @param group_id [Integer] ID of the group + # @param [Hash] opts the optional parameters + # @return [Array<StatsObject>] + def get_stats_v2(group_id, opts = {}) + data, _status_code, _headers = get_stats_v2_with_http_info(group_id, opts) + data + end + + # Stats of events received for the group + # @param group_id [Integer] ID of the group + # @param [Hash] opts the optional parameters + # @return [Array<(Array<StatsObject>, Integer, Hash)>] Array<StatsObject> data, response status code and response headers + def get_stats_v2_with_http_info(group_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ErrorsV2Api.get_stats_v2 ...' + end + # verify the required parameter 'group_id' is set + if @api_client.config.client_side_validation && group_id.nil? + fail ArgumentError, "Missing the required parameter 'group_id' when calling ErrorsV2Api.get_stats_v2" + end + # resource path + local_var_path = '/api/0/organizations/{groupId}/stats_v2'.sub('{' + 'groupId' + '}', CGI.escape(group_id.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(['*/*']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'Array<StatsObject>' + + # auth_names + auth_names = opts[:debug_auth_names] || ['internalToken'] + + new_options = opts.merge( + :operation => :"ErrorsV2Api.get_stats_v2", + :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: ErrorsV2Api#get_stats_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # List of errors(V2) + # @param project [Array<Integer>] ID of the project where the error was created + # @param group_id [Integer] ID of the group + # @param [Hash] opts the optional parameters + # @option opts [String] :status (default to 'unresolved') + # @option opts [String] :query + # @option opts [String] :start Optional start of the stat period in format 2006-01-02T15:04:05 + # @option opts [String] :_end Optional end of the stat period in format 2006-01-02T15:04:05 + # @option opts [String] :environment + # @option opts [Integer] :limit Number of entries to return (default to 20) + # @option opts [String] :sort Optional sorting column of the entries (default to 'date') + # @return [Array<ErrorV2>] + def list_errors_v2(project, group_id, opts = {}) + data, _status_code, _headers = list_errors_v2_with_http_info(project, group_id, opts) + data + end + + # List of errors(V2) + # @param project [Array<Integer>] ID of the project where the error was created + # @param group_id [Integer] ID of the group + # @param [Hash] opts the optional parameters + # @option opts [String] :status (default to 'unresolved') + # @option opts [String] :query + # @option opts [String] :start Optional start of the stat period in format 2006-01-02T15:04:05 + # @option opts [String] :_end Optional end of the stat period in format 2006-01-02T15:04:05 + # @option opts [String] :environment + # @option opts [Integer] :limit Number of entries to return (default to 20) + # @option opts [String] :sort Optional sorting column of the entries (default to 'date') + # @return [Array<(Array<ErrorV2>, Integer, Hash)>] Array<ErrorV2> data, response status code and response headers + def list_errors_v2_with_http_info(project, group_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ErrorsV2Api.list_errors_v2 ...' + end + # verify the required parameter 'project' is set + if @api_client.config.client_side_validation && project.nil? + fail ArgumentError, "Missing the required parameter 'project' when calling ErrorsV2Api.list_errors_v2" + end + # verify the required parameter 'group_id' is set + if @api_client.config.client_side_validation && group_id.nil? + fail ArgumentError, "Missing the required parameter 'group_id' when calling ErrorsV2Api.list_errors_v2" + end + allowable_values = ["unresolved", "resolved", "ignored"] + if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status']) + fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}" + end + if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000 + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ErrorsV2Api.list_errors_v2, must be smaller than or equal to 10000.' + end + + if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ErrorsV2Api.list_errors_v2, must be greater than or equal to 1.' + end + + allowable_values = ["date", "new", "priority", "freq", "user"] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end + # resource path + local_var_path = '/api/0/organizations/{groupId}/issues/'.sub('{' + 'groupId' + '}', CGI.escape(group_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'project'] = @api_client.build_collection_param(project, :multi) + query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil? + query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? + query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil? + query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil? + query_params[:'environment'] = opts[:'environment'] if !opts[:'environment'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'Array<ErrorV2>' + + # auth_names + auth_names = opts[:debug_auth_names] || ['internalToken'] + + new_options = opts.merge( + :operation => :"ErrorsV2Api.list_errors_v2", + :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: ErrorsV2Api#list_errors_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # List of projects + # @param group_id [Integer] ID of the group + # @param [Hash] opts the optional parameters + # @return [Array<Project>] + def list_projects(group_id, opts = {}) + data, _status_code, _headers = list_projects_with_http_info(group_id, opts) + data + end + + # List of projects + # @param group_id [Integer] ID of the group + # @param [Hash] opts the optional parameters + # @return [Array<(Array<Project>, Integer, Hash)>] Array<Project> data, response status code and response headers + def list_projects_with_http_info(group_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ErrorsV2Api.list_projects ...' + end + # verify the required parameter 'group_id' is set + if @api_client.config.client_side_validation && group_id.nil? + fail ArgumentError, "Missing the required parameter 'group_id' when calling ErrorsV2Api.list_projects" + end + # resource path + local_var_path = '/api/0/organizations/{groupId}/projects/'.sub('{' + 'groupId' + '}', CGI.escape(group_id.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(['*/*']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'Array<Project>' + + # auth_names + auth_names = opts[:debug_auth_names] || ['internalToken'] + + new_options = opts.merge( + :operation => :"ErrorsV2Api.list_projects", + :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: ErrorsV2Api#list_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + end +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb index 48e9375b266..53665702083 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/messages_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/messages_api.rb new file mode 100644 index 00000000000..391c63124ef --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/messages_api.rb @@ -0,0 +1,94 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'cgi' + +module ErrorTrackingOpenAPI + class MessagesApi + attr_accessor :api_client + + def initialize(api_client = ApiClient.default) + @api_client = api_client + end + # List of messages + # @param project_id [Integer] ID of the project where the message was created + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit Number of entries to return (default to 20) + # @return [Array<MessageEvent>] + def list_messages(project_id, opts = {}) + data, _status_code, _headers = list_messages_with_http_info(project_id, opts) + data + end + + # List of messages + # @param project_id [Integer] ID of the project where the message was created + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit Number of entries to return (default to 20) + # @return [Array<(Array<MessageEvent>, Integer, Hash)>] Array<MessageEvent> data, response status code and response headers + def list_messages_with_http_info(project_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: MessagesApi.list_messages ...' + end + # verify the required parameter 'project_id' is set + if @api_client.config.client_side_validation && project_id.nil? + fail ArgumentError, "Missing the required parameter 'project_id' when calling MessagesApi.list_messages" + end + if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100 + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessagesApi.list_messages, must be smaller than or equal to 100.' + end + + if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessagesApi.list_messages, must be greater than or equal to 1.' + end + + # resource path + local_var_path = '/projects/{projectId}/messages'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'Array<MessageEvent>' + + # auth_names + auth_names = opts[:debug_auth_names] || ['internalToken'] + + new_options = opts.merge( + :operation => :"MessagesApi.list_messages", + :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: MessagesApi#list_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + end +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb index 781b1a17512..42597a3ed67 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb index 02118a56a3a..a189ee5a707 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb index b04d1b37a0b..7eddaa05a0c 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb index 6855082c17b..4accd0b2cfd 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb index 1bad99e1e30..5c2e62a0166 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature @@ -36,6 +36,8 @@ module ErrorTrackingOpenAPI # Status of the error attr_accessor :status + attr_accessor :stats + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -70,7 +72,8 @@ module ErrorTrackingOpenAPI :'approximated_user_count' => :'approximated_user_count', :'last_seen_at' => :'last_seen_at', :'first_seen_at' => :'first_seen_at', - :'status' => :'status' + :'status' => :'status', + :'stats' => :'stats' } end @@ -91,7 +94,8 @@ module ErrorTrackingOpenAPI :'approximated_user_count' => :'Integer', :'last_seen_at' => :'Time', :'first_seen_at' => :'Time', - :'status' => :'String' + :'status' => :'String', + :'stats' => :'ErrorStats' } end @@ -155,6 +159,10 @@ module ErrorTrackingOpenAPI if attributes.key?(:'status') self.status = attributes[:'status'] end + + if attributes.key?(:'stats') + self.stats = attributes[:'stats'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -196,7 +204,8 @@ module ErrorTrackingOpenAPI approximated_user_count == o.approximated_user_count && last_seen_at == o.last_seen_at && first_seen_at == o.first_seen_at && - status == o.status + status == o.status && + stats == o.stats end # @see the `==` method @@ -208,7 +217,7 @@ module ErrorTrackingOpenAPI # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [fingerprint, project_id, name, description, actor, event_count, approximated_user_count, last_seen_at, first_seen_at, status].hash + [fingerprint, project_id, name, description, actor, event_count, approximated_user_count, last_seen_at, first_seen_at, status, stats].hash end # Builds the object from hash diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb index b0dc1fc58df..9e44534e7a6 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_stats.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_stats.rb new file mode 100644 index 00000000000..7931ddd8747 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_stats.rb @@ -0,0 +1,219 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'date' +require 'time' + +module ErrorTrackingOpenAPI + class ErrorStats + attr_accessor :frequency + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'frequency' => :'frequency' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'frequency' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::ErrorStats` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::ErrorStats`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'frequency') + self.frequency = attributes[:'frequency'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + frequency == o.frequency + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [frequency].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?<inner_type>.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = ErrorTrackingOpenAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb index 937854d58f7..2be48755535 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_v2.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_v2.rb new file mode 100644 index 00000000000..552ed0d79e8 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_v2.rb @@ -0,0 +1,326 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'date' +require 'time' + +module ErrorTrackingOpenAPI + class ErrorV2 + attr_accessor :id + + attr_accessor :project + + attr_accessor :title + + attr_accessor :actor + + attr_accessor :count + + attr_accessor :user_count + + attr_accessor :last_seen + + attr_accessor :first_seen + + # Status of the error + attr_accessor :status + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'project' => :'project', + :'title' => :'title', + :'actor' => :'actor', + :'count' => :'count', + :'user_count' => :'userCount', + :'last_seen' => :'lastSeen', + :'first_seen' => :'firstSeen', + :'status' => :'status' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'id' => :'String', + :'project' => :'Project', + :'title' => :'String', + :'actor' => :'String', + :'count' => :'String', + :'user_count' => :'Integer', + :'last_seen' => :'Time', + :'first_seen' => :'Time', + :'status' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::ErrorV2` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::ErrorV2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'project') + self.project = attributes[:'project'] + end + + if attributes.key?(:'title') + self.title = attributes[:'title'] + end + + if attributes.key?(:'actor') + self.actor = attributes[:'actor'] + end + + if attributes.key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.key?(:'user_count') + self.user_count = attributes[:'user_count'] + end + + if attributes.key?(:'last_seen') + self.last_seen = attributes[:'last_seen'] + end + + if attributes.key?(:'first_seen') + self.first_seen = attributes[:'first_seen'] + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + status_validator = EnumAttributeValidator.new('String', ["unresolved", "resolved", "ignored"]) + return false unless status_validator.valid?(@status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] status Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('String', ["unresolved", "resolved", "ignored"]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + id == o.id && + project == o.project && + title == o.title && + actor == o.actor && + count == o.count && + user_count == o.user_count && + last_seen == o.last_seen && + first_seen == o.first_seen && + status == o.status + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [id, project, title, actor, count, user_count, last_seen, first_seen, status].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?<inner_type>.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = ErrorTrackingOpenAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/message_event.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/message_event.rb new file mode 100644 index 00000000000..ba90536c949 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/message_event.rb @@ -0,0 +1,282 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'date' +require 'time' + +module ErrorTrackingOpenAPI + class MessageEvent + attr_accessor :project_id + + attr_accessor :event_id + + attr_accessor :timestamp + + attr_accessor :level + + attr_accessor :message + + attr_accessor :release + + attr_accessor :environment + + attr_accessor :platform + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'project_id' => :'projectId', + :'event_id' => :'eventId', + :'timestamp' => :'timestamp', + :'level' => :'level', + :'message' => :'message', + :'release' => :'release', + :'environment' => :'environment', + :'platform' => :'platform' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'project_id' => :'Integer', + :'event_id' => :'String', + :'timestamp' => :'Time', + :'level' => :'String', + :'message' => :'String', + :'release' => :'String', + :'environment' => :'String', + :'platform' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::MessageEvent` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::MessageEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'project_id') + self.project_id = attributes[:'project_id'] + end + + if attributes.key?(:'event_id') + self.event_id = attributes[:'event_id'] + end + + if attributes.key?(:'timestamp') + self.timestamp = attributes[:'timestamp'] + end + + if attributes.key?(:'level') + self.level = attributes[:'level'] + end + + if attributes.key?(:'message') + self.message = attributes[:'message'] + end + + if attributes.key?(:'release') + self.release = attributes[:'release'] + end + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + end + + if attributes.key?(:'platform') + self.platform = attributes[:'platform'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + project_id == o.project_id && + event_id == o.event_id && + timestamp == o.timestamp && + level == o.level && + message == o.message && + release == o.release && + environment == o.environment && + platform == o.platform + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [project_id, event_id, timestamp, level, message, release, environment, platform].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?<inner_type>.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = ErrorTrackingOpenAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/project.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/project.rb new file mode 100644 index 00000000000..1b8afafd316 --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/project.rb @@ -0,0 +1,240 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'date' +require 'time' + +module ErrorTrackingOpenAPI + class Project + # ID of the project + attr_accessor :id + + # Name of the project + attr_accessor :name + + # Slug of the project + attr_accessor :slug + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'name' => :'name', + :'slug' => :'slug' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'id' => :'String', + :'name' => :'String', + :'slug' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::Project` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::Project`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'slug') + self.slug = attributes[:'slug'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + id == o.id && + name == o.name && + slug == o.slug + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [id, name, slug].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?<inner_type>.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = ErrorTrackingOpenAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/stats_object.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/stats_object.rb new file mode 100644 index 00000000000..142e3c482fc --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/stats_object.rb @@ -0,0 +1,253 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'date' +require 'time' + +module ErrorTrackingOpenAPI + class StatsObject + # ID of the project + attr_accessor :start + + # Name of the project + attr_accessor :_end + + # Slug of the project + attr_accessor :interval + + attr_accessor :group + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'start' => :'start', + :'_end' => :'end', + :'interval' => :'interval', + :'group' => :'group' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'start' => :'String', + :'_end' => :'String', + :'interval' => :'Array<String>', + :'group' => :'Array<StatsObjectGroupInner>' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::StatsObject` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::StatsObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'start') + self.start = attributes[:'start'] + end + + if attributes.key?(:'_end') + self._end = attributes[:'_end'] + end + + if attributes.key?(:'interval') + if (value = attributes[:'interval']).is_a?(Array) + self.interval = value + end + end + + if attributes.key?(:'group') + if (value = attributes[:'group']).is_a?(Array) + self.group = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + start == o.start && + _end == o._end && + interval == o.interval && + group == o.group + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [start, _end, interval, group].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?<inner_type>.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = ErrorTrackingOpenAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/stats_object_group_inner.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/stats_object_group_inner.rb new file mode 100644 index 00000000000..88f3a33f92c --- /dev/null +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/stats_object_group_inner.rb @@ -0,0 +1,243 @@ +=begin +#Error Tracking REST API + +#This schema describes the API endpoints for the error tracking feature + +The version of the OpenAPI document: 0.0.1 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.0.0 + +=end + +require 'date' +require 'time' + +module ErrorTrackingOpenAPI + class StatsObjectGroupInner + attr_accessor :by + + attr_accessor :totals + + attr_accessor :series + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'by' => :'by', + :'totals' => :'totals', + :'series' => :'series' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'by' => :'Hash<String, Object>', + :'totals' => :'Hash<String, Object>', + :'series' => :'Hash<String, Object>' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::StatsObjectGroupInner` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::StatsObjectGroupInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'by') + if (value = attributes[:'by']).is_a?(Hash) + self.by = value + end + end + + if attributes.key?(:'totals') + if (value = attributes[:'totals']).is_a?(Hash) + self.totals = value + end + end + + if attributes.key?(:'series') + if (value = attributes[:'series']).is_a?(Hash) + self.series = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + by == o.by && + totals == o.totals && + series == o.series + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [by, totals, series].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?<inner_type>.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = ErrorTrackingOpenAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb index 84e675fda64..bb2a661b318 100644 --- a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb +++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb @@ -1,5 +1,5 @@ =begin -#Error Trackig REST API +#Error Tracking REST API #This schema describes the API endpoints for the error tracking feature diff --git a/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb b/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb index 918666ed899..c075aa0d878 100644 --- a/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb +++ b/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb @@ -12,7 +12,7 @@ module IpynbDiff if content.is_a?(Array) content.map.with_index { |l, idx| _(symbol / idx, block.call(l)) } else - _(symbol, content) + content.split("\n").map { |c| _(symbol, c) } end end end diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md index 9100045e0f5..c6d8e13fc3a 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md +++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md @@ -1,5 +1,4 @@ %% Cell type:code id:3 tags: ``` - ``` diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt index 5f9ad320b8c..2e902582e14 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt +++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt @@ -1,5 +1,4 @@ .cells.0 .cells.0.source -.cells.0.source diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md index 9100045e0f5..c6d8e13fc3a 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md +++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md @@ -1,5 +1,4 @@ %% Cell type:code id:3 tags: ``` - ``` diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt index 5f9ad320b8c..2e902582e14 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt +++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt @@ -1,5 +1,4 @@ .cells.0 .cells.0.source -.cells.0.source diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md index 9100045e0f5..c6d8e13fc3a 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md +++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md @@ -1,5 +1,4 @@ %% Cell type:code id:3 tags: ``` - ``` diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt index 5f9ad320b8c..2e902582e14 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt +++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt @@ -1,5 +1,4 @@ .cells.0 .cells.0.source -.cells.0.source diff --git a/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md index c62e8fd6b9a..180fffe24ce 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md +++ b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md @@ -1,3 +1,5 @@ %% Cell type:markdown id: tags: -> This is a test\n>\n> To see if I can duplicate my bug +> This is a test +> +> To see if I can duplicate my bug diff --git a/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt index 86a7f6b3960..1e8bdda4b9a 100644 --- a/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt +++ b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt @@ -1,3 +1,5 @@ .cells.0 .cells.0.source +.cells.0.source +.cells.0.source diff --git a/vendor/gems/omniauth-azure-oauth2/.gitlab-ci.yml b/vendor/gems/omniauth-azure-oauth2/.gitlab-ci.yml index 575fec39767..816b868915f 100644 --- a/vendor/gems/omniauth-azure-oauth2/.gitlab-ci.yml +++ b/vendor/gems/omniauth-azure-oauth2/.gitlab-ci.yml @@ -26,3 +26,11 @@ rspec-2.7: rspec-3.0: image: "ruby:3.0" extends: .rspec + +rspec-3.1: + image: "ruby:3.1" + extends: .rspec + +rspec-3.2: + image: "ruby:3.2" + extends: .rspec diff --git a/vendor/gems/omniauth-gitlab/.gitlab-ci.yml b/vendor/gems/omniauth-gitlab/.gitlab-ci.yml index da6547a1766..a802029c008 100644 --- a/vendor/gems/omniauth-gitlab/.gitlab-ci.yml +++ b/vendor/gems/omniauth-gitlab/.gitlab-ci.yml @@ -26,3 +26,11 @@ rspec-2.7: rspec-3.0: image: "ruby:3.0" extends: .rspec + +rspec-3.1: + image: "ruby:3.1" + extends: .rspec + +rspec-3.2: + image: "ruby:3.2" + extends: .rspec diff --git a/vendor/gems/omniauth-google-oauth2/examples/Gemfile.lock b/vendor/gems/omniauth-google-oauth2/examples/Gemfile.lock deleted file mode 100644 index 5ac8f1be5e0..00000000000 --- a/vendor/gems/omniauth-google-oauth2/examples/Gemfile.lock +++ /dev/null @@ -1,72 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - ast (2.4.2) - faraday (2.5.2) - faraday-net_http (>= 2.0, < 3.1) - ruby2_keywords (>= 0.0.4) - faraday-net_http (3.0.0) - hashie (5.0.0) - json (2.6.2) - jwt (2.5.0) - multi_json (1.15.0) - multi_xml (0.6.0) - oauth2 (1.4.11) - faraday (>= 0.17.3, < 3.0) - jwt (>= 1.0, < 3.0) - multi_json (~> 1.3) - multi_xml (~> 0.5) - rack (>= 1.2, < 4) - omniauth (1.9.2) - hashie (>= 3.4.6) - rack (>= 1.6.2, < 3) - omniauth-google-oauth2 (0.8.2) - jwt (>= 2.0) - oauth2 (~> 1.1) - omniauth (~> 1.1) - omniauth-oauth2 (>= 1.6) - omniauth-oauth2 (1.7.3) - oauth2 (>= 1.4, < 3) - omniauth (>= 1.9, < 3) - parallel (1.22.1) - parser (3.1.2.1) - ast (~> 2.4.1) - rack (1.6.13) - rack-protection (1.5.5) - rack - rainbow (3.1.1) - regexp_parser (2.6.0) - rexml (3.2.5) - 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) - ruby-progressbar (1.11.0) - ruby2_keywords (0.0.5) - sinatra (1.4.8) - rack (~> 1.5) - rack-protection (~> 1.4) - tilt (>= 1.3, < 3) - tilt (2.0.11) - unicode-display_width (2.3.0) - webrick (1.7.0) - -PLATFORMS - ruby - -DEPENDENCIES - omniauth-google-oauth2 (~> 0.8.1) - rubocop - sinatra (~> 1.4) - webrick - -BUNDLED WITH - 2.3.22 diff --git a/vendor/gems/omniauth-salesforce/.gitlab-ci.yml b/vendor/gems/omniauth-salesforce/.gitlab-ci.yml index 4e18980d01c..15e7392e46b 100644 --- a/vendor/gems/omniauth-salesforce/.gitlab-ci.yml +++ b/vendor/gems/omniauth-salesforce/.gitlab-ci.yml @@ -26,3 +26,11 @@ rspec-2.7: rspec-3.0: image: "ruby:3.0" extends: .rspec + +rspec-3.1: + image: "ruby:3.1" + extends: .rspec + +rspec-3.2: + image: "ruby:3.2" + extends: .rspec diff --git a/vendor/gems/omniauth-salesforce/Gemfile.lock b/vendor/gems/omniauth-salesforce/Gemfile.lock index 0317b16dd9f..3f539c79853 100644 --- a/vendor/gems/omniauth-salesforce/Gemfile.lock +++ b/vendor/gems/omniauth-salesforce/Gemfile.lock @@ -82,14 +82,19 @@ GEM rb-inotify (0.10.1) ffi (~> 1.0) rexml (3.2.5) - rspec (2.99.0) - rspec-core (~> 2.99.0) - rspec-expectations (~> 2.99.0) - rspec-mocks (~> 2.99.0) - rspec-core (2.99.2) - rspec-expectations (2.99.2) - diff-lcs (>= 1.1.3, < 2.0) - rspec-mocks (2.99.4) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.5) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-support (3.12.0) ruby2_keywords (0.0.5) shellany (0.0.1) simplecov (0.21.2) @@ -116,7 +121,7 @@ DEPENDENCIES omniauth-salesforce! rack-test rb-fsevent - rspec (~> 2.7) + rspec (~> 3.1) simplecov webmock diff --git a/vendor/gems/omniauth-salesforce/omniauth-salesforce.gemspec b/vendor/gems/omniauth-salesforce/omniauth-salesforce.gemspec index 9c87746e9fd..c3564906281 100755 --- a/vendor/gems/omniauth-salesforce/omniauth-salesforce.gemspec +++ b/vendor/gems/omniauth-salesforce/omniauth-salesforce.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |gem| gem.add_dependency 'omniauth', '~> 2.0' gem.add_dependency 'omniauth-oauth2', '~> 1.0' - gem.add_development_dependency 'rspec', '~> 2.7' + gem.add_development_dependency 'rspec', '~> 3.1' gem.add_development_dependency 'rack-test' gem.add_development_dependency 'simplecov' gem.add_development_dependency 'webmock' diff --git a/vendor/gems/omniauth_crowd/.gitlab-ci.yml b/vendor/gems/omniauth_crowd/.gitlab-ci.yml index 08a5da1a3d1..ddc5d2fa5c3 100644 --- a/vendor/gems/omniauth_crowd/.gitlab-ci.yml +++ b/vendor/gems/omniauth_crowd/.gitlab-ci.yml @@ -26,3 +26,11 @@ rspec-2.7: rspec-3.0: image: "ruby:3.0" extends: .rspec + +rspec-3.1: + image: "ruby:3.1" + extends: .rspec + +rspec-3.2: + image: "ruby:3.2" + extends: .rspec diff --git a/vendor/project_templates/serverless_framework.tar.gz b/vendor/project_templates/serverless_framework.tar.gz Binary files differindex 279d0f2eb5c..6b5def03ed3 100644 --- a/vendor/project_templates/serverless_framework.tar.gz +++ b/vendor/project_templates/serverless_framework.tar.gz |