speakeasy_client_sdk_ruby 4.1.7 → 4.1.8
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/events.rb +41 -0
- data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations.rb +2 -0
- data/lib/speakeasy_client_sdk/models/shared/annotations.rb +13 -19
- data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +8 -2
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +4 -4
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65a39049bde20e7f37de4afef2139e5dd607ffe956c579f7e83bcfd5441d4a80
|
4
|
+
data.tar.gz: 96289ff6ba1b9c0dfd63344794029808fe8c1e0078a5399675345fac84e63067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6be9dfb32581c6e2efae1d71a20304db2889661e6374531790dab1a04724febeb8ba4d507fa482c0535bad3ddb21464c977521273599491878229ff6a4106674
|
7
|
+
data.tar.gz: 3875e6e4c0fcfb85f689d8e98b166232643fbbef1ad44447ffd65685ac2202cce7d1d478d19fab06f3f9bc9e59bd1762c608dc122a3bbf68eca2cb0a95c27626
|
@@ -62,6 +62,47 @@ module SpeakeasyClientSDK
|
|
62
62
|
end
|
63
63
|
|
64
64
|
|
65
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsBySourceRevisionDigestRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsBySourceRevisionDigestResponse) }
|
66
|
+
def get_workspace_events_by_source_revision_digest(request)
|
67
|
+
# get_workspace_events_by_source_revision_digest - Load events for a particular workspace and source revision digest
|
68
|
+
url, params = @sdk_configuration.get_server_details
|
69
|
+
base_url = Utils.template_url(url, params)
|
70
|
+
url = Utils.generate_url(
|
71
|
+
::SpeakeasyClientSDK::Operations::GetWorkspaceEventsBySourceRevisionDigestRequest,
|
72
|
+
base_url,
|
73
|
+
'/v1/workspace/{workspaceID}/events/source_revision_digest/{sourceRevisionDigest}',
|
74
|
+
request,
|
75
|
+
@sdk_configuration.globals
|
76
|
+
)
|
77
|
+
headers = {}
|
78
|
+
headers['Accept'] = 'application/json'
|
79
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
80
|
+
|
81
|
+
r = @sdk_configuration.client.get(url) do |req|
|
82
|
+
req.headers = headers
|
83
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
84
|
+
end
|
85
|
+
|
86
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
87
|
+
|
88
|
+
res = ::SpeakeasyClientSDK::Operations::GetWorkspaceEventsBySourceRevisionDigestResponse.new(
|
89
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
90
|
+
)
|
91
|
+
if r.status == 200
|
92
|
+
if Utils.match_content_type(content_type, 'application/json')
|
93
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::CliEvent])
|
94
|
+
res.cli_event_batch = out
|
95
|
+
end
|
96
|
+
elsif r.status >= 500 && r.status < 600
|
97
|
+
if Utils.match_content_type(content_type, 'application/json')
|
98
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
99
|
+
res.error = out
|
100
|
+
end
|
101
|
+
end
|
102
|
+
res
|
103
|
+
end
|
104
|
+
|
105
|
+
|
65
106
|
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsResponse) }
|
66
107
|
def get_workspace_targets(request)
|
67
108
|
# get_workspace_targets - Load targets for a particular workspace
|
data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb
ADDED
@@ -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 GetWorkspaceEventsBySourceRevisionDigestRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Unique identifier of the source revision digest.
|
15
|
+
field :source_revision_digest, ::String, { 'path_param': { 'field_name': 'sourceRevisionDigest', 'style': 'simple', 'explode': false } }
|
16
|
+
# Unique identifier of the workspace.
|
17
|
+
field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_revision_digest: ::String, workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(source_revision_digest: nil, workspace_id: nil)
|
22
|
+
@source_revision_digest = source_revision_digest
|
23
|
+
@workspace_id = workspace_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_response.rb
ADDED
@@ -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 GetWorkspaceEventsBySourceRevisionDigestResponse < ::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
|
+
# Success
|
21
|
+
field :cli_event_batch, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::CliEvent])
|
22
|
+
# Error
|
23
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, cli_event_batch: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::CliEvent]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, cli_event_batch: nil, error: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@cli_event_batch = cli_event_batch
|
32
|
+
@error = error
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -99,6 +99,8 @@ module SpeakeasyClientSDK
|
|
99
99
|
autoload :RevokeEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb'
|
100
100
|
autoload :GetWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/getworkspaceevents_request.rb'
|
101
101
|
autoload :GetWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/getworkspaceevents_response.rb'
|
102
|
+
autoload :GetWorkspaceEventsBySourceRevisionDigestRequest, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb'
|
103
|
+
autoload :GetWorkspaceEventsBySourceRevisionDigestResponse, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_response.rb'
|
102
104
|
autoload :GetWorkspaceTargetsRequest, 'speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb'
|
103
105
|
autoload :GetWorkspaceTargetsResponse, 'speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb'
|
104
106
|
autoload :PostWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb'
|
@@ -11,41 +11,35 @@ module SpeakeasyClientSDK
|
|
11
11
|
class Annotations < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
|
14
|
+
# The authors of the image
|
15
15
|
field :org_opencontainers_image_authors, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.authors') } }
|
16
|
-
|
17
|
-
field :org_opencontainers_image_base_digest, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.base.digest') } }
|
18
|
-
|
19
|
-
field :org_opencontainers_image_base_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.base.name') } }
|
20
|
-
|
16
|
+
# The time the image was created
|
21
17
|
field :org_opencontainers_image_created, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.created') } }
|
22
|
-
|
18
|
+
# Human-readable description of the software packaged in the image
|
23
19
|
field :org_opencontainers_image_description, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.description') } }
|
24
|
-
|
20
|
+
# The documentation URL of the image
|
25
21
|
field :org_opencontainers_image_documentation, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.documentation') } }
|
26
22
|
|
27
23
|
field :org_opencontainers_image_licenses, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.licenses') } }
|
28
|
-
|
24
|
+
# Name of the reference for a target
|
29
25
|
field :org_opencontainers_image_ref_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.ref.name') } }
|
30
|
-
|
26
|
+
# Source control revision identifier
|
31
27
|
field :org_opencontainers_image_revision, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.revision') } }
|
32
|
-
|
28
|
+
# The URL to get source code for building the image
|
33
29
|
field :org_opencontainers_image_source, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.source') } }
|
34
|
-
|
30
|
+
# Human-readable title of the image
|
35
31
|
field :org_opencontainers_image_title, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.title') } }
|
36
|
-
|
32
|
+
# The URL of the image
|
37
33
|
field :org_opencontainers_image_url, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.url') } }
|
38
|
-
|
34
|
+
# Name of the distributing entity, organization or individual.
|
39
35
|
field :org_opencontainers_image_vendor, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.vendor') } }
|
40
|
-
|
36
|
+
# The version of the packaged software
|
41
37
|
field :org_opencontainers_image_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.version') } }
|
42
38
|
|
43
39
|
|
44
|
-
sig { params(org_opencontainers_image_authors: T.nilable(::String),
|
45
|
-
def initialize(org_opencontainers_image_authors: nil,
|
40
|
+
sig { params(org_opencontainers_image_authors: T.nilable(::String), org_opencontainers_image_created: T.nilable(::String), org_opencontainers_image_description: T.nilable(::String), org_opencontainers_image_documentation: T.nilable(::String), org_opencontainers_image_licenses: T.nilable(::String), org_opencontainers_image_ref_name: T.nilable(::String), org_opencontainers_image_revision: T.nilable(::String), org_opencontainers_image_source: T.nilable(::String), org_opencontainers_image_title: T.nilable(::String), org_opencontainers_image_url: T.nilable(::String), org_opencontainers_image_vendor: T.nilable(::String), org_opencontainers_image_version: T.nilable(::String)).void }
|
41
|
+
def initialize(org_opencontainers_image_authors: nil, org_opencontainers_image_created: nil, org_opencontainers_image_description: nil, org_opencontainers_image_documentation: nil, org_opencontainers_image_licenses: nil, org_opencontainers_image_ref_name: nil, org_opencontainers_image_revision: nil, org_opencontainers_image_source: nil, org_opencontainers_image_title: nil, org_opencontainers_image_url: nil, org_opencontainers_image_vendor: nil, org_opencontainers_image_version: nil)
|
46
42
|
@org_opencontainers_image_authors = org_opencontainers_image_authors
|
47
|
-
@org_opencontainers_image_base_digest = org_opencontainers_image_base_digest
|
48
|
-
@org_opencontainers_image_base_name = org_opencontainers_image_base_name
|
49
43
|
@org_opencontainers_image_created = org_opencontainers_image_created
|
50
44
|
@org_opencontainers_image_description = org_opencontainers_image_description
|
51
45
|
@org_opencontainers_image_documentation = org_opencontainers_image_documentation
|
@@ -16,16 +16,22 @@ module SpeakeasyClientSDK
|
|
16
16
|
|
17
17
|
field :feature_flags, T::Array[::SpeakeasyClientSDK::Shared::FeatureFlags], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('feature_flags') } }
|
18
18
|
|
19
|
+
field :org_slug, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org_slug') } }
|
20
|
+
|
19
21
|
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
20
22
|
|
23
|
+
field :workspace_slug, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_slug') } }
|
24
|
+
|
21
25
|
field :generation_access_unlimited, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_access_unlimited') } }
|
22
26
|
|
23
27
|
|
24
|
-
sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, feature_flags: T::Array[::SpeakeasyClientSDK::Shared::FeatureFlags], workspace_id: ::String, generation_access_unlimited: T.nilable(T::Boolean)).void }
|
25
|
-
def initialize(account_type: nil, feature_flags: nil, workspace_id: nil, generation_access_unlimited: nil)
|
28
|
+
sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, feature_flags: T::Array[::SpeakeasyClientSDK::Shared::FeatureFlags], org_slug: ::String, workspace_id: ::String, workspace_slug: ::String, generation_access_unlimited: T.nilable(T::Boolean)).void }
|
29
|
+
def initialize(account_type: nil, feature_flags: nil, org_slug: nil, workspace_id: nil, workspace_slug: nil, generation_access_unlimited: nil)
|
26
30
|
@account_type = account_type
|
27
31
|
@feature_flags = feature_flags
|
32
|
+
@org_slug = org_slug
|
28
33
|
@workspace_id = workspace_id
|
34
|
+
@workspace_slug = workspace_slug
|
29
35
|
@generation_access_unlimited = generation_access_unlimited
|
30
36
|
end
|
31
37
|
end
|
@@ -40,10 +40,10 @@ module SpeakeasyClientSDK
|
|
40
40
|
@security = security
|
41
41
|
@globals = globals.nil? ? {} : globals
|
42
42
|
@language = 'ruby'
|
43
|
-
@openapi_doc_version = '0.4.0'
|
44
|
-
@sdk_version = '4.1.
|
45
|
-
@gen_version = '2.312.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.1.
|
43
|
+
@openapi_doc_version = '0.4.0 .'
|
44
|
+
@sdk_version = '4.1.8'
|
45
|
+
@gen_version = '2.312.1'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.1.8 2.312.1 0.4.0 . speakeasy_client_sdk_ruby'
|
47
47
|
end
|
48
48
|
|
49
49
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
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.8
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -223,6 +223,8 @@ files:
|
|
223
223
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb
|
224
224
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceevents_request.rb
|
225
225
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceevents_response.rb
|
226
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_request.rb
|
227
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbysourcerevisiondigest_response.rb
|
226
228
|
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb
|
227
229
|
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb
|
228
230
|
- lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
|