daytona_analytics_api_client 0.197.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +39 -0
- data/.openapi-generator/FILES +21 -0
- data/.openapi-generator/VERSION +1 -0
- data/.openapi-generator-ignore +31 -0
- data/.rspec +2 -0
- data/.rubocop.yml +148 -0
- data/Rakefile +10 -0
- data/daytona_analytics_api_client.gemspec +39 -0
- data/fix-gemspec.sh +11 -0
- data/lib/daytona_analytics_api_client/api/telemetry_api.rb +367 -0
- data/lib/daytona_analytics_api_client/api/usage_api.rb +339 -0
- data/lib/daytona_analytics_api_client/api_client.rb +397 -0
- data/lib/daytona_analytics_api_client/api_error.rb +58 -0
- data/lib/daytona_analytics_api_client/api_model_base.rb +88 -0
- data/lib/daytona_analytics_api_client/configuration.rb +308 -0
- data/lib/daytona_analytics_api_client/models/models_aggregated_usage.rb +210 -0
- data/lib/daytona_analytics_api_client/models/models_log_entry.rb +223 -0
- data/lib/daytona_analytics_api_client/models/models_metric_point.rb +165 -0
- data/lib/daytona_analytics_api_client/models/models_sandbox_usage.rb +210 -0
- data/lib/daytona_analytics_api_client/models/models_span.rb +221 -0
- data/lib/daytona_analytics_api_client/models/models_trace_summary.rb +201 -0
- data/lib/daytona_analytics_api_client/models/models_usage_chart_point.rb +201 -0
- data/lib/daytona_analytics_api_client/models/models_usage_period.rb +201 -0
- data/lib/daytona_analytics_api_client/version.rb +15 -0
- data/lib/daytona_analytics_api_client.rb +50 -0
- data/project.json +62 -0
- metadata +106 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: c9cc414644f78a82cc5c56c6094dc9970b5413dfeeb625086ae3e0e8ff2e6b94
|
|
4
|
+
data.tar.gz: f9bea53f4a9dbb73bc05df381000ec48d35d586d4454325b1e4dc17a57f32753
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 330ad993afd0e02db562cd27c58d144954c473d1e62f15ee7cb241dff46704c93e59f10772ee170103a4c3e8e54c03a6d92c3b7cbde1f19dfa42e1f7bddb2722
|
|
7
|
+
data.tar.gz: 14d8c099f6389e566000d11c9fccaa473096c59220c6721aa9a6ce421f70b276be91486ecbcef09fd5b2cb5783837fc21dfff96771feaa437cfeba6c44b27b07
|
data/.gitignore
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Generated by: https://openapi-generator.tech
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
*.gem
|
|
5
|
+
*.rbc
|
|
6
|
+
/.config
|
|
7
|
+
/coverage/
|
|
8
|
+
/InstalledFiles
|
|
9
|
+
/pkg/
|
|
10
|
+
/spec/reports/
|
|
11
|
+
/spec/examples.txt
|
|
12
|
+
/test/tmp/
|
|
13
|
+
/test/version_tmp/
|
|
14
|
+
/tmp/
|
|
15
|
+
|
|
16
|
+
## Specific to RubyMotion:
|
|
17
|
+
.dat*
|
|
18
|
+
.repl_history
|
|
19
|
+
build/
|
|
20
|
+
|
|
21
|
+
## Documentation cache and generated files:
|
|
22
|
+
/.yardoc/
|
|
23
|
+
/_yardoc/
|
|
24
|
+
/doc/
|
|
25
|
+
/rdoc/
|
|
26
|
+
|
|
27
|
+
## Environment normalization:
|
|
28
|
+
/.bundle/
|
|
29
|
+
/vendor/bundle
|
|
30
|
+
/lib/bundler/man/
|
|
31
|
+
|
|
32
|
+
# for a library or gem, you might want to ignore these files since the code is
|
|
33
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
34
|
+
# Gemfile.lock
|
|
35
|
+
# .ruby-version
|
|
36
|
+
# .ruby-gemset
|
|
37
|
+
|
|
38
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
39
|
+
.rvmrc
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
.rspec
|
|
3
|
+
.rubocop.yml
|
|
4
|
+
Gemfile
|
|
5
|
+
Rakefile
|
|
6
|
+
lib/daytona_analytics_api_client.rb
|
|
7
|
+
lib/daytona_analytics_api_client/api/telemetry_api.rb
|
|
8
|
+
lib/daytona_analytics_api_client/api/usage_api.rb
|
|
9
|
+
lib/daytona_analytics_api_client/api_client.rb
|
|
10
|
+
lib/daytona_analytics_api_client/api_error.rb
|
|
11
|
+
lib/daytona_analytics_api_client/api_model_base.rb
|
|
12
|
+
lib/daytona_analytics_api_client/configuration.rb
|
|
13
|
+
lib/daytona_analytics_api_client/models/models_aggregated_usage.rb
|
|
14
|
+
lib/daytona_analytics_api_client/models/models_log_entry.rb
|
|
15
|
+
lib/daytona_analytics_api_client/models/models_metric_point.rb
|
|
16
|
+
lib/daytona_analytics_api_client/models/models_sandbox_usage.rb
|
|
17
|
+
lib/daytona_analytics_api_client/models/models_span.rb
|
|
18
|
+
lib/daytona_analytics_api_client/models/models_trace_summary.rb
|
|
19
|
+
lib/daytona_analytics_api_client/models/models_usage_chart_point.rb
|
|
20
|
+
lib/daytona_analytics_api_client/models/models_usage_period.rb
|
|
21
|
+
lib/daytona_analytics_api_client/version.rb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7.21.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
|
24
|
+
|
|
25
|
+
git_push.sh
|
|
26
|
+
.travis.yml
|
|
27
|
+
spec/**
|
|
28
|
+
.gitlab-ci.yml
|
|
29
|
+
docs/**
|
|
30
|
+
README.md
|
|
31
|
+
daytona_analytics_api_client.gemspec
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
|
|
2
|
+
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
3
|
+
AllCops:
|
|
4
|
+
TargetRubyVersion: 2.4
|
|
5
|
+
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
|
6
|
+
# to ignore them, so only the ones explicitly set in this file are enabled.
|
|
7
|
+
DisabledByDefault: true
|
|
8
|
+
Exclude:
|
|
9
|
+
- '**/templates/**/*'
|
|
10
|
+
- '**/vendor/**/*'
|
|
11
|
+
- 'actionpack/lib/action_dispatch/journey/parser.rb'
|
|
12
|
+
|
|
13
|
+
# Prefer &&/|| over and/or.
|
|
14
|
+
Style/AndOr:
|
|
15
|
+
Enabled: true
|
|
16
|
+
|
|
17
|
+
# Align `when` with `case`.
|
|
18
|
+
Layout/CaseIndentation:
|
|
19
|
+
Enabled: true
|
|
20
|
+
|
|
21
|
+
# Align comments with method definitions.
|
|
22
|
+
Layout/CommentIndentation:
|
|
23
|
+
Enabled: true
|
|
24
|
+
|
|
25
|
+
Layout/ElseAlignment:
|
|
26
|
+
Enabled: true
|
|
27
|
+
|
|
28
|
+
Layout/EmptyLineAfterMagicComment:
|
|
29
|
+
Enabled: true
|
|
30
|
+
|
|
31
|
+
# In a regular class definition, no empty lines around the body.
|
|
32
|
+
Layout/EmptyLinesAroundClassBody:
|
|
33
|
+
Enabled: true
|
|
34
|
+
|
|
35
|
+
# In a regular method definition, no empty lines around the body.
|
|
36
|
+
Layout/EmptyLinesAroundMethodBody:
|
|
37
|
+
Enabled: true
|
|
38
|
+
|
|
39
|
+
# In a regular module definition, no empty lines around the body.
|
|
40
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
41
|
+
Enabled: true
|
|
42
|
+
|
|
43
|
+
Layout/FirstArgumentIndentation:
|
|
44
|
+
Enabled: true
|
|
45
|
+
|
|
46
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
|
47
|
+
Style/HashSyntax:
|
|
48
|
+
Enabled: false
|
|
49
|
+
|
|
50
|
+
# Method definitions after `private` or `protected` isolated calls need one
|
|
51
|
+
# extra level of indentation.
|
|
52
|
+
Layout/IndentationConsistency:
|
|
53
|
+
Enabled: true
|
|
54
|
+
EnforcedStyle: indented_internal_methods
|
|
55
|
+
|
|
56
|
+
# Two spaces, no tabs (for indentation).
|
|
57
|
+
Layout/IndentationWidth:
|
|
58
|
+
Enabled: true
|
|
59
|
+
|
|
60
|
+
Layout/LeadingCommentSpace:
|
|
61
|
+
Enabled: true
|
|
62
|
+
|
|
63
|
+
Layout/SpaceAfterColon:
|
|
64
|
+
Enabled: true
|
|
65
|
+
|
|
66
|
+
Layout/SpaceAfterComma:
|
|
67
|
+
Enabled: true
|
|
68
|
+
|
|
69
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
70
|
+
Enabled: true
|
|
71
|
+
|
|
72
|
+
Layout/SpaceAroundKeyword:
|
|
73
|
+
Enabled: true
|
|
74
|
+
|
|
75
|
+
Layout/SpaceAroundOperators:
|
|
76
|
+
Enabled: true
|
|
77
|
+
|
|
78
|
+
Layout/SpaceBeforeComma:
|
|
79
|
+
Enabled: true
|
|
80
|
+
|
|
81
|
+
Layout/SpaceBeforeFirstArg:
|
|
82
|
+
Enabled: true
|
|
83
|
+
|
|
84
|
+
Style/DefWithParentheses:
|
|
85
|
+
Enabled: true
|
|
86
|
+
|
|
87
|
+
# Defining a method with parameters needs parentheses.
|
|
88
|
+
Style/MethodDefParentheses:
|
|
89
|
+
Enabled: true
|
|
90
|
+
|
|
91
|
+
Style/FrozenStringLiteralComment:
|
|
92
|
+
Enabled: false
|
|
93
|
+
EnforcedStyle: always
|
|
94
|
+
|
|
95
|
+
# Use `foo {}` not `foo{}`.
|
|
96
|
+
Layout/SpaceBeforeBlockBraces:
|
|
97
|
+
Enabled: true
|
|
98
|
+
|
|
99
|
+
# Use `foo { bar }` not `foo {bar}`.
|
|
100
|
+
Layout/SpaceInsideBlockBraces:
|
|
101
|
+
Enabled: true
|
|
102
|
+
|
|
103
|
+
# Use `{ a: 1 }` not `{a:1}`.
|
|
104
|
+
Layout/SpaceInsideHashLiteralBraces:
|
|
105
|
+
Enabled: true
|
|
106
|
+
|
|
107
|
+
Layout/SpaceInsideParens:
|
|
108
|
+
Enabled: true
|
|
109
|
+
|
|
110
|
+
# Check quotes usage according to lint rule below.
|
|
111
|
+
#Style/StringLiterals:
|
|
112
|
+
# Enabled: true
|
|
113
|
+
# EnforcedStyle: single_quotes
|
|
114
|
+
|
|
115
|
+
# Detect hard tabs, no hard tabs.
|
|
116
|
+
Layout/IndentationStyle:
|
|
117
|
+
Enabled: true
|
|
118
|
+
|
|
119
|
+
# Blank lines should not have any spaces.
|
|
120
|
+
Layout/TrailingEmptyLines:
|
|
121
|
+
Enabled: true
|
|
122
|
+
|
|
123
|
+
# No trailing whitespace.
|
|
124
|
+
Layout/TrailingWhitespace:
|
|
125
|
+
Enabled: false
|
|
126
|
+
|
|
127
|
+
# Use quotes for string literals when they are enough.
|
|
128
|
+
Style/RedundantPercentQ:
|
|
129
|
+
Enabled: true
|
|
130
|
+
|
|
131
|
+
# Align `end` with the matching keyword or starting expression except for
|
|
132
|
+
# assignments, where it should be aligned with the LHS.
|
|
133
|
+
Layout/EndAlignment:
|
|
134
|
+
Enabled: true
|
|
135
|
+
EnforcedStyleAlignWith: variable
|
|
136
|
+
AutoCorrect: true
|
|
137
|
+
|
|
138
|
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
|
139
|
+
Lint/RequireParentheses:
|
|
140
|
+
Enabled: true
|
|
141
|
+
|
|
142
|
+
Style/RedundantReturn:
|
|
143
|
+
Enabled: true
|
|
144
|
+
AllowMultipleReturnValues: true
|
|
145
|
+
|
|
146
|
+
Style/Semicolon:
|
|
147
|
+
Enabled: true
|
|
148
|
+
AllowAsExpressionSeparator: true
|
data/Rakefile
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
=begin
|
|
4
|
+
#Daytona Analytics API
|
|
5
|
+
|
|
6
|
+
#Daytona Analytics API - Read-only telemetry and usage data. Authenticated via Daytona API keys or JWT tokens.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v0.4.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
Generator version: 7.21.0
|
|
12
|
+
|
|
13
|
+
=end
|
|
14
|
+
|
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
16
|
+
require "daytona_analytics_api_client/version"
|
|
17
|
+
|
|
18
|
+
Gem::Specification.new do |s|
|
|
19
|
+
s.name = "daytona_analytics_api_client"
|
|
20
|
+
s.version = DaytonaAnalyticsApiClient::VERSION
|
|
21
|
+
s.platform = Gem::Platform::RUBY
|
|
22
|
+
s.authors = ["daytonaio"]
|
|
23
|
+
s.email = ["support@daytona.io"]
|
|
24
|
+
s.homepage = "https://github.com/daytonaio/daytona"
|
|
25
|
+
s.summary = "Daytona Analytics API Ruby Gem"
|
|
26
|
+
s.description = "Daytona Analytics API Client"
|
|
27
|
+
s.license = "Unlicense"
|
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
|
29
|
+
s.metadata = {}
|
|
30
|
+
|
|
31
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
32
|
+
|
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
34
|
+
|
|
35
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) || f.end_with?('.gem') || f.start_with?('Gemfile') }
|
|
36
|
+
s.test_files = Dir.exist?('spec') ? Dir.glob('spec/**/*') : []
|
|
37
|
+
s.executables = []
|
|
38
|
+
s.require_paths = ["lib"]
|
|
39
|
+
end
|
data/fix-gemspec.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Fix the gemspec and Gemfile generated by OpenAPI Generator
|
|
3
|
+
SCRIPT_DIR="$(dirname "$0")"
|
|
4
|
+
|
|
5
|
+
# Fix gemspec: replace backtick find commands with git ls-files and Dir.glob
|
|
6
|
+
# This is safer and works correctly in CI environments
|
|
7
|
+
sed -i "s/\`find \*\`\.split(\"\\\\n\")\.uniq\.sort\.select { |f| !f\.empty? }/\`git ls-files -z\`\.split(\"\\\\x0\")\.reject { |f| f.match(%r{^(test|spec|features)\/}) || f.end_with?('.gem') || f.start_with?('Gemfile') }/g" "$SCRIPT_DIR/daytona_analytics_api_client.gemspec"
|
|
8
|
+
sed -i "s/\`find spec\/\*\`\.split(\"\\\\n\")/Dir.exist?('spec') ? Dir.glob('spec\/\*\*\/\*') : []/g" "$SCRIPT_DIR/daytona_analytics_api_client.gemspec"
|
|
9
|
+
|
|
10
|
+
# Fix Gemfile: update rubocop from ~> 0.66.0 to ~> 1.21
|
|
11
|
+
sed -i "s/gem 'rubocop', '~> 0\.66\.0'/gem 'rubocop', '~> 1.21'/g" "$SCRIPT_DIR/Gemfile"
|