speakeasy_client_sdk_ruby 2.2.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/{sdk → speakeasy_client_sdk}/apiendpoints.rb +48 -39
- data/lib/{sdk → speakeasy_client_sdk}/apis.rb +37 -30
- data/lib/{sdk → speakeasy_client_sdk}/embeds.rb +17 -13
- data/lib/{sdk → speakeasy_client_sdk}/metadata.rb +19 -15
- data/lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteschema_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +39 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +39 -0
- data/lib/speakeasy_client_sdk/models/operations/file.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getapis_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb +36 -0
- data/lib/{sdk/models/operations/getplugins.rb → speakeasy_client_sdk/models/operations/getplugins_response.rb} +7 -9
- data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschema_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getschema_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemadiff_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemarevision_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemas_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemas_response.rb +36 -0
- data/lib/{sdk/models/operations/getvalidembedaccesstokens.rb → speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb} +7 -9
- data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/op.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/queryparam_op.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/runplugin_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/runplugin_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb +36 -0
- data/lib/{sdk/models/operations/upsertplugin.rb → speakeasy_client_sdk/models/operations/upsertplugin_response.rb} +7 -10
- data/lib/{sdk/models/operations/validateapikey.rb → speakeasy_client_sdk/models/operations/validateapikey_response.rb} +6 -8
- data/lib/speakeasy_client_sdk/models/operations.rb +79 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/api.rb +9 -10
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/api_input.rb +6 -7
- data/lib/speakeasy_client_sdk/models/shared/apiendpoint.rb +54 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/apiendpoint_input.rb +8 -9
- data/lib/speakeasy_client_sdk/models/shared/boundedrequest.rb +63 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/embedaccesstokenresponse.rb +3 -4
- data/lib/speakeasy_client_sdk/models/shared/embedtoken.rb +51 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/error.rb +4 -5
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/filter.rb +5 -6
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/filters.rb +6 -7
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/generateopenapispecdiff.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared/plugin.rb +42 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/requestmetadata.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared/schema.rb +39 -0
- data/lib/speakeasy_client_sdk/models/shared/schemadiff.rb +30 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/security.rb +3 -4
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/unboundedrequest.rb +7 -8
- data/lib/speakeasy_client_sdk/models/shared/valuechange.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared/versionmetadata.rb +39 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/versionmetadata_input.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared.rb +29 -0
- data/lib/{sdk → speakeasy_client_sdk}/plugins.rb +18 -14
- data/lib/{sdk → speakeasy_client_sdk}/requests.rb +19 -15
- data/lib/{sdk → speakeasy_client_sdk}/schemas.rb +46 -37
- data/lib/{sdk → speakeasy_client_sdk}/sdk.rb +3 -3
- data/lib/{sdk → speakeasy_client_sdk}/sdkconfiguration.rb +5 -5
- data/lib/{sdk → speakeasy_client_sdk}/utils/utils.rb +2 -2
- data/lib/speakeasy_client_sdk_ruby.rb +13 -66
- metadata +105 -67
- data/lib/sdk/models/operations/deleteapi.rb +0 -52
- data/lib/sdk/models/operations/deleteapiendpoint.rb +0 -55
- data/lib/sdk/models/operations/deleteschema.rb +0 -55
- data/lib/sdk/models/operations/deleteversionmetadata.rb +0 -58
- data/lib/sdk/models/operations/downloadschema.rb +0 -58
- data/lib/sdk/models/operations/downloadschemarevision.rb +0 -61
- data/lib/sdk/models/operations/findapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/generateopenapispec.rb +0 -56
- data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/generatepostmancollection.rb +0 -55
- data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +0 -58
- data/lib/sdk/models/operations/generaterequestpostmancollection.rb +0 -52
- data/lib/sdk/models/operations/getallapiendpoints.rb +0 -52
- data/lib/sdk/models/operations/getallapiversions.rb +0 -72
- data/lib/sdk/models/operations/getallforversionapiendpoints.rb +0 -55
- data/lib/sdk/models/operations/getapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/getapis.rb +0 -69
- data/lib/sdk/models/operations/getembedaccesstoken.rb +0 -60
- data/lib/sdk/models/operations/getrequestfromeventlog.rb +0 -53
- data/lib/sdk/models/operations/getschema.rb +0 -56
- data/lib/sdk/models/operations/getschemadiff.rb +0 -62
- data/lib/sdk/models/operations/getschemarevision.rb +0 -59
- data/lib/sdk/models/operations/getschemas.rb +0 -55
- data/lib/sdk/models/operations/getversionmetadata.rb +0 -55
- data/lib/sdk/models/operations/insertversionmetadata.rb +0 -59
- data/lib/sdk/models/operations/queryeventlog.rb +0 -53
- data/lib/sdk/models/operations/registerschema.rb +0 -86
- data/lib/sdk/models/operations/revokeembedaccesstoken.rb +0 -49
- data/lib/sdk/models/operations/runplugin.rb +0 -56
- data/lib/sdk/models/operations/upsertapi.rb +0 -56
- data/lib/sdk/models/operations/upsertapiendpoint.rb +0 -62
- data/lib/sdk/models/shared/apiendpoint.rb +0 -55
- data/lib/sdk/models/shared/boundedrequest.rb +0 -64
- data/lib/sdk/models/shared/embedtoken.rb +0 -52
- data/lib/sdk/models/shared/plugin.rb +0 -43
- data/lib/sdk/models/shared/schema.rb +0 -40
- data/lib/sdk/models/shared/schemadiff.rb +0 -48
- data/lib/sdk/models/shared/versionmetadata.rb +0 -40
- /data/lib/{sdk → speakeasy_client_sdk}/utils/metadata_fields.rb +0 -0
@@ -1,52 +0,0 @@
|
|
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
|
-
|
9
|
-
module SpeakeasyClientSDK
|
10
|
-
module Shared
|
11
|
-
# A representation of an embed token granted for working with Speakeasy components.
|
12
|
-
class EmbedToken < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
# Creation timestamp.
|
16
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
17
|
-
# The ID of the user that created this token.
|
18
|
-
field :created_by, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_by') } }
|
19
|
-
# A detailed description of the EmbedToken.
|
20
|
-
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
21
|
-
# The time this token expires.
|
22
|
-
field :expires_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('expires_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
23
|
-
# The filters applied to this token.
|
24
|
-
field :filters, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('filters') } }
|
25
|
-
# The ID of this EmbedToken.
|
26
|
-
field :id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
|
27
|
-
# The workspace ID this token belongs to.
|
28
|
-
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
29
|
-
# The last time this token was used.
|
30
|
-
field :last_used, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('last_used'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
31
|
-
# The time this token was revoked.
|
32
|
-
field :revoked_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
33
|
-
# The ID of the user that revoked this token.
|
34
|
-
field :revoked_by, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_by') } }
|
35
|
-
|
36
|
-
|
37
|
-
sig { params(created_at: DateTime, created_by: String, description: String, expires_at: DateTime, filters: String, id: String, workspace_id: String, last_used: T.nilable(DateTime), revoked_at: T.nilable(DateTime), revoked_by: T.nilable(String)).void }
|
38
|
-
def initialize(created_at: nil, created_by: nil, description: nil, expires_at: nil, filters: nil, id: nil, workspace_id: nil, last_used: nil, revoked_at: nil, revoked_by: nil)
|
39
|
-
@created_at = created_at
|
40
|
-
@created_by = created_by
|
41
|
-
@description = description
|
42
|
-
@expires_at = expires_at
|
43
|
-
@filters = filters
|
44
|
-
@id = id
|
45
|
-
@workspace_id = workspace_id
|
46
|
-
@last_used = last_used
|
47
|
-
@revoked_at = revoked_at
|
48
|
-
@revoked_by = revoked_by
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,43 +0,0 @@
|
|
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
|
-
|
9
|
-
module SpeakeasyClientSDK
|
10
|
-
module Shared
|
11
|
-
# A plugin is a short script that is run against ingested requests
|
12
|
-
class Plugin < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
|
16
|
-
field :code, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('code') } }
|
17
|
-
|
18
|
-
field :plugin_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('plugin_id') } }
|
19
|
-
|
20
|
-
field :title, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('title') } }
|
21
|
-
|
22
|
-
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
23
|
-
|
24
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
25
|
-
|
26
|
-
field :eval_hash, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('eval_hash') } }
|
27
|
-
|
28
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
29
|
-
|
30
|
-
|
31
|
-
sig { params(code: String, plugin_id: String, title: String, workspace_id: String, created_at: T.nilable(DateTime), eval_hash: T.nilable(String), updated_at: T.nilable(DateTime)).void }
|
32
|
-
def initialize(code: nil, plugin_id: nil, title: nil, workspace_id: nil, created_at: nil, eval_hash: nil, updated_at: nil)
|
33
|
-
@code = code
|
34
|
-
@plugin_id = plugin_id
|
35
|
-
@title = title
|
36
|
-
@workspace_id = workspace_id
|
37
|
-
@created_at = created_at
|
38
|
-
@eval_hash = eval_hash
|
39
|
-
@updated_at = updated_at
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,40 +0,0 @@
|
|
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
|
-
|
9
|
-
module SpeakeasyClientSDK
|
10
|
-
module Shared
|
11
|
-
# A Schema represents an API schema for a particular Api and Version.
|
12
|
-
class Schema < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
# The ID of the Api this Schema belongs to.
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
|
-
# Creation timestamp.
|
18
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
19
|
-
# A detailed description of the Schema.
|
20
|
-
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
21
|
-
# An ID referencing this particular revision of the Schema.
|
22
|
-
field :revision_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_id') } }
|
23
|
-
# The version ID of the Api this Schema belongs to.
|
24
|
-
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
25
|
-
# The workspace ID this Schema belongs to.
|
26
|
-
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
27
|
-
|
28
|
-
|
29
|
-
sig { params(api_id: String, created_at: DateTime, description: String, revision_id: String, version_id: String, workspace_id: String).void }
|
30
|
-
def initialize(api_id: nil, created_at: nil, description: nil, revision_id: nil, version_id: nil, workspace_id: nil)
|
31
|
-
@api_id = api_id
|
32
|
-
@created_at = created_at
|
33
|
-
@description = description
|
34
|
-
@revision_id = revision_id
|
35
|
-
@version_id = version_id
|
36
|
-
@workspace_id = workspace_id
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
@@ -1,48 +0,0 @@
|
|
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
|
-
|
9
|
-
module SpeakeasyClientSDK
|
10
|
-
module Shared
|
11
|
-
|
12
|
-
class ValueChange < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
# Represents the previous value of the element.
|
16
|
-
field :from, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('From') } }
|
17
|
-
# Represents the current value of the element.
|
18
|
-
field :to, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('To') } }
|
19
|
-
|
20
|
-
|
21
|
-
sig { params(from: String, to: String).void }
|
22
|
-
def initialize(from: nil, to: nil)
|
23
|
-
@from = from
|
24
|
-
@to = to
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
# A SchemaDiff represents a diff of two Schemas.
|
29
|
-
class SchemaDiff < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
30
|
-
extend T::Sig
|
31
|
-
|
32
|
-
# Holds every addition change in the diff.
|
33
|
-
field :additions, T::Array[String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('additions') } }
|
34
|
-
# Holds every deletion change in the diff.
|
35
|
-
field :deletions, T::Array[String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('deletions') } }
|
36
|
-
# Holds every modification change in the diff.
|
37
|
-
field :modifications, T::Hash[Symbol, Shared::ValueChange], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('modifications') } }
|
38
|
-
|
39
|
-
|
40
|
-
sig { params(additions: T::Array[String], deletions: T::Array[String], modifications: T::Hash[Symbol, Shared::ValueChange]).void }
|
41
|
-
def initialize(additions: nil, deletions: nil, modifications: nil)
|
42
|
-
@additions = additions
|
43
|
-
@deletions = deletions
|
44
|
-
@modifications = modifications
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,40 +0,0 @@
|
|
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
|
-
|
9
|
-
module SpeakeasyClientSDK
|
10
|
-
module Shared
|
11
|
-
# A set of keys and associated values, attached to a particular version of an Api.
|
12
|
-
class VersionMetadata < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
|
-
extend T::Sig
|
14
|
-
|
15
|
-
# The ID of the Api this Metadata belongs to.
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
|
-
# Creation timestamp.
|
18
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
19
|
-
# The key for this metadata.
|
20
|
-
field :meta_key, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_key') } }
|
21
|
-
# One of the values for this metadata.
|
22
|
-
field :meta_value, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_value') } }
|
23
|
-
# The version ID of the Api this Metadata belongs to.
|
24
|
-
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
25
|
-
# The workspace ID this Metadata belongs to.
|
26
|
-
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
27
|
-
|
28
|
-
|
29
|
-
sig { params(api_id: String, created_at: DateTime, meta_key: String, meta_value: String, version_id: String, workspace_id: String).void }
|
30
|
-
def initialize(api_id: nil, created_at: nil, meta_key: nil, meta_value: nil, version_id: nil, workspace_id: nil)
|
31
|
-
@api_id = api_id
|
32
|
-
@created_at = created_at
|
33
|
-
@meta_key = meta_key
|
34
|
-
@meta_value = meta_value
|
35
|
-
@version_id = version_id
|
36
|
-
@workspace_id = workspace_id
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
File without changes
|