Class: Zavudev::Models::FunctionListDeploymentsResponse::Deployment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/function_list_deployments_response.rb,
sig/zavudev/models/function_list_deployments_response.rbs

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: nil, bundle_size_bytes: nil, created_at: nil, deployed_at: nil, error_message: nil, is_active: nil, status: nil, version: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)
  • bundle_size_bytes (Integer, nil) (defaults to: nil)
  • created_at (Time) (defaults to: nil)
  • deployed_at (Time, nil) (defaults to: nil)
  • error_message (String, nil) (defaults to: nil)
  • is_active (Boolean) (defaults to: nil)
  • status (Symbol, Zavudev::Models::FunctionListDeploymentsResponse::Deployment::Status) (defaults to: nil) —

    Stage of a function deployment.

  • version (Integer) (defaults to: nil)


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 16

class Deployment < Zavudev::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [String, nil]
  optional :id, String

  # @!attribute bundle_size_bytes
  #
  #   @return [Integer, nil]
  optional :bundle_size_bytes, Integer, api_name: :bundleSizeBytes, nil?: true

  # @!attribute created_at
  #
  #   @return [Time, nil]
  optional :created_at, Time, api_name: :createdAt

  # @!attribute deployed_at
  #
  #   @return [Time, nil]
  optional :deployed_at, Time, api_name: :deployedAt, nil?: true

  # @!attribute error_message
  #
  #   @return [String, nil]
  optional :error_message, String, api_name: :errorMessage, nil?: true

  # @!attribute is_active
  #
  #   @return [Boolean, nil]
  optional :is_active, Zavudev::Internal::Type::Boolean, api_name: :isActive

  # @!attribute status
  #   Stage of a function deployment.
  #
  #   @return [Symbol, Zavudev::Models::FunctionListDeploymentsResponse::Deployment::Status, nil]
  optional :status, enum: -> { Zavudev::Models::FunctionListDeploymentsResponse::Deployment::Status }

  # @!attribute version
  #
  #   @return [Integer, nil]
  optional :version, Integer

  # @!method initialize(id: nil, bundle_size_bytes: nil, created_at: nil, deployed_at: nil, error_message: nil, is_active: nil, status: nil, version: nil)
  #   @param id [String]
  #
  #   @param bundle_size_bytes [Integer, nil]
  #
  #   @param created_at [Time]
  #
  #   @param deployed_at [Time, nil]
  #
  #   @param error_message [String, nil]
  #
  #   @param is_active [Boolean]
  #
  #   @param status [Symbol, Zavudev::Models::FunctionListDeploymentsResponse::Deployment::Status] Stage of a function deployment.
  #
  #   @param version [Integer]

  # Stage of a function deployment.
  #
  # @see Zavudev::Models::FunctionListDeploymentsResponse::Deployment#status
  module Status
    extend Zavudev::Internal::Type::Enum

    PENDING = :pending
    BUNDLING = :bundling
    UPLOADING = :uploading
    PUBLISHING = :publishing
    ACTIVE = :active
    FAILED = :failed
    SUPERSEDED = :superseded

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#bundle_size_bytes ⇒ Integer?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


25
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 25

optional :bundle_size_bytes, Integer, api_name: :bundleSizeBytes, nil?: true

#created_at ⇒ Time?

Parameters:

  • (Time)

Returns:

  • (Time, nil)


30
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 30

optional :created_at, Time, api_name: :createdAt

#deployed_at ⇒ Time?

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


35
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 35

optional :deployed_at, Time, api_name: :deployedAt, nil?: true

#error_message ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


40
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 40

optional :error_message, String, api_name: :errorMessage, nil?: true

#id ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


20
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 20

optional :id, String

#is_active ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


45
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 45

optional :is_active, Zavudev::Internal::Type::Boolean, api_name: :isActive

#status ⇒ Symbol, ...

Stage of a function deployment.



51
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 51

optional :status, enum: -> { Zavudev::Models::FunctionListDeploymentsResponse::Deployment::Status }

#version ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


56
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 56

optional :version, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


71
# File 'sig/zavudev/models/function_list_deployments_response.rbs', line 71

def to_hash: -> {