stackone_client 0.29.0 → 0.31.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 +4 -4
- data/lib/stack_one/ats.rb +2 -2
- data/lib/stack_one/models/operations/queryparam_filter.rb +26 -18
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb +23 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb +20 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb +23 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb +20 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb +49 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_response.rb +49 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_filter.rb +81 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_request.rb +2 -2
- data/lib/stack_one/models/operations.rb +7 -0
- data/lib/stack_one/models/shared/authormodel.rb +37 -0
- data/lib/stack_one/models/shared/course.rb +6 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/platformlog.rb +113 -0
- data/lib/stack_one/models/shared/platformlogspaginated.rb +37 -0
- data/lib/stack_one/models/shared/steplog.rb +6 -2
- data/lib/stack_one/models/shared/unifiedlogs.rb +6 -2
- data/lib/stack_one/models/shared/unifiedlogspartial.rb +6 -2
- data/lib/stack_one/models/shared.rb +3 -0
- data/lib/stack_one/request_logs.rb +258 -0
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5284e0ecd8f9349765cd37b85263a948f99d8b3f71f12b7801073eb6030c35be
|
4
|
+
data.tar.gz: e7d322a9ce87434def6550d5b504a8e6e91a71f36a77a43daa7beaa3da5c000d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cac74c99ed4fefe333ef44106d8d0ea2d602550ae8f40a686abd469b00c40f99b7126327e5f21bd558b9aeb0e8c534c680ca3bda7a7a470060f1561e4c648bb
|
7
|
+
data.tar.gz: 6c33bf193d90a72a7c1108fb26034ce46672df6ad0ae5177ed507d22a9b1477289646c9e3438c4b4f275740b25500b5147d1a55baec26e908723b62a8bf603ca
|
data/lib/stack_one/ats.rb
CHANGED
@@ -985,7 +985,7 @@ module StackOne
|
|
985
985
|
end
|
986
986
|
|
987
987
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
988
|
-
if Utils.match_status_code(http_response.status, ['
|
988
|
+
if Utils.match_status_code(http_response.status, ['201'])
|
989
989
|
if Utils.match_content_type(content_type, 'application/json')
|
990
990
|
http_response = @sdk_configuration.hooks.after_success(
|
991
991
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
@@ -1849,7 +1849,7 @@ module StackOne
|
|
1849
1849
|
end
|
1850
1850
|
|
1851
1851
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
1852
|
-
if Utils.match_status_code(http_response.status, ['
|
1852
|
+
if Utils.match_status_code(http_response.status, ['201'])
|
1853
1853
|
if Utils.match_content_type(content_type, 'application/json')
|
1854
1854
|
http_response = @sdk_configuration.hooks.after_success(
|
1855
1855
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
@@ -17,44 +17,50 @@ module StackOne
|
|
17
17
|
field :account_ids, T.nilable(::String), { 'query_param': { 'field_name': 'account_ids' } }
|
18
18
|
# A comma-separated list of actions to filter the results by.
|
19
19
|
field :actions, T.nilable(::String), { 'query_param': { 'field_name': 'actions' } }
|
20
|
-
# A comma-separated list of
|
21
|
-
field :
|
20
|
+
# A comma-separated list of categories to filter the results by.
|
21
|
+
field :categories, T.nilable(::String), { 'query_param': { 'field_name': 'categories' } }
|
22
22
|
# A ISO8601 date string to filter the results by end_date.
|
23
23
|
field :end_date, T.nilable(::String), { 'query_param': { 'field_name': 'end_date' } }
|
24
24
|
# A comma-separated list of HTTP methods to filter the results by.
|
25
25
|
field :http_methods, T.nilable(::String), { 'query_param': { 'field_name': 'http_methods' } }
|
26
|
-
#
|
27
|
-
field :
|
26
|
+
# The field to order the results by.
|
27
|
+
field :order_by, T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy), { 'query_param': { 'field_name': 'order_by' } }
|
28
|
+
# The direction to order the results by.
|
29
|
+
field :order_direction, T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection), { 'query_param': { 'field_name': 'order_direction' } }
|
28
30
|
# A comma-separated list of request IDs to filter the results by.
|
29
31
|
field :request_ids, T.nilable(::String), { 'query_param': { 'field_name': 'request_ids' } }
|
30
32
|
# A comma-separated list of resources to filter the results by.
|
31
33
|
field :resources, T.nilable(::String), { 'query_param': { 'field_name': 'resources' } }
|
32
|
-
# A comma-separated list of
|
33
|
-
field :
|
34
|
+
# A comma-separated list of source IDs to filter the results by.
|
35
|
+
field :source_ids, T.nilable(::String), { 'query_param': { 'field_name': 'source_ids' } }
|
36
|
+
# A comma-separated list of source types to filter the results by.
|
37
|
+
field :source_types, T.nilable(::String), { 'query_param': { 'field_name': 'source_types' } }
|
38
|
+
# A comma-separated list of source values to filter the results by.
|
39
|
+
field :source_values, T.nilable(::String), { 'query_param': { 'field_name': 'source_values' } }
|
34
40
|
# A ISO8601 date string to filter the results by start_date.
|
35
41
|
field :start_date, T.nilable(::String), { 'query_param': { 'field_name': 'start_date' } }
|
36
42
|
# A comma-separated list of status codes to filter the results by.
|
37
43
|
field :status_codes, T.nilable(::String), { 'query_param': { 'field_name': 'status_codes' } }
|
38
|
-
# A comma-separated list of sub resources to filter the results by.
|
39
|
-
field :sub_resources, T.nilable(::String), { 'query_param': { 'field_name': 'sub_resources' } }
|
40
44
|
# A boolean value to filter the results by success or failure.
|
41
45
|
field :success, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'success' } }
|
42
46
|
|
43
47
|
|
44
|
-
sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String),
|
45
|
-
def initialize(account_ids: nil, actions: nil,
|
48
|
+
sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String), categories: T.nilable(::String), end_date: T.nilable(::String), http_methods: T.nilable(::String), order_by: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy), order_direction: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection), request_ids: T.nilable(::String), resources: T.nilable(::String), source_ids: T.nilable(::String), source_types: T.nilable(::String), source_values: T.nilable(::String), start_date: T.nilable(::String), status_codes: T.nilable(::String), success: T.nilable(T::Boolean)).void }
|
49
|
+
def initialize(account_ids: nil, actions: nil, categories: nil, end_date: nil, http_methods: nil, order_by: nil, order_direction: nil, request_ids: nil, resources: nil, source_ids: nil, source_types: nil, source_values: nil, start_date: nil, status_codes: nil, success: nil)
|
46
50
|
@account_ids = account_ids
|
47
51
|
@actions = actions
|
48
|
-
@
|
52
|
+
@categories = categories
|
49
53
|
@end_date = end_date
|
50
54
|
@http_methods = http_methods
|
51
|
-
@
|
55
|
+
@order_by = order_by
|
56
|
+
@order_direction = order_direction
|
52
57
|
@request_ids = request_ids
|
53
58
|
@resources = resources
|
54
|
-
@
|
59
|
+
@source_ids = source_ids
|
60
|
+
@source_types = source_types
|
61
|
+
@source_values = source_values
|
55
62
|
@start_date = start_date
|
56
63
|
@status_codes = status_codes
|
57
|
-
@sub_resources = sub_resources
|
58
64
|
@success = success
|
59
65
|
end
|
60
66
|
|
@@ -62,16 +68,18 @@ module StackOne
|
|
62
68
|
return false unless other.is_a? self.class
|
63
69
|
return false unless @account_ids == other.account_ids
|
64
70
|
return false unless @actions == other.actions
|
65
|
-
return false unless @
|
71
|
+
return false unless @categories == other.categories
|
66
72
|
return false unless @end_date == other.end_date
|
67
73
|
return false unless @http_methods == other.http_methods
|
68
|
-
return false unless @
|
74
|
+
return false unless @order_by == other.order_by
|
75
|
+
return false unless @order_direction == other.order_direction
|
69
76
|
return false unless @request_ids == other.request_ids
|
70
77
|
return false unless @resources == other.resources
|
71
|
-
return false unless @
|
78
|
+
return false unless @source_ids == other.source_ids
|
79
|
+
return false unless @source_types == other.source_types
|
80
|
+
return false unless @source_values == other.source_values
|
72
81
|
return false unless @start_date == other.start_date
|
73
82
|
return false unless @status_codes == other.status_codes
|
74
|
-
return false unless @sub_resources == other.sub_resources
|
75
83
|
return false unless @success == other.success
|
76
84
|
true
|
77
85
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
# StackoneListPlatformLogsQueryParamOrderBy - The field to order the results by.
|
12
|
+
class StackoneListPlatformLogsQueryParamOrderBy < T::Enum
|
13
|
+
enums do
|
14
|
+
PROVIDER = new('provider')
|
15
|
+
SERVICE = new('service')
|
16
|
+
STATUS = new('status')
|
17
|
+
EVENT_DATETIME = new('eventDatetime')
|
18
|
+
DURATION = new('duration')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
# StackoneListPlatformLogsQueryParamOrderDirection - The direction to order the results by.
|
12
|
+
class StackoneListPlatformLogsQueryParamOrderDirection < T::Enum
|
13
|
+
enums do
|
14
|
+
ASC = new('asc')
|
15
|
+
DESC = new('desc')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
# StackoneListPlatformLogsQueryParamRequestLogsOrderBy - The field to order the results by.
|
12
|
+
class StackoneListPlatformLogsQueryParamRequestLogsOrderBy < T::Enum
|
13
|
+
enums do
|
14
|
+
PROVIDER = new('provider')
|
15
|
+
SERVICE = new('service')
|
16
|
+
STATUS = new('status')
|
17
|
+
EVENT_DATETIME = new('eventDatetime')
|
18
|
+
DURATION = new('duration')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
# StackoneListPlatformLogsQueryParamRequestLogsOrderDirection - The direction to order the results by.
|
12
|
+
class StackoneListPlatformLogsQueryParamRequestLogsOrderDirection < T::Enum
|
13
|
+
enums do
|
14
|
+
ASC = new('asc')
|
15
|
+
DESC = new('desc')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class StackoneListPlatformLogsRequest
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# Filter parameters that allow greater customisation of the list response
|
17
|
+
field :filter, T.nilable(Models::Operations::QueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } }
|
18
|
+
# The unified cursor
|
19
|
+
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
20
|
+
# The field to order the results by.
|
21
|
+
field :order_by, T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderBy), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } }
|
22
|
+
# The direction to order the results by.
|
23
|
+
field :order_direction, T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection), { 'query_param': { 'field_name': 'order_direction', 'style': 'form', 'explode': true } }
|
24
|
+
# The number of results per page (default value is 25)
|
25
|
+
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(filter: T.nilable(Models::Operations::QueryParamFilter), next_: T.nilable(::String), order_by: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderBy), order_direction: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection), page_size: T.nilable(::Float)).void }
|
29
|
+
def initialize(filter: nil, next_: nil, order_by: nil, order_direction: nil, page_size: nil)
|
30
|
+
@filter = filter
|
31
|
+
@next_ = next_
|
32
|
+
@order_by = order_by
|
33
|
+
@order_direction = order_direction
|
34
|
+
@page_size = page_size
|
35
|
+
end
|
36
|
+
|
37
|
+
def ==(other)
|
38
|
+
return false unless other.is_a? self.class
|
39
|
+
return false unless @filter == other.filter
|
40
|
+
return false unless @next_ == other.next_
|
41
|
+
return false unless @order_by == other.order_by
|
42
|
+
return false unless @order_direction == other.order_direction
|
43
|
+
return false unless @page_size == other.page_size
|
44
|
+
true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class StackoneListPlatformLogsResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, ::String
|
18
|
+
|
19
|
+
field :headers, T::Hash[Symbol, T::Array[::String]]
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
21
|
+
field :raw_response, ::Faraday::Response
|
22
|
+
# HTTP response status code for this operation
|
23
|
+
field :status_code, ::Integer
|
24
|
+
# The list of platform logs was retrieved.
|
25
|
+
field :platform_logs_paginated, T.nilable(Models::Shared::PlatformLogsPaginated)
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], raw_response: ::Faraday::Response, status_code: ::Integer, platform_logs_paginated: T.nilable(Models::Shared::PlatformLogsPaginated)).void }
|
29
|
+
def initialize(content_type: nil, headers: nil, raw_response: nil, status_code: nil, platform_logs_paginated: nil)
|
30
|
+
@content_type = content_type
|
31
|
+
@headers = headers
|
32
|
+
@raw_response = raw_response
|
33
|
+
@status_code = status_code
|
34
|
+
@platform_logs_paginated = platform_logs_paginated
|
35
|
+
end
|
36
|
+
|
37
|
+
def ==(other)
|
38
|
+
return false unless other.is_a? self.class
|
39
|
+
return false unless @content_type == other.content_type
|
40
|
+
return false unless @headers == other.headers
|
41
|
+
return false unless @raw_response == other.raw_response
|
42
|
+
return false unless @status_code == other.status_code
|
43
|
+
return false unless @platform_logs_paginated == other.platform_logs_paginated
|
44
|
+
true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
# Filter parameters that allow greater customisation of the list response
|
12
|
+
class StackoneListStepLogsQueryParamFilter
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# A comma-separated list of account IDs to filter the results by.
|
17
|
+
field :account_ids, T.nilable(::String), { 'query_param': { 'field_name': 'account_ids' } }
|
18
|
+
# A comma-separated list of actions to filter the results by.
|
19
|
+
field :actions, T.nilable(::String), { 'query_param': { 'field_name': 'actions' } }
|
20
|
+
# A comma-separated list of child resources to filter the results by.
|
21
|
+
field :child_resources, T.nilable(::String), { 'query_param': { 'field_name': 'child_resources' } }
|
22
|
+
# A ISO8601 date string to filter the results by end_date.
|
23
|
+
field :end_date, T.nilable(::String), { 'query_param': { 'field_name': 'end_date' } }
|
24
|
+
# A comma-separated list of HTTP methods to filter the results by.
|
25
|
+
field :http_methods, T.nilable(::String), { 'query_param': { 'field_name': 'http_methods' } }
|
26
|
+
# A comma-separated list of provider keys to filter the results by.
|
27
|
+
field :providers, T.nilable(::String), { 'query_param': { 'field_name': 'providers' } }
|
28
|
+
# A comma-separated list of request IDs to filter the results by.
|
29
|
+
field :request_ids, T.nilable(::String), { 'query_param': { 'field_name': 'request_ids' } }
|
30
|
+
# A comma-separated list of resources to filter the results by.
|
31
|
+
field :resources, T.nilable(::String), { 'query_param': { 'field_name': 'resources' } }
|
32
|
+
# A comma-separated list of services to filter the results by.
|
33
|
+
field :services, T.nilable(::String), { 'query_param': { 'field_name': 'services' } }
|
34
|
+
# A ISO8601 date string to filter the results by start_date.
|
35
|
+
field :start_date, T.nilable(::String), { 'query_param': { 'field_name': 'start_date' } }
|
36
|
+
# A comma-separated list of status codes to filter the results by.
|
37
|
+
field :status_codes, T.nilable(::String), { 'query_param': { 'field_name': 'status_codes' } }
|
38
|
+
# A comma-separated list of sub resources to filter the results by.
|
39
|
+
field :sub_resources, T.nilable(::String), { 'query_param': { 'field_name': 'sub_resources' } }
|
40
|
+
# A boolean value to filter the results by success or failure.
|
41
|
+
field :success, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'success' } }
|
42
|
+
|
43
|
+
|
44
|
+
sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String), child_resources: T.nilable(::String), end_date: T.nilable(::String), http_methods: T.nilable(::String), providers: T.nilable(::String), request_ids: T.nilable(::String), resources: T.nilable(::String), services: T.nilable(::String), start_date: T.nilable(::String), status_codes: T.nilable(::String), sub_resources: T.nilable(::String), success: T.nilable(T::Boolean)).void }
|
45
|
+
def initialize(account_ids: nil, actions: nil, child_resources: nil, end_date: nil, http_methods: nil, providers: nil, request_ids: nil, resources: nil, services: nil, start_date: nil, status_codes: nil, sub_resources: nil, success: nil)
|
46
|
+
@account_ids = account_ids
|
47
|
+
@actions = actions
|
48
|
+
@child_resources = child_resources
|
49
|
+
@end_date = end_date
|
50
|
+
@http_methods = http_methods
|
51
|
+
@providers = providers
|
52
|
+
@request_ids = request_ids
|
53
|
+
@resources = resources
|
54
|
+
@services = services
|
55
|
+
@start_date = start_date
|
56
|
+
@status_codes = status_codes
|
57
|
+
@sub_resources = sub_resources
|
58
|
+
@success = success
|
59
|
+
end
|
60
|
+
|
61
|
+
def ==(other)
|
62
|
+
return false unless other.is_a? self.class
|
63
|
+
return false unless @account_ids == other.account_ids
|
64
|
+
return false unless @actions == other.actions
|
65
|
+
return false unless @child_resources == other.child_resources
|
66
|
+
return false unless @end_date == other.end_date
|
67
|
+
return false unless @http_methods == other.http_methods
|
68
|
+
return false unless @providers == other.providers
|
69
|
+
return false unless @request_ids == other.request_ids
|
70
|
+
return false unless @resources == other.resources
|
71
|
+
return false unless @services == other.services
|
72
|
+
return false unless @start_date == other.start_date
|
73
|
+
return false unless @status_codes == other.status_codes
|
74
|
+
return false unless @sub_resources == other.sub_resources
|
75
|
+
return false unless @success == other.success
|
76
|
+
true
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -14,7 +14,7 @@ module StackOne
|
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
16
16
|
# Filter parameters that allow greater customisation of the list response
|
17
|
-
field :filter, T.nilable(Models::Operations::
|
17
|
+
field :filter, T.nilable(Models::Operations::StackoneListStepLogsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } }
|
18
18
|
# The unified cursor
|
19
19
|
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
20
20
|
# The field to order the results by.
|
@@ -25,7 +25,7 @@ module StackOne
|
|
25
25
|
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(filter: T.nilable(Models::Operations::
|
28
|
+
sig { params(filter: T.nilable(Models::Operations::StackoneListStepLogsQueryParamFilter), next_: T.nilable(::String), order_by: T.nilable(Models::Operations::StackoneListStepLogsQueryParamOrderBy), order_direction: T.nilable(Models::Operations::StackoneListStepLogsQueryParamOrderDirection), page_size: T.nilable(::Float)).void }
|
29
29
|
def initialize(filter: nil, next_: nil, order_by: nil, order_direction: nil, page_size: nil)
|
30
30
|
@filter = filter
|
31
31
|
@next_ = next_
|
@@ -548,6 +548,13 @@ module StackOne
|
|
548
548
|
autoload :StackoneListLinkedAccountsResponse, 'stack_one/models/operations/stackone_list_linked_accounts_response.rb'
|
549
549
|
autoload :StackoneListLogsRequest, 'stack_one/models/operations/stackone_list_logs_request.rb'
|
550
550
|
autoload :StackoneListLogsResponse, 'stack_one/models/operations/stackone_list_logs_response.rb'
|
551
|
+
autoload :StackoneListPlatformLogsQueryParamRequestLogsOrderBy, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb'
|
552
|
+
autoload :StackoneListPlatformLogsQueryParamRequestLogsOrderDirection, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb'
|
553
|
+
autoload :StackoneListPlatformLogsQueryParamOrderBy, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb'
|
554
|
+
autoload :StackoneListPlatformLogsQueryParamOrderDirection, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb'
|
555
|
+
autoload :StackoneListPlatformLogsRequest, 'stack_one/models/operations/stackone_list_platform_logs_request.rb'
|
556
|
+
autoload :StackoneListPlatformLogsResponse, 'stack_one/models/operations/stackone_list_platform_logs_response.rb'
|
557
|
+
autoload :StackoneListStepLogsQueryParamFilter, 'stack_one/models/operations/stackone_list_step_logs_queryparam_filter.rb'
|
551
558
|
autoload :StackoneListStepLogsQueryParamOrderBy, 'stack_one/models/operations/stackone_list_step_logs_queryparam_order_by.rb'
|
552
559
|
autoload :StackoneListStepLogsQueryParamOrderDirection, 'stack_one/models/operations/stackone_list_step_logs_queryparam_order_direction.rb'
|
553
560
|
autoload :StackoneListStepLogsRequest, 'stack_one/models/operations/stackone_list_step_logs_request.rb'
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class AuthorModel
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# The ID of the author
|
17
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
18
|
+
# The name of the author
|
19
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(id: T.nilable(::String), name: T.nilable(::String)).void }
|
23
|
+
def initialize(id: nil, name: nil)
|
24
|
+
@id = id
|
25
|
+
@name = name
|
26
|
+
end
|
27
|
+
|
28
|
+
def ==(other)
|
29
|
+
return false unless other.is_a? self.class
|
30
|
+
return false unless @id == other.id
|
31
|
+
return false unless @name == other.name
|
32
|
+
true
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -15,6 +15,8 @@ module StackOne
|
|
15
15
|
|
16
16
|
# Whether the course is active and available for users.
|
17
17
|
field :active, T.nilable(T.any(T::Boolean, Models::Shared::Course2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
18
|
+
# The authors of the course
|
19
|
+
field :authors, T.nilable(T::Array[Models::Shared::AuthorModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('authors') } }
|
18
20
|
# The categories associated with this course
|
19
21
|
field :categories, T.nilable(T::Array[Models::Shared::Category]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
20
22
|
# The child ID/IDs associated with this course
|
@@ -51,9 +53,10 @@ module StackOne
|
|
51
53
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
52
54
|
|
53
55
|
|
54
|
-
sig { params(active: T.nilable(T.any(T::Boolean, Models::Shared::Course2)), categories: T.nilable(T::Array[Models::Shared::Category]), content_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), created_at: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), id: T.nilable(::String), languages: T.nilable(T::Array[Models::Shared::LanguageEnum]), provider: T.nilable(::String), remote_content_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), skills: T.nilable(T::Array[Models::Shared::Skills]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String), url: T.nilable(::String)).void }
|
55
|
-
def initialize(active: nil, categories: nil, content_ids: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, id: nil, languages: nil, provider: nil, remote_content_ids: nil, remote_id: nil, skills: nil, title: nil, unified_custom_fields: nil, updated_at: nil, url: nil)
|
56
|
+
sig { params(active: T.nilable(T.any(T::Boolean, Models::Shared::Course2)), authors: T.nilable(T::Array[Models::Shared::AuthorModel]), categories: T.nilable(T::Array[Models::Shared::Category]), content_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), created_at: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), id: T.nilable(::String), languages: T.nilable(T::Array[Models::Shared::LanguageEnum]), provider: T.nilable(::String), remote_content_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), skills: T.nilable(T::Array[Models::Shared::Skills]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String), url: T.nilable(::String)).void }
|
57
|
+
def initialize(active: nil, authors: nil, categories: nil, content_ids: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, id: nil, languages: nil, provider: nil, remote_content_ids: nil, remote_id: nil, skills: nil, title: nil, unified_custom_fields: nil, updated_at: nil, url: nil)
|
56
58
|
@active = active
|
59
|
+
@authors = authors
|
57
60
|
@categories = categories
|
58
61
|
@content_ids = content_ids
|
59
62
|
@cover_url = cover_url
|
@@ -76,6 +79,7 @@ module StackOne
|
|
76
79
|
def ==(other)
|
77
80
|
return false unless other.is_a? self.class
|
78
81
|
return false unless @active == other.active
|
82
|
+
return false unless @authors == other.authors
|
79
83
|
return false unless @categories == other.categories
|
80
84
|
return false unless @content_ids == other.content_ids
|
81
85
|
return false unless @cover_url == other.cover_url
|
@@ -17,6 +17,8 @@ module StackOne
|
|
17
17
|
field :active, T.nilable(T.any(T::Boolean, Models::Shared::LmsCreateContentRequestDto2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
18
18
|
# The additional_data associated with this content
|
19
19
|
field :additional_data, T.nilable(T::Array[Models::Shared::AdditionalData]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('additional_data') } }
|
20
|
+
# The authors of the content
|
21
|
+
field :authors, T.nilable(T::Array[Models::Shared::AuthorModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('authors') } }
|
20
22
|
# The categories associated with this content
|
21
23
|
field :categories, T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
22
24
|
# The type of content
|
@@ -57,10 +59,11 @@ module StackOne
|
|
57
59
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
58
60
|
|
59
61
|
|
60
|
-
sig { params(active: T.nilable(T.any(T::Boolean, Models::Shared::LmsCreateContentRequestDto2)), additional_data: T.nilable(T::Array[Models::Shared::AdditionalData]), categories: T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), content_type: T.nilable(Models::Shared::LmsCreateContentRequestDtoContentType), content_url: T.nilable(::String), cover_url: T.nilable(::String), created_at: T.nilable(::DateTime), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[Models::Shared::LanguageEnum]), localizations: T.nilable(T::Array[Models::Shared::LocalizationModel]), mobile_launch_content_url: T.nilable(::String), order: T.nilable(::Float), short_description: T.nilable(::String), skills: T.nilable(T::Array[Models::Shared::CreateSkillsApiModel]), tags: T.nilable(T::Array[::String]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
61
|
-
def initialize(active: nil, additional_data: nil, categories: nil, content_type: nil, content_url: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, languages: nil, localizations: nil, mobile_launch_content_url: nil, order: nil, short_description: nil, skills: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
|
62
|
+
sig { params(active: T.nilable(T.any(T::Boolean, Models::Shared::LmsCreateContentRequestDto2)), additional_data: T.nilable(T::Array[Models::Shared::AdditionalData]), authors: T.nilable(T::Array[Models::Shared::AuthorModel]), categories: T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), content_type: T.nilable(Models::Shared::LmsCreateContentRequestDtoContentType), content_url: T.nilable(::String), cover_url: T.nilable(::String), created_at: T.nilable(::DateTime), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[Models::Shared::LanguageEnum]), localizations: T.nilable(T::Array[Models::Shared::LocalizationModel]), mobile_launch_content_url: T.nilable(::String), order: T.nilable(::Float), short_description: T.nilable(::String), skills: T.nilable(T::Array[Models::Shared::CreateSkillsApiModel]), tags: T.nilable(T::Array[::String]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
63
|
+
def initialize(active: nil, additional_data: nil, authors: nil, categories: nil, content_type: nil, content_url: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, languages: nil, localizations: nil, mobile_launch_content_url: nil, order: nil, short_description: nil, skills: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
|
62
64
|
@active = active
|
63
65
|
@additional_data = additional_data
|
66
|
+
@authors = authors
|
64
67
|
@categories = categories
|
65
68
|
@content_type = content_type
|
66
69
|
@content_url = content_url
|
@@ -85,6 +88,7 @@ module StackOne
|
|
85
88
|
return false unless other.is_a? self.class
|
86
89
|
return false unless @active == other.active
|
87
90
|
return false unless @additional_data == other.additional_data
|
91
|
+
return false unless @authors == other.authors
|
88
92
|
return false unless @categories == other.categories
|
89
93
|
return false unless @content_type == other.content_type
|
90
94
|
return false unless @content_url == other.content_url
|
@@ -17,6 +17,8 @@ module StackOne
|
|
17
17
|
field :active, T.nilable(T.any(T::Boolean, Models::Shared::LmsUpsertContentRequestDto2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
|
18
18
|
# The additional_data associated with this content
|
19
19
|
field :additional_data, T.nilable(T::Array[Models::Shared::AdditionalData]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('additional_data') } }
|
20
|
+
# The authors of the content
|
21
|
+
field :authors, T.nilable(T::Array[Models::Shared::AuthorModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('authors') } }
|
20
22
|
# The categories associated with this content
|
21
23
|
field :categories, T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
|
22
24
|
# The type of content
|
@@ -57,10 +59,11 @@ module StackOne
|
|
57
59
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
58
60
|
|
59
61
|
|
60
|
-
sig { params(active: T.nilable(T.any(T::Boolean, Models::Shared::LmsUpsertContentRequestDto2)), additional_data: T.nilable(T::Array[Models::Shared::AdditionalData]), categories: T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), content_type: T.nilable(Models::Shared::LmsUpsertContentRequestDtoContentType), content_url: T.nilable(::String), cover_url: T.nilable(::String), created_at: T.nilable(::DateTime), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[Models::Shared::LanguageEnum]), localizations: T.nilable(T::Array[Models::Shared::LocalizationModel]), mobile_launch_content_url: T.nilable(::String), order: T.nilable(::Float), short_description: T.nilable(::String), skills: T.nilable(T::Array[Models::Shared::CreateSkillsApiModel]), tags: T.nilable(T::Array[::String]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
61
|
-
def initialize(active: nil, additional_data: nil, categories: nil, content_type: nil, content_url: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, languages: nil, localizations: nil, mobile_launch_content_url: nil, order: nil, short_description: nil, skills: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
|
62
|
+
sig { params(active: T.nilable(T.any(T::Boolean, Models::Shared::LmsUpsertContentRequestDto2)), additional_data: T.nilable(T::Array[Models::Shared::AdditionalData]), authors: T.nilable(T::Array[Models::Shared::AuthorModel]), categories: T.nilable(T::Array[Models::Shared::CreateCategoriesApiModel]), content_type: T.nilable(Models::Shared::LmsUpsertContentRequestDtoContentType), content_url: T.nilable(::String), cover_url: T.nilable(::String), created_at: T.nilable(::DateTime), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[Models::Shared::LanguageEnum]), localizations: T.nilable(T::Array[Models::Shared::LocalizationModel]), mobile_launch_content_url: T.nilable(::String), order: T.nilable(::Float), short_description: T.nilable(::String), skills: T.nilable(T::Array[Models::Shared::CreateSkillsApiModel]), tags: T.nilable(T::Array[::String]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
63
|
+
def initialize(active: nil, additional_data: nil, authors: nil, categories: nil, content_type: nil, content_url: nil, cover_url: nil, created_at: nil, description: nil, duration: nil, external_reference: nil, languages: nil, localizations: nil, mobile_launch_content_url: nil, order: nil, short_description: nil, skills: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
|
62
64
|
@active = active
|
63
65
|
@additional_data = additional_data
|
66
|
+
@authors = authors
|
64
67
|
@categories = categories
|
65
68
|
@content_type = content_type
|
66
69
|
@content_url = content_url
|
@@ -85,6 +88,7 @@ module StackOne
|
|
85
88
|
return false unless other.is_a? self.class
|
86
89
|
return false unless @active == other.active
|
87
90
|
return false unless @additional_data == other.additional_data
|
91
|
+
return false unless @authors == other.authors
|
88
92
|
return false unless @categories == other.categories
|
89
93
|
return false unless @content_type == other.content_type
|
90
94
|
return false unless @content_url == other.content_url
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class PlatformLog
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# The account ID of the request
|
17
|
+
field :account_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
|
18
|
+
# The requested action
|
19
|
+
field :action, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } }
|
20
|
+
# The requested category
|
21
|
+
field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
|
22
|
+
# The requested child resource
|
23
|
+
field :child_resource, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('child_resource') } }
|
24
|
+
# The request duration in milliseconds
|
25
|
+
field :duration, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
|
26
|
+
# The request end time ISO8601 date string
|
27
|
+
field :end_time, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
28
|
+
# The event ISO8601 date string
|
29
|
+
field :event_datetime, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_datetime'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
30
|
+
# The requested HTTP method
|
31
|
+
field :http_method, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('http_method') } }
|
32
|
+
# The requested path
|
33
|
+
field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
|
34
|
+
# The project ID of the request
|
35
|
+
field :project_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } }
|
36
|
+
# The request ID
|
37
|
+
field :request_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request_id') } }
|
38
|
+
# The requested resource
|
39
|
+
field :resource, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resource') } }
|
40
|
+
# The requests source ID
|
41
|
+
field :source_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } }
|
42
|
+
# The requests source IPV4 ip address
|
43
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
44
|
+
# The requests source type
|
45
|
+
field :source_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
|
46
|
+
# The requests source value
|
47
|
+
field :source_value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
48
|
+
# The request start time ISO8601 date string
|
49
|
+
field :start_time, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
50
|
+
# The requests response status code
|
51
|
+
field :status, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
52
|
+
# The requested sub resource
|
53
|
+
field :sub_resource, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_resource') } }
|
54
|
+
# The request success flag
|
55
|
+
field :success, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } }
|
56
|
+
# The requested URL
|
57
|
+
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
58
|
+
|
59
|
+
|
60
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), category: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), path: T.nilable(::String), project_id: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
61
|
+
def initialize(account_id: nil, action: nil, category: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, path: nil, project_id: nil, request_id: nil, resource: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
|
62
|
+
@account_id = account_id
|
63
|
+
@action = action
|
64
|
+
@category = category
|
65
|
+
@child_resource = child_resource
|
66
|
+
@duration = duration
|
67
|
+
@end_time = end_time
|
68
|
+
@event_datetime = event_datetime
|
69
|
+
@http_method = http_method
|
70
|
+
@path = path
|
71
|
+
@project_id = project_id
|
72
|
+
@request_id = request_id
|
73
|
+
@resource = resource
|
74
|
+
@source_id = source_id
|
75
|
+
@source_ip = source_ip
|
76
|
+
@source_type = source_type
|
77
|
+
@source_value = source_value
|
78
|
+
@start_time = start_time
|
79
|
+
@status = status
|
80
|
+
@sub_resource = sub_resource
|
81
|
+
@success = success
|
82
|
+
@url = url
|
83
|
+
end
|
84
|
+
|
85
|
+
def ==(other)
|
86
|
+
return false unless other.is_a? self.class
|
87
|
+
return false unless @account_id == other.account_id
|
88
|
+
return false unless @action == other.action
|
89
|
+
return false unless @category == other.category
|
90
|
+
return false unless @child_resource == other.child_resource
|
91
|
+
return false unless @duration == other.duration
|
92
|
+
return false unless @end_time == other.end_time
|
93
|
+
return false unless @event_datetime == other.event_datetime
|
94
|
+
return false unless @http_method == other.http_method
|
95
|
+
return false unless @path == other.path
|
96
|
+
return false unless @project_id == other.project_id
|
97
|
+
return false unless @request_id == other.request_id
|
98
|
+
return false unless @resource == other.resource
|
99
|
+
return false unless @source_id == other.source_id
|
100
|
+
return false unless @source_ip == other.source_ip
|
101
|
+
return false unless @source_type == other.source_type
|
102
|
+
return false unless @source_value == other.source_value
|
103
|
+
return false unless @start_time == other.start_time
|
104
|
+
return false unless @status == other.status
|
105
|
+
return false unless @sub_resource == other.sub_resource
|
106
|
+
return false unless @success == other.success
|
107
|
+
return false unless @url == other.url
|
108
|
+
true
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class PlatformLogsPaginated
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
|
17
|
+
field :data, T::Array[Models::Shared::PlatformLog], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
18
|
+
|
19
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(data: T::Array[Models::Shared::PlatformLog], next_: T.nilable(::String)).void }
|
23
|
+
def initialize(data: nil, next_: nil)
|
24
|
+
@data = data
|
25
|
+
@next_ = next_
|
26
|
+
end
|
27
|
+
|
28
|
+
def ==(other)
|
29
|
+
return false unless other.is_a? self.class
|
30
|
+
return false unless @data == other.data
|
31
|
+
return false unless @next_ == other.next_
|
32
|
+
true
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -45,6 +45,8 @@ module StackOne
|
|
45
45
|
field :response, T.nilable(Models::Shared::StepLogResponse), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('response') } }
|
46
46
|
# The requested service
|
47
47
|
field :service, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } }
|
48
|
+
# The requests source IPV4 ip address
|
49
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
48
50
|
# The request start time ISO8601 date string
|
49
51
|
field :start_time, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
50
52
|
# The requests response status code
|
@@ -57,8 +59,8 @@ module StackOne
|
|
57
59
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
58
60
|
|
59
61
|
|
60
|
-
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), http_method: T.nilable(::String), id: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::Request), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::StepLogResponse), service: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
61
|
-
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
|
62
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), http_method: T.nilable(::String), id: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::Request), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::StepLogResponse), service: T.nilable(::String), source_ip: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
63
|
+
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_ip: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
|
62
64
|
@account_id = account_id
|
63
65
|
@action = action
|
64
66
|
@child_resource = child_resource
|
@@ -75,6 +77,7 @@ module StackOne
|
|
75
77
|
@resource = resource
|
76
78
|
@response = response
|
77
79
|
@service = service
|
80
|
+
@source_ip = source_ip
|
78
81
|
@start_time = start_time
|
79
82
|
@status = status
|
80
83
|
@sub_resource = sub_resource
|
@@ -100,6 +103,7 @@ module StackOne
|
|
100
103
|
return false unless @resource == other.resource
|
101
104
|
return false unless @response == other.response
|
102
105
|
return false unless @service == other.service
|
106
|
+
return false unless @source_ip == other.source_ip
|
103
107
|
return false unless @start_time == other.start_time
|
104
108
|
return false unless @status == other.status
|
105
109
|
return false unless @sub_resource == other.sub_resource
|
@@ -47,6 +47,8 @@ module StackOne
|
|
47
47
|
field :service, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } }
|
48
48
|
# The requests source ID
|
49
49
|
field :source_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } }
|
50
|
+
# The requests source IPV4 ip address
|
51
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
50
52
|
# The requests source type
|
51
53
|
field :source_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
|
52
54
|
# The requests source value
|
@@ -65,8 +67,8 @@ module StackOne
|
|
65
67
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
66
68
|
|
67
69
|
|
68
|
-
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::UnifiedLogsRequest), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::UnifiedLogsResponse), service: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLog]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
69
|
-
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
70
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::UnifiedLogsRequest), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::UnifiedLogsResponse), service: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLog]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
71
|
+
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
70
72
|
@account_id = account_id
|
71
73
|
@action = action
|
72
74
|
@child_resource = child_resource
|
@@ -84,6 +86,7 @@ module StackOne
|
|
84
86
|
@response = response
|
85
87
|
@service = service
|
86
88
|
@source_id = source_id
|
89
|
+
@source_ip = source_ip
|
87
90
|
@source_type = source_type
|
88
91
|
@source_value = source_value
|
89
92
|
@start_time = start_time
|
@@ -113,6 +116,7 @@ module StackOne
|
|
113
116
|
return false unless @response == other.response
|
114
117
|
return false unless @service == other.service
|
115
118
|
return false unless @source_id == other.source_id
|
119
|
+
return false unless @source_ip == other.source_ip
|
116
120
|
return false unless @source_type == other.source_type
|
117
121
|
return false unless @source_value == other.source_value
|
118
122
|
return false unless @start_time == other.start_time
|
@@ -43,6 +43,8 @@ module StackOne
|
|
43
43
|
field :service, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } }
|
44
44
|
# The requests source ID
|
45
45
|
field :source_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } }
|
46
|
+
# The requests source IPV4 ip address
|
47
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
46
48
|
# The requests source type
|
47
49
|
field :source_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
|
48
50
|
# The requests source value
|
@@ -61,8 +63,8 @@ module StackOne
|
|
61
63
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
62
64
|
|
63
65
|
|
64
|
-
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLogPartial]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
65
|
-
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request_id: nil, resource: nil, service: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
66
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLogPartial]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
67
|
+
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request_id: nil, resource: nil, service: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
66
68
|
@account_id = account_id
|
67
69
|
@action = action
|
68
70
|
@child_resource = child_resource
|
@@ -78,6 +80,7 @@ module StackOne
|
|
78
80
|
@resource = resource
|
79
81
|
@service = service
|
80
82
|
@source_id = source_id
|
83
|
+
@source_ip = source_ip
|
81
84
|
@source_type = source_type
|
82
85
|
@source_value = source_value
|
83
86
|
@start_time = start_time
|
@@ -105,6 +108,7 @@ module StackOne
|
|
105
108
|
return false unless @resource == other.resource
|
106
109
|
return false unless @service == other.service
|
107
110
|
return false unless @source_id == other.source_id
|
111
|
+
return false unless @source_ip == other.source_ip
|
108
112
|
return false unless @source_type == other.source_type
|
109
113
|
return false unless @source_value == other.source_value
|
110
114
|
return false unless @start_time == other.start_time
|
@@ -159,6 +159,7 @@ module StackOne
|
|
159
159
|
autoload :AttachmentContentType, 'stack_one/models/shared/attachment_content_type.rb'
|
160
160
|
autoload :AttachmentSourceValue, 'stack_one/models/shared/attachment_source_value.rb'
|
161
161
|
autoload :AttachmentValue, 'stack_one/models/shared/attachment_value.rb'
|
162
|
+
autoload :AuthorModel, 'stack_one/models/shared/authormodel.rb'
|
162
163
|
autoload :BackgroundCheckPackage, 'stack_one/models/shared/backgroundcheckpackage.rb'
|
163
164
|
autoload :BackgroundCheckPackagePaginated, 'stack_one/models/shared/backgroundcheckpackagepaginated.rb'
|
164
165
|
autoload :BackgroundCheckPackageResult, 'stack_one/models/shared/backgroundcheckpackageresult.rb'
|
@@ -1038,6 +1039,8 @@ module StackOne
|
|
1038
1039
|
autoload :PatchAccountExternalDtoType, 'stack_one/models/shared/patchaccountexternaldto_type.rb'
|
1039
1040
|
autoload :PhoneNumber, 'stack_one/models/shared/phonenumber.rb'
|
1040
1041
|
autoload :PhoneNumberType, 'stack_one/models/shared/phonenumber_type.rb'
|
1042
|
+
autoload :PlatformLog, 'stack_one/models/shared/platformlog.rb'
|
1043
|
+
autoload :PlatformLogsPaginated, 'stack_one/models/shared/platformlogspaginated.rb'
|
1041
1044
|
autoload :Position, 'stack_one/models/shared/position.rb'
|
1042
1045
|
autoload :PositionResult, 'stack_one/models/shared/positionresult.rb'
|
1043
1046
|
autoload :Position4, 'stack_one/models/shared/position_4.rb'
|
@@ -548,6 +548,264 @@ module StackOne
|
|
548
548
|
end
|
549
549
|
|
550
550
|
|
551
|
+
sig { params(request: T.nilable(Models::Operations::StackoneListPlatformLogsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneListPlatformLogsResponse) }
|
552
|
+
def list_platform_logs(request, retries = nil, timeout_ms = nil)
|
553
|
+
# list_platform_logs - List Platform Logs
|
554
|
+
url, params = @sdk_configuration.get_server_details
|
555
|
+
base_url = Utils.template_url(url, params)
|
556
|
+
url = "#{base_url}/requests/platform-logs"
|
557
|
+
headers = {}
|
558
|
+
query_params = Utils.get_query_params(Models::Operations::StackoneListPlatformLogsRequest, request)
|
559
|
+
headers['Accept'] = 'application/json'
|
560
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
561
|
+
retries ||= @sdk_configuration.retry_config
|
562
|
+
retries ||= Utils::RetryConfig.new(
|
563
|
+
backoff: Utils::BackoffStrategy.new(
|
564
|
+
exponent: 1.5,
|
565
|
+
initial_interval: 500,
|
566
|
+
max_elapsed_time: 3_600_000,
|
567
|
+
max_interval: 60_000
|
568
|
+
),
|
569
|
+
retry_connection_errors: true,
|
570
|
+
strategy: 'backoff'
|
571
|
+
)
|
572
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
573
|
+
retry_options[:retry_statuses] = [429, 408]
|
574
|
+
|
575
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
576
|
+
|
577
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
578
|
+
timeout ||= @sdk_configuration.timeout
|
579
|
+
|
580
|
+
connection = @sdk_configuration.client.dup
|
581
|
+
connection.request :retry, retry_options
|
582
|
+
|
583
|
+
hook_ctx = SDKHooks::HookContext.new(
|
584
|
+
base_url: base_url,
|
585
|
+
oauth2_scopes: [],
|
586
|
+
operation_id: 'stackone_list_platform_logs',
|
587
|
+
security_source: @sdk_configuration.security_source
|
588
|
+
)
|
589
|
+
|
590
|
+
error = T.let(nil, T.nilable(StandardError))
|
591
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
592
|
+
|
593
|
+
|
594
|
+
begin
|
595
|
+
http_response = connection.get(url) do |req|
|
596
|
+
req.headers.merge!(headers)
|
597
|
+
req.options.timeout = timeout unless timeout.nil?
|
598
|
+
req.params = query_params
|
599
|
+
Utils.configure_request_security(req, security)
|
600
|
+
|
601
|
+
@sdk_configuration.hooks.before_request(
|
602
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
603
|
+
hook_ctx: hook_ctx
|
604
|
+
),
|
605
|
+
request: req
|
606
|
+
)
|
607
|
+
end
|
608
|
+
rescue StandardError => e
|
609
|
+
error = e
|
610
|
+
ensure
|
611
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
612
|
+
http_response = @sdk_configuration.hooks.after_error(
|
613
|
+
error: error,
|
614
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
615
|
+
hook_ctx: hook_ctx
|
616
|
+
),
|
617
|
+
response: http_response
|
618
|
+
)
|
619
|
+
else
|
620
|
+
http_response = @sdk_configuration.hooks.after_success(
|
621
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
622
|
+
hook_ctx: hook_ctx
|
623
|
+
),
|
624
|
+
response: http_response
|
625
|
+
)
|
626
|
+
end
|
627
|
+
|
628
|
+
if http_response.nil?
|
629
|
+
raise error if !error.nil?
|
630
|
+
raise 'no response'
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
635
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
636
|
+
if Utils.match_content_type(content_type, 'application/json')
|
637
|
+
http_response = @sdk_configuration.hooks.after_success(
|
638
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
639
|
+
hook_ctx: hook_ctx
|
640
|
+
),
|
641
|
+
response: http_response
|
642
|
+
)
|
643
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::PlatformLogsPaginated)
|
644
|
+
response = Models::Operations::StackoneListPlatformLogsResponse.new(
|
645
|
+
status_code: http_response.status,
|
646
|
+
content_type: content_type,
|
647
|
+
raw_response: http_response,
|
648
|
+
platform_logs_paginated: obj
|
649
|
+
)
|
650
|
+
|
651
|
+
return response
|
652
|
+
else
|
653
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
654
|
+
end
|
655
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
656
|
+
if Utils.match_content_type(content_type, 'application/json')
|
657
|
+
http_response = @sdk_configuration.hooks.after_success(
|
658
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
659
|
+
hook_ctx: hook_ctx
|
660
|
+
),
|
661
|
+
response: http_response
|
662
|
+
)
|
663
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
664
|
+
throw obj
|
665
|
+
else
|
666
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
667
|
+
end
|
668
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
669
|
+
if Utils.match_content_type(content_type, 'application/json')
|
670
|
+
http_response = @sdk_configuration.hooks.after_success(
|
671
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
672
|
+
hook_ctx: hook_ctx
|
673
|
+
),
|
674
|
+
response: http_response
|
675
|
+
)
|
676
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
677
|
+
throw obj
|
678
|
+
else
|
679
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
680
|
+
end
|
681
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
682
|
+
if Utils.match_content_type(content_type, 'application/json')
|
683
|
+
http_response = @sdk_configuration.hooks.after_success(
|
684
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
685
|
+
hook_ctx: hook_ctx
|
686
|
+
),
|
687
|
+
response: http_response
|
688
|
+
)
|
689
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
690
|
+
throw obj
|
691
|
+
else
|
692
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
693
|
+
end
|
694
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
695
|
+
if Utils.match_content_type(content_type, 'application/json')
|
696
|
+
http_response = @sdk_configuration.hooks.after_success(
|
697
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
698
|
+
hook_ctx: hook_ctx
|
699
|
+
),
|
700
|
+
response: http_response
|
701
|
+
)
|
702
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
703
|
+
throw obj
|
704
|
+
else
|
705
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
706
|
+
end
|
707
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
708
|
+
if Utils.match_content_type(content_type, 'application/json')
|
709
|
+
http_response = @sdk_configuration.hooks.after_success(
|
710
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
711
|
+
hook_ctx: hook_ctx
|
712
|
+
),
|
713
|
+
response: http_response
|
714
|
+
)
|
715
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
716
|
+
throw obj
|
717
|
+
else
|
718
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
719
|
+
end
|
720
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
721
|
+
if Utils.match_content_type(content_type, 'application/json')
|
722
|
+
http_response = @sdk_configuration.hooks.after_success(
|
723
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
724
|
+
hook_ctx: hook_ctx
|
725
|
+
),
|
726
|
+
response: http_response
|
727
|
+
)
|
728
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
729
|
+
throw obj
|
730
|
+
else
|
731
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
732
|
+
end
|
733
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
734
|
+
if Utils.match_content_type(content_type, 'application/json')
|
735
|
+
http_response = @sdk_configuration.hooks.after_success(
|
736
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
737
|
+
hook_ctx: hook_ctx
|
738
|
+
),
|
739
|
+
response: http_response
|
740
|
+
)
|
741
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
742
|
+
throw obj
|
743
|
+
else
|
744
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
745
|
+
end
|
746
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
747
|
+
if Utils.match_content_type(content_type, 'application/json')
|
748
|
+
http_response = @sdk_configuration.hooks.after_success(
|
749
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
750
|
+
hook_ctx: hook_ctx
|
751
|
+
),
|
752
|
+
response: http_response
|
753
|
+
)
|
754
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
755
|
+
throw obj
|
756
|
+
else
|
757
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
758
|
+
end
|
759
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
760
|
+
if Utils.match_content_type(content_type, 'application/json')
|
761
|
+
http_response = @sdk_configuration.hooks.after_success(
|
762
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
763
|
+
hook_ctx: hook_ctx
|
764
|
+
),
|
765
|
+
response: http_response
|
766
|
+
)
|
767
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
768
|
+
throw obj
|
769
|
+
else
|
770
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
771
|
+
end
|
772
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
773
|
+
if Utils.match_content_type(content_type, 'application/json')
|
774
|
+
http_response = @sdk_configuration.hooks.after_success(
|
775
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
776
|
+
hook_ctx: hook_ctx
|
777
|
+
),
|
778
|
+
response: http_response
|
779
|
+
)
|
780
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
781
|
+
throw obj
|
782
|
+
else
|
783
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
784
|
+
end
|
785
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
786
|
+
if Utils.match_content_type(content_type, 'application/json')
|
787
|
+
http_response = @sdk_configuration.hooks.after_success(
|
788
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
789
|
+
hook_ctx: hook_ctx
|
790
|
+
),
|
791
|
+
response: http_response
|
792
|
+
)
|
793
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
794
|
+
throw obj
|
795
|
+
else
|
796
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
797
|
+
end
|
798
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
799
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
800
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
801
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
802
|
+
else
|
803
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
804
|
+
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
808
|
+
|
551
809
|
sig { params(request: T.nilable(Models::Operations::StackoneListStepLogsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneListStepLogsResponse) }
|
552
810
|
def list_step_logs(request, retries = nil, timeout_ms = nil)
|
553
811
|
# list_step_logs - List Step Logs
|
@@ -63,9 +63,9 @@ module StackOne
|
|
63
63
|
end
|
64
64
|
@language = 'ruby'
|
65
65
|
@openapi_doc_version = '1.0.0'
|
66
|
-
@sdk_version = '0.
|
66
|
+
@sdk_version = '0.31.0'
|
67
67
|
@gen_version = '2.570.4'
|
68
|
-
@user_agent = 'speakeasy-sdk/ruby 0.
|
68
|
+
@user_agent = 'speakeasy-sdk/ruby 0.31.0 2.570.4 1.0.0 stackone_client'
|
69
69
|
end
|
70
70
|
|
71
71
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackone_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StackOne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -756,6 +756,13 @@ files:
|
|
756
756
|
- lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb
|
757
757
|
- lib/stack_one/models/operations/stackone_list_logs_request.rb
|
758
758
|
- lib/stack_one/models/operations/stackone_list_logs_response.rb
|
759
|
+
- lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb
|
760
|
+
- lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb
|
761
|
+
- lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb
|
762
|
+
- lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb
|
763
|
+
- lib/stack_one/models/operations/stackone_list_platform_logs_request.rb
|
764
|
+
- lib/stack_one/models/operations/stackone_list_platform_logs_response.rb
|
765
|
+
- lib/stack_one/models/operations/stackone_list_step_logs_queryparam_filter.rb
|
759
766
|
- lib/stack_one/models/operations/stackone_list_step_logs_queryparam_order_by.rb
|
760
767
|
- lib/stack_one/models/operations/stackone_list_step_logs_queryparam_order_direction.rb
|
761
768
|
- lib/stack_one/models/operations/stackone_list_step_logs_request.rb
|
@@ -923,6 +930,7 @@ files:
|
|
923
930
|
- lib/stack_one/models/shared/attachment_content_type.rb
|
924
931
|
- lib/stack_one/models/shared/attachment_source_value.rb
|
925
932
|
- lib/stack_one/models/shared/attachment_value.rb
|
933
|
+
- lib/stack_one/models/shared/authormodel.rb
|
926
934
|
- lib/stack_one/models/shared/avatar.rb
|
927
935
|
- lib/stack_one/models/shared/backgroundcheckpackage.rb
|
928
936
|
- lib/stack_one/models/shared/backgroundcheckpackagepaginated.rb
|
@@ -1860,6 +1868,8 @@ files:
|
|
1860
1868
|
- lib/stack_one/models/shared/pay_period.rb
|
1861
1869
|
- lib/stack_one/models/shared/phonenumber.rb
|
1862
1870
|
- lib/stack_one/models/shared/phonenumber_type.rb
|
1871
|
+
- lib/stack_one/models/shared/platformlog.rb
|
1872
|
+
- lib/stack_one/models/shared/platformlogspaginated.rb
|
1863
1873
|
- lib/stack_one/models/shared/policy.rb
|
1864
1874
|
- lib/stack_one/models/shared/position.rb
|
1865
1875
|
- lib/stack_one/models/shared/position_4.rb
|