timelogic-api 1.0.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.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +188 -0
  3. data/docs/ApiError.md +22 -0
  4. data/docs/BulkError.md +24 -0
  5. data/docs/CalendarResponse.md +48 -0
  6. data/docs/DiffEndpointRef.md +18 -0
  7. data/docs/DiffResponse.md +36 -0
  8. data/docs/DstResponse.md +42 -0
  9. data/docs/ElapsedResponse.md +32 -0
  10. data/docs/ErrorResponse.md +22 -0
  11. data/docs/GetCurrentTime200Response.md +49 -0
  12. data/docs/GetTimezone200Response.md +49 -0
  13. data/docs/JwkKey.md +28 -0
  14. data/docs/JwksResponse.md +18 -0
  15. data/docs/TimeApi.md +1093 -0
  16. data/docs/TimePayload.md +38 -0
  17. data/docs/TimePayloadBulkItem.md +49 -0
  18. data/docs/TimePayloadBulkResponse.md +15 -0
  19. data/docs/TimezoneMatch.md +42 -0
  20. data/docs/TimezoneOffsetResponse.md +44 -0
  21. data/docs/TimezoneResolvedResponse.md +42 -0
  22. data/docs/UtilityApi.md +74 -0
  23. data/lib/timelogic-api/api/time_api.rb +1344 -0
  24. data/lib/timelogic-api/api/utility_api.rb +82 -0
  25. data/lib/timelogic-api/api_client.rb +394 -0
  26. data/lib/timelogic-api/api_error.rb +58 -0
  27. data/lib/timelogic-api/configuration.rb +353 -0
  28. data/lib/timelogic-api/models/api_error.rb +282 -0
  29. data/lib/timelogic-api/models/bulk_error.rb +271 -0
  30. data/lib/timelogic-api/models/calendar_response.rb +474 -0
  31. data/lib/timelogic-api/models/diff_endpoint_ref.rb +222 -0
  32. data/lib/timelogic-api/models/diff_response.rb +386 -0
  33. data/lib/timelogic-api/models/dst_response.rb +427 -0
  34. data/lib/timelogic-api/models/elapsed_response.rb +354 -0
  35. data/lib/timelogic-api/models/error_response.rb +247 -0
  36. data/lib/timelogic-api/models/get_current_time200_response.rb +105 -0
  37. data/lib/timelogic-api/models/get_timezone200_response.rb +105 -0
  38. data/lib/timelogic-api/models/jwk_key.rb +371 -0
  39. data/lib/timelogic-api/models/jwks_response.rb +223 -0
  40. data/lib/timelogic-api/models/time_payload.rb +395 -0
  41. data/lib/timelogic-api/models/time_payload_bulk_item.rb +106 -0
  42. data/lib/timelogic-api/models/time_payload_bulk_response.rb +210 -0
  43. data/lib/timelogic-api/models/timezone_match.rb +437 -0
  44. data/lib/timelogic-api/models/timezone_offset_response.rb +452 -0
  45. data/lib/timelogic-api/models/timezone_resolved_response.rb +434 -0
  46. data/lib/timelogic-api/transport_configuration.rb +34 -0
  47. data/lib/timelogic-api/version.rb +7 -0
  48. data/lib/timelogic-api.rb +63 -0
  49. metadata +134 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4bb2486a072e9b42e148c963e7484051e8b87cd4408924000739c24ad6461e31
4
+ data.tar.gz: bc0d507bfc4c7c759b30bbab2940151240c67b3fa99bf70350c80b35dc49c9b0
5
+ SHA512:
6
+ metadata.gz: 68039138e4df8750915c19e9215dbea4dc58cc4f99f8b01d8ccfc6c9aaa1fec2459da95e8dce74adcbdaa9ec4a3f8129ef3633dda130cc4755ca46612037d92d
7
+ data.tar.gz: c34e8c55dec640210d14a5e86f78210eb10b971a64bd1eee9c8f3b75d5daa755f0cdeaaaac970d5403097882fdc00b6f77f17c20b3f5eb32ef72b7488d8d8887
data/README.md ADDED
@@ -0,0 +1,188 @@
1
+ # TimeLogic API | A World Time API
2
+
3
+ Official Ruby SDK for TimeLogic API, providing world time, timezone, calendar, and signed response operations.
4
+
5
+ ## Installation
6
+
7
+ ### Build a gem
8
+
9
+ To build the Ruby code into a gem:
10
+
11
+ ```shell
12
+ gem build timelogic-api.gemspec
13
+ ```
14
+
15
+ Then either install the gem locally:
16
+
17
+ ```shell
18
+ gem install ./timelogic-api-1.0.0.gem
19
+ ```
20
+
21
+ (for development, run `gem install --dev ./timelogic-api-1.0.0.gem` to install the development dependencies)
22
+
23
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
24
+
25
+ Finally add this to the Gemfile:
26
+
27
+ gem 'timelogic-api', '~> 1.0.0'
28
+
29
+ ### Install from Git
30
+
31
+ If the Ruby gem is hosted at a git repository: https://github.com/TimeLogic-API-LLC/timelogic-api-sdks.git, then add the following in the Gemfile:
32
+
33
+ gem 'timelogic-api', :git => 'https://github.com/TimeLogic-API-LLC/timelogic-api-sdks.git'
34
+
35
+ ### Include the Ruby code directly
36
+
37
+ Include the Ruby code directly using `-I` as follows:
38
+
39
+ ```shell
40
+ ruby -Ilib script.rb
41
+ ```
42
+
43
+ ## Getting Started
44
+
45
+ Please follow the [installation](#installation) procedure and then run the following code:
46
+
47
+ ```ruby
48
+ # Load the gem
49
+ require 'timelogic-api'
50
+
51
+ # Setup authorization
52
+ TimeLogic::Api.configure do |config|
53
+ # Configure API key authorization: directApiKeyHeader
54
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
55
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
56
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
57
+
58
+ # Configure Bearer authorization (TimeLogic API key): directBearerAuth
59
+ config.access_token = 'YOUR_BEARER_TOKEN'
60
+ # Configure a proc to get access tokens in lieu of the static access_token configuration
61
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
62
+
63
+ # Configure API key authorization: directApiKeyQuery
64
+ config.api_key['api_key'] = 'YOUR API KEY'
65
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
66
+ # config.api_key_prefix['api_key'] = 'Bearer'
67
+
68
+ # Configure API key authorization: rapidApiKey
69
+ config.api_key['X-RapidAPI-Key'] = 'YOUR API KEY'
70
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
71
+ # config.api_key_prefix['X-RapidAPI-Key'] = 'Bearer'
72
+
73
+ # Configure API key authorization: rapidApiHost
74
+ config.api_key['X-RapidAPI-Host'] = 'YOUR API KEY'
75
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
76
+ # config.api_key_prefix['X-RapidAPI-Host'] = 'Bearer'
77
+ end
78
+
79
+ api_instance = TimeLogic::Api::TimeApi.new
80
+ opts = {
81
+ unix: 1711300000, # Integer |
82
+ unix_ms: 1711300000000, # Integer |
83
+ iso: '2024-03-24T15:00:00', # String | ISO-8601 timestamp. To supply a local wall-clock time without an explicit offset, pair it with one of `source_tz=Area/City`, `source_ip=...`, `source_lat=...&source_lon=...`, or `source_offset=±HH:MM`.
84
+ source_tz: 'America/New_York', # String | Used only with `iso=...` when the ISO value has no explicit offset.
85
+ source_ip: '8.8.8.8', # String | Used only with `iso=...` when the ISO value has no explicit offset. Resolves that local wall-clock time through the timezone mapped from this IP address.
86
+ source_lat: 40.7128, # Float | Used only with `iso=...` when the ISO value has no explicit offset. Provide together with `source_lon` to resolve that local wall-clock time through the timezone mapped from these coordinates.
87
+ source_lon: -74.006, # Float | Used only with `iso=...` when the ISO value has no explicit offset. Provide together with `source_lat`.
88
+ source_offset: '-05:00', # String | Used only with `iso=...` when the ISO value has no explicit offset. Interprets that local wall-clock time at this fixed UTC offset.
89
+ seconds: 30, # Integer |
90
+ minutes: 15, # Integer |
91
+ hours: 2, # Integer |
92
+ days: 7, # Integer |
93
+ tz: 'America/New_York', # String | IANA timezone name. On bulk-capable routes, a comma-separated list enables bulk mode.
94
+ ip: '8.8.8.8', # String | IP address. On bulk-capable routes, a comma-separated list enables bulk mode.
95
+ lat: 40.7128, # Float | Latitude. Must be provided together with `lon`.
96
+ lon: -74.006, # Float | Longitude. Must be provided together with `lat`.
97
+ offset: '-04:00', # String | Fixed UTC offset in `+HH:MM` or `-HH:MM` format. On bulk-capable routes, a comma-separated list enables bulk mode.
98
+ auto_tz: true, # Boolean | Set to `true` to resolve using the caller IP from Cloudflare headers.
99
+ utc: true, # Boolean | Set to `true` to force UTC on routes that support it.
100
+ format: '%Y-%m-%d %H:%M:%S', # String | Custom date/time format template using supported `strftime`-style directives such as `%Y-%m-%d %H:%M:%S`. Reference: [strftime](https://strftime.net/).
101
+ sign: true # Boolean | Set to exactly `true` to ask the gateway to sign the final JSON response. Every authenticated JSON response, including errors, then includes signing headers. Not supported on `/v1/time/clock`.
102
+ }
103
+
104
+ begin
105
+ #Add modifiers to a timestamp
106
+ result = api_instance.add_time(opts)
107
+ p result
108
+ rescue TimeLogic::Api::ApiError => e
109
+ puts "Exception when calling TimeApi->add_time: #{e}"
110
+ end
111
+
112
+ ```
113
+
114
+ ## Documentation for API Endpoints
115
+
116
+ All URIs are relative to *https://api.timelogicapi.com*
117
+
118
+ Class | Method | HTTP request | Description
119
+ ------------ | ------------- | ------------- | -------------
120
+ *TimeLogic::Api::TimeApi* | [**add_time**](docs/TimeApi.md#add_time) | **GET** /v1/time/add | Add modifiers to a timestamp
121
+ *TimeLogic::Api::TimeApi* | [**convert_time**](docs/TimeApi.md#convert_time) | **GET** /v1/time/convert | Convert a timestamp into a target timezone or offset
122
+ *TimeLogic::Api::TimeApi* | [**diff_time**](docs/TimeApi.md#diff_time) | **GET** /v1/time/diff | Difference between two instants
123
+ *TimeLogic::Api::TimeApi* | [**get_calendar**](docs/TimeApi.md#get_calendar) | **GET** /v1/time/calendar | Calendar projection for a target instant
124
+ *TimeLogic::Api::TimeApi* | [**get_clock**](docs/TimeApi.md#get_clock) | **GET** /v1/time/clock | Render a live HTML clock
125
+ *TimeLogic::Api::TimeApi* | [**get_current_time**](docs/TimeApi.md#get_current_time) | **GET** /v1/time/current | Get the current time for a target
126
+ *TimeLogic::Api::TimeApi* | [**get_dst**](docs/TimeApi.md#get_dst) | **GET** /v1/time/dst | Daylight-saving status for a target
127
+ *TimeLogic::Api::TimeApi* | [**get_elapsed**](docs/TimeApi.md#get_elapsed) | **GET** /v1/time/elapsed | Time elapsed since or remaining until a reference instant
128
+ *TimeLogic::Api::TimeApi* | [**get_timezone**](docs/TimeApi.md#get_timezone) | **GET** /v1/timezone | Resolve timezone information for a target
129
+ *TimeLogic::Api::UtilityApi* | [**get_public_signing_key**](docs/UtilityApi.md#get_public_signing_key) | **GET** /.well-known/time-api-public-key | Public signing key set
130
+
131
+
132
+ ## Documentation for Models
133
+
134
+ - [TimeLogic::Api::ApiError](docs/ApiError.md)
135
+ - [TimeLogic::Api::BulkError](docs/BulkError.md)
136
+ - [TimeLogic::Api::CalendarResponse](docs/CalendarResponse.md)
137
+ - [TimeLogic::Api::DiffEndpointRef](docs/DiffEndpointRef.md)
138
+ - [TimeLogic::Api::DiffResponse](docs/DiffResponse.md)
139
+ - [TimeLogic::Api::DstResponse](docs/DstResponse.md)
140
+ - [TimeLogic::Api::ElapsedResponse](docs/ElapsedResponse.md)
141
+ - [TimeLogic::Api::ErrorResponse](docs/ErrorResponse.md)
142
+ - [TimeLogic::Api::GetCurrentTime200Response](docs/GetCurrentTime200Response.md)
143
+ - [TimeLogic::Api::GetTimezone200Response](docs/GetTimezone200Response.md)
144
+ - [TimeLogic::Api::JwkKey](docs/JwkKey.md)
145
+ - [TimeLogic::Api::JwksResponse](docs/JwksResponse.md)
146
+ - [TimeLogic::Api::TimePayload](docs/TimePayload.md)
147
+ - [TimeLogic::Api::TimePayloadBulkItem](docs/TimePayloadBulkItem.md)
148
+ - [TimeLogic::Api::TimePayloadBulkResponse](docs/TimePayloadBulkResponse.md)
149
+ - [TimeLogic::Api::TimezoneMatch](docs/TimezoneMatch.md)
150
+ - [TimeLogic::Api::TimezoneOffsetResponse](docs/TimezoneOffsetResponse.md)
151
+ - [TimeLogic::Api::TimezoneResolvedResponse](docs/TimezoneResolvedResponse.md)
152
+
153
+
154
+ ## Documentation for Authorization
155
+
156
+
157
+ Authentication schemes defined for the API:
158
+ ### directBearerAuth
159
+
160
+ - **Type**: Bearer authentication (TimeLogic API key)
161
+
162
+ ### directApiKeyHeader
163
+
164
+
165
+ - **Type**: API key
166
+ - **API key parameter name**: X-API-Key
167
+ - **Location**: HTTP header
168
+
169
+ ### directApiKeyQuery
170
+
171
+
172
+ - **Type**: API key
173
+ - **API key parameter name**: api_key
174
+ - **Location**: URL query string
175
+
176
+ ### rapidApiKey
177
+
178
+
179
+ - **Type**: API key
180
+ - **API key parameter name**: X-RapidAPI-Key
181
+ - **Location**: HTTP header
182
+
183
+ ### rapidApiHost
184
+
185
+
186
+ - **Type**: API key
187
+ - **API key parameter name**: X-RapidAPI-Host
188
+ - **Location**: HTTP header
data/docs/ApiError.md ADDED
@@ -0,0 +1,22 @@
1
+ # TimeLogic::Api::ApiError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **String** | | |
8
+ | **message** | **String** | | |
9
+ | **details** | **Object** | Optional implementation-specific detail payload. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'timelogic-api'
15
+
16
+ instance = TimeLogic::Api::ApiError.new(
17
+ code: null,
18
+ message: null,
19
+ details: null
20
+ )
21
+ ```
22
+
data/docs/BulkError.md ADDED
@@ -0,0 +1,24 @@
1
+ # TimeLogic::Api::BulkError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**ApiError**](ApiError.md) | | |
8
+ | **request_id** | **String** | | |
9
+ | **timestamp** | **Time** | Intentionally omitted from public API error responses to avoid exposing request timing; use request_id for support correlation. | [optional] |
10
+ | **item** | **String** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'timelogic-api'
16
+
17
+ instance = TimeLogic::Api::BulkError.new(
18
+ error: null,
19
+ request_id: null,
20
+ timestamp: null,
21
+ item: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,48 @@
1
+ # TimeLogic::Api::CalendarResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **unix** | **Integer** | | |
8
+ | **unix_ms** | **Integer** | | |
9
+ | **utc** | **Time** | | |
10
+ | **iso_local** | **String** | | |
11
+ | **rfc2822** | **String** | | |
12
+ | **human** | **String** | | |
13
+ | **day_number** | **Integer** | | |
14
+ | **day_short** | **String** | | |
15
+ | **day_full** | **String** | | |
16
+ | **timezone** | **String** | | |
17
+ | **formatted** | **String** | | [optional] |
18
+ | **year** | **Integer** | | |
19
+ | **month** | **Integer** | | |
20
+ | **month_name** | **String** | | |
21
+ | **day** | **Integer** | | |
22
+ | **week_number** | **Integer** | | [optional] |
23
+
24
+ ## Example
25
+
26
+ ```ruby
27
+ require 'timelogic-api'
28
+
29
+ instance = TimeLogic::Api::CalendarResponse.new(
30
+ unix: null,
31
+ unix_ms: null,
32
+ utc: null,
33
+ iso_local: null,
34
+ rfc2822: null,
35
+ human: null,
36
+ day_number: null,
37
+ day_short: null,
38
+ day_full: null,
39
+ timezone: null,
40
+ formatted: null,
41
+ year: null,
42
+ month: null,
43
+ month_name: null,
44
+ day: null,
45
+ week_number: null
46
+ )
47
+ ```
48
+
@@ -0,0 +1,18 @@
1
+ # TimeLogic::Api::DiffEndpointRef
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **unix_ms** | **Integer** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'timelogic-api'
13
+
14
+ instance = TimeLogic::Api::DiffEndpointRef.new(
15
+ unix_ms: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,36 @@
1
+ # TimeLogic::Api::DiffResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **seconds** | **Integer** | | |
8
+ | **minutes** | **Integer** | | |
9
+ | **hours** | **Integer** | | |
10
+ | **days** | **Integer** | | |
11
+ | **direction** | **String** | `forward` means `to` is after `from`. `backward` means `to` is before `from`. `same` means both sides resolve to the same instant. | |
12
+ | **human** | **String** | | |
13
+ | **formatted** | **String** | | [optional] |
14
+ | **business_days** | **Integer** | | [optional] |
15
+ | **from** | [**DiffEndpointRef**](DiffEndpointRef.md) | | |
16
+ | **to** | [**DiffEndpointRef**](DiffEndpointRef.md) | | |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'timelogic-api'
22
+
23
+ instance = TimeLogic::Api::DiffResponse.new(
24
+ seconds: null,
25
+ minutes: null,
26
+ hours: null,
27
+ days: null,
28
+ direction: null,
29
+ human: null,
30
+ formatted: null,
31
+ business_days: null,
32
+ from: null,
33
+ to: null
34
+ )
35
+ ```
36
+
@@ -0,0 +1,42 @@
1
+ # TimeLogic::Api::DstResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **unix** | **Integer** | | |
8
+ | **unix_ms** | **Integer** | | |
9
+ | **utc** | **Time** | | |
10
+ | **iso_local** | **String** | | |
11
+ | **rfc2822** | **String** | | |
12
+ | **human** | **String** | | |
13
+ | **day_number** | **Integer** | | |
14
+ | **day_short** | **String** | | |
15
+ | **day_full** | **String** | | |
16
+ | **timezone** | **String** | | |
17
+ | **formatted** | **String** | | [optional] |
18
+ | **dst_active** | **Boolean** | | |
19
+ | **next_transition** | **Time** | | [optional] |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'timelogic-api'
25
+
26
+ instance = TimeLogic::Api::DstResponse.new(
27
+ unix: null,
28
+ unix_ms: null,
29
+ utc: null,
30
+ iso_local: null,
31
+ rfc2822: null,
32
+ human: null,
33
+ day_number: null,
34
+ day_short: null,
35
+ day_full: null,
36
+ timezone: null,
37
+ formatted: null,
38
+ dst_active: null,
39
+ next_transition: null
40
+ )
41
+ ```
42
+
@@ -0,0 +1,32 @@
1
+ # TimeLogic::Api::ElapsedResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **seconds** | **Integer** | | |
8
+ | **minutes** | **Integer** | | |
9
+ | **hours** | **Integer** | | |
10
+ | **days** | **Integer** | | |
11
+ | **human** | **String** | | |
12
+ | **direction** | **String** | `left` means the target instant is still in the future. `passed` means the target instant is already in the past. | |
13
+ | **formatted** | **String** | | [optional] |
14
+ | **business_days** | **Integer** | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'timelogic-api'
20
+
21
+ instance = TimeLogic::Api::ElapsedResponse.new(
22
+ seconds: null,
23
+ minutes: null,
24
+ hours: null,
25
+ days: null,
26
+ human: null,
27
+ direction: null,
28
+ formatted: null,
29
+ business_days: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,22 @@
1
+ # TimeLogic::Api::ErrorResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**ApiError**](ApiError.md) | | |
8
+ | **request_id** | **String** | | |
9
+ | **timestamp** | **Time** | Intentionally omitted from public API error responses to avoid exposing request timing; use request_id for support correlation. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'timelogic-api'
15
+
16
+ instance = TimeLogic::Api::ErrorResponse.new(
17
+ error: null,
18
+ request_id: null,
19
+ timestamp: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,49 @@
1
+ # TimeLogic::Api::GetCurrentTime200Response
2
+
3
+ ## Class instance methods
4
+
5
+ ### `openapi_one_of`
6
+
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'timelogic-api'
13
+
14
+ TimeLogic::Api::GetCurrentTime200Response.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'TimePayload',
18
+ # :'TimePayloadBulkResponse'
19
+ # ]
20
+ ```
21
+
22
+ ### build
23
+
24
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
25
+
26
+ #### Example
27
+
28
+ ```ruby
29
+ require 'timelogic-api'
30
+
31
+ TimeLogic::Api::GetCurrentTime200Response.build(data)
32
+ # => #<TimePayload:0x00007fdd4aab02a0>
33
+
34
+ TimeLogic::Api::GetCurrentTime200Response.build(data_that_doesnt_match)
35
+ # => nil
36
+ ```
37
+
38
+ #### Parameters
39
+
40
+ | Name | Type | Description |
41
+ | ---- | ---- | ----------- |
42
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
43
+
44
+ #### Return type
45
+
46
+ - `TimePayload`
47
+ - `TimePayloadBulkResponse`
48
+ - `nil` (if no type matches)
49
+
@@ -0,0 +1,49 @@
1
+ # TimeLogic::Api::GetTimezone200Response
2
+
3
+ ## Class instance methods
4
+
5
+ ### `openapi_one_of`
6
+
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'timelogic-api'
13
+
14
+ TimeLogic::Api::GetTimezone200Response.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'TimezoneOffsetResponse',
18
+ # :'TimezoneResolvedResponse'
19
+ # ]
20
+ ```
21
+
22
+ ### build
23
+
24
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
25
+
26
+ #### Example
27
+
28
+ ```ruby
29
+ require 'timelogic-api'
30
+
31
+ TimeLogic::Api::GetTimezone200Response.build(data)
32
+ # => #<TimezoneOffsetResponse:0x00007fdd4aab02a0>
33
+
34
+ TimeLogic::Api::GetTimezone200Response.build(data_that_doesnt_match)
35
+ # => nil
36
+ ```
37
+
38
+ #### Parameters
39
+
40
+ | Name | Type | Description |
41
+ | ---- | ---- | ----------- |
42
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
43
+
44
+ #### Return type
45
+
46
+ - `TimezoneOffsetResponse`
47
+ - `TimezoneResolvedResponse`
48
+ - `nil` (if no type matches)
49
+
data/docs/JwkKey.md ADDED
@@ -0,0 +1,28 @@
1
+ # TimeLogic::Api::JwkKey
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **kty** | **String** | | |
8
+ | **crv** | **String** | | |
9
+ | **alg** | **String** | | |
10
+ | **use** | **String** | | |
11
+ | **kid** | **String** | | |
12
+ | **x** | **String** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'timelogic-api'
18
+
19
+ instance = TimeLogic::Api::JwkKey.new(
20
+ kty: null,
21
+ crv: null,
22
+ alg: null,
23
+ use: null,
24
+ kid: ed25519-2026-07-19,
25
+ x: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,18 @@
1
+ # TimeLogic::Api::JwksResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **keys** | [**Array&lt;JwkKey&gt;**](JwkKey.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'timelogic-api'
13
+
14
+ instance = TimeLogic::Api::JwksResponse.new(
15
+ keys: null
16
+ )
17
+ ```
18
+