# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. # typed: true # frozen_string_literal: true require 'sorbet-runtime' require 'faraday' require_relative '../shared/error' require_relative '../shared/schemadiff' module SpeakeasyClientSDK module Operations class GetSchemaDiffRequest < SpeakeasyClientSDK::Utils::FieldAugmented extend T::Sig # The ID of the Api to retrieve schemas for. field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } } # The base revision ID of the schema to retrieve. field :base_revision_id, String, { 'path_param': { 'field_name': 'baseRevisionID', 'style': 'simple', 'explode': false } } # The target revision ID of the schema to retrieve. field :target_revision_id, String, { 'path_param': { 'field_name': 'targetRevisionID', 'style': 'simple', 'explode': false } } # The version ID of the Api to delete metadata for. field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } } sig { params(api_id: String, base_revision_id: String, target_revision_id: String, version_id: String).void } def initialize(api_id: nil, base_revision_id: nil, target_revision_id: nil, version_id: nil) @api_id = api_id @base_revision_id = base_revision_id @target_revision_id = target_revision_id @version_id = version_id end end class GetSchemaDiffResponse < SpeakeasyClientSDK::Utils::FieldAugmented extend T::Sig # HTTP response content type for this operation field :content_type, String # HTTP response status code for this operation field :status_code, Integer # Default error response field :error, T.nilable(Shared::Error) # Raw HTTP response; suitable for custom response parsing field :raw_response, T.nilable(Faraday::Response) # OK field :schema_diff, T.nilable(Shared::SchemaDiff) sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), schema_diff: T.nilable(Shared::SchemaDiff)).void } def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, schema_diff: nil) @content_type = content_type @status_code = status_code @error = error @raw_response = raw_response @schema_diff = schema_diff end end end end