Class: Telnyx::Models::Storage::Buckets::UsageGetAPIUsageResponse::Data::Category

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/storage/buckets/usage_get_api_usage_response.rb

Defined Under Namespace

Modules: Category

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(bytes_received: nil, bytes_sent: nil, category: nil, ops: nil, successful_ops: nil) ⇒ Object

Parameters:

  • bytes_received (Integer) (defaults to: nil)

    The number of bytes received

  • bytes_sent (Integer) (defaults to: nil)

    The number of bytes sent

  • category (Symbol, Telnyx::Models::Storage::Buckets::UsageGetAPIUsageResponse::Data::Category::Category) (defaults to: nil)

    The category of the bucket operation

  • ops (Integer) (defaults to: nil)

    The number of operations

  • successful_ops (Integer) (defaults to: nil)

    The number of successful operations



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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/telnyx/models/storage/buckets/usage_get_api_usage_response.rb', line 43

class Category < Telnyx::Internal::Type::BaseModel
  # @!attribute bytes_received
  #   The number of bytes received
  #
  #   @return [Integer, nil]
  optional :bytes_received, Integer

  # @!attribute bytes_sent
  #   The number of bytes sent
  #
  #   @return [Integer, nil]
  optional :bytes_sent, Integer

  # @!attribute category
  #   The category of the bucket operation
  #
  #   @return [Symbol, Telnyx::Models::Storage::Buckets::UsageGetAPIUsageResponse::Data::Category::Category, nil]
  optional :category,
           enum: -> { Telnyx::Models::Storage::Buckets::UsageGetAPIUsageResponse::Data::Category::Category }

  # @!attribute ops
  #   The number of operations
  #
  #   @return [Integer, nil]
  optional :ops, Integer

  # @!attribute successful_ops
  #   The number of successful operations
  #
  #   @return [Integer, nil]
  optional :successful_ops, Integer

  # @!method initialize(bytes_received: nil, bytes_sent: nil, category: nil, ops: nil, successful_ops: nil)
  #   @param bytes_received [Integer] The number of bytes received
  #
  #   @param bytes_sent [Integer] The number of bytes sent
  #
  #   @param category [Symbol, Telnyx::Models::Storage::Buckets::UsageGetAPIUsageResponse::Data::Category::Category] The category of the bucket operation
  #
  #   @param ops [Integer] The number of operations
  #
  #   @param successful_ops [Integer] The number of successful operations

  # The category of the bucket operation
  #
  # @see Telnyx::Models::Storage::Buckets::UsageGetAPIUsageResponse::Data::Category#category
  module Category
    extend Telnyx::Internal::Type::Enum

    LIST_BUCKET = :list_bucket
    LIST_BUCKETS = :list_buckets
    GET_BUCKET_LOCATION = :"get-bucket_location"
    CREATE_BUCKET = :create_bucket
    STAT_BUCKET = :stat_bucket
    GET_BUCKET_VERSIONING = :get_bucket_versioning
    SET_BUCKET_VERSIONING = :set_bucket_versioning
    GET_OBJ = :get_obj
    PUT_OBJ = :put_obj
    DELETE_OBJ = :delete_obj

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

Instance Attribute Details

#bytes_receivedInteger?

The number of bytes received

Returns:

  • (Integer, nil)


48
# File 'lib/telnyx/models/storage/buckets/usage_get_api_usage_response.rb', line 48

optional :bytes_received, Integer

#bytes_sentInteger?

The number of bytes sent

Returns:

  • (Integer, nil)


54
# File 'lib/telnyx/models/storage/buckets/usage_get_api_usage_response.rb', line 54

optional :bytes_sent, Integer

#categorySymbol, ...

The category of the bucket operation



60
61
# File 'lib/telnyx/models/storage/buckets/usage_get_api_usage_response.rb', line 60

optional :category,
enum: -> { Telnyx::Models::Storage::Buckets::UsageGetAPIUsageResponse::Data::Category::Category }

#opsInteger?

The number of operations

Returns:

  • (Integer, nil)


67
# File 'lib/telnyx/models/storage/buckets/usage_get_api_usage_response.rb', line 67

optional :ops, Integer

#successful_opsInteger?

The number of successful operations

Returns:

  • (Integer, nil)


73
# File 'lib/telnyx/models/storage/buckets/usage_get_api_usage_response.rb', line 73

optional :successful_ops, Integer