speakeasy_client_sdk_ruby 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/sdk/apiendpoints.rb +338 -0
- data/lib/sdk/apis.rb +264 -0
- data/lib/sdk/embeds.rb +128 -0
- data/lib/sdk/metadata.rb +144 -0
- data/lib/sdk/models/operations/deleteapi.rb +52 -0
- data/lib/sdk/models/operations/deleteapiendpoint.rb +55 -0
- data/lib/sdk/models/operations/deleteschema.rb +55 -0
- data/lib/sdk/models/operations/deleteversionmetadata.rb +58 -0
- data/lib/sdk/models/operations/downloadschema.rb +55 -0
- data/lib/sdk/models/operations/downloadschemarevision.rb +58 -0
- data/lib/sdk/models/operations/findapiendpoint.rb +59 -0
- data/lib/sdk/models/operations/generateopenapispec.rb +56 -0
- data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +59 -0
- data/lib/sdk/models/operations/generatepostmancollection.rb +55 -0
- data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +58 -0
- data/lib/sdk/models/operations/generaterequestpostmancollection.rb +52 -0
- data/lib/sdk/models/operations/getallapiendpoints.rb +52 -0
- data/lib/sdk/models/operations/getallapiversions.rb +72 -0
- data/lib/sdk/models/operations/getallforversionapiendpoints.rb +55 -0
- data/lib/sdk/models/operations/getapiendpoint.rb +59 -0
- data/lib/sdk/models/operations/getapis.rb +69 -0
- data/lib/sdk/models/operations/getembedaccesstoken.rb +60 -0
- data/lib/sdk/models/operations/getplugins.rb +38 -0
- data/lib/sdk/models/operations/getrequestfromeventlog.rb +53 -0
- data/lib/sdk/models/operations/getschema.rb +56 -0
- data/lib/sdk/models/operations/getschemadiff.rb +62 -0
- data/lib/sdk/models/operations/getschemarevision.rb +59 -0
- data/lib/sdk/models/operations/getschemas.rb +55 -0
- data/lib/sdk/models/operations/getvalidembedaccesstokens.rb +38 -0
- data/lib/sdk/models/operations/getversionmetadata.rb +55 -0
- data/lib/sdk/models/operations/insertversionmetadata.rb +60 -0
- data/lib/sdk/models/operations/queryeventlog.rb +53 -0
- data/lib/sdk/models/operations/registerschema.rb +86 -0
- data/lib/sdk/models/operations/revokeembedaccesstoken.rb +49 -0
- data/lib/sdk/models/operations/runplugin.rb +56 -0
- data/lib/sdk/models/operations/upsertapi.rb +57 -0
- data/lib/sdk/models/operations/upsertapiendpoint.rb +63 -0
- data/lib/sdk/models/operations/upsertplugin.rb +39 -0
- data/lib/sdk/models/operations/validateapikey.rb +35 -0
- data/lib/sdk/models/shared/api.rb +69 -0
- data/lib/sdk/models/shared/apiendpoint.rb +84 -0
- data/lib/sdk/models/shared/boundedrequest.rb +64 -0
- data/lib/sdk/models/shared/embedaccesstokenresponse.rb +25 -0
- data/lib/sdk/models/shared/embedtoken.rb +52 -0
- data/lib/sdk/models/shared/error.rb +28 -0
- data/lib/sdk/models/shared/filter.rb +31 -0
- data/lib/sdk/models/shared/filters.rb +34 -0
- data/lib/sdk/models/shared/generateopenapispecdiff.rb +28 -0
- data/lib/sdk/models/shared/plugin.rb +43 -0
- data/lib/sdk/models/shared/requestmetadata.rb +28 -0
- data/lib/sdk/models/shared/schema.rb +40 -0
- data/lib/sdk/models/shared/schemadiff.rb +48 -0
- data/lib/sdk/models/shared/security.rb +25 -0
- data/lib/sdk/models/shared/unboundedrequest.rb +37 -0
- data/lib/sdk/models/shared/versionmetadata.rb +57 -0
- data/lib/sdk/plugins.rb +140 -0
- data/lib/sdk/requests.rb +136 -0
- data/lib/sdk/schemas.rb +334 -0
- data/lib/sdk/sdk.rb +173 -0
- data/lib/sdk/utils/metadata_fields.rb +154 -0
- data/lib/sdk/utils/retries.rb +130 -0
- data/lib/sdk/utils/utils.rb +769 -0
- data/lib/speakeasy_client_sdk_ruby.rb +70 -0
- metadata +206 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
require_relative '../shared/generateopenapispecdiff'
|
10
|
+
|
11
|
+
module SpeakeasyClientSDK
|
12
|
+
module Operations
|
13
|
+
|
14
|
+
class GenerateOpenApiSpecRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
15
|
+
extend T::Sig
|
16
|
+
|
17
|
+
# The ID of the Api to generate an OpenAPI specification for.
|
18
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
19
|
+
# The version ID of the Api to generate an OpenAPI specification for.
|
20
|
+
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
21
|
+
|
22
|
+
|
23
|
+
sig { params(api_id: String, version_id: String).void }
|
24
|
+
def initialize(api_id: nil, version_id: nil)
|
25
|
+
@api_id = api_id
|
26
|
+
@version_id = version_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
class GenerateOpenApiSpecResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
32
|
+
extend T::Sig
|
33
|
+
|
34
|
+
|
35
|
+
field :content_type, String
|
36
|
+
|
37
|
+
field :status_code, Integer
|
38
|
+
# Default error response
|
39
|
+
field :error, T.nilable(Shared::Error)
|
40
|
+
# OK
|
41
|
+
field :generate_open_api_spec_diff, T.nilable(Shared::GenerateOpenApiSpecDiff)
|
42
|
+
|
43
|
+
field :raw_response, T.nilable(Faraday::Response)
|
44
|
+
|
45
|
+
|
46
|
+
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), generate_open_api_spec_diff: T.nilable(Shared::GenerateOpenApiSpecDiff), raw_response: T.nilable(Faraday::Response)).void }
|
47
|
+
def initialize(content_type: nil, status_code: nil, error: nil, generate_open_api_spec_diff: nil, raw_response: nil)
|
48
|
+
@content_type = content_type
|
49
|
+
@status_code = status_code
|
50
|
+
@error = error
|
51
|
+
@generate_open_api_spec_diff = generate_open_api_spec_diff
|
52
|
+
@raw_response = raw_response
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
require_relative '../shared/generateopenapispecdiff'
|
10
|
+
|
11
|
+
module SpeakeasyClientSDK
|
12
|
+
module Operations
|
13
|
+
|
14
|
+
class GenerateOpenApiSpecForApiEndpointRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
15
|
+
extend T::Sig
|
16
|
+
|
17
|
+
# The ID of the ApiEndpoint to generate an OpenAPI specification for.
|
18
|
+
field :api_endpoint_id, String, { 'path_param': { 'field_name': 'apiEndpointID', 'style': 'simple', 'explode': false } }
|
19
|
+
# The ID of the Api to generate an OpenAPI specification for.
|
20
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
21
|
+
# The version ID of the Api to generate an OpenAPI specification for.
|
22
|
+
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
23
|
+
|
24
|
+
|
25
|
+
sig { params(api_endpoint_id: String, api_id: String, version_id: String).void }
|
26
|
+
def initialize(api_endpoint_id: nil, api_id: nil, version_id: nil)
|
27
|
+
@api_endpoint_id = api_endpoint_id
|
28
|
+
@api_id = api_id
|
29
|
+
@version_id = version_id
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
class GenerateOpenApiSpecForApiEndpointResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
35
|
+
extend T::Sig
|
36
|
+
|
37
|
+
|
38
|
+
field :content_type, String
|
39
|
+
|
40
|
+
field :status_code, Integer
|
41
|
+
# Default error response
|
42
|
+
field :error, T.nilable(Shared::Error)
|
43
|
+
# OK
|
44
|
+
field :generate_open_api_spec_diff, T.nilable(Shared::GenerateOpenApiSpecDiff)
|
45
|
+
|
46
|
+
field :raw_response, T.nilable(Faraday::Response)
|
47
|
+
|
48
|
+
|
49
|
+
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), generate_open_api_spec_diff: T.nilable(Shared::GenerateOpenApiSpecDiff), raw_response: T.nilable(Faraday::Response)).void }
|
50
|
+
def initialize(content_type: nil, status_code: nil, error: nil, generate_open_api_spec_diff: nil, raw_response: nil)
|
51
|
+
@content_type = content_type
|
52
|
+
@status_code = status_code
|
53
|
+
@error = error
|
54
|
+
@generate_open_api_spec_diff = generate_open_api_spec_diff
|
55
|
+
@raw_response = raw_response
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class GeneratePostmanCollectionRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# The ID of the Api to generate a Postman collection for.
|
17
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
18
|
+
# The version ID of the Api to generate a Postman collection for.
|
19
|
+
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(api_id: String, version_id: String).void }
|
23
|
+
def initialize(api_id: nil, version_id: nil)
|
24
|
+
@api_id = api_id
|
25
|
+
@version_id = version_id
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
class GeneratePostmanCollectionResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
31
|
+
extend T::Sig
|
32
|
+
|
33
|
+
|
34
|
+
field :content_type, String
|
35
|
+
|
36
|
+
field :status_code, Integer
|
37
|
+
# Default error response
|
38
|
+
field :error, T.nilable(Shared::Error)
|
39
|
+
# OK
|
40
|
+
field :postman_collection, T.nilable(String)
|
41
|
+
|
42
|
+
field :raw_response, T.nilable(Faraday::Response)
|
43
|
+
|
44
|
+
|
45
|
+
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), postman_collection: T.nilable(String), raw_response: T.nilable(Faraday::Response)).void }
|
46
|
+
def initialize(content_type: nil, status_code: nil, error: nil, postman_collection: nil, raw_response: nil)
|
47
|
+
@content_type = content_type
|
48
|
+
@status_code = status_code
|
49
|
+
@error = error
|
50
|
+
@postman_collection = postman_collection
|
51
|
+
@raw_response = raw_response
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class GeneratePostmanCollectionForApiEndpointRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# The ID of the ApiEndpoint to generate a Postman collection for.
|
17
|
+
field :api_endpoint_id, String, { 'path_param': { 'field_name': 'apiEndpointID', 'style': 'simple', 'explode': false } }
|
18
|
+
# The ID of the Api to generate a Postman collection for.
|
19
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
20
|
+
# The version ID of the Api to generate a Postman collection for.
|
21
|
+
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(api_endpoint_id: String, api_id: String, version_id: String).void }
|
25
|
+
def initialize(api_endpoint_id: nil, api_id: nil, version_id: nil)
|
26
|
+
@api_endpoint_id = api_endpoint_id
|
27
|
+
@api_id = api_id
|
28
|
+
@version_id = version_id
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
class GeneratePostmanCollectionForApiEndpointResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
34
|
+
extend T::Sig
|
35
|
+
|
36
|
+
|
37
|
+
field :content_type, String
|
38
|
+
|
39
|
+
field :status_code, Integer
|
40
|
+
# Default error response
|
41
|
+
field :error, T.nilable(Shared::Error)
|
42
|
+
# OK
|
43
|
+
field :postman_collection, T.nilable(String)
|
44
|
+
|
45
|
+
field :raw_response, T.nilable(Faraday::Response)
|
46
|
+
|
47
|
+
|
48
|
+
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), postman_collection: T.nilable(String), raw_response: T.nilable(Faraday::Response)).void }
|
49
|
+
def initialize(content_type: nil, status_code: nil, error: nil, postman_collection: nil, raw_response: nil)
|
50
|
+
@content_type = content_type
|
51
|
+
@status_code = status_code
|
52
|
+
@error = error
|
53
|
+
@postman_collection = postman_collection
|
54
|
+
@raw_response = raw_response
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class GenerateRequestPostmanCollectionRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# The ID of the request to retrieve.
|
17
|
+
field :request_id, String, { 'path_param': { 'field_name': 'requestID', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(request_id: String).void }
|
21
|
+
def initialize(request_id: nil)
|
22
|
+
@request_id = request_id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class GenerateRequestPostmanCollectionResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
|
31
|
+
field :content_type, String
|
32
|
+
|
33
|
+
field :status_code, Integer
|
34
|
+
# Default error response
|
35
|
+
field :error, T.nilable(Shared::Error)
|
36
|
+
# OK
|
37
|
+
field :postman_collection, T.nilable(String)
|
38
|
+
|
39
|
+
field :raw_response, T.nilable(Faraday::Response)
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), postman_collection: T.nilable(String), raw_response: T.nilable(Faraday::Response)).void }
|
43
|
+
def initialize(content_type: nil, status_code: nil, error: nil, postman_collection: nil, raw_response: nil)
|
44
|
+
@content_type = content_type
|
45
|
+
@status_code = status_code
|
46
|
+
@error = error
|
47
|
+
@postman_collection = postman_collection
|
48
|
+
@raw_response = raw_response
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class GetAllApiEndpointsRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# The ID of the Api to retrieve ApiEndpoints for.
|
17
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(api_id: String).void }
|
21
|
+
def initialize(api_id: nil)
|
22
|
+
@api_id = api_id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class GetAllApiEndpointsResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
|
31
|
+
field :content_type, String
|
32
|
+
|
33
|
+
field :status_code, Integer
|
34
|
+
# OK
|
35
|
+
field :api_endpoints, T.nilable(T::Array[Shared::ApiEndpoint])
|
36
|
+
# Default error response
|
37
|
+
field :error, T.nilable(Shared::Error)
|
38
|
+
|
39
|
+
field :raw_response, T.nilable(Faraday::Response)
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(content_type: String, status_code: Integer, api_endpoints: T.nilable(T::Array[Shared::ApiEndpoint]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
43
|
+
def initialize(content_type: nil, status_code: nil, api_endpoints: nil, error: nil, raw_response: nil)
|
44
|
+
@content_type = content_type
|
45
|
+
@status_code = status_code
|
46
|
+
@api_endpoints = api_endpoints
|
47
|
+
@error = error
|
48
|
+
@raw_response = raw_response
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
module Operations
|
12
|
+
# Configuration for filter operations
|
13
|
+
class GetAllApiVersionsOp < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# Whether to AND or OR the filters
|
17
|
+
field :and_, T::Boolean, { 'query_param': { 'field_name': 'and' } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(and_: T::Boolean).void }
|
21
|
+
def initialize(and_: nil)
|
22
|
+
@and_ = and_
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class GetAllApiVersionsRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
# The ID of the Api to retrieve.
|
31
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
32
|
+
# Metadata to filter Apis on
|
33
|
+
field :metadata, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'query_param': { 'field_name': 'metadata', 'style': 'deepObject', 'explode': true } }
|
34
|
+
# Configuration for filter operations
|
35
|
+
field :op, T.nilable(Operations::GetAllApiVersionsOp), { 'query_param': { 'field_name': 'op', 'style': 'deepObject', 'explode': true } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(api_id: String, metadata: T.nilable(T::Hash[Symbol, T::Array[String]]), op: T.nilable(Operations::GetAllApiVersionsOp)).void }
|
39
|
+
def initialize(api_id: nil, metadata: nil, op: nil)
|
40
|
+
@api_id = api_id
|
41
|
+
@metadata = metadata
|
42
|
+
@op = op
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
class GetAllApiVersionsResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
48
|
+
extend T::Sig
|
49
|
+
|
50
|
+
|
51
|
+
field :content_type, String
|
52
|
+
|
53
|
+
field :status_code, Integer
|
54
|
+
# OK
|
55
|
+
field :apis, T.nilable(T::Array[Shared::Api])
|
56
|
+
# Default error response
|
57
|
+
field :error, T.nilable(Shared::Error)
|
58
|
+
|
59
|
+
field :raw_response, T.nilable(Faraday::Response)
|
60
|
+
|
61
|
+
|
62
|
+
sig { params(content_type: String, status_code: Integer, apis: T.nilable(T::Array[Shared::Api]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
63
|
+
def initialize(content_type: nil, status_code: nil, apis: nil, error: nil, raw_response: nil)
|
64
|
+
@content_type = content_type
|
65
|
+
@status_code = status_code
|
66
|
+
@apis = apis
|
67
|
+
@error = error
|
68
|
+
@raw_response = raw_response
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class GetAllForVersionApiEndpointsRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# The ID of the Api to retrieve ApiEndpoints for.
|
17
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
18
|
+
# The version ID of the Api to retrieve ApiEndpoints for.
|
19
|
+
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(api_id: String, version_id: String).void }
|
23
|
+
def initialize(api_id: nil, version_id: nil)
|
24
|
+
@api_id = api_id
|
25
|
+
@version_id = version_id
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
class GetAllForVersionApiEndpointsResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
31
|
+
extend T::Sig
|
32
|
+
|
33
|
+
|
34
|
+
field :content_type, String
|
35
|
+
|
36
|
+
field :status_code, Integer
|
37
|
+
# OK
|
38
|
+
field :api_endpoints, T.nilable(T::Array[Shared::ApiEndpoint])
|
39
|
+
# Default error response
|
40
|
+
field :error, T.nilable(Shared::Error)
|
41
|
+
|
42
|
+
field :raw_response, T.nilable(Faraday::Response)
|
43
|
+
|
44
|
+
|
45
|
+
sig { params(content_type: String, status_code: Integer, api_endpoints: T.nilable(T::Array[Shared::ApiEndpoint]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
46
|
+
def initialize(content_type: nil, status_code: nil, api_endpoints: nil, error: nil, raw_response: nil)
|
47
|
+
@content_type = content_type
|
48
|
+
@status_code = status_code
|
49
|
+
@api_endpoints = api_endpoints
|
50
|
+
@error = error
|
51
|
+
@raw_response = raw_response
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/apiendpoint'
|
9
|
+
require_relative '../shared/error'
|
10
|
+
|
11
|
+
module SpeakeasyClientSDK
|
12
|
+
module Operations
|
13
|
+
|
14
|
+
class GetApiEndpointRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
15
|
+
extend T::Sig
|
16
|
+
|
17
|
+
# The ID of the ApiEndpoint to retrieve.
|
18
|
+
field :api_endpoint_id, String, { 'path_param': { 'field_name': 'apiEndpointID', 'style': 'simple', 'explode': false } }
|
19
|
+
# The ID of the Api the ApiEndpoint belongs to.
|
20
|
+
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
21
|
+
# The version ID of the Api the ApiEndpoint belongs to.
|
22
|
+
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
23
|
+
|
24
|
+
|
25
|
+
sig { params(api_endpoint_id: String, api_id: String, version_id: String).void }
|
26
|
+
def initialize(api_endpoint_id: nil, api_id: nil, version_id: nil)
|
27
|
+
@api_endpoint_id = api_endpoint_id
|
28
|
+
@api_id = api_id
|
29
|
+
@version_id = version_id
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
class GetApiEndpointResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
35
|
+
extend T::Sig
|
36
|
+
|
37
|
+
|
38
|
+
field :content_type, String
|
39
|
+
|
40
|
+
field :status_code, Integer
|
41
|
+
# OK
|
42
|
+
field :api_endpoint, T.nilable(Shared::ApiEndpoint)
|
43
|
+
# Default error response
|
44
|
+
field :error, T.nilable(Shared::Error)
|
45
|
+
|
46
|
+
field :raw_response, T.nilable(Faraday::Response)
|
47
|
+
|
48
|
+
|
49
|
+
sig { params(content_type: String, status_code: Integer, api_endpoint: T.nilable(Shared::ApiEndpoint), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
50
|
+
def initialize(content_type: nil, status_code: nil, api_endpoint: nil, error: nil, raw_response: nil)
|
51
|
+
@content_type = content_type
|
52
|
+
@status_code = status_code
|
53
|
+
@api_endpoint = api_endpoint
|
54
|
+
@error = error
|
55
|
+
@raw_response = raw_response
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/error'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
module Operations
|
12
|
+
# Configuration for filter operations
|
13
|
+
class GetApisOp < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# Whether to AND or OR the filters
|
17
|
+
field :and_, T::Boolean, { 'query_param': { 'field_name': 'and' } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(and_: T::Boolean).void }
|
21
|
+
def initialize(and_: nil)
|
22
|
+
@and_ = and_
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class GetApisRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
# Metadata to filter Apis on
|
31
|
+
field :metadata, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'query_param': { 'field_name': 'metadata', 'style': 'deepObject', 'explode': true } }
|
32
|
+
# Configuration for filter operations
|
33
|
+
field :op, T.nilable(Operations::GetApisOp), { 'query_param': { 'field_name': 'op', 'style': 'deepObject', 'explode': true } }
|
34
|
+
|
35
|
+
|
36
|
+
sig { params(metadata: T.nilable(T::Hash[Symbol, T::Array[String]]), op: T.nilable(Operations::GetApisOp)).void }
|
37
|
+
def initialize(metadata: nil, op: nil)
|
38
|
+
@metadata = metadata
|
39
|
+
@op = op
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
class GetApisResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
45
|
+
extend T::Sig
|
46
|
+
|
47
|
+
|
48
|
+
field :content_type, String
|
49
|
+
|
50
|
+
field :status_code, Integer
|
51
|
+
# OK
|
52
|
+
field :apis, T.nilable(T::Array[Shared::Api])
|
53
|
+
# Default error response
|
54
|
+
field :error, T.nilable(Shared::Error)
|
55
|
+
|
56
|
+
field :raw_response, T.nilable(Faraday::Response)
|
57
|
+
|
58
|
+
|
59
|
+
sig { params(content_type: String, status_code: Integer, apis: T.nilable(T::Array[Shared::Api]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
60
|
+
def initialize(content_type: nil, status_code: nil, apis: nil, error: nil, raw_response: nil)
|
61
|
+
@content_type = content_type
|
62
|
+
@status_code = status_code
|
63
|
+
@apis = apis
|
64
|
+
@error = error
|
65
|
+
@raw_response = raw_response
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/filters'
|
9
|
+
require_relative '../shared/embedaccesstokenresponse'
|
10
|
+
require_relative '../shared/error'
|
11
|
+
|
12
|
+
module SpeakeasyClientSDK
|
13
|
+
module Operations
|
14
|
+
|
15
|
+
class GetEmbedAccessTokenRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
16
|
+
extend T::Sig
|
17
|
+
|
18
|
+
# The description of the embed access token.
|
19
|
+
field :description, T.nilable(String), { 'query_param': { 'field_name': 'description', 'style': 'form', 'explode': true } }
|
20
|
+
# The duration (in minutes) of the embed access token.
|
21
|
+
field :duration, T.nilable(Integer), { 'query_param': { 'field_name': 'duration', 'style': 'form', 'explode': true } }
|
22
|
+
# The filter to apply to the query.
|
23
|
+
field :filters, T.nilable(Shared::Filters), { 'query_param': { 'field_name': 'filters', 'serialization': 'json' } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(description: T.nilable(String), duration: T.nilable(Integer), filters: T.nilable(Shared::Filters)).void }
|
27
|
+
def initialize(description: nil, duration: nil, filters: nil)
|
28
|
+
@description = description
|
29
|
+
@duration = duration
|
30
|
+
@filters = filters
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
class GetEmbedAccessTokenResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
36
|
+
extend T::Sig
|
37
|
+
|
38
|
+
|
39
|
+
field :content_type, String
|
40
|
+
|
41
|
+
field :status_code, Integer
|
42
|
+
# OK
|
43
|
+
field :embed_access_token_response, T.nilable(Shared::EmbedAccessTokenResponse)
|
44
|
+
# Default error response
|
45
|
+
field :error, T.nilable(Shared::Error)
|
46
|
+
|
47
|
+
field :raw_response, T.nilable(Faraday::Response)
|
48
|
+
|
49
|
+
|
50
|
+
sig { params(content_type: String, status_code: Integer, embed_access_token_response: T.nilable(Shared::EmbedAccessTokenResponse), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
51
|
+
def initialize(content_type: nil, status_code: nil, embed_access_token_response: nil, error: nil, raw_response: nil)
|
52
|
+
@content_type = content_type
|
53
|
+
@status_code = status_code
|
54
|
+
@embed_access_token_response = embed_access_token_response
|
55
|
+
@error = error
|
56
|
+
@raw_response = raw_response
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|