Module: Ovh::Api::Models::StorageNetAppShareStatusEnum

Defined in:
lib/ovh-api/models/storage_net_app_share_status_enum.rb

Constant Summary collapse

AVAILABLE =
'available'
AWAITING_REPLICATION =
'awaiting_replication'
CREATING =
'creating'
CREATING_FROM_SNAPSHOT =
'creating_from_snapshot'
DELETED =
'deleted'
DELETING =
'deleting'
ERROR =
'error'
ERROR_DELETING =
'error_deleting'
EXTENDING =
'extending'
EXTENDING_ERROR =
'extending_error'
INACTIVE =
'inactive'
MANAGE_ERROR =
'manage_error'
MANAGE_STARTING =
'manage_starting'
MIGRATING =
'migrating'
MIGRATING_TO =
'migrating_to'
REPLICATION_CHANGE =
'replication_change'
REVERTING =
'reverting'
REVERTING_ERROR =
'reverting_error'
SHRINKING =
'shrinking'
SHRINKING_ERROR =
'shrinking_error'
SHRINKING_POSSIBLE_DATA_LOSS_ERROR =
'shrinking_possible_data_loss_error'
UNMANAGE_ERROR =
'unmanage_error'
UNMANAGE_STARTING =
'unmanage_starting'
UNMANAGED =
'unmanaged'

Class Method Summary collapse

Class Method Details

.allObject



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
# File 'lib/ovh-api/models/storage_net_app_share_status_enum.rb', line 36

def self.all
  @all ||= [
    AVAILABLE,
    AWAITING_REPLICATION,
    CREATING,
    CREATING_FROM_SNAPSHOT,
    DELETED,
    DELETING,
    ERROR,
    ERROR_DELETING,
    EXTENDING,
    EXTENDING_ERROR,
    INACTIVE,
    MANAGE_ERROR,
    MANAGE_STARTING,
    MIGRATING,
    MIGRATING_TO,
    REPLICATION_CHANGE,
    REVERTING,
    REVERTING_ERROR,
    SHRINKING,
    SHRINKING_ERROR,
    SHRINKING_POSSIBLE_DATA_LOSS_ERROR,
    UNMANAGE_ERROR,
    UNMANAGE_STARTING,
    UNMANAGED,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/ovh-api/models/storage_net_app_share_status_enum.rb', line 65

def self.valid?(value)
  all.include?(value)
end