speakeasy_client_sdk_ruby 4.1.1 → 4.1.2
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/speakeasy_client_sdk/artifacts.rb +137 -0
- data/lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getrevisions_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getrevisions_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/preflight_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations.rb +4 -0
- data/lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb +24 -0
- data/lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared/namespace.rb +30 -0
- data/lib/speakeasy_client_sdk/models/shared/preflighttoken.rb +24 -0
- data/lib/speakeasy_client_sdk/models/shared/revision.rb +36 -0
- data/lib/speakeasy_client_sdk/models/shared.rb +5 -0
- data/lib/speakeasy_client_sdk/sdk.rb +2 -1
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
- data/lib/speakeasy_client_sdk_ruby.rb +1 -0
- 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: a6761be29416e86d14e886b68bfb9abf4feaa868bf5c976d2730031b5354891d
|
4
|
+
data.tar.gz: c365c6a36114f9b10448780992b4db0f919f03ccd868cf5fb756c92c12d8f690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a1386bb3d831936a9ac8ce0cf555dafa84b33304e6c01cb30155be38b3069e3d1071e7d664cab951154c5354f091fceff23e58b1d677c14637d018e85a31b79
|
7
|
+
data.tar.gz: 02b432d85adabbfa843d46f433bfaa449b62021d59e652544f5c41125e7787ff60b905b95b4846e8c6215ac33109ba18fe33063569b17b523e3ce0c4ec503764
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'faraday'
|
7
|
+
require 'faraday/multipart'
|
8
|
+
require 'sorbet-runtime'
|
9
|
+
|
10
|
+
module SpeakeasyClientSDK
|
11
|
+
extend T::Sig
|
12
|
+
class Artifacts
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
|
16
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
17
|
+
def initialize(sdk_config)
|
18
|
+
@sdk_configuration = sdk_config
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
sig { returns(::SpeakeasyClientSDK::Operations::GetNamespacesResponse) }
|
23
|
+
def get_namespaces
|
24
|
+
# get_namespaces - Each namespace contains many revisions.
|
25
|
+
url, params = @sdk_configuration.get_server_details
|
26
|
+
base_url = Utils.template_url(url, params)
|
27
|
+
url = "#{base_url}/v1/artifacts/namespaces"
|
28
|
+
headers = {}
|
29
|
+
headers['Accept'] = 'application/json'
|
30
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
31
|
+
|
32
|
+
r = @sdk_configuration.client.get(url) do |req|
|
33
|
+
req.headers = headers
|
34
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
38
|
+
|
39
|
+
res = ::SpeakeasyClientSDK::Operations::GetNamespacesResponse.new(
|
40
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
41
|
+
)
|
42
|
+
if r.status == 200
|
43
|
+
if Utils.match_content_type(content_type, 'application/json')
|
44
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GetNamespacesResponse)
|
45
|
+
res.get_namespaces_response = out
|
46
|
+
end
|
47
|
+
else
|
48
|
+
|
49
|
+
if Utils.match_content_type(content_type, 'application/json')
|
50
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
51
|
+
res.error = out
|
52
|
+
end
|
53
|
+
end
|
54
|
+
res
|
55
|
+
end
|
56
|
+
|
57
|
+
|
58
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetRevisionsRequest)).returns(::SpeakeasyClientSDK::Operations::GetRevisionsResponse) }
|
59
|
+
def get_revisions(request)
|
60
|
+
|
61
|
+
url, params = @sdk_configuration.get_server_details
|
62
|
+
base_url = Utils.template_url(url, params)
|
63
|
+
url = Utils.generate_url(
|
64
|
+
::SpeakeasyClientSDK::Operations::GetRevisionsRequest,
|
65
|
+
base_url,
|
66
|
+
'/v1/artifacts/namespaces/{namespace_id}/revisions',
|
67
|
+
request,
|
68
|
+
@sdk_configuration.globals
|
69
|
+
)
|
70
|
+
headers = {}
|
71
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetRevisionsRequest, request, @sdk_configuration.globals)
|
72
|
+
headers['Accept'] = 'application/json'
|
73
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
74
|
+
|
75
|
+
r = @sdk_configuration.client.get(url) do |req|
|
76
|
+
req.headers = headers
|
77
|
+
req.params = query_params
|
78
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
79
|
+
end
|
80
|
+
|
81
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
82
|
+
|
83
|
+
res = ::SpeakeasyClientSDK::Operations::GetRevisionsResponse.new(
|
84
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
85
|
+
)
|
86
|
+
if r.status == 200
|
87
|
+
if Utils.match_content_type(content_type, 'application/json')
|
88
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GetRevisionsResponse)
|
89
|
+
res.get_revisions_response = out
|
90
|
+
end
|
91
|
+
else
|
92
|
+
|
93
|
+
if Utils.match_content_type(content_type, 'application/json')
|
94
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
95
|
+
res.error = out
|
96
|
+
end
|
97
|
+
end
|
98
|
+
res
|
99
|
+
end
|
100
|
+
|
101
|
+
|
102
|
+
sig { returns(::SpeakeasyClientSDK::Operations::PreflightResponse) }
|
103
|
+
def preflight
|
104
|
+
# preflight - Get access token for communicating with OCI distribution endpoints
|
105
|
+
url, params = @sdk_configuration.get_server_details
|
106
|
+
base_url = Utils.template_url(url, params)
|
107
|
+
url = "#{base_url}/v1/artifacts/preflight"
|
108
|
+
headers = {}
|
109
|
+
headers['Accept'] = 'application/json'
|
110
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
111
|
+
|
112
|
+
r = @sdk_configuration.client.post(url) do |req|
|
113
|
+
req.headers = headers
|
114
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
115
|
+
end
|
116
|
+
|
117
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
118
|
+
|
119
|
+
res = ::SpeakeasyClientSDK::Operations::PreflightResponse.new(
|
120
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
121
|
+
)
|
122
|
+
if r.status == 200
|
123
|
+
if Utils.match_content_type(content_type, 'application/json')
|
124
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::PreflightToken)
|
125
|
+
res.preflight_token = out
|
126
|
+
end
|
127
|
+
else
|
128
|
+
|
129
|
+
if Utils.match_content_type(content_type, 'application/json')
|
130
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
131
|
+
res.error = out
|
132
|
+
end
|
133
|
+
end
|
134
|
+
res
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetNamespacesResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Default error response
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
22
|
+
# OK
|
23
|
+
field :get_namespaces_response, T.nilable(::SpeakeasyClientSDK::Shared::GetNamespacesResponse)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), get_namespaces_response: T.nilable(::SpeakeasyClientSDK::Shared::GetNamespacesResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, get_namespaces_response: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@error = error
|
32
|
+
@get_namespaces_response = get_namespaces_response
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetRevisionsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :namespace_id, ::String, { 'path_param': { 'field_name': 'namespace_id', 'style': 'simple', 'explode': false } }
|
16
|
+
# Token to retrieve the next page of results
|
17
|
+
field :next_page_token, T.nilable(::String), { 'query_param': { 'field_name': 'next_page_token', 'style': 'form', 'explode': true } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(namespace_id: ::String, next_page_token: T.nilable(::String)).void }
|
21
|
+
def initialize(namespace_id: nil, next_page_token: nil)
|
22
|
+
@namespace_id = namespace_id
|
23
|
+
@next_page_token = next_page_token
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetRevisionsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Default error response
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
22
|
+
# OK
|
23
|
+
field :get_revisions_response, T.nilable(::SpeakeasyClientSDK::Shared::GetRevisionsResponse)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), get_revisions_response: T.nilable(::SpeakeasyClientSDK::Shared::GetRevisionsResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, get_revisions_response: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@error = error
|
32
|
+
@get_revisions_response = get_revisions_response
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class PreflightResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Default error response
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
22
|
+
# OK
|
23
|
+
field :preflight_token, T.nilable(::SpeakeasyClientSDK::Shared::PreflightToken)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), preflight_token: T.nilable(::SpeakeasyClientSDK::Shared::PreflightToken)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, preflight_token: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@error = error
|
32
|
+
@preflight_token = preflight_token
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -59,6 +59,10 @@ module SpeakeasyClientSDK
|
|
59
59
|
autoload :RegisterSchemaRequestBody, 'speakeasy_client_sdk/models/operations/registerschema_requestbody.rb'
|
60
60
|
autoload :RegisterSchemaRequest, 'speakeasy_client_sdk/models/operations/registerschema_request.rb'
|
61
61
|
autoload :RegisterSchemaResponse, 'speakeasy_client_sdk/models/operations/registerschema_response.rb'
|
62
|
+
autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/operations/getnamespaces_response.rb'
|
63
|
+
autoload :GetRevisionsRequest, 'speakeasy_client_sdk/models/operations/getrevisions_request.rb'
|
64
|
+
autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/operations/getrevisions_response.rb'
|
65
|
+
autoload :PreflightResponse, 'speakeasy_client_sdk/models/operations/preflight_response.rb'
|
62
66
|
autoload :GetAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getaccesstoken_request.rb'
|
63
67
|
autoload :GetAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getaccesstoken_response.rb'
|
64
68
|
autoload :GetUserResponse, 'speakeasy_client_sdk/models/operations/getuser_response.rb'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class GetNamespacesResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :items, T::Array[::SpeakeasyClientSDK::Shared::Namespace], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('items') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(items: T::Array[::SpeakeasyClientSDK::Shared::Namespace]).void }
|
19
|
+
def initialize(items: nil)
|
20
|
+
@items = items
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class GetRevisionsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :items, T::Array[::SpeakeasyClientSDK::Shared::Revision], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('items') } }
|
16
|
+
|
17
|
+
field :next_page_token, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('next_page_token') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(items: T::Array[::SpeakeasyClientSDK::Shared::Revision], next_page_token: ::String).void }
|
21
|
+
def initialize(items: nil, next_page_token: nil)
|
22
|
+
@items = items
|
23
|
+
@next_page_token = next_page_token
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# A namespace contains many revisions.
|
11
|
+
class Namespace < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
16
|
+
# A human readable name for the namespace.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(created_at: ::DateTime, id: ::String, updated_at: ::DateTime).void }
|
23
|
+
def initialize(created_at: nil, id: nil, updated_at: nil)
|
24
|
+
@created_at = created_at
|
25
|
+
@id = id
|
26
|
+
@updated_at = updated_at
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# A PreflightToken is a token that allows access to the OCI distribution endpoints.
|
11
|
+
class PreflightToken < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :access_token, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(access_token: ::String).void }
|
19
|
+
def initialize(access_token: nil)
|
20
|
+
@access_token = access_token
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class Revision < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
16
|
+
# aka digest
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
field :namespace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_id') } }
|
20
|
+
|
21
|
+
field :tags, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('tags') } }
|
22
|
+
|
23
|
+
field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(created_at: ::DateTime, id: ::String, namespace_id: ::String, tags: T::Array[::String], updated_at: ::DateTime).void }
|
27
|
+
def initialize(created_at: nil, id: nil, namespace_id: nil, tags: nil, updated_at: nil)
|
28
|
+
@created_at = created_at
|
29
|
+
@id = id
|
30
|
+
@namespace_id = namespace_id
|
31
|
+
@tags = tags
|
32
|
+
@updated_at = updated_at
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -16,6 +16,11 @@ module SpeakeasyClientSDK
|
|
16
16
|
autoload :Schema, 'speakeasy_client_sdk/models/shared/schema.rb'
|
17
17
|
autoload :ValueChange, 'speakeasy_client_sdk/models/shared/valuechange.rb'
|
18
18
|
autoload :SchemaDiff, 'speakeasy_client_sdk/models/shared/schemadiff.rb'
|
19
|
+
autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/shared/getnamespacesresponse.rb'
|
20
|
+
autoload :Namespace, 'speakeasy_client_sdk/models/shared/namespace.rb'
|
21
|
+
autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/shared/getrevisionsresponse.rb'
|
22
|
+
autoload :Revision, 'speakeasy_client_sdk/models/shared/revision.rb'
|
23
|
+
autoload :PreflightToken, 'speakeasy_client_sdk/models/shared/preflighttoken.rb'
|
19
24
|
autoload :Claims, 'speakeasy_client_sdk/models/shared/claims.rb'
|
20
25
|
autoload :AccessTokenUser, 'speakeasy_client_sdk/models/shared/accesstoken_user.rb'
|
21
26
|
autoload :Workspaces, 'speakeasy_client_sdk/models/shared/workspaces.rb'
|
@@ -13,7 +13,7 @@ module SpeakeasyClientSDK
|
|
13
13
|
class SDK
|
14
14
|
extend T::Sig
|
15
15
|
|
16
|
-
attr_accessor :apis, :api_endpoints, :metadata, :schemas, :auth, :requests, :organizations, :embeds, :events
|
16
|
+
attr_accessor :apis, :api_endpoints, :metadata, :schemas, :artifacts, :auth, :requests, :organizations, :embeds, :events
|
17
17
|
|
18
18
|
sig do
|
19
19
|
params(client: Faraday::Request,
|
@@ -93,6 +93,7 @@ module SpeakeasyClientSDK
|
|
93
93
|
@api_endpoints = ApiEndpoints.new(@sdk_configuration)
|
94
94
|
@metadata = Metadata.new(@sdk_configuration)
|
95
95
|
@schemas = Schemas.new(@sdk_configuration)
|
96
|
+
@artifacts = Artifacts.new(@sdk_configuration)
|
96
97
|
@auth = Auth.new(@sdk_configuration)
|
97
98
|
@requests = Requests.new(@sdk_configuration)
|
98
99
|
@organizations = Organizations.new(@sdk_configuration)
|
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
|
|
41
41
|
@globals = globals.nil? ? {} : globals
|
42
42
|
@language = 'ruby'
|
43
43
|
@openapi_doc_version = '0.4.0'
|
44
|
-
@sdk_version = '4.1.
|
45
|
-
@gen_version = '2.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.1.
|
44
|
+
@sdk_version = '4.1.2'
|
45
|
+
@gen_version = '2.304.1'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.1.2 2.304.1 0.4.0 speakeasy_client_sdk_ruby'
|
47
47
|
end
|
48
48
|
|
49
49
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
@@ -11,6 +11,7 @@ module SpeakeasyClientSDK
|
|
11
11
|
autoload :ApiEndpoints, 'speakeasy_client_sdk/apiendpoints'
|
12
12
|
autoload :Metadata, 'speakeasy_client_sdk/metadata'
|
13
13
|
autoload :Schemas, 'speakeasy_client_sdk/schemas'
|
14
|
+
autoload :Artifacts, 'speakeasy_client_sdk/artifacts'
|
14
15
|
autoload :Auth, 'speakeasy_client_sdk/auth'
|
15
16
|
autoload :Requests, 'speakeasy_client_sdk/requests'
|
16
17
|
autoload :Organizations, 'speakeasy_client_sdk/organizations'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: speakeasy_client_sdk_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -144,6 +144,7 @@ extra_rdoc_files: []
|
|
144
144
|
files:
|
145
145
|
- lib/speakeasy_client_sdk/apiendpoints.rb
|
146
146
|
- lib/speakeasy_client_sdk/apis.rb
|
147
|
+
- lib/speakeasy_client_sdk/artifacts.rb
|
147
148
|
- lib/speakeasy_client_sdk/auth.rb
|
148
149
|
- lib/speakeasy_client_sdk/embeds.rb
|
149
150
|
- lib/speakeasy_client_sdk/events.rb
|
@@ -188,9 +189,12 @@ files:
|
|
188
189
|
- lib/speakeasy_client_sdk/models/operations/getapis_response.rb
|
189
190
|
- lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb
|
190
191
|
- lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb
|
192
|
+
- lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb
|
191
193
|
- lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb
|
192
194
|
- lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb
|
193
195
|
- lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb
|
196
|
+
- lib/speakeasy_client_sdk/models/operations/getrevisions_request.rb
|
197
|
+
- lib/speakeasy_client_sdk/models/operations/getrevisions_response.rb
|
194
198
|
- lib/speakeasy_client_sdk/models/operations/getschema_request.rb
|
195
199
|
- lib/speakeasy_client_sdk/models/operations/getschema_response.rb
|
196
200
|
- lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb
|
@@ -214,6 +218,7 @@ files:
|
|
214
218
|
- lib/speakeasy_client_sdk/models/operations/op.rb
|
215
219
|
- lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb
|
216
220
|
- lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb
|
221
|
+
- lib/speakeasy_client_sdk/models/operations/preflight_response.rb
|
217
222
|
- lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb
|
218
223
|
- lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb
|
219
224
|
- lib/speakeasy_client_sdk/models/operations/queryparam_op.rb
|
@@ -247,11 +252,16 @@ files:
|
|
247
252
|
- lib/speakeasy_client_sdk/models/shared/filters.rb
|
248
253
|
- lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb
|
249
254
|
- lib/speakeasy_client_sdk/models/shared/generateopenapispecdiff.rb
|
255
|
+
- lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb
|
256
|
+
- lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb
|
250
257
|
- lib/speakeasy_client_sdk/models/shared/interactiontype.rb
|
251
258
|
- lib/speakeasy_client_sdk/models/shared/level.rb
|
259
|
+
- lib/speakeasy_client_sdk/models/shared/namespace.rb
|
252
260
|
- lib/speakeasy_client_sdk/models/shared/organization.rb
|
253
261
|
- lib/speakeasy_client_sdk/models/shared/organization_account_type.rb
|
262
|
+
- lib/speakeasy_client_sdk/models/shared/preflighttoken.rb
|
254
263
|
- lib/speakeasy_client_sdk/models/shared/requestmetadata.rb
|
264
|
+
- lib/speakeasy_client_sdk/models/shared/revision.rb
|
255
265
|
- lib/speakeasy_client_sdk/models/shared/schema.rb
|
256
266
|
- lib/speakeasy_client_sdk/models/shared/schemadiff.rb
|
257
267
|
- lib/speakeasy_client_sdk/models/shared/security.rb
|