Sha256: e8f262c4a689a26d9fc9aa0b5a6d90efca03016739a2d3366b659907f26e3963
Contents?: true
Size: 1.66 KB
Versions: 27
Compression:
Stored size: 1.66 KB
Contents
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. # typed: true # frozen_string_literal: true require 'sorbet-runtime' require 'faraday' require_relative '../shared/apiinput' require_relative '../shared/api' require_relative '../shared/error' module SpeakeasyClientSDK module Operations class UpsertApiRequest < SpeakeasyClientSDK::Utils::FieldAugmented extend T::Sig # The ID of the Api to upsert. field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } } # A JSON representation of the Api to upsert field :api_input, Shared::ApiInput, { 'request': { 'media_type': 'application/json' } } sig { params(api_id: String, api_input: Shared::ApiInput).void } def initialize(api_id: nil, api_input: nil) @api_id = api_id @api_input = api_input end end class UpsertApiResponse < SpeakeasyClientSDK::Utils::FieldAugmented extend T::Sig field :content_type, String field :status_code, Integer # OK field :api, T.nilable(Shared::Api) # Default error response field :error, T.nilable(Shared::Error) field :raw_response, T.nilable(Faraday::Response) sig { params(content_type: String, status_code: Integer, api: T.nilable(Shared::Api), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void } def initialize(content_type: nil, status_code: nil, api: nil, error: nil, raw_response: nil) @content_type = content_type @status_code = status_code @api = api @error = error @raw_response = raw_response end end end end
Version data entries
27 entries across 27 versions & 1 rubygems