|
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +module OpenAI |
| 4 | + module Models |
| 5 | + # @see OpenAI::Resources::Containers#create |
| 6 | + class ContainerCreateResponse < OpenAI::Internal::Type::BaseModel |
| 7 | + # @!attribute id |
| 8 | + # Unique identifier for the container. |
| 9 | + # |
| 10 | + # @return [String] |
| 11 | + required :id, String |
| 12 | + |
| 13 | + # @!attribute created_at |
| 14 | + # Unix timestamp (in seconds) when the container was created. |
| 15 | + # |
| 16 | + # @return [Integer] |
| 17 | + required :created_at, Integer |
| 18 | + |
| 19 | + # @!attribute name |
| 20 | + # Name of the container. |
| 21 | + # |
| 22 | + # @return [String] |
| 23 | + required :name, String |
| 24 | + |
| 25 | + # @!attribute object |
| 26 | + # The type of this object. |
| 27 | + # |
| 28 | + # @return [String] |
| 29 | + required :object, String |
| 30 | + |
| 31 | + # @!attribute status |
| 32 | + # Status of the container (e.g., active, deleted). |
| 33 | + # |
| 34 | + # @return [String] |
| 35 | + required :status, String |
| 36 | + |
| 37 | + # @!attribute expires_after |
| 38 | + # The container will expire after this time period. The anchor is the reference |
| 39 | + # point for the expiration. The minutes is the number of minutes after the anchor |
| 40 | + # before the container expires. |
| 41 | + # |
| 42 | + # @return [OpenAI::Models::ContainerCreateResponse::ExpiresAfter, nil] |
| 43 | + optional :expires_after, -> { OpenAI::Models::ContainerCreateResponse::ExpiresAfter } |
| 44 | + |
| 45 | + # @!method initialize(id:, created_at:, name:, object:, status:, expires_after: nil) |
| 46 | + # Some parameter documentations has been truncated, see |
| 47 | + # {OpenAI::Models::ContainerCreateResponse} for more details. |
| 48 | + # |
| 49 | + # @param id [String] Unique identifier for the container. |
| 50 | + # |
| 51 | + # @param created_at [Integer] Unix timestamp (in seconds) when the container was created. |
| 52 | + # |
| 53 | + # @param name [String] Name of the container. |
| 54 | + # |
| 55 | + # @param object [String] The type of this object. |
| 56 | + # |
| 57 | + # @param status [String] Status of the container (e.g., active, deleted). |
| 58 | + # |
| 59 | + # @param expires_after [OpenAI::Models::ContainerCreateResponse::ExpiresAfter] The container will expire after this time period. |
| 60 | + |
| 61 | + # @see OpenAI::Models::ContainerCreateResponse#expires_after |
| 62 | + class ExpiresAfter < OpenAI::Internal::Type::BaseModel |
| 63 | + # @!attribute anchor |
| 64 | + # The reference point for the expiration. |
| 65 | + # |
| 66 | + # @return [Symbol, OpenAI::Models::ContainerCreateResponse::ExpiresAfter::Anchor, nil] |
| 67 | + optional :anchor, enum: -> { OpenAI::Models::ContainerCreateResponse::ExpiresAfter::Anchor } |
| 68 | + |
| 69 | + # @!attribute minutes |
| 70 | + # The number of minutes after the anchor before the container expires. |
| 71 | + # |
| 72 | + # @return [Integer, nil] |
| 73 | + optional :minutes, Integer |
| 74 | + |
| 75 | + # @!method initialize(anchor: nil, minutes: nil) |
| 76 | + # The container will expire after this time period. The anchor is the reference |
| 77 | + # point for the expiration. The minutes is the number of minutes after the anchor |
| 78 | + # before the container expires. |
| 79 | + # |
| 80 | + # @param anchor [Symbol, OpenAI::Models::ContainerCreateResponse::ExpiresAfter::Anchor] The reference point for the expiration. |
| 81 | + # |
| 82 | + # @param minutes [Integer] The number of minutes after the anchor before the container expires. |
| 83 | + |
| 84 | + # The reference point for the expiration. |
| 85 | + # |
| 86 | + # @see OpenAI::Models::ContainerCreateResponse::ExpiresAfter#anchor |
| 87 | + module Anchor |
| 88 | + extend OpenAI::Internal::Type::Enum |
| 89 | + |
| 90 | + LAST_ACTIVE_AT = :last_active_at |
| 91 | + |
| 92 | + # @!method self.values |
| 93 | + # @return [Array<Symbol>] |
| 94 | + end |
| 95 | + end |
| 96 | + end |
| 97 | + end |
| 98 | +end |
0 commit comments