8
9
10
11
12
13
14
15
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
|
# File 'lib/socketlabs/injectionapi/core/api_key_parse_result.rb', line 8
def self.enum
{
"None" =>
{
:name => "None",
:value => 0,
},
"InvalidKeyLength" =>
{
:name => "InvalidKeyLength",
:value => 1,
},
"InvalidKeyFormat" =>
{
:name => "InvalidKeyFormat",
:value => 2,
},
"InvalidEmptyOrWhitespace" =>
{
:name => "InvalidEmptyOrWhitespace",
:value => 3,
},
"InvalidUnableToExtractPublicPart" =>
{
:name => "InvalidUnableToExtractPublicPart",
:value => 4,
},
"InvalidUnableToExtractSecretPart" =>
{
:name => "InvalidUnableToExtractSecretPart",
:value => 5,
},
"InvalidPublicPartLength" =>
{
:name => "InvalidPublicPartLength",
:value => 6,
},
"InvalidSecretPartLength" =>
{
:name => "InvalidSecretPartLength",
:value => 7,
},
"Success" =>
{
:name => "Success",
:value => 8,
}
}
end
|