cloulu 0.0.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. data/bin/{cloulu → cl} +0 -0
  2. data/lib/cc_api_stub/applications.rb +53 -0
  3. data/lib/cc_api_stub/domains.rb +16 -0
  4. data/lib/cc_api_stub/frameworks.rb +22 -0
  5. data/lib/cc_api_stub/helper.rb +131 -0
  6. data/lib/cc_api_stub/login.rb +21 -0
  7. data/lib/cc_api_stub/organization_users.rb +21 -0
  8. data/lib/cc_api_stub/organizations.rb +70 -0
  9. data/lib/cc_api_stub/routes.rb +26 -0
  10. data/lib/cc_api_stub/runtimes.rb +22 -0
  11. data/lib/cc_api_stub/service_bindings.rb +22 -0
  12. data/lib/cc_api_stub/service_instances.rb +22 -0
  13. data/lib/cc_api_stub/services.rb +25 -0
  14. data/lib/cc_api_stub/spaces.rb +49 -0
  15. data/lib/cc_api_stub/users.rb +84 -0
  16. data/lib/cc_api_stub.rb +17 -0
  17. data/lib/cfoundry/auth_token.rb +63 -0
  18. data/lib/cfoundry/baseclient.rb +201 -0
  19. data/lib/cfoundry/chatty_hash.rb +46 -0
  20. data/lib/cfoundry/client.rb +46 -0
  21. data/lib/cfoundry/concerns/login_helpers.rb +13 -0
  22. data/lib/cfoundry/errors.rb +160 -0
  23. data/lib/cfoundry/rest_client.rb +299 -0
  24. data/lib/cfoundry/test_support.rb +3 -0
  25. data/lib/cfoundry/trace_helpers.rb +40 -0
  26. data/lib/cfoundry/uaaclient.rb +112 -0
  27. data/lib/cfoundry/upload_helpers.rb +187 -0
  28. data/lib/cfoundry/v1/app.rb +363 -0
  29. data/lib/cfoundry/v1/base.rb +72 -0
  30. data/lib/cfoundry/v1/client.rb +193 -0
  31. data/lib/cfoundry/v1/framework.rb +21 -0
  32. data/lib/cfoundry/v1/model.rb +178 -0
  33. data/lib/cfoundry/v1/model_magic.rb +129 -0
  34. data/lib/cfoundry/v1/runtime.rb +24 -0
  35. data/lib/cfoundry/v1/service.rb +39 -0
  36. data/lib/cfoundry/v1/service_instance.rb +32 -0
  37. data/lib/cfoundry/v1/service_plan.rb +19 -0
  38. data/lib/cfoundry/v1/user.rb +22 -0
  39. data/lib/cfoundry/v2/app.rb +392 -0
  40. data/lib/cfoundry/v2/base.rb +83 -0
  41. data/lib/cfoundry/v2/client.rb +138 -0
  42. data/lib/cfoundry/v2/domain.rb +11 -0
  43. data/lib/cfoundry/v2/framework.rb +14 -0
  44. data/lib/cfoundry/v2/model.rb +148 -0
  45. data/lib/cfoundry/v2/model_magic.rb +449 -0
  46. data/lib/cfoundry/v2/organization.rb +16 -0
  47. data/lib/cfoundry/v2/route.rb +15 -0
  48. data/lib/cfoundry/v2/runtime.rb +12 -0
  49. data/lib/cfoundry/v2/service.rb +19 -0
  50. data/lib/cfoundry/v2/service_auth_token.rb +9 -0
  51. data/lib/cfoundry/v2/service_binding.rb +10 -0
  52. data/lib/cfoundry/v2/service_instance.rb +14 -0
  53. data/lib/cfoundry/v2/service_plan.rb +12 -0
  54. data/lib/cfoundry/v2/space.rb +18 -0
  55. data/lib/cfoundry/v2/user.rb +64 -0
  56. data/lib/cfoundry/validator.rb +39 -0
  57. data/lib/cfoundry/version.rb +4 -0
  58. data/lib/cfoundry/zip.rb +56 -0
  59. data/lib/cfoundry.rb +2 -0
  60. data/lib/manifests-vmc-plugin/errors.rb +21 -0
  61. data/lib/manifests-vmc-plugin/loader/builder.rb +34 -0
  62. data/lib/manifests-vmc-plugin/loader/normalizer.rb +149 -0
  63. data/lib/manifests-vmc-plugin/loader/resolver.rb +79 -0
  64. data/lib/manifests-vmc-plugin/loader.rb +31 -0
  65. data/lib/manifests-vmc-plugin/plugin.rb +145 -0
  66. data/lib/manifests-vmc-plugin/version.rb +3 -0
  67. data/lib/manifests-vmc-plugin.rb +313 -0
  68. data/lib/mothership/base.rb +99 -0
  69. data/lib/mothership/callbacks.rb +85 -0
  70. data/lib/mothership/command.rb +146 -0
  71. data/lib/mothership/errors.rb +38 -0
  72. data/lib/mothership/help/commands.rb +53 -0
  73. data/lib/mothership/help/printer.rb +170 -0
  74. data/lib/mothership/help.rb +64 -0
  75. data/lib/mothership/inputs.rb +189 -0
  76. data/lib/mothership/parser.rb +182 -0
  77. data/lib/mothership/version.rb +3 -0
  78. data/lib/mothership.rb +64 -0
  79. data/lib/tunnel-vmc-plugin/plugin.rb +178 -0
  80. data/lib/tunnel-vmc-plugin/tunnel.rb +308 -0
  81. data/lib/tunnel-vmc-plugin/version.rb +3 -0
  82. data/lib/uaa/http.rb +168 -0
  83. data/lib/uaa/misc.rb +121 -0
  84. data/lib/uaa/scim.rb +292 -0
  85. data/lib/uaa/token_coder.rb +196 -0
  86. data/lib/uaa/token_issuer.rb +255 -0
  87. data/lib/uaa/util.rb +235 -0
  88. data/lib/uaa/version.rb +19 -0
  89. data/lib/uaa.rb +18 -0
  90. data/lib/vmc/cli/app/app.rb +45 -0
  91. data/lib/vmc/cli/app/apps.rb +99 -0
  92. data/lib/vmc/cli/app/base.rb +90 -0
  93. data/lib/vmc/cli/app/crashes.rb +42 -0
  94. data/lib/vmc/cli/app/delete.rb +95 -0
  95. data/lib/vmc/cli/app/deprecated.rb +11 -0
  96. data/lib/vmc/cli/app/env.rb +78 -0
  97. data/lib/vmc/cli/app/files.rb +137 -0
  98. data/lib/vmc/cli/app/health.rb +26 -0
  99. data/lib/vmc/cli/app/instances.rb +53 -0
  100. data/lib/vmc/cli/app/logs.rb +76 -0
  101. data/lib/vmc/cli/app/push/create.rb +165 -0
  102. data/lib/vmc/cli/app/push/interactions.rb +94 -0
  103. data/lib/vmc/cli/app/push/sync.rb +64 -0
  104. data/lib/vmc/cli/app/push.rb +109 -0
  105. data/lib/vmc/cli/app/rename.rb +35 -0
  106. data/lib/vmc/cli/app/restart.rb +20 -0
  107. data/lib/vmc/cli/app/scale.rb +71 -0
  108. data/lib/vmc/cli/app/start.rb +143 -0
  109. data/lib/vmc/cli/app/stats.rb +67 -0
  110. data/lib/vmc/cli/app/stop.rb +27 -0
  111. data/lib/vmc/cli/help.rb +11 -0
  112. data/lib/vmc/cli/interactive.rb +105 -0
  113. data/lib/vmc/cli/route/base.rb +12 -0
  114. data/lib/vmc/cli/route/map.rb +82 -0
  115. data/lib/vmc/cli/route/routes.rb +25 -0
  116. data/lib/vmc/cli/route/unmap.rb +94 -0
  117. data/lib/vmc/cli/service/base.rb +8 -0
  118. data/lib/vmc/cli/service/bind.rb +44 -0
  119. data/lib/vmc/cli/service/create.rb +126 -0
  120. data/lib/vmc/cli/service/delete.rb +86 -0
  121. data/lib/vmc/cli/service/rename.rb +35 -0
  122. data/lib/vmc/cli/service/service.rb +42 -0
  123. data/lib/vmc/cli/service/services.rb +114 -0
  124. data/lib/vmc/cli/service/unbind.rb +38 -0
  125. data/lib/vmc/cli/start/base.rb +94 -0
  126. data/lib/vmc/cli/start/colors.rb +13 -0
  127. data/lib/vmc/cli/start/info.rb +126 -0
  128. data/lib/vmc/cli/start/login.rb +97 -0
  129. data/lib/vmc/cli/start/logout.rb +17 -0
  130. data/lib/vmc/cli/start/target.rb +60 -0
  131. data/lib/vmc/cli/start/target_interactions.rb +37 -0
  132. data/lib/vmc/cli/start/targets.rb +16 -0
  133. data/lib/vmc/cli/user/base.rb +29 -0
  134. data/lib/vmc/cli/user/create.rb +39 -0
  135. data/lib/vmc/cli/user/delete.rb +27 -0
  136. data/lib/vmc/cli/user/passwd.rb +50 -0
  137. data/lib/vmc/cli/user/register.rb +42 -0
  138. data/lib/vmc/cli/user/users.rb +32 -0
  139. data/lib/vmc/cli/v2_check_cli.rb +16 -0
  140. data/lib/vmc/cli.rb +474 -0
  141. data/lib/vmc/constants.rb +13 -0
  142. data/lib/vmc/detect.rb +129 -0
  143. data/lib/vmc/errors.rb +19 -0
  144. data/lib/vmc/plugin.rb +56 -0
  145. data/lib/vmc/spacing.rb +89 -0
  146. data/lib/vmc/spec_helper.rb +1 -0
  147. data/lib/vmc/test_support.rb +6 -0
  148. data/lib/vmc/version.rb +3 -0
  149. data/lib/vmc.rb +8 -0
  150. data/vendor/errors/v1.yml +189 -0
  151. data/vendor/errors/v2.yml +360 -0
  152. metadata +303 -190
@@ -0,0 +1,89 @@
1
+ module VMC
2
+ module Spacing
3
+ @@indentation = 0
4
+
5
+ def indented
6
+ @@indentation += 1
7
+ yield
8
+ ensure
9
+ @@indentation -= 1
10
+ end
11
+
12
+ def line(msg = "")
13
+ return puts "" if msg.empty?
14
+
15
+ start_line(msg)
16
+ puts ""
17
+ end
18
+
19
+ def start_line(msg)
20
+ print " " * @@indentation unless quiet?
21
+ print msg
22
+ end
23
+
24
+ def lines(blob)
25
+ blob.each_line do |line|
26
+ start_line(line)
27
+ end
28
+
29
+ line
30
+ end
31
+
32
+ def quiet?
33
+ false
34
+ end
35
+
36
+ def spaced(vals)
37
+ num = 0
38
+ vals.each do |val|
39
+ line unless quiet? || num == 0
40
+ yield val
41
+ num += 1
42
+ end
43
+ end
44
+
45
+ def tabular(*rows)
46
+ spacings = []
47
+ rows.each do |row|
48
+ next unless row
49
+
50
+ row.each.with_index do |col, i|
51
+ next unless col
52
+
53
+ width = text_width(col)
54
+
55
+ if !spacings[i] || width > spacings[i]
56
+ spacings[i] = width
57
+ end
58
+ end
59
+ end
60
+
61
+ columns = spacings.size
62
+ rows.each do |row|
63
+ next unless row
64
+
65
+ row.each.with_index do |col, i|
66
+ next unless col
67
+
68
+ start_line justify(col, spacings[i])
69
+ print " " unless i + 1 == columns
70
+ end
71
+
72
+ line
73
+ end
74
+ end
75
+
76
+ def trim_escapes(str)
77
+ str.gsub(/\e\[\d+m/, "")
78
+ end
79
+
80
+ def text_width(str)
81
+ trim_escapes(str).size
82
+ end
83
+
84
+ def justify(str, width)
85
+ trimmed = trim_escapes(str)
86
+ str.ljust(width + (str.size - trimmed.size))
87
+ end
88
+ end
89
+ end
@@ -0,0 +1 @@
1
+ require File.expand_path("../../../spec/spec_helper", __FILE__)
@@ -0,0 +1,6 @@
1
+ module VMC::TestSupport
2
+ end
3
+
4
+ Dir[File.expand_path('../../../spec/support/**/*.rb', __FILE__)].each do |file|
5
+ require file
6
+ end
@@ -0,0 +1,3 @@
1
+ module VMC
2
+ VERSION = "0.1.1".freeze
3
+ end
data/lib/vmc.rb ADDED
@@ -0,0 +1,8 @@
1
+ require "vmc/version"
2
+
3
+ require "vmc/cli"
4
+
5
+ command_files = "../vmc/cli/{app,route,domain,organization,space,service,start,user}/*.rb"
6
+ Dir[File.expand_path(command_files, __FILE__)].each do |file|
7
+ require file unless File.basename(file) == 'base.rb'
8
+ end
@@ -0,0 +1,189 @@
1
+ 100:
2
+ name: BadRequest
3
+ http_code: 400
4
+ message: "Bad request"
5
+
6
+ 101:
7
+ name: DatabaseError
8
+ http_code: 500
9
+ message: "Error talking with the database"
10
+
11
+ 102:
12
+ name: LockingError
13
+ http_code: 400
14
+ message: "Optimistic locking failure"
15
+
16
+ 111:
17
+ name: SystemError
18
+ http_code: 500
19
+ message: "System Exception Encountered"
20
+
21
+ 200:
22
+ name: Forbidden
23
+ http_code: 403
24
+ message: "Operation not permitted"
25
+
26
+ 201:
27
+ name: UserNotFound
28
+ http_code: 403
29
+ message: "User not found"
30
+
31
+ 202:
32
+ name: HttpsRequired
33
+ http_code: 403
34
+ message: "HTTPS required"
35
+
36
+ 300:
37
+ name: AppInvalid
38
+ http_code: 400
39
+ message: "Invalid application description"
40
+
41
+ 301:
42
+ name: AppNotFound
43
+ http_code: 404
44
+ message: "Application not found"
45
+
46
+ 302:
47
+ name: AppNoResources
48
+ http_code: 404
49
+ message: "Couldn't find a place to run an app"
50
+
51
+ 303:
52
+ name: AppFileNotFound
53
+ http_code: 404
54
+ message: "Could not find : '%s'"
55
+
56
+ 304:
57
+ name: AppInstanceNotFound
58
+ http_code: 400
59
+ message: "Could not find instance: '%s'"
60
+
61
+ 305:
62
+ name: AppStopped
63
+ http_code: 400
64
+ message: "Operation not permitted on a stopped app"
65
+
66
+ 306:
67
+ name: AppFileError
68
+ http_code: 500
69
+ message: "Error retrieving file '%s'"
70
+
71
+ 307:
72
+ name: AppInvalidRuntime
73
+ http_code: 400
74
+ message: "Invalid runtime specification [%s] for framework: '%s'"
75
+
76
+ 308:
77
+ name: AppInvalidFramework
78
+ http_code: 400
79
+ message: "Invalid framework description: '%s'"
80
+
81
+ 309:
82
+ name: AppDebugDisallowed
83
+ http_code: 400
84
+ message: "Cloud controller has disallowed debugging."
85
+
86
+ 310:
87
+ name: AppStagingError
88
+ http_code: 500
89
+ message: "Staging failed: '%s'"
90
+
91
+ 400:
92
+ name: ResourcesUnknownPackageType
93
+ http_code: 400
94
+ message: 'Unknown package type requested: "%"'
95
+
96
+ 401:
97
+ name: ResourcesMissingResource
98
+ http_code: 400
99
+ message: "Could not find the requested resource"
100
+
101
+ 402:
102
+ name: ResourcesPackagingFailed
103
+ http_code: 500
104
+ message: "App packaging failed: '%s'"
105
+
106
+ 500:
107
+ name: ServiceNotFound
108
+ http_code: 404
109
+ message: "Service not found"
110
+
111
+ 501:
112
+ name: BindingNotFound
113
+ http_code: 404
114
+ message: "Binding not found"
115
+
116
+ 502:
117
+ name: TokenNotFound
118
+ http_code: 404
119
+ message: "Token not found"
120
+
121
+ 503:
122
+ name: ServiceGatewayError
123
+ http_code: 502
124
+ message: "Unexpected response from service gateway"
125
+
126
+ 504:
127
+ name: AccountTooManyServices
128
+ http_code: 403
129
+ message: "Too many Services provisioned: %s, you're allowed: %s"
130
+
131
+ 505:
132
+ name: ExtensionNotImpl
133
+ http_code: 501
134
+ message: "Service extension %s is not implemented."
135
+
136
+ 506:
137
+ name: UnsupportedVersion
138
+ http_code: 404
139
+ message: "Unsupported service version %s."
140
+
141
+ 507:
142
+ name: SdsError
143
+ http_code: 500
144
+ message: "Get error from serialization_data_server: '%s'"
145
+
146
+ 508:
147
+ name: SdsNotFound
148
+ http_code: 500
149
+ message: "No available active serialization data server"
150
+
151
+ 600:
152
+ name: AccountNotEnoughMemory
153
+ http_code: 403
154
+ message: "Not enough memory capacity, you're allowed: %s"
155
+
156
+ 601:
157
+ name: AccountAppsTooMany
158
+ http_code: 403
159
+ message: "Too many applications: %s, you're allowed: %s"
160
+
161
+ 602:
162
+ name: AccountAppTooManyUris
163
+ http_code: 403
164
+ message: "Too many URIs: %s, you're allowed: %s"
165
+
166
+ 700:
167
+ name: UriInvalid
168
+ http_code: 400
169
+ message: 'Invalid URI: "%s"'
170
+
171
+ 701:
172
+ name: UriAlreadyTaken
173
+ http_code: 400
174
+ message: 'The URI: "%s" has already been taken or reserved'
175
+
176
+ 702:
177
+ name: UriNotAllowed
178
+ http_code: 403
179
+ message: "External URIs are not enabled for this account"
180
+
181
+ 800:
182
+ name: StagingTimedOut
183
+ http_code: 500
184
+ message: "Timed out waiting for staging to complete"
185
+
186
+ 801:
187
+ name: StagingFailed
188
+ http_code: 500
189
+ message: "Staging failed"
@@ -0,0 +1,360 @@
1
+ 1000:
2
+ name: InvalidAuthToken
3
+ http_code: 401
4
+ message: "Invalid Auth Token"
5
+
6
+ 1001:
7
+ name: MessageParseError
8
+ http_code: 400
9
+ message: "Request invalid due to parse error: %s"
10
+
11
+ 1002:
12
+ name: InvalidRelation
13
+ http_code: 400
14
+ message: "Invalid relation: %s"
15
+
16
+ 10000:
17
+ name: NotFound
18
+ http_code: 404
19
+ message: "Unknown request"
20
+
21
+ 10001:
22
+ name: ServerError
23
+ http_code: 500
24
+ message: "Server error"
25
+
26
+ 10002:
27
+ name: NotAuthenticated
28
+ http_code: 401
29
+ message: "Authentication error"
30
+
31
+ 10003:
32
+ name: NotAuthorized
33
+ http_code: 403
34
+ message: "You are not authorized to perform the requested action"
35
+
36
+ 10004:
37
+ name: InvalidRequest
38
+ http_code: 400
39
+ message: "The request is invalid"
40
+
41
+ 10005:
42
+ name: BadQueryParameter
43
+ http_code: 400
44
+ message: "The query parameter is invalid: %s"
45
+
46
+ 20001:
47
+ name: UserInvalid
48
+ http_code: 400
49
+ message: "The user info is invalid: %s"
50
+
51
+ 20002:
52
+ name: UaaIdTaken
53
+ http_code: 400
54
+ message: "The UAA ID is taken: %s"
55
+
56
+ 20003:
57
+ name: UserNotFound
58
+ http_code: 404
59
+ message: "The user could not be found: %s"
60
+
61
+ 30001:
62
+ name: OrganizationInvalid
63
+ http_code: 400
64
+ message: "The organization info is invalid: %s"
65
+
66
+ 30002:
67
+ name: OrganizationNameTaken
68
+ http_code: 400
69
+ message: "The organization name is taken: %s"
70
+
71
+ 30003:
72
+ name: OrganizationNotFound
73
+ http_code: 404
74
+ message: "The organization could not be found: %s"
75
+
76
+ 40001:
77
+ name: SpaceInvalid
78
+ http_code: 400
79
+ message: "The app space info is invalid: %s"
80
+
81
+ 40002:
82
+ name: SpaceNameTaken
83
+ http_code: 400
84
+ message: "The app space name is taken: %s"
85
+
86
+ 40003:
87
+ name: SpaceUserNotInOrg
88
+ http_code: 400
89
+ message: "The app space and the user are not in the same org: %s"
90
+
91
+ 40004:
92
+ name: SpaceNotFound
93
+ http_code: 404
94
+ message: "The app space could not be found: %s"
95
+
96
+ 50001:
97
+ name: ServiceAuthTokenInvalid
98
+ http_code: 400
99
+ message: "The service auth token is invalid: %s"
100
+
101
+ 50002:
102
+ name: ServiceAuthTokenLabelTaken
103
+ http_code: 400
104
+ message: "The service auth token label is taken: %s"
105
+
106
+ 50003:
107
+ name: ServiceAuthTokenNotFound
108
+ http_code: 404
109
+ message: "The service auth token could not be found: %s"
110
+
111
+ 60001:
112
+ name: ServiceInstanceNameInvalid
113
+ http_code: 400
114
+ message: "The service instance name is taken: %s"
115
+
116
+ 60002:
117
+ name: ServiceInstanceNameTaken
118
+ http_code: 400
119
+ message: "The service instance name is taken: %s"
120
+
121
+ 60003:
122
+ name: ServiceInstanceServiceBindingWrongSpace
123
+ http_code: 400
124
+ message: "The service instance and the service binding are in different app spaces: %s"
125
+
126
+ 60003:
127
+ name: ServiceInstanceInvalid
128
+ http_code: 400
129
+ message: "The service instance is invalid: %s"
130
+
131
+ 60004:
132
+ name: ServiceInstanceNotFound
133
+ http_code: 404
134
+ message: "The service instance could not be found: %s"
135
+
136
+ 60005:
137
+ name: ServiceInstanceFreeQuotaExceeded
138
+ http_code: 400
139
+ message: "You have exceeded your organization's services limit. Please login to your account and upgrade."
140
+
141
+ 60006:
142
+ name: ServiceInstancePaidQuotaExceeded
143
+ http_code: 400
144
+ message: "You have exceeded your organization's services limit. Please file a support ticket to request additional resources."
145
+
146
+ 60007:
147
+ name: ServiceInstanceServicePlanNotAllowed
148
+ http_code: 400
149
+ message: "The service instance cannot be created because paid service plans are not allowed."
150
+
151
+ 70001:
152
+ name: RuntimeInvalid
153
+ http_code: 400
154
+ message: "The runtime is invalid: %s"
155
+
156
+ 70002:
157
+ name: RuntimeNameTaken
158
+ http_code: 400
159
+ message: "The runtime name is taken: %s"
160
+
161
+ 70003:
162
+ name: RuntimeNotFound
163
+ http_code: 404
164
+ message: "The runtime could not be found: %s"
165
+
166
+ 80001:
167
+ name: FrameworkInvalid
168
+ http_code: 400
169
+ message: "The framework is invalid: %s"
170
+
171
+ 80002:
172
+ name: FrameworkNameTaken
173
+ http_code: 400
174
+ message: "The framework name is taken: %s"
175
+
176
+ 80003:
177
+ name: FrameworkNotFound
178
+ http_code: 404
179
+ message: "The framework could not be found: %s"
180
+
181
+ 90001:
182
+ name: ServiceBindingInvalid
183
+ http_code: 400
184
+ message: "The service binding is invalid: %s"
185
+
186
+ 90002:
187
+ name: ServiceBindingDifferentSpaces
188
+ http_code: 400
189
+ message: "The app and the service are not in the same app space: %s"
190
+
191
+ 90003:
192
+ name: ServiceBindingAppServiceTaken
193
+ http_code: 400
194
+ message: "The app space binding to service is taken: %s"
195
+
196
+ 90004:
197
+ name: ServiceBindingNotFound
198
+ http_code: 404
199
+ message: "The service binding could not be found: %s"
200
+
201
+ 100001:
202
+ name: AppInvalid
203
+ http_code: 400
204
+ message: "The app is invalid: %s"
205
+
206
+ 100002:
207
+ name: AppNameTaken
208
+ http_code: 400
209
+ message: "The app name is taken: %s"
210
+
211
+ 100004:
212
+ name: AppNotFound
213
+ http_code: 404
214
+ message: "The app name could not be found: %s"
215
+
216
+ 100005:
217
+ name: AppMemoryQuotaExceeded
218
+ http_code: 400
219
+ message: "You have exceeded your organization's memory limit. Please login to your account and upgrade."
220
+
221
+ 110001:
222
+ name: ServicePlanInvalid
223
+ http_code: 400
224
+ message: "The service plan is invalid: %s"
225
+
226
+ 110002:
227
+ name: ServicePlanNameTaken
228
+ http_code: 400
229
+ message: "The service plan name is taken: %s"
230
+
231
+ 110003:
232
+ name: ServicePlanNotFound
233
+ http_code: 404
234
+ message: "The service plan could not be found: %s"
235
+
236
+ 120001:
237
+ name: ServiceInvalid
238
+ http_code: 400
239
+ message: "The service is invalid: %s"
240
+
241
+ 120002:
242
+ name: ServiceLabelTaken
243
+ http_code: 400
244
+ message: "The service lable is taken: %s"
245
+
246
+ 120003:
247
+ name: ServiceNotFound
248
+ http_code: 404
249
+ message: "The service could not be found: %s"
250
+
251
+ 130001:
252
+ name: DomainInvalid
253
+ http_code: 400
254
+ message: "The domain is invalid: %s"
255
+
256
+ 130002:
257
+ name: DomainNotFound
258
+ http_code: 404
259
+ message: "The domain could not be found: %s"
260
+
261
+ 130003:
262
+ name: DomainNameTaken
263
+ http_code: 400
264
+ message: "The domain name is taken: %s"
265
+
266
+ 140001:
267
+ name: LegacyApiWithoutDefaultSpace
268
+ http_code: 400
269
+ message: "A legacy api call requring a default app space was called, but no default app space is set for the user."
270
+
271
+ 150001:
272
+ name: AppPackageInvalid
273
+ http_code: 400
274
+ message: "The app package is invalid: %s"
275
+
276
+ 150002:
277
+ name: AppPackageNotFound
278
+ http_code: 404
279
+ message: "The app package could not be found: %s"
280
+
281
+ 160001:
282
+ name: AppBitsUploadInvalid
283
+ http_code: 400
284
+ message: "The app upload is invalid: %s"
285
+
286
+ 170001:
287
+ name: StagingError
288
+ http_code: 400
289
+ message: "Staging error: %s"
290
+
291
+ 180001:
292
+ name: SnapshotNotFound
293
+ http_code: 404
294
+ message: "Snapshot could not be found: %s"
295
+
296
+ 180002:
297
+ name: ServiceGatewayError
298
+ http_code: 503
299
+ message: "Service gateway internal error: %s"
300
+
301
+ 180003:
302
+ name: ServiceNotImplemented
303
+ http_code: 501
304
+ message: "Operation not supported for service"
305
+
306
+ 180004:
307
+ name: SDSNotAvailable
308
+ http_code: 501
309
+ message: "No serialization service backends available"
310
+
311
+ 190001:
312
+ name: FileError
313
+ http_code: 400
314
+ message: "File error: %s"
315
+
316
+ 200001:
317
+ name: StatsError
318
+ http_code: 400
319
+ message: "Stats error: %s"
320
+
321
+ 210001:
322
+ name: RouteInvalid
323
+ http_code: 400
324
+ message: "The route is invalid: %s"
325
+
326
+ 210002:
327
+ name: RouteNotFound
328
+ http_code: 404
329
+ message: "The route could not be found: %s"
330
+
331
+ 210003:
332
+ name: RouteHostTaken
333
+ http_code: 400
334
+ message: "The host is taken: %s"
335
+
336
+ 220001:
337
+ name: InstancesError
338
+ http_code: 400
339
+ message: "Instances error: %s"
340
+
341
+ 230001:
342
+ name: BillingEventQueryInvalid
343
+ http_code: 400
344
+ message: "Billing event query start_date and/or end_date are missing or invalid"
345
+
346
+ 240001:
347
+ name: QuotaDefinitionNotFound
348
+ http_code: 404
349
+ message: "Quota Definition could not be found: %s"
350
+
351
+ 240002:
352
+ name: QuotaDefinitionNameTaken
353
+ http_code: 400
354
+ message: "Quota Definition is taken: %s"
355
+
356
+ 240003:
357
+ name: QuotaDefinitionInvalid
358
+ http_code: 400
359
+ message: "Quota Definition is invalid: %s"
360
+