ncfoundry 4.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.gitmodules +3 -0
  4. data/.rspec +2 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +11 -0
  8. data/Checkfile +2 -0
  9. data/Gemfile +3 -0
  10. data/LICENSE +987 -0
  11. data/NOTICE +10 -0
  12. data/README.md +9 -0
  13. data/Rakefile +14 -0
  14. data/VERSION +1 -0
  15. data/cfoundry.gemspec +41 -0
  16. data/config/locales/en.yml +168 -0
  17. data/lib/cc_api_stub/app_usage_events.rb +11 -0
  18. data/lib/cc_api_stub/applications.rb +57 -0
  19. data/lib/cc_api_stub/domains.rb +32 -0
  20. data/lib/cc_api_stub/events.rb +11 -0
  21. data/lib/cc_api_stub/frameworks.rb +22 -0
  22. data/lib/cc_api_stub/helper.rb +148 -0
  23. data/lib/cc_api_stub/login.rb +21 -0
  24. data/lib/cc_api_stub/organization_users.rb +27 -0
  25. data/lib/cc_api_stub/organizations.rb +82 -0
  26. data/lib/cc_api_stub/routes.rb +26 -0
  27. data/lib/cc_api_stub/runtimes.rb +22 -0
  28. data/lib/cc_api_stub/service_bindings.rb +22 -0
  29. data/lib/cc_api_stub/service_instances.rb +22 -0
  30. data/lib/cc_api_stub/services.rb +21 -0
  31. data/lib/cc_api_stub/space_users.rb +27 -0
  32. data/lib/cc_api_stub/spaces.rb +58 -0
  33. data/lib/cc_api_stub/users.rb +85 -0
  34. data/lib/cc_api_stub.rb +20 -0
  35. data/lib/cfoundry/auth_token.rb +62 -0
  36. data/lib/cfoundry/baseclient.rb +220 -0
  37. data/lib/cfoundry/chatty_hash.rb +46 -0
  38. data/lib/cfoundry/client.rb +42 -0
  39. data/lib/cfoundry/concerns/login_helpers.rb +14 -0
  40. data/lib/cfoundry/concerns/proxy_options.rb +14 -0
  41. data/lib/cfoundry/errors.rb +163 -0
  42. data/lib/cfoundry/rest_client.rb +316 -0
  43. data/lib/cfoundry/test_support.rb +3 -0
  44. data/lib/cfoundry/trace_helpers.rb +64 -0
  45. data/lib/cfoundry/uaaclient.rb +151 -0
  46. data/lib/cfoundry/upload_helpers.rb +222 -0
  47. data/lib/cfoundry/v2/app.rb +313 -0
  48. data/lib/cfoundry/v2/app_event.rb +13 -0
  49. data/lib/cfoundry/v2/app_instance.rb +74 -0
  50. data/lib/cfoundry/v2/app_usage_event.rb +14 -0
  51. data/lib/cfoundry/v2/base.rb +112 -0
  52. data/lib/cfoundry/v2/client.rb +104 -0
  53. data/lib/cfoundry/v2/domain.rb +20 -0
  54. data/lib/cfoundry/v2/event.rb +17 -0
  55. data/lib/cfoundry/v2/helper.rb +11 -0
  56. data/lib/cfoundry/v2/managed_service_instance.rb +13 -0
  57. data/lib/cfoundry/v2/model.rb +213 -0
  58. data/lib/cfoundry/v2/model_magic/attribute.rb +49 -0
  59. data/lib/cfoundry/v2/model_magic/client_extensions.rb +170 -0
  60. data/lib/cfoundry/v2/model_magic/has_summary.rb +49 -0
  61. data/lib/cfoundry/v2/model_magic/query_multi_value_helper.rb +21 -0
  62. data/lib/cfoundry/v2/model_magic/query_value_helper.rb +33 -0
  63. data/lib/cfoundry/v2/model_magic/queryable_by.rb +39 -0
  64. data/lib/cfoundry/v2/model_magic/to_many.rb +145 -0
  65. data/lib/cfoundry/v2/model_magic/to_one.rb +81 -0
  66. data/lib/cfoundry/v2/model_magic.rb +134 -0
  67. data/lib/cfoundry/v2/organization.rb +44 -0
  68. data/lib/cfoundry/v2/quota_definition.rb +12 -0
  69. data/lib/cfoundry/v2/route.rb +25 -0
  70. data/lib/cfoundry/v2/service.rb +22 -0
  71. data/lib/cfoundry/v2/service_auth_token.rb +9 -0
  72. data/lib/cfoundry/v2/service_binding.rb +10 -0
  73. data/lib/cfoundry/v2/service_broker.rb +12 -0
  74. data/lib/cfoundry/v2/service_instance.rb +14 -0
  75. data/lib/cfoundry/v2/service_plan.rb +16 -0
  76. data/lib/cfoundry/v2/space.rb +31 -0
  77. data/lib/cfoundry/v2/stack.rb +10 -0
  78. data/lib/cfoundry/v2/user.rb +97 -0
  79. data/lib/cfoundry/v2/user_provided_service_instance.rb +16 -0
  80. data/lib/cfoundry/validator.rb +41 -0
  81. data/lib/cfoundry/version.rb +4 -0
  82. data/lib/cfoundry/zip.rb +56 -0
  83. data/lib/cfoundry.rb +6 -0
  84. data/release_notes/release_1_5_3.md +177 -0
  85. data/release_notes/release_2.3.1.md +14 -0
  86. data/release_notes/release_2.3.3.md +38 -0
  87. data/release_notes/release_2.3.4.md +16 -0
  88. data/release_notes/release_2.3.5.md +14 -0
  89. data/release_notes/release_2.3.6.md +14 -0
  90. data/release_notes/release_2.3.6.rc1.md +29 -0
  91. data/release_notes/release_2.3.6.rc2.md +19 -0
  92. data/release_notes/release_2.3.7.rc1.md +14 -0
  93. data/release_notes/release_2.4.0.md +41 -0
  94. data/release_notes/release_2.4.1.rc1.md +58 -0
  95. data/release_notes/release_3.0.0.md +21 -0
  96. data/release_notes/release_3.0.1.md +16 -0
  97. data/release_notes/release_3.0.2.rc1.md +19 -0
  98. data/release_notes/release_4.0.0.md +19 -0
  99. data/release_notes/release_4.0.1.md +14 -0
  100. data/release_notes/release_4.0.2.rc1.md +14 -0
  101. data/release_notes/release_4.0.2.rc2.md +11 -0
  102. data/release_notes/release_4.0.2.rc3.md +11 -0
  103. data/release_notes/release_4.0.2.rc4.md +19 -0
  104. data/release_notes/release_4.0.2.rc5.md +14 -0
  105. data/release_notes/release_4.0.3.md +19 -0
  106. data/release_notes/release_4.0.4.rc1.md +14 -0
  107. data/release_notes/release_4.0.4.rc2.md +14 -0
  108. data/release_notes/release_4.1.0.md +19 -0
  109. data/release_notes/release_4.2.0.rc.md +24 -0
  110. data/release_notes/release_4.3.0.md +22 -0
  111. data/release_notes/release_4.3.1.md +14 -0
  112. data/release_notes/release_4.3.10.md +14 -0
  113. data/release_notes/release_4.3.11.md +14 -0
  114. data/release_notes/release_4.3.12.md +14 -0
  115. data/release_notes/release_4.3.2.rc1.md +21 -0
  116. data/release_notes/release_4.3.3.md +24 -0
  117. data/release_notes/release_4.3.4.md +11 -0
  118. data/release_notes/release_4.3.4.rc1.md +24 -0
  119. data/release_notes/release_4.3.5.md +36 -0
  120. data/release_notes/release_4.3.5.rc1.md +21 -0
  121. data/release_notes/release_4.3.6.md +14 -0
  122. data/release_notes/release_4.3.7.md +50 -0
  123. data/release_notes/release_4.3.8.md +19 -0
  124. data/release_notes/release_4.3.9.md +14 -0
  125. data/release_notes/release_4.4.0.md +16 -0
  126. data/release_notes/release_4.5.1.md +11 -0
  127. data/release_notes/release_4.5.2.md +14 -0
  128. data/release_notes/release_4.5.3.md +29 -0
  129. data/release_notes/release_4.6.0.md +24 -0
  130. data/release_notes/release_4.6.1.md +14 -0
  131. data/release_notes/release_4.6.2.md +16 -0
  132. data/release_notes/release_4.6.3.rc1.md +14 -0
  133. data/release_notes/release_4.6.3.rc2.md +14 -0
  134. data/release_notes/release_4.6.3.rc3.md +17 -0
  135. data/release_notes/release_4.7.0.md +11 -0
  136. data/release_notes/release_4.7.1.md +14 -0
  137. data/release_notes/release_4.7.1.rc.1.md +14 -0
  138. data/release_notes/release_4.7.1.rc1.md +19 -0
  139. data/script/gpp +3 -0
  140. data/spec/cc_api_stub/app_usage_events_spec.rb +12 -0
  141. data/spec/cc_api_stub/applications_spec.rb +69 -0
  142. data/spec/cc_api_stub/domains_spec.rb +40 -0
  143. data/spec/cc_api_stub/events_spec.rb +12 -0
  144. data/spec/cc_api_stub/frameworks_spec.rb +19 -0
  145. data/spec/cc_api_stub/login_spec.rb +20 -0
  146. data/spec/cc_api_stub/organization_users_spec.rb +35 -0
  147. data/spec/cc_api_stub/organizations_spec.rb +118 -0
  148. data/spec/cc_api_stub/routes_spec.rb +19 -0
  149. data/spec/cc_api_stub/runtimes_spec.rb +19 -0
  150. data/spec/cc_api_stub/service_bindings_spec.rb +13 -0
  151. data/spec/cc_api_stub/service_instances_spec.rb +19 -0
  152. data/spec/cc_api_stub/services_spec.rb +11 -0
  153. data/spec/cc_api_stub/space_users_spec.rb +35 -0
  154. data/spec/cc_api_stub/spaces_spec.rb +38 -0
  155. data/spec/cc_api_stub/users_spec.rb +107 -0
  156. data/spec/cfoundry/auth_token_spec.rb +153 -0
  157. data/spec/cfoundry/baseclient_spec.rb +284 -0
  158. data/spec/cfoundry/client_spec.rb +13 -0
  159. data/spec/cfoundry/errors_spec.rb +117 -0
  160. data/spec/cfoundry/rest_client_spec.rb +367 -0
  161. data/spec/cfoundry/trace_helpers_spec.rb +91 -0
  162. data/spec/cfoundry/uaaclient_spec.rb +421 -0
  163. data/spec/cfoundry/upload_helpers_spec.rb +182 -0
  164. data/spec/cfoundry/v2/app_event_spec.rb +97 -0
  165. data/spec/cfoundry/v2/app_instance_spec.rb +31 -0
  166. data/spec/cfoundry/v2/app_spec.rb +354 -0
  167. data/spec/cfoundry/v2/app_usage_event_spec.rb +15 -0
  168. data/spec/cfoundry/v2/base_spec.rb +375 -0
  169. data/spec/cfoundry/v2/client_spec.rb +121 -0
  170. data/spec/cfoundry/v2/domain_spec.rb +63 -0
  171. data/spec/cfoundry/v2/event_spec.rb +15 -0
  172. data/spec/cfoundry/v2/managed_service_instance_spec.rb +149 -0
  173. data/spec/cfoundry/v2/model_magic/attribute_spec.rb +123 -0
  174. data/spec/cfoundry/v2/model_magic/has_summary_spec.rb +17 -0
  175. data/spec/cfoundry/v2/model_magic/to_many_spec.rb +53 -0
  176. data/spec/cfoundry/v2/model_magic/to_one_spec.rb +106 -0
  177. data/spec/cfoundry/v2/model_magic_spec.rb +43 -0
  178. data/spec/cfoundry/v2/model_spec.rb +472 -0
  179. data/spec/cfoundry/v2/organization_spec.rb +282 -0
  180. data/spec/cfoundry/v2/quota_definition_spec.rb +50 -0
  181. data/spec/cfoundry/v2/route_spec.rb +42 -0
  182. data/spec/cfoundry/v2/service_plan_spec.rb +53 -0
  183. data/spec/cfoundry/v2/service_spec.rb +58 -0
  184. data/spec/cfoundry/v2/space_spec.rb +160 -0
  185. data/spec/cfoundry/v2/user_provided_service_instance_spec.rb +57 -0
  186. data/spec/cfoundry/v2/user_spec.rb +206 -0
  187. data/spec/cfoundry/validator_spec.rb +94 -0
  188. data/spec/factories/app_events_factory.rb +7 -0
  189. data/spec/factories/app_usage_events_factory.rb +32 -0
  190. data/spec/factories/apps_factory.rb +11 -0
  191. data/spec/factories/clients_factory.rb +7 -0
  192. data/spec/factories/domains_factory.rb +10 -0
  193. data/spec/factories/events_factory.rb +50 -0
  194. data/spec/factories/organizations_factory.rb +12 -0
  195. data/spec/factories/quota_definitions_factory.rb +8 -0
  196. data/spec/factories/routes_factory.rb +10 -0
  197. data/spec/factories/service_instances_factory.rb +10 -0
  198. data/spec/factories/service_plans_factory.rb +10 -0
  199. data/spec/factories/services_factory.rb +10 -0
  200. data/spec/factories/spaces_factory.rb +10 -0
  201. data/spec/factories/user_provided_service_instances_factory.rb +10 -0
  202. data/spec/factories/users_factory.rb +10 -0
  203. data/spec/fixtures/apps/with_cfignore/.cfignore +4 -0
  204. data/spec/fixtures/apps/with_cfignore/.hidden_file +1 -0
  205. data/spec/fixtures/apps/with_cfignore/ambiguous_ignored +0 -0
  206. data/spec/fixtures/apps/with_cfignore/ignored_dir/file_in_ignored_dir.txt +1 -0
  207. data/spec/fixtures/apps/with_cfignore/ignored_file.txt +1 -0
  208. data/spec/fixtures/apps/with_cfignore/non_ignored_dir/file_in_non_ignored_dir.txt +1 -0
  209. data/spec/fixtures/apps/with_cfignore/non_ignored_dir/ignored_file.txt +1 -0
  210. data/spec/fixtures/apps/with_cfignore/non_ignored_dir/toplevel_ignored.txt +0 -0
  211. data/spec/fixtures/apps/with_cfignore/non_ignored_file.txt +1 -0
  212. data/spec/fixtures/apps/with_cfignore/toplevel_ignored.txt +0 -0
  213. data/spec/fixtures/apps/with_dotfiles/.dotfile +1 -0
  214. data/spec/fixtures/apps/with_dotfiles/xyz +1 -0
  215. data/spec/fixtures/apps/with_external_symlink/foo +1 -0
  216. data/spec/fixtures/apps/with_ignored_external_symlink/.cfignore +1 -0
  217. data/spec/fixtures/apps/with_ignored_external_symlink/foo +1 -0
  218. data/spec/fixtures/apps/with_nested_directories/foo/bar/baz/fizz +0 -0
  219. data/spec/fixtures/apps/with_nested_directories/xyz +0 -0
  220. data/spec/fixtures/empty_file +0 -0
  221. data/spec/fixtures/fake_cc_app_usage_events.json +152 -0
  222. data/spec/fixtures/fake_cc_application.json +20 -0
  223. data/spec/fixtures/fake_cc_application_summary.json +56 -0
  224. data/spec/fixtures/fake_cc_created_application.json +11 -0
  225. data/spec/fixtures/fake_cc_created_domain.json +15 -0
  226. data/spec/fixtures/fake_cc_created_organization.json +11 -0
  227. data/spec/fixtures/fake_cc_created_route.json +13 -0
  228. data/spec/fixtures/fake_cc_created_service_instance.json +11 -0
  229. data/spec/fixtures/fake_cc_created_space.json +11 -0
  230. data/spec/fixtures/fake_cc_created_user.json +11 -0
  231. data/spec/fixtures/fake_cc_domain.json +55 -0
  232. data/spec/fixtures/fake_cc_domain_spaces.json +27 -0
  233. data/spec/fixtures/fake_cc_empty_search.json +7 -0
  234. data/spec/fixtures/fake_cc_events.json +419 -0
  235. data/spec/fixtures/fake_cc_frameworks.json +20 -0
  236. data/spec/fixtures/fake_cc_managed_service_instance.json +83 -0
  237. data/spec/fixtures/fake_cc_organization.json +161 -0
  238. data/spec/fixtures/fake_cc_organization_domains.json +59 -0
  239. data/spec/fixtures/fake_cc_organization_search.json +37 -0
  240. data/spec/fixtures/fake_cc_organization_spaces.json +99 -0
  241. data/spec/fixtures/fake_cc_organization_summary.json +20 -0
  242. data/spec/fixtures/fake_cc_organization_users.json +81 -0
  243. data/spec/fixtures/fake_cc_route.json +16 -0
  244. data/spec/fixtures/fake_cc_runtimes.json +20 -0
  245. data/spec/fixtures/fake_cc_service_binding.json +22 -0
  246. data/spec/fixtures/fake_cc_service_bindings.json +24 -0
  247. data/spec/fixtures/fake_cc_service_instance.json +83 -0
  248. data/spec/fixtures/fake_cc_service_instances.json +72 -0
  249. data/spec/fixtures/fake_cc_services.json +160 -0
  250. data/spec/fixtures/fake_cc_space.json +45 -0
  251. data/spec/fixtures/fake_cc_space_apps.json +49 -0
  252. data/spec/fixtures/fake_cc_space_summary.json +84 -0
  253. data/spec/fixtures/fake_cc_spaces.json +92 -0
  254. data/spec/fixtures/fake_cc_stats.json +29 -0
  255. data/spec/fixtures/fake_cc_user.json +139 -0
  256. data/spec/fixtures/fake_cc_user_organizations.json +92 -0
  257. data/spec/fixtures/fake_cc_user_provided_service_instance.json +51 -0
  258. data/spec/fixtures/fake_cc_user_with_managers.json +85 -0
  259. data/spec/integration/client_spec.rb +38 -0
  260. data/spec/spec_helper.rb +22 -0
  261. data/spec/support/factory_girl.rb +6 -0
  262. data/spec/support/shared_examples/cc_api_stub_request_examples.rb +79 -0
  263. data/spec/support/shared_examples/client_login_examples.rb +46 -0
  264. data/spec/support/shared_examples/model_summary_examples.rb +34 -0
  265. data/spec/support/test_model_builder.rb +10 -0
  266. data/vendor/errors/v1.yml +189 -0
  267. data/vendor/errors/v2.yml +845 -0
  268. metadata +712 -0
@@ -0,0 +1,845 @@
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
+ 10006:
47
+ name: AssociationNotEmpty
48
+ http_code: 400
49
+ message: "Please delete the %s associations for your %s."
50
+
51
+ 10007:
52
+ name: InsufficientScope
53
+ http_code: 403
54
+ message: "Your token lacks the necessary scopes to access this resource."
55
+
56
+ 10008:
57
+ name: UnprocessableEntity
58
+ http_code: 422
59
+ message: "The request is semantically invalid: %s"
60
+
61
+ 10009:
62
+ name: UnableToPerform
63
+ http_code: 400
64
+ message: "%s could not be completed: %s"
65
+
66
+ 10010:
67
+ name: ResourceNotFound
68
+ http_code: 404
69
+ message: "%s"
70
+
71
+ 10011:
72
+ name: DatabaseError
73
+ http_code: 500
74
+ message: "Database error"
75
+
76
+ 20001:
77
+ name: UserInvalid
78
+ http_code: 400
79
+ message: "The user info is invalid: %s"
80
+
81
+ 20002:
82
+ name: UaaIdTaken
83
+ http_code: 400
84
+ message: "The UAA ID is taken: %s"
85
+
86
+ 20003:
87
+ name: UserNotFound
88
+ http_code: 404
89
+ message: "The user could not be found: %s"
90
+
91
+ 30001:
92
+ name: OrganizationInvalid
93
+ http_code: 400
94
+ message: "The organization info is invalid: %s"
95
+
96
+ 30002:
97
+ name: OrganizationNameTaken
98
+ http_code: 400
99
+ message: "The organization name is taken: %s"
100
+
101
+ 30003:
102
+ name: OrganizationNotFound
103
+ http_code: 404
104
+ message: "The organization could not be found: %s"
105
+
106
+ 40001:
107
+ name: SpaceInvalid
108
+ http_code: 400
109
+ message: "The app space info is invalid: %s"
110
+
111
+ 40002:
112
+ name: SpaceNameTaken
113
+ http_code: 400
114
+ message: "The app space name is taken: %s"
115
+
116
+ 40003:
117
+ name: SpaceUserNotInOrg
118
+ http_code: 400
119
+ message: "The app space and the user are not in the same org: %s"
120
+
121
+ 40004:
122
+ name: SpaceNotFound
123
+ http_code: 404
124
+ message: "The app space could not be found: %s"
125
+
126
+ 50001:
127
+ name: ServiceAuthTokenInvalid
128
+ http_code: 400
129
+ message: "The service auth token is invalid: %s"
130
+
131
+ 50002:
132
+ name: ServiceAuthTokenLabelTaken
133
+ http_code: 400
134
+ message: "The service auth token label is taken: %s"
135
+
136
+ 50003:
137
+ name: ServiceAuthTokenNotFound
138
+ http_code: 404
139
+ message: "The service auth token could not be found: %s"
140
+
141
+ 50004:
142
+ name: MissingServiceAuthToken
143
+ http_code: 500
144
+ message: "Missing service auth token: %s"
145
+
146
+ 60001:
147
+ name: ServiceInstanceNameEmpty
148
+ http_code: 400
149
+ message: "Service instance name is required."
150
+
151
+ 60002:
152
+ name: ServiceInstanceNameTaken
153
+ http_code: 400
154
+ message: "The service instance name is taken: %s"
155
+
156
+ 60003:
157
+ name: ServiceInstanceServiceBindingWrongSpace
158
+ http_code: 400
159
+ message: "The service instance and the service binding are in different app spaces: %s"
160
+
161
+ 60003:
162
+ name: ServiceInstanceInvalid
163
+ http_code: 400
164
+ message: "The service instance is invalid: %s"
165
+
166
+ 60004:
167
+ name: ServiceInstanceNotFound
168
+ http_code: 404
169
+ message: "The service instance could not be found: %s"
170
+
171
+ 60005:
172
+ name: ServiceInstanceQuotaExceeded
173
+ http_code: 400
174
+ message: "You have exceeded your organization's services limit."
175
+
176
+ 60006:
177
+ name: PreviouslyUsedAs_ServiceInstancePaidQuotaExceeded
178
+ http_code: 400
179
+ message: "You have exceeded your organization's services limit."
180
+
181
+ 60007:
182
+ name: ServiceInstanceServicePlanNotAllowed
183
+ http_code: 400
184
+ message: "The service instance cannot be created because paid service plans are not allowed."
185
+
186
+ 60008:
187
+ name: ServiceInstanceDuplicateNotAllowed
188
+ http_code: 400
189
+ message: "An instance of this service is already present in this space. Some services only support one instance per space."
190
+
191
+ 60009:
192
+ name: ServiceInstanceNameTooLong
193
+ http_code: 400
194
+ message: "You have requested an invalid service instance name. Names are limited to 50 characters."
195
+
196
+ 60010:
197
+ name: ServiceInstanceOrganizationNotAuthorized
198
+ http_code: 403
199
+ message: A service instance for the selected plan cannot be created in this organization. The plan is visible because another organization you belong to has access to it.
200
+
201
+ 60011:
202
+ name: ServiceInstanceDeprovisionFailed
203
+ http_code: 409
204
+ message: "The service broker reported an error during deprovisioning: %s"
205
+
206
+ 60012:
207
+ name: ServiceInstanceSpaceQuotaExceeded
208
+ http_code: 400
209
+ message: "You have exceeded your space's services limit."
210
+
211
+ 60013:
212
+ name: ServiceInstanceServicePlanNotAllowedBySpaceQuota
213
+ http_code: 400
214
+ message: "The service instance cannot be created because paid service plans are not allowed for your space."
215
+
216
+ 60014:
217
+ name: ServiceInstanceSpaceChangeNotAllowed
218
+ http_code: 400
219
+ message: "Cannot update space for service instance."
220
+
221
+ 60015:
222
+ name: ServiceInstanceTagsTooLong
223
+ http_code: 400
224
+ message: "Combined length of tags must be 255 characters or less."
225
+
226
+ 60016:
227
+ name: AsyncServiceInstanceOperationInProgress
228
+ http_code: 409
229
+ message: "An operation for service instance %s is in progress."
230
+
231
+ 70001:
232
+ name: RuntimeInvalid
233
+ http_code: 400
234
+ message: "The runtime is invalid: %s"
235
+
236
+ 70002:
237
+ name: RuntimeNameTaken
238
+ http_code: 400
239
+ message: "The runtime name is taken: %s"
240
+
241
+ 70003:
242
+ name: RuntimeNotFound
243
+ http_code: 404
244
+ message: "The runtime could not be found: %s"
245
+
246
+ 80001:
247
+ name: FrameworkInvalid
248
+ http_code: 400
249
+ message: "The framework is invalid: %s"
250
+
251
+ 80002:
252
+ name: FrameworkNameTaken
253
+ http_code: 400
254
+ message: "The framework name is taken: %s"
255
+
256
+ 80003:
257
+ name: FrameworkNotFound
258
+ http_code: 404
259
+ message: "The framework could not be found: %s"
260
+
261
+ 90001:
262
+ name: ServiceBindingInvalid
263
+ http_code: 400
264
+ message: "The service binding is invalid: %s"
265
+
266
+ 90002:
267
+ name: ServiceBindingDifferentSpaces
268
+ http_code: 400
269
+ message: "The app and the service are not in the same app space: %s"
270
+
271
+ 90003:
272
+ name: ServiceBindingAppServiceTaken
273
+ http_code: 400
274
+ message: "The app space binding to service is taken: %s"
275
+
276
+ 90004:
277
+ name: ServiceBindingNotFound
278
+ http_code: 404
279
+ message: "The service binding could not be found: %s"
280
+
281
+ 90005:
282
+ name: UnbindableService
283
+ http_code: 400
284
+ message: "The service doesn't support binding."
285
+
286
+ 90006:
287
+ name: InvalidLoggingServiceBinding
288
+ http_code: 502
289
+ message: "The service is attempting to stream logs from your application, but is not registered as a logging service. Please contact the service provider."
290
+
291
+ 100001:
292
+ name: AppInvalid
293
+ http_code: 400
294
+ message: "The app is invalid: %s"
295
+
296
+ 100002:
297
+ name: AppNameTaken
298
+ http_code: 400
299
+ message: "The app name is taken: %s"
300
+
301
+ 100004:
302
+ name: AppNotFound
303
+ http_code: 404
304
+ message: "The app could not be found: %s"
305
+
306
+ 100005:
307
+ name: AppMemoryQuotaExceeded
308
+ http_code: 400
309
+ message: "You have exceeded your organization's memory limit."
310
+
311
+ 100006:
312
+ name: AppMemoryInvalid
313
+ http_code: 400
314
+ message: "You have specified an invalid amount of memory for your application."
315
+
316
+ 100007:
317
+ name: QuotaInstanceMemoryLimitExceeded
318
+ http_code: 400
319
+ message: "You have exceeded the instance memory limit for your organization's quota."
320
+
321
+ 110001:
322
+ name: ServicePlanInvalid
323
+ http_code: 400
324
+ message: "The service plan is invalid: %s"
325
+
326
+ 110002:
327
+ name: ServicePlanNameTaken
328
+ http_code: 400
329
+ message: "The service plan name is taken: %s"
330
+
331
+ 110003:
332
+ name: ServicePlanNotFound
333
+ http_code: 404
334
+ message: "The service plan could not be found: %s"
335
+
336
+ 110004:
337
+ name: ServicePlanNotUpdateable
338
+ http_code: 400
339
+ message: "The service does not support changing plans."
340
+
341
+ 120001:
342
+ name: ServiceInvalid
343
+ http_code: 400
344
+ message: "The service is invalid: %s"
345
+
346
+ 120002:
347
+ name: ServiceLabelTaken
348
+ http_code: 400
349
+ message: "The service label is taken: %s"
350
+
351
+ 120003:
352
+ name: ServiceNotFound
353
+ http_code: 404
354
+ message: "The service could not be found: %s"
355
+
356
+ 130001:
357
+ name: DomainInvalid
358
+ http_code: 400
359
+ message: "The domain is invalid: %s"
360
+
361
+ 130002:
362
+ name: DomainNotFound
363
+ http_code: 404
364
+ message: "The domain could not be found: %s"
365
+
366
+ 130003:
367
+ name: DomainNameTaken
368
+ http_code: 400
369
+ message: "The domain name is taken: %s"
370
+
371
+ 130004:
372
+ name: PathInvalid
373
+ http_code: 400
374
+ message: "The path is invalid: %s"
375
+
376
+ 130005:
377
+ name: TotalPrivateDomainsExceeded
378
+ http_code: 400
379
+ message: "The number of private domains exceeds the quota for organization: %s"
380
+
381
+ 140001:
382
+ name: LegacyApiWithoutDefaultSpace
383
+ http_code: 400
384
+ message: "A legacy api call requiring a default app space was called, but no default app space is set for the user."
385
+
386
+ 150001:
387
+ name: AppPackageInvalid
388
+ http_code: 400
389
+ message: "The app package is invalid: %s"
390
+
391
+ 150002:
392
+ name: AppPackageNotFound
393
+ http_code: 404
394
+ message: "The app package could not be found: %s"
395
+
396
+ 150003:
397
+ name: InsufficientRunningResourcesAvailable
398
+ http_code: 503
399
+ message: "One or more instances could not be started because of insufficient running resources."
400
+
401
+ 150004:
402
+ name: PackageBitsAlreadyUploaded
403
+ http_code: 400
404
+ message: "Bits may be uploaded only once. Create a new package to upload different bits."
405
+
406
+ 150005:
407
+ name: BlobstoreNotLocal
408
+ http_code: 400
409
+ message: "Downloading blobs can only be done directly to the blobstore."
410
+
411
+ 160001:
412
+ name: AppBitsUploadInvalid
413
+ http_code: 400
414
+ message: "The app upload is invalid: %s"
415
+
416
+ 160002:
417
+ name: AppBitsCopyInvalid
418
+ http_code: 400
419
+ message: "The app copy is invalid: %s"
420
+
421
+ 170001:
422
+ name: StagingError
423
+ http_code: 400
424
+ message: "Staging error: %s"
425
+
426
+ 170002:
427
+ name: NotStaged
428
+ http_code: 400
429
+ message: "App has not finished staging"
430
+
431
+ 170003:
432
+ name: NoAppDetectedError
433
+ http_code: 400
434
+ message: "An app was not successfully detected by any available buildpack"
435
+
436
+ 170004:
437
+ name: BuildpackCompileFailed
438
+ http_code: 400
439
+ message: "App staging failed in the buildpack compile phase"
440
+
441
+ 170005:
442
+ name: BuildpackReleaseFailed
443
+ http_code: 400
444
+ message: "App staging failed in the buildpack release phase"
445
+
446
+ 170006:
447
+ name: NoBuildpacksFound
448
+ http_code: 400
449
+ message: "There are no buildpacks available"
450
+
451
+ 170007:
452
+ name: StagingTimeExpired
453
+ http_code: 504
454
+ message: "Staging time expired: %s"
455
+
456
+ 170008:
457
+ name: InsufficientResources
458
+ http_code: 400
459
+ message: "Insufficient resources"
460
+
461
+ 170009:
462
+ name: NoCompatibleCell
463
+ http_code: 400
464
+ message: "Found no compatible cell"
465
+
466
+ 170010:
467
+ name: StagerUnavailable
468
+ http_code: 503
469
+ message: "Stager is unavailable: %s"
470
+
471
+ 170011:
472
+ name: StagerError
473
+ http_code: 500
474
+ message: "Stager error: %s"
475
+
476
+ 170015:
477
+ name: RunnerUnavailable
478
+ http_code: 503
479
+ message: "Runner is unavailable: %s"
480
+
481
+ 170016:
482
+ name: RunnerError
483
+ http_code: 500
484
+ message: "Runner error: %s"
485
+
486
+ 180001:
487
+ name: SnapshotNotFound
488
+ http_code: 404
489
+ message: "Snapshot could not be found: %s"
490
+
491
+ 180002:
492
+ name: ServiceGatewayError
493
+ http_code: 503
494
+ message: "Service gateway internal error: %s"
495
+
496
+ 180003:
497
+ name: ServiceNotImplemented
498
+ http_code: 501
499
+ message: "Operation not supported for service"
500
+
501
+ 180004:
502
+ name: SDSNotAvailable
503
+ http_code: 501
504
+ message: "No serialization service backends available"
505
+
506
+ 190001:
507
+ name: FileError
508
+ http_code: 400
509
+ message: "File error: %s"
510
+
511
+ 200001:
512
+ name: StatsError
513
+ http_code: 400
514
+ message: "Stats error: %s"
515
+
516
+ 200002:
517
+ name: StatsUnavailable
518
+ http_code: 503
519
+ message: "Stats unavailable: %s"
520
+
521
+ 200003:
522
+ name: AppStoppedStatsError
523
+ http_code: 400
524
+ message: "Could not fetch stats for stopped app: %s"
525
+
526
+ 210001:
527
+ name: RouteInvalid
528
+ http_code: 400
529
+ message: "The route is invalid: %s"
530
+
531
+ 210002:
532
+ name: RouteNotFound
533
+ http_code: 404
534
+ message: "The route could not be found: %s"
535
+
536
+ 210003:
537
+ name: RouteHostTaken
538
+ http_code: 400
539
+ message: "The host is taken: %s"
540
+
541
+ 210004:
542
+ name: RoutePathTaken
543
+ http_code: 400
544
+ message: "The path is taken: %s"
545
+
546
+ 220001:
547
+ name: InstancesError
548
+ http_code: 400
549
+ message: "Instances error: %s"
550
+
551
+ 220002:
552
+ name: InstancesUnavailable
553
+ http_code: 503
554
+ message: "Instances information unavailable: %s"
555
+
556
+ 230001:
557
+ name: BillingEventQueryInvalid
558
+ http_code: 400
559
+ message: "Billing event query start_date and/or end_date are missing or invalid"
560
+
561
+ 230002:
562
+ name: EventNotFound
563
+ http_code: 404
564
+ message: "Event could not be found: %s"
565
+
566
+ 240001:
567
+ name: QuotaDefinitionNotFound
568
+ http_code: 404
569
+ message: "Quota Definition could not be found: %s"
570
+
571
+ 240002:
572
+ name: QuotaDefinitionNameTaken
573
+ http_code: 400
574
+ message: "Quota Definition is taken: %s"
575
+
576
+ 240003:
577
+ name: QuotaDefinitionInvalid
578
+ http_code: 400
579
+ message: "Quota Definition is invalid: %s"
580
+
581
+ 240004:
582
+ name: QuotaDefinitionMemoryLimitNegative
583
+ http_code: 400
584
+ message: "Quota Definition memory limit cannot be negative"
585
+
586
+ 250001:
587
+ name: StackInvalid
588
+ http_code: 400
589
+ message: "The stack is invalid: %s"
590
+
591
+ 250002:
592
+ name: StackNameTaken
593
+ http_code: 400
594
+ message: "The stack name is taken: %s"
595
+
596
+ 250003:
597
+ name: StackNotFound
598
+ http_code: 404
599
+ message: "The stack could not be found: %s"
600
+
601
+ 260001:
602
+ name: ServicePlanVisibilityInvalid
603
+ http_code: 400
604
+ message: "Service Plan Visibility is invalid: %s"
605
+
606
+ 260002:
607
+ name: ServicePlanVisibilityAlreadyExists
608
+ http_code: 400
609
+ message: "This combination of ServicePlan and Organization is already taken: %s"
610
+
611
+ 260003:
612
+ name: ServicePlanVisibilityNotFound
613
+ http_code: 404
614
+ message: "The service plan visibility could not be found: %s"
615
+
616
+ 270001:
617
+ name: ServiceBrokerInvalid
618
+ http_code: 400
619
+ message: "Service broker is invalid: %s"
620
+
621
+ 270002:
622
+ name: ServiceBrokerNameTaken
623
+ http_code: 400
624
+ message: "The service broker name is taken"
625
+
626
+ 270003:
627
+ name: ServiceBrokerUrlTaken
628
+ http_code: 400
629
+ message: "The service broker url is taken: %s"
630
+
631
+ 270004:
632
+ name: ServiceBrokerNotFound
633
+ http_code: 404
634
+ message: "The service broker was not found: %s"
635
+
636
+ 270010:
637
+ name: ServiceBrokerNotRemovable
638
+ http_code: 400
639
+ message: "Can not remove brokers that have associated service instances"
640
+
641
+ 270011:
642
+ name: ServiceBrokerUrlInvalid
643
+ http_code: 400
644
+ message: "%s is not a valid URL"
645
+
646
+ 270012:
647
+ name: ServiceBrokerCatalogInvalid
648
+ http_code: 502
649
+ message: "Service broker catalog is invalid: %s"
650
+
651
+ 270013:
652
+ name: ServiceBrokerDashboardClientFailure
653
+ http_code: 502
654
+ message: "Service broker dashboard clients could not be modified: %s"
655
+
656
+ 270014:
657
+ name: ServiceBrokerAsyncRequired
658
+ http_code: 400
659
+ message: "This service plan requires client support for asynchronous service operations."
660
+
661
+ 290001:
662
+ name: BuildpackNameTaken
663
+ http_code: 400
664
+ message: "The buildpack name is already in use: %s"
665
+
666
+ 290002:
667
+ name: BuildpackBitsUploadInvalid
668
+ http_code: 400
669
+ message: "The buildpack upload is invalid: %s"
670
+
671
+ 290003:
672
+ name: BuildpackInvalid
673
+ http_code: 400
674
+ message: "Buildpack is invalid: %s"
675
+
676
+ 290004:
677
+ name: CustomBuildpacksDisabled
678
+ http_code: 400
679
+ message: "Custom buildpacks are disabled"
680
+
681
+ 290005:
682
+ name: BuildpackLocked
683
+ http_code: 409
684
+ message: "The buildpack is locked"
685
+
686
+ 290006:
687
+ name: JobTimeout
688
+ http_code: 524
689
+ message: "The job execution has timed out."
690
+
691
+ 290007:
692
+ name: SpaceDeleteTimeout
693
+ http_code: 524
694
+ message: "Deletion of space %s timed out before all resources within could be deleted"
695
+
696
+ 290008:
697
+ name: SpaceDeletionFailed
698
+ http_code: 502
699
+ message: "Deletion of space %s failed because one or more resources within could not be deleted.\n\n%s"
700
+
701
+ 290009:
702
+ name: OrganizationDeleteTimeout
703
+ http_code: 524
704
+ message: "Delete of organization %s timed out before all resources within could be deleted"
705
+
706
+ 290010:
707
+ name: OrganizationDeletionFailed
708
+ http_code: 502
709
+ message: "Deletion of organization %s failed because one or more resources within could not be deleted.\n\n%s"
710
+
711
+ 300001:
712
+ name: SecurityGroupInvalid
713
+ http_code: 400
714
+ message: "The security group is invalid: %s"
715
+
716
+ 300002:
717
+ name: SecurityGroupNotFound
718
+ http_code: 404
719
+ message: "The security group could not be found: %s"
720
+
721
+ 300003:
722
+ name: SecurityGroupStagingDefaultInvalid
723
+ http_code: 400
724
+ message: "The security group could not be found: %s"
725
+
726
+ 300004:
727
+ name: SecurityGroupRunningDefaultInvalid
728
+ http_code: 400
729
+ message: "The security group could not be found: %s"
730
+
731
+ 300005:
732
+ name: SecurityGroupNameTaken
733
+ http_code: 400
734
+ message: "The security group name is taken: %s"
735
+
736
+ 310001:
737
+ name: SpaceQuotaDefinitionInvalid
738
+ http_code: 400
739
+ message: "Space Quota Definition is invalid: %s"
740
+
741
+ 310002:
742
+ name: SpaceQuotaDefinitionNameTaken
743
+ http_code: 400
744
+ message: "The space quota definition name is taken: %s"
745
+
746
+ 310003:
747
+ name: SpaceQuotaMemoryLimitExceeded
748
+ http_code: 400
749
+ message: "You have exceeded your space's memory limit."
750
+
751
+ 310004:
752
+ name: SpaceQuotaInstanceMemoryLimitExceeded
753
+ http_code: 400
754
+ message: "You have exceeded the instance memory limit for your space's quota."
755
+
756
+ 310005:
757
+ name: SpaceQuotaTotalRoutesExceeded
758
+ http_code: 400
759
+ message: "You have exceeded the total routes for your space's quota."
760
+
761
+ 310006:
762
+ name: OrgQuotaTotalRoutesExceeded
763
+ http_code: 400
764
+ message: "You have exceeded the total routes for your organization's quota."
765
+
766
+ 310007:
767
+ name: SpaceQuotaDefinitionNotFound
768
+ http_code: 404
769
+ message: "Space Quota Definition could not be found: %s"
770
+
771
+ 320001:
772
+ name: DiegoDisabled
773
+ http_code: 400
774
+ message: Diego has not been enabled.
775
+
776
+ 320002:
777
+ name: DiegoDockerBuildpackConflict
778
+ http_code: 400
779
+ message: "You cannot specify a custom buildpack and a docker image at the same time."
780
+
781
+ 320003:
782
+ name: DockerDisabled
783
+ http_code: 400
784
+ message: Docker support has not been enabled.
785
+
786
+ 320004:
787
+ name: StagingBackendInvalid
788
+ http_code: 403
789
+ message: "The request staging completion endpoint only handles apps desired to stage on the Diego backend."
790
+
791
+ 320005:
792
+ name: BackendSelectionNotAuthorized
793
+ http_code: 403
794
+ message: "You cannot select the backend on which to run this application"
795
+
796
+ 330000:
797
+ name: FeatureFlagNotFound
798
+ http_code: 404
799
+ message: "The feature flag could not be found: %s"
800
+
801
+ 330001:
802
+ name: FeatureFlagInvalid
803
+ http_code: 400
804
+ message: "The feature flag is invalid: %s"
805
+
806
+ 330002:
807
+ name: FeatureDisabled
808
+ http_code: 403
809
+ message: "Feature Disabled: %s"
810
+
811
+ 340001:
812
+ name: UserProvidedServiceInstanceNotFound
813
+ http_code: 404
814
+ message: "The service instance could not be found: %s"
815
+
816
+ 350001:
817
+ name: ProcessInvalid
818
+ http_code: 400
819
+ message: "The process is invalid: %s"
820
+
821
+ 350002:
822
+ name: UnableToDelete
823
+ http_code: 400
824
+ message: "Unable to perform delete action: %s"
825
+
826
+ 360001:
827
+ name: ServiceKeyNameTaken
828
+ http_code: 400
829
+ message: "The service key name is taken: %s"
830
+
831
+ 360002:
832
+ name: ServiceKeyInvalid
833
+ http_code: 400
834
+ message: "The service key is invalid: %s"
835
+
836
+ 360003:
837
+ name: ServiceKeyNotFound
838
+ http_code: 404
839
+ message: "The service key could not be found: %s"
840
+
841
+ 360004:
842
+ name: ServiceKeyNotSupported
843
+ http_code: 400
844
+ message: "%s"
845
+