new_cfoundry 4.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +11 -0
- data/Checkfile +2 -0
- data/Gemfile +3 -0
- data/LICENSE +987 -0
- data/NOTICE +10 -0
- data/README.md +9 -0
- data/Rakefile +14 -0
- data/VERSION +1 -0
- data/cfoundry.gemspec +40 -0
- data/config/locales/en.yml +168 -0
- data/lib/cc_api_stub/app_usage_events.rb +11 -0
- data/lib/cc_api_stub/applications.rb +57 -0
- data/lib/cc_api_stub/domains.rb +32 -0
- data/lib/cc_api_stub/events.rb +11 -0
- data/lib/cc_api_stub/frameworks.rb +22 -0
- data/lib/cc_api_stub/helper.rb +148 -0
- data/lib/cc_api_stub/login.rb +21 -0
- data/lib/cc_api_stub/organization_users.rb +27 -0
- data/lib/cc_api_stub/organizations.rb +82 -0
- data/lib/cc_api_stub/routes.rb +26 -0
- data/lib/cc_api_stub/runtimes.rb +22 -0
- data/lib/cc_api_stub/service_bindings.rb +22 -0
- data/lib/cc_api_stub/service_instances.rb +22 -0
- data/lib/cc_api_stub/services.rb +21 -0
- data/lib/cc_api_stub/space_users.rb +27 -0
- data/lib/cc_api_stub/spaces.rb +58 -0
- data/lib/cc_api_stub/users.rb +85 -0
- data/lib/cc_api_stub.rb +20 -0
- data/lib/cfoundry/auth_token.rb +63 -0
- data/lib/cfoundry/baseclient.rb +216 -0
- data/lib/cfoundry/chatty_hash.rb +46 -0
- data/lib/cfoundry/client.rb +42 -0
- data/lib/cfoundry/concerns/login_helpers.rb +14 -0
- data/lib/cfoundry/concerns/proxy_options.rb +17 -0
- data/lib/cfoundry/errors.rb +163 -0
- data/lib/cfoundry/rest_client.rb +317 -0
- data/lib/cfoundry/test_support.rb +3 -0
- data/lib/cfoundry/trace_helpers.rb +64 -0
- data/lib/cfoundry/uaaclient.rb +160 -0
- data/lib/cfoundry/upload_helpers.rb +222 -0
- data/lib/cfoundry/v2/app.rb +303 -0
- data/lib/cfoundry/v2/app_event.rb +13 -0
- data/lib/cfoundry/v2/app_instance.rb +74 -0
- data/lib/cfoundry/v2/app_usage_event.rb +14 -0
- data/lib/cfoundry/v2/base.rb +108 -0
- data/lib/cfoundry/v2/client.rb +104 -0
- data/lib/cfoundry/v2/domain.rb +20 -0
- data/lib/cfoundry/v2/event.rb +17 -0
- data/lib/cfoundry/v2/helper.rb +11 -0
- data/lib/cfoundry/v2/managed_service_instance.rb +12 -0
- data/lib/cfoundry/v2/model.rb +211 -0
- data/lib/cfoundry/v2/model_magic/attribute.rb +49 -0
- data/lib/cfoundry/v2/model_magic/client_extensions.rb +170 -0
- data/lib/cfoundry/v2/model_magic/has_summary.rb +49 -0
- data/lib/cfoundry/v2/model_magic/query_multi_value_helper.rb +21 -0
- data/lib/cfoundry/v2/model_magic/query_value_helper.rb +33 -0
- data/lib/cfoundry/v2/model_magic/queryable_by.rb +39 -0
- data/lib/cfoundry/v2/model_magic/to_many.rb +138 -0
- data/lib/cfoundry/v2/model_magic/to_one.rb +81 -0
- data/lib/cfoundry/v2/model_magic.rb +134 -0
- data/lib/cfoundry/v2/organization.rb +44 -0
- data/lib/cfoundry/v2/quota_definition.rb +12 -0
- data/lib/cfoundry/v2/route.rb +25 -0
- data/lib/cfoundry/v2/service.rb +22 -0
- data/lib/cfoundry/v2/service_auth_token.rb +9 -0
- data/lib/cfoundry/v2/service_binding.rb +10 -0
- data/lib/cfoundry/v2/service_broker.rb +12 -0
- data/lib/cfoundry/v2/service_instance.rb +14 -0
- data/lib/cfoundry/v2/service_plan.rb +16 -0
- data/lib/cfoundry/v2/space.rb +30 -0
- data/lib/cfoundry/v2/stack.rb +10 -0
- data/lib/cfoundry/v2/user.rb +93 -0
- data/lib/cfoundry/v2/user_provided_service_instance.rb +15 -0
- data/lib/cfoundry/validator.rb +41 -0
- data/lib/cfoundry/version.rb +4 -0
- data/lib/cfoundry/zip.rb +56 -0
- data/lib/cfoundry.rb +5 -0
- data/release_notes/release_1_5_3.md +177 -0
- data/release_notes/release_2.3.1.md +14 -0
- data/release_notes/release_2.3.3.md +38 -0
- data/release_notes/release_2.3.4.md +16 -0
- data/release_notes/release_2.3.5.md +14 -0
- data/release_notes/release_2.3.6.md +14 -0
- data/release_notes/release_2.3.6.rc1.md +29 -0
- data/release_notes/release_2.3.6.rc2.md +19 -0
- data/release_notes/release_2.3.7.rc1.md +14 -0
- data/release_notes/release_2.4.0.md +41 -0
- data/release_notes/release_2.4.1.rc1.md +58 -0
- data/release_notes/release_3.0.0.md +21 -0
- data/release_notes/release_3.0.1.md +16 -0
- data/release_notes/release_3.0.2.rc1.md +19 -0
- data/release_notes/release_4.0.0.md +19 -0
- data/release_notes/release_4.0.1.md +14 -0
- data/release_notes/release_4.0.2.rc1.md +14 -0
- data/release_notes/release_4.0.2.rc2.md +11 -0
- data/release_notes/release_4.0.2.rc3.md +11 -0
- data/release_notes/release_4.0.2.rc4.md +19 -0
- data/release_notes/release_4.0.2.rc5.md +14 -0
- data/release_notes/release_4.0.3.md +19 -0
- data/release_notes/release_4.0.4.rc1.md +14 -0
- data/release_notes/release_4.0.4.rc2.md +14 -0
- data/release_notes/release_4.1.0.md +19 -0
- data/release_notes/release_4.2.0.rc.md +24 -0
- data/release_notes/release_4.3.0.md +22 -0
- data/release_notes/release_4.3.1.md +14 -0
- data/release_notes/release_4.3.10.md +14 -0
- data/release_notes/release_4.3.11.md +14 -0
- data/release_notes/release_4.3.12.md +14 -0
- data/release_notes/release_4.3.2.rc1.md +21 -0
- data/release_notes/release_4.3.3.md +24 -0
- data/release_notes/release_4.3.4.md +11 -0
- data/release_notes/release_4.3.4.rc1.md +24 -0
- data/release_notes/release_4.3.5.md +36 -0
- data/release_notes/release_4.3.5.rc1.md +21 -0
- data/release_notes/release_4.3.6.md +14 -0
- data/release_notes/release_4.3.7.md +50 -0
- data/release_notes/release_4.3.8.md +19 -0
- data/release_notes/release_4.3.9.md +14 -0
- data/release_notes/release_4.4.0.md +16 -0
- data/release_notes/release_4.5.1.md +11 -0
- data/release_notes/release_4.5.2.md +14 -0
- data/release_notes/release_4.5.3.md +29 -0
- data/release_notes/release_4.6.0.md +24 -0
- data/release_notes/release_4.6.1.md +14 -0
- data/release_notes/release_4.6.2.md +16 -0
- data/release_notes/release_4.6.3.rc1.md +14 -0
- data/release_notes/release_4.6.3.rc2.md +14 -0
- data/release_notes/release_4.6.3.rc3.md +17 -0
- data/release_notes/release_4.7.0.md +11 -0
- data/release_notes/release_4.7.1.md +14 -0
- data/release_notes/release_4.7.1.rc.1.md +14 -0
- data/release_notes/release_4.7.1.rc1.md +19 -0
- data/script/gpp +3 -0
- data/spec/cc_api_stub/app_usage_events_spec.rb +12 -0
- data/spec/cc_api_stub/applications_spec.rb +69 -0
- data/spec/cc_api_stub/domains_spec.rb +40 -0
- data/spec/cc_api_stub/events_spec.rb +12 -0
- data/spec/cc_api_stub/frameworks_spec.rb +19 -0
- data/spec/cc_api_stub/login_spec.rb +20 -0
- data/spec/cc_api_stub/organization_users_spec.rb +35 -0
- data/spec/cc_api_stub/organizations_spec.rb +118 -0
- data/spec/cc_api_stub/routes_spec.rb +19 -0
- data/spec/cc_api_stub/runtimes_spec.rb +19 -0
- data/spec/cc_api_stub/service_bindings_spec.rb +13 -0
- data/spec/cc_api_stub/service_instances_spec.rb +19 -0
- data/spec/cc_api_stub/services_spec.rb +11 -0
- data/spec/cc_api_stub/space_users_spec.rb +35 -0
- data/spec/cc_api_stub/spaces_spec.rb +38 -0
- data/spec/cc_api_stub/users_spec.rb +107 -0
- data/spec/cfoundry/auth_token_spec.rb +154 -0
- data/spec/cfoundry/baseclient_spec.rb +298 -0
- data/spec/cfoundry/client_spec.rb +13 -0
- data/spec/cfoundry/errors_spec.rb +117 -0
- data/spec/cfoundry/rest_client_spec.rb +349 -0
- data/spec/cfoundry/trace_helpers_spec.rb +91 -0
- data/spec/cfoundry/uaaclient_spec.rb +435 -0
- data/spec/cfoundry/upload_helpers_spec.rb +182 -0
- data/spec/cfoundry/v2/app_event_spec.rb +97 -0
- data/spec/cfoundry/v2/app_instance_spec.rb +31 -0
- data/spec/cfoundry/v2/app_spec.rb +354 -0
- data/spec/cfoundry/v2/app_usage_event_spec.rb +15 -0
- data/spec/cfoundry/v2/base_spec.rb +375 -0
- data/spec/cfoundry/v2/client_spec.rb +121 -0
- data/spec/cfoundry/v2/domain_spec.rb +63 -0
- data/spec/cfoundry/v2/event_spec.rb +15 -0
- data/spec/cfoundry/v2/managed_service_instance_spec.rb +149 -0
- data/spec/cfoundry/v2/model_magic/attribute_spec.rb +123 -0
- data/spec/cfoundry/v2/model_magic/has_summary_spec.rb +17 -0
- data/spec/cfoundry/v2/model_magic/to_many_spec.rb +53 -0
- data/spec/cfoundry/v2/model_magic/to_one_spec.rb +106 -0
- data/spec/cfoundry/v2/model_magic_spec.rb +43 -0
- data/spec/cfoundry/v2/model_spec.rb +434 -0
- data/spec/cfoundry/v2/organization_spec.rb +135 -0
- data/spec/cfoundry/v2/quota_definition_spec.rb +50 -0
- data/spec/cfoundry/v2/route_spec.rb +42 -0
- data/spec/cfoundry/v2/service_plan_spec.rb +53 -0
- data/spec/cfoundry/v2/service_spec.rb +58 -0
- data/spec/cfoundry/v2/space_spec.rb +13 -0
- data/spec/cfoundry/v2/user_provided_service_instance_spec.rb +57 -0
- data/spec/cfoundry/v2/user_spec.rb +206 -0
- data/spec/cfoundry/validator_spec.rb +94 -0
- data/spec/factories/app_events_factory.rb +7 -0
- data/spec/factories/app_usage_events_factory.rb +32 -0
- data/spec/factories/apps_factory.rb +11 -0
- data/spec/factories/clients_factory.rb +7 -0
- data/spec/factories/domains_factory.rb +10 -0
- data/spec/factories/events_factory.rb +50 -0
- data/spec/factories/organizations_factory.rb +12 -0
- data/spec/factories/quota_definitions_factory.rb +8 -0
- data/spec/factories/routes_factory.rb +10 -0
- data/spec/factories/service_instances_factory.rb +10 -0
- data/spec/factories/service_plans_factory.rb +10 -0
- data/spec/factories/services_factory.rb +10 -0
- data/spec/factories/spaces_factory.rb +10 -0
- data/spec/factories/user_provided_service_instances_factory.rb +10 -0
- data/spec/factories/users_factory.rb +10 -0
- data/spec/fixtures/apps/with_cfignore/.cfignore +4 -0
- data/spec/fixtures/apps/with_cfignore/.hidden_file +1 -0
- data/spec/fixtures/apps/with_cfignore/ambiguous_ignored +0 -0
- data/spec/fixtures/apps/with_cfignore/ignored_dir/file_in_ignored_dir.txt +1 -0
- data/spec/fixtures/apps/with_cfignore/ignored_file.txt +1 -0
- data/spec/fixtures/apps/with_cfignore/non_ignored_dir/file_in_non_ignored_dir.txt +1 -0
- data/spec/fixtures/apps/with_cfignore/non_ignored_dir/ignored_file.txt +1 -0
- data/spec/fixtures/apps/with_cfignore/non_ignored_dir/toplevel_ignored.txt +0 -0
- data/spec/fixtures/apps/with_cfignore/non_ignored_file.txt +1 -0
- data/spec/fixtures/apps/with_cfignore/toplevel_ignored.txt +0 -0
- data/spec/fixtures/apps/with_dotfiles/.dotfile +1 -0
- data/spec/fixtures/apps/with_dotfiles/xyz +1 -0
- data/spec/fixtures/apps/with_external_symlink/foo +1 -0
- data/spec/fixtures/apps/with_ignored_external_symlink/.cfignore +1 -0
- data/spec/fixtures/apps/with_ignored_external_symlink/foo +1 -0
- data/spec/fixtures/apps/with_nested_directories/foo/bar/baz/fizz +0 -0
- data/spec/fixtures/apps/with_nested_directories/xyz +0 -0
- data/spec/fixtures/empty_file +0 -0
- data/spec/fixtures/fake_cc_app_usage_events.json +152 -0
- data/spec/fixtures/fake_cc_application.json +20 -0
- data/spec/fixtures/fake_cc_application_summary.json +56 -0
- data/spec/fixtures/fake_cc_created_application.json +11 -0
- data/spec/fixtures/fake_cc_created_domain.json +15 -0
- data/spec/fixtures/fake_cc_created_organization.json +11 -0
- data/spec/fixtures/fake_cc_created_route.json +13 -0
- data/spec/fixtures/fake_cc_created_service_instance.json +11 -0
- data/spec/fixtures/fake_cc_created_space.json +11 -0
- data/spec/fixtures/fake_cc_created_user.json +11 -0
- data/spec/fixtures/fake_cc_domain.json +55 -0
- data/spec/fixtures/fake_cc_domain_spaces.json +27 -0
- data/spec/fixtures/fake_cc_empty_search.json +7 -0
- data/spec/fixtures/fake_cc_events.json +419 -0
- data/spec/fixtures/fake_cc_frameworks.json +20 -0
- data/spec/fixtures/fake_cc_managed_service_instance.json +83 -0
- data/spec/fixtures/fake_cc_organization.json +161 -0
- data/spec/fixtures/fake_cc_organization_domains.json +59 -0
- data/spec/fixtures/fake_cc_organization_search.json +37 -0
- data/spec/fixtures/fake_cc_organization_spaces.json +99 -0
- data/spec/fixtures/fake_cc_organization_summary.json +20 -0
- data/spec/fixtures/fake_cc_organization_users.json +81 -0
- data/spec/fixtures/fake_cc_route.json +16 -0
- data/spec/fixtures/fake_cc_runtimes.json +20 -0
- data/spec/fixtures/fake_cc_service_binding.json +22 -0
- data/spec/fixtures/fake_cc_service_bindings.json +24 -0
- data/spec/fixtures/fake_cc_service_instance.json +83 -0
- data/spec/fixtures/fake_cc_service_instances.json +72 -0
- data/spec/fixtures/fake_cc_services.json +160 -0
- data/spec/fixtures/fake_cc_space.json +45 -0
- data/spec/fixtures/fake_cc_space_apps.json +49 -0
- data/spec/fixtures/fake_cc_space_summary.json +84 -0
- data/spec/fixtures/fake_cc_spaces.json +92 -0
- data/spec/fixtures/fake_cc_stats.json +29 -0
- data/spec/fixtures/fake_cc_user.json +139 -0
- data/spec/fixtures/fake_cc_user_organizations.json +92 -0
- data/spec/fixtures/fake_cc_user_provided_service_instance.json +51 -0
- data/spec/fixtures/fake_cc_user_with_managers.json +85 -0
- data/spec/integration/client_spec.rb +38 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/factory_girl.rb +6 -0
- data/spec/support/shared_examples/cc_api_stub_request_examples.rb +79 -0
- data/spec/support/shared_examples/client_login_examples.rb +46 -0
- data/spec/support/shared_examples/model_summary_examples.rb +34 -0
- data/spec/support/test_model_builder.rb +10 -0
- data/vendor/errors/README.md +4 -0
- data/vendor/errors/v1.yml +189 -0
- data/vendor/errors/v2.yml +384 -0
- metadata +693 -0
@@ -0,0 +1,419 @@
|
|
1
|
+
{
|
2
|
+
"total_results": 11,
|
3
|
+
"total_pages": 1,
|
4
|
+
"prev_url": null,
|
5
|
+
"next_url": null,
|
6
|
+
"resources": [
|
7
|
+
{
|
8
|
+
"metadata": {
|
9
|
+
"guid": "event-1-1"
|
10
|
+
},
|
11
|
+
"entity": {
|
12
|
+
"organization_guid": "organization-id-1",
|
13
|
+
"type": "audit.app.update",
|
14
|
+
"actor": "user-id",
|
15
|
+
"actor_type": "user",
|
16
|
+
"actee": "application-id-1",
|
17
|
+
"actee_type": "app",
|
18
|
+
"timestamp": "2012-11-01T12:00:00+00:00",
|
19
|
+
"metadata": {
|
20
|
+
"request": {
|
21
|
+
"state": "STARTED"
|
22
|
+
},
|
23
|
+
"desired_memory": 1024,
|
24
|
+
"desired_instances": 2
|
25
|
+
},
|
26
|
+
"space_guid": "space-id-1"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"metadata": {
|
31
|
+
"guid": "event-2-1"
|
32
|
+
},
|
33
|
+
"entity": {
|
34
|
+
"organization_guid": "organization-id-2",
|
35
|
+
"type": "audit.app.update",
|
36
|
+
"actor": "user-id",
|
37
|
+
"actor_type": "user",
|
38
|
+
"actee": "application-id-2",
|
39
|
+
"actee_type": "app",
|
40
|
+
"timestamp": "2012-11-01T12:01:22+00:00",
|
41
|
+
"metadata": {
|
42
|
+
"request": {
|
43
|
+
"state": "STARTED"
|
44
|
+
},
|
45
|
+
"desired_memory": 2048,
|
46
|
+
"desired_instances": 1
|
47
|
+
},
|
48
|
+
"space_guid": "space-id-2"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"metadata": {
|
53
|
+
"guid": "event-1-2"
|
54
|
+
},
|
55
|
+
"entity": {
|
56
|
+
"organization_guid": "organization-id-1",
|
57
|
+
"type": "audit.app.update",
|
58
|
+
"actor": "user-id",
|
59
|
+
"actor_type": "user",
|
60
|
+
"actee": "application-id-1",
|
61
|
+
"actee_type": "app",
|
62
|
+
"timestamp": "2012-11-01T12:03:00+00:00",
|
63
|
+
"metadata": {
|
64
|
+
"request": {
|
65
|
+
},
|
66
|
+
"desired_memory": 1024,
|
67
|
+
"desired_instances": 2
|
68
|
+
},
|
69
|
+
"space_guid": "space-id-1"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"metadata": {
|
74
|
+
"guid": "event-1-3"
|
75
|
+
},
|
76
|
+
"entity": {
|
77
|
+
"organization_guid": "organization-id-1",
|
78
|
+
"type": "audit.app.update",
|
79
|
+
"actor": "user-id",
|
80
|
+
"actor_type": "user",
|
81
|
+
"actee": "application-id-1",
|
82
|
+
"actee_type": "app",
|
83
|
+
"timestamp": "2012-11-01T12:04:00+00:00",
|
84
|
+
"metadata": {
|
85
|
+
"request": {
|
86
|
+
"state": "STOPPED"
|
87
|
+
},
|
88
|
+
"desired_memory": 1024,
|
89
|
+
"desired_instances": 2
|
90
|
+
},
|
91
|
+
"space_guid": "space-id-1"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"metadata": {
|
96
|
+
"guid": "event-1-4"
|
97
|
+
},
|
98
|
+
"entity": {
|
99
|
+
"organization_guid": "organization-id-1",
|
100
|
+
"type": "audit.app.update",
|
101
|
+
"actor": "user-id",
|
102
|
+
"actor_type": "user",
|
103
|
+
"actee": "application-id-1",
|
104
|
+
"actee_type": "app",
|
105
|
+
"timestamp": "2012-11-01T12:05:00+00:00",
|
106
|
+
"metadata": {
|
107
|
+
"request": {
|
108
|
+
"state": "STARTED"
|
109
|
+
},
|
110
|
+
"desired_memory": 1024,
|
111
|
+
"desired_instances": 2
|
112
|
+
},
|
113
|
+
"space_guid": "space-id-1"
|
114
|
+
}
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"metadata": {
|
118
|
+
"guid": "event-1-5"
|
119
|
+
},
|
120
|
+
"entity": {
|
121
|
+
"organization_guid": "organization-id-1",
|
122
|
+
"type": "audit.app.update",
|
123
|
+
"actor": "user-id",
|
124
|
+
"actor_type": "user",
|
125
|
+
"actee": "application-id-1",
|
126
|
+
"actee_type": "app",
|
127
|
+
"timestamp": "2012-11-01T12:06:00+00:00",
|
128
|
+
"metadata": {
|
129
|
+
"request": {
|
130
|
+
"state": "STOPPED"
|
131
|
+
},
|
132
|
+
"desired_memory": 1024,
|
133
|
+
"desired_instances": 2
|
134
|
+
},
|
135
|
+
"space_guid": "space-id-1"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"metadata": {
|
140
|
+
"guid": "event-3-1"
|
141
|
+
},
|
142
|
+
"entity": {
|
143
|
+
"organization_guid": "organization-id-3",
|
144
|
+
"type": "audit.app.update",
|
145
|
+
"actor": "user-id",
|
146
|
+
"actor_type": "user",
|
147
|
+
"actee": "application-id-3",
|
148
|
+
"actee_type": "app",
|
149
|
+
"timestamp": "2012-11-01T12:07:00+00:00",
|
150
|
+
"metadata": {
|
151
|
+
"request": {
|
152
|
+
"state": "STARTED"
|
153
|
+
},
|
154
|
+
"desired_memory": 1024,
|
155
|
+
"desired_instances": 2
|
156
|
+
},
|
157
|
+
"space_guid": "space-id-3"
|
158
|
+
}
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"metadata": {
|
162
|
+
"guid": "event-3-2"
|
163
|
+
},
|
164
|
+
"entity": {
|
165
|
+
"organization_guid": "organization-id-3",
|
166
|
+
"type": "audit.app.update",
|
167
|
+
"actor": "user-id",
|
168
|
+
"actor_type": "user",
|
169
|
+
"actee": "application-id-3",
|
170
|
+
"actee_type": "app",
|
171
|
+
"timestamp": "2012-11-01T12:07:30+00:00",
|
172
|
+
"metadata": {
|
173
|
+
"request": {
|
174
|
+
"state": "STOPPED"
|
175
|
+
},
|
176
|
+
"desired_memory": 1024,
|
177
|
+
"desired_instances": 2
|
178
|
+
},
|
179
|
+
"space_guid": "space-id-3"
|
180
|
+
}
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"metadata": {
|
184
|
+
"guid": "event-3-3"
|
185
|
+
},
|
186
|
+
"entity": {
|
187
|
+
"organization_guid": "organization-id-3",
|
188
|
+
"type": "audit.app.delete",
|
189
|
+
"actor": "user-id",
|
190
|
+
"actor_type": "user",
|
191
|
+
"actee": "application-id-3",
|
192
|
+
"actee_type": "app",
|
193
|
+
"timestamp": "2012-11-01T12:08:00+00:00",
|
194
|
+
"metadata": {},
|
195
|
+
"space_guid": "space-id-3"
|
196
|
+
}
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"metadata": {
|
200
|
+
"guid": "event-4-1"
|
201
|
+
},
|
202
|
+
"entity": {
|
203
|
+
"organization_guid": "organization-id-4",
|
204
|
+
"type": "audit.app.update",
|
205
|
+
"actor": "user-id",
|
206
|
+
"actor_type": "user",
|
207
|
+
"actee": "application-id-4",
|
208
|
+
"actee_type": "app",
|
209
|
+
"timestamp": "2012-11-01T12:09:00+00:00",
|
210
|
+
"metadata": {
|
211
|
+
"request": {
|
212
|
+
"state": "STARTED"
|
213
|
+
},
|
214
|
+
"desired_memory": 1024,
|
215
|
+
"desired_instances": 2
|
216
|
+
},
|
217
|
+
"space_guid": "space-id-4"
|
218
|
+
}
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"metadata": {
|
222
|
+
"guid": "event-4-2"
|
223
|
+
},
|
224
|
+
"entity": {
|
225
|
+
"organization_guid": "organization-id-4",
|
226
|
+
"type": "audit.app.delete",
|
227
|
+
"actor": "user-id",
|
228
|
+
"actor_type": "user",
|
229
|
+
"actee": "application-id-4",
|
230
|
+
"actee_type": "app",
|
231
|
+
"timestamp": "2012-11-01T12:10:00+00:00",
|
232
|
+
"metadata": {},
|
233
|
+
"space_guid": "space-id-4"
|
234
|
+
}
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"metadata": {
|
238
|
+
"guid": "event-2-2"
|
239
|
+
},
|
240
|
+
"entity": {
|
241
|
+
"organization_guid": "organization-id-2",
|
242
|
+
"type": "audit.app.update",
|
243
|
+
"actor": "user-id",
|
244
|
+
"actor_type": "user",
|
245
|
+
"actee": "application-id-2",
|
246
|
+
"actee_type": "app",
|
247
|
+
"timestamp": "2012-11-01T12:11:00+00:00",
|
248
|
+
"metadata": {
|
249
|
+
"request": {
|
250
|
+
"instances": 2
|
251
|
+
},
|
252
|
+
"desired_memory": 2048,
|
253
|
+
"desired_instances": 2
|
254
|
+
},
|
255
|
+
"space_guid": "space-id-2"
|
256
|
+
}
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"metadata": {
|
260
|
+
"guid": "event-2-3"
|
261
|
+
},
|
262
|
+
"entity": {
|
263
|
+
"organization_guid": "organization-id-2",
|
264
|
+
"type": "audit.app.update",
|
265
|
+
"actor": "user-id",
|
266
|
+
"actor_type": "user",
|
267
|
+
"actee": "application-id-2",
|
268
|
+
"actee_type": "app",
|
269
|
+
"timestamp": "2012-11-01T12:11:30+00:00",
|
270
|
+
"metadata": {
|
271
|
+
"request": {
|
272
|
+
"memory": 1024
|
273
|
+
},
|
274
|
+
"desired_memory": 1024,
|
275
|
+
"desired_instances": 2
|
276
|
+
},
|
277
|
+
"space_guid": "space-id-2"
|
278
|
+
}
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"metadata": {
|
282
|
+
"guid": "event-2-4"
|
283
|
+
},
|
284
|
+
"entity": {
|
285
|
+
"organization_guid": "organization-id-2",
|
286
|
+
"type": "audit.app.update",
|
287
|
+
"actor": "user-id",
|
288
|
+
"actor_type": "user",
|
289
|
+
"actee": "application-id-2",
|
290
|
+
"actee_type": "app",
|
291
|
+
"timestamp": "2012-11-01T12:11:35+00:00",
|
292
|
+
"metadata": {
|
293
|
+
"request": {
|
294
|
+
"instances": 1,
|
295
|
+
"memory": 2048,
|
296
|
+
"state": "STOPPED"
|
297
|
+
},
|
298
|
+
"desired_memory": 2048,
|
299
|
+
"desired_instances": 1
|
300
|
+
},
|
301
|
+
"space_guid": "space-id-2"
|
302
|
+
}
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"metadata": {
|
306
|
+
"guid": "event-2-5"
|
307
|
+
},
|
308
|
+
"entity": {
|
309
|
+
"organization_guid": "organization-id-2",
|
310
|
+
"type": "audit.app.update",
|
311
|
+
"actor": "user-id",
|
312
|
+
"actor_type": "user",
|
313
|
+
"actee": "application-id-2",
|
314
|
+
"actee_type": "app",
|
315
|
+
"timestamp": "2012-11-01T12:11:40+00:00",
|
316
|
+
"metadata": {
|
317
|
+
"request": {
|
318
|
+
"instances": 2,
|
319
|
+
"memory": 1024,
|
320
|
+
"state": "STARTED"
|
321
|
+
},
|
322
|
+
"desired_memory": 1024,
|
323
|
+
"desired_instances": 2
|
324
|
+
},
|
325
|
+
"space_guid": "space-id-2"
|
326
|
+
}
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"metadata": {
|
330
|
+
"guid": "event-2-6"
|
331
|
+
},
|
332
|
+
"entity": {
|
333
|
+
"organization_guid": "organization-id-2",
|
334
|
+
"type": "audit.app.update",
|
335
|
+
"actor": "user-id",
|
336
|
+
"actor_type": "user",
|
337
|
+
"actee": "application-id-2",
|
338
|
+
"actee_type": "app",
|
339
|
+
"timestamp": "2012-11-01T12:11:45+00:00",
|
340
|
+
"metadata": {
|
341
|
+
"request": {
|
342
|
+
"instances": 1,
|
343
|
+
"memory": 2048
|
344
|
+
},
|
345
|
+
"desired_memory": 2048,
|
346
|
+
"desired_instances": 1
|
347
|
+
},
|
348
|
+
"space_guid": "space-id-2"
|
349
|
+
}
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"metadata": {
|
353
|
+
"guid": "event-5-1"
|
354
|
+
},
|
355
|
+
"entity": {
|
356
|
+
"organization_guid": "organization-id-5",
|
357
|
+
"type": "audit.app.update",
|
358
|
+
"actor": "user-id",
|
359
|
+
"actor_type": "user",
|
360
|
+
"actee": "application-id-5",
|
361
|
+
"actee_type": "app",
|
362
|
+
"timestamp": "2012-11-01T12:12:00+00:00",
|
363
|
+
"metadata": {
|
364
|
+
"request": {
|
365
|
+
"instances": 2
|
366
|
+
},
|
367
|
+
"desired_memory": 2048,
|
368
|
+
"desired_instances": 2
|
369
|
+
},
|
370
|
+
"space_guid": "space-id-5"
|
371
|
+
}
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"metadata": {
|
375
|
+
"guid": "event-5-2"
|
376
|
+
},
|
377
|
+
"entity": {
|
378
|
+
"organization_guid": "organization-id-5",
|
379
|
+
"type": "audit.app.update",
|
380
|
+
"actor": "user-id",
|
381
|
+
"actor_type": "user",
|
382
|
+
"actee": "application-id-5",
|
383
|
+
"actee_type": "app",
|
384
|
+
"timestamp": "2012-11-01T12:13:00+00:00",
|
385
|
+
"metadata": {
|
386
|
+
"request": {
|
387
|
+
"memory": 1024
|
388
|
+
},
|
389
|
+
"desired_memory": 1024,
|
390
|
+
"desired_instances": 2
|
391
|
+
},
|
392
|
+
"space_guid": "space-id-5"
|
393
|
+
}
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"metadata": {
|
397
|
+
"guid": "event-5-3"
|
398
|
+
},
|
399
|
+
"entity": {
|
400
|
+
"organization_guid": "organization-id-5",
|
401
|
+
"type": "audit.app.update",
|
402
|
+
"actor": "user-id",
|
403
|
+
"actor_type": "user",
|
404
|
+
"actee": "application-id-5",
|
405
|
+
"actee_type": "app",
|
406
|
+
"timestamp": "2012-11-01T12:14:00+00:00",
|
407
|
+
"metadata": {
|
408
|
+
"request": {
|
409
|
+
"instances": 1,
|
410
|
+
"memory": 2048
|
411
|
+
},
|
412
|
+
"desired_memory": 2048,
|
413
|
+
"desired_instances": 1
|
414
|
+
},
|
415
|
+
"space_guid": "space-id-5"
|
416
|
+
}
|
417
|
+
}
|
418
|
+
]
|
419
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"total_results": 1,
|
3
|
+
"total_pages": 1,
|
4
|
+
"prev_url": null,
|
5
|
+
"next_url": null,
|
6
|
+
"resources": [{
|
7
|
+
"metadata": {
|
8
|
+
"guid": "rails3-framework-id-1",
|
9
|
+
"url": "/v2/frameworks/rails3-framework-id-1",
|
10
|
+
"created_at": "2012-11-21 14:24:19 -0800",
|
11
|
+
"updated_at": "2012-11-23 22:25:28 -0800"
|
12
|
+
},
|
13
|
+
"entity": {
|
14
|
+
"name": "rails3",
|
15
|
+
"description": "Rails 3.2",
|
16
|
+
"apps_url": "/v2/frameworks/rails3-framework-id-1/apps",
|
17
|
+
"apps": []
|
18
|
+
}
|
19
|
+
}]
|
20
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
{
|
2
|
+
"metadata": {
|
3
|
+
"guid": "managed-service-instance-id-1",
|
4
|
+
"url": "/v2/service_instances/managed-service-instance-id-1",
|
5
|
+
"created_at": "2012-10-23 00:00:00 +0000",
|
6
|
+
"updated_at": null
|
7
|
+
},
|
8
|
+
"entity": {
|
9
|
+
"type": "managed_service_instance",
|
10
|
+
"name": "service-instance-name-1",
|
11
|
+
"service_plan_guid": "service-plan-id-1",
|
12
|
+
"space_guid": "space-id-1",
|
13
|
+
"gateway_data": {
|
14
|
+
"plan": "100",
|
15
|
+
"version": "9.0"
|
16
|
+
},
|
17
|
+
"dashboard_url": "https://dev3cloudfoundry.appdirect.com/api/custom/cloudfoundry/v1/services/managed-service-instance-id-1/sso",
|
18
|
+
"service_bindings_url": "/v2/service_instances/managed-service-instance-id-1/service_bindings",
|
19
|
+
"service_bindings": [
|
20
|
+
{
|
21
|
+
"metadata": {
|
22
|
+
"guid": "service-binding-id-1",
|
23
|
+
"url": "/v2/service_bindings/service-binding-id-1",
|
24
|
+
"created_at": "2012-10-23 00:34:18 +0000",
|
25
|
+
"updated_at": null
|
26
|
+
},
|
27
|
+
"entity": {
|
28
|
+
"app_guid": "application-id-1",
|
29
|
+
"service_instance_guid": "managed-service-instance-id-1",
|
30
|
+
"binding_options": null,
|
31
|
+
"gateway_data": {
|
32
|
+
"plan": "100",
|
33
|
+
"version": "9.0",
|
34
|
+
"data": {
|
35
|
+
"binding_options": {}
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"app_url": "/v2/apps/application-id-1",
|
39
|
+
"service_instance_url": "/v2/service_instances/managed-service-instance-id-1"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"space_url": "/v2/spaces/space-id-1",
|
44
|
+
"space": {
|
45
|
+
"metadata": {
|
46
|
+
"guid": "space-id-1",
|
47
|
+
"url": "/v2/spaces/space-id-1",
|
48
|
+
"created_at": "2012-09-26 00:00:00 +0000",
|
49
|
+
"updated_at": null
|
50
|
+
},
|
51
|
+
"entity": {
|
52
|
+
"name": "organization-name-1",
|
53
|
+
"organization_guid": "organization-id-1",
|
54
|
+
"developers_url": "/v2/spaces/space-id-1/developers",
|
55
|
+
"managers_url": "/v2/spaces/space-id-1/managers",
|
56
|
+
"auditors_url": "/v2/spaces/space-id-1/auditors",
|
57
|
+
"apps_url": "/v2/spaces/space-id-1/apps",
|
58
|
+
"domains_url": "/v2/spaces/space-id-1/domains",
|
59
|
+
"service_instances_url": "/v2/spaces/space-id-1/service_instances",
|
60
|
+
"organization_url": "/v2/organizations/organization-id-1"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"service_plan_url": "/v2/service_plans/service-plan-id-1",
|
64
|
+
"service_plan": {
|
65
|
+
"metadata": {
|
66
|
+
"guid": "service-plan-id-1",
|
67
|
+
"url": "/v2/service_plans/service-plan-id-1",
|
68
|
+
"created_at": "2012-09-19 21:00:00 +0000",
|
69
|
+
"updated_at": "2012-10-23 00:00:00 +0000"
|
70
|
+
},
|
71
|
+
"entity": {
|
72
|
+
"name": "100",
|
73
|
+
"description": "dummy description",
|
74
|
+
"service_guid": "service-id-1",
|
75
|
+
"service_instance_guids": [
|
76
|
+
"managed-service-instance-id-1"
|
77
|
+
],
|
78
|
+
"service_instances_url": "/v2/service_plans/service-plan-id-1/service_instances",
|
79
|
+
"service_url": "/v2/services/service-id-1"
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
{
|
2
|
+
"metadata": {
|
3
|
+
"guid": "organization-id-1",
|
4
|
+
"url": "/v2/organizations/organization-id-1",
|
5
|
+
"created_at": "2012-10-24 12:14:54 -0700",
|
6
|
+
"updated_at": null
|
7
|
+
},
|
8
|
+
"entity": {
|
9
|
+
"name": "organization-name-1",
|
10
|
+
"status": "active",
|
11
|
+
"spaces_url": "/v2/organizations/organization-id-1/spaces",
|
12
|
+
"spaces": [
|
13
|
+
{
|
14
|
+
"metadata": {
|
15
|
+
"guid": "space-id-1",
|
16
|
+
"url": "/v2/spaces/space-id-1",
|
17
|
+
"created_at": "2012-10-24 12:16:11 -0700",
|
18
|
+
"updated_at": null
|
19
|
+
},
|
20
|
+
"entity": {
|
21
|
+
"name": "space-name-1",
|
22
|
+
"organization_guid": "organization-id-1",
|
23
|
+
"developers_url": "/v2/spaces/space-id-1/developers",
|
24
|
+
"managers_url": "/v2/spaces/space-id-1/managers",
|
25
|
+
"auditors_url": "/v2/spaces/space-id-1/auditors",
|
26
|
+
"apps_url": "/v2/spaces/space-id-1/apps",
|
27
|
+
"domains_url": "/v2/spaces/space-id-1/domains",
|
28
|
+
"service_instances_url": "/v2/spaces/space-id-1/service_instances",
|
29
|
+
"organization_url": "/v2/organizations/organization-id-1"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
],
|
33
|
+
"domains_url": "/v2/organizations/organization-id-1/domains",
|
34
|
+
"domains": [
|
35
|
+
{
|
36
|
+
"metadata": {
|
37
|
+
"guid": "domain-id-1",
|
38
|
+
"url": "/v2/domains/domain-id-1",
|
39
|
+
"created_at": "2012-10-24 12:14:00 -0700",
|
40
|
+
"updated_at": null
|
41
|
+
},
|
42
|
+
"entity": {
|
43
|
+
"name": "vcap.me",
|
44
|
+
"owning_organization_guid": null
|
45
|
+
}
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"users_url": "/v2/organizations/organization-id-1/users",
|
49
|
+
"users": [
|
50
|
+
{
|
51
|
+
"metadata": {
|
52
|
+
"guid": "user-id-1",
|
53
|
+
"url": "/v2/users/user-id-1",
|
54
|
+
"created_at": "2012-10-24 12:14:54 -0700",
|
55
|
+
"updated_at": "2012-10-24 12:16:11 -0700"
|
56
|
+
},
|
57
|
+
"entity": {
|
58
|
+
"admin": false,
|
59
|
+
"active": false,
|
60
|
+
"default_space_guid": "space-id-1",
|
61
|
+
"spaces_url": "/v2/users/user-id-1/spaces",
|
62
|
+
"organizations_url": "/v2/users/user-id-1/organizations",
|
63
|
+
"managed_organizations_url": "/v2/users/user-id-1/managed_organizations",
|
64
|
+
"billing_managed_organizations_url": "/v2/users/user-id-1/billing_managed_organizations",
|
65
|
+
"audited_organizations_url": "/v2/users/user-id-1/audited_organizations",
|
66
|
+
"managed_spaces_url": "/v2/users/user-id-1/managed_spaces",
|
67
|
+
"audited_spaces_url": "/v2/users/user-id-1/audited_spaces",
|
68
|
+
"default_space_url": "/v2/spaces/space-id-1"
|
69
|
+
}
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"managers_url": "/v2/organizations/organization-id-1/managers",
|
73
|
+
"managers": [
|
74
|
+
{
|
75
|
+
"metadata": {
|
76
|
+
"guid": "user-id-1",
|
77
|
+
"url": "/v2/users/user-id-1",
|
78
|
+
"created_at": "2012-10-24 12:14:54 -0700",
|
79
|
+
"updated_at": "2012-10-24 12:16:11 -0700"
|
80
|
+
},
|
81
|
+
"entity": {
|
82
|
+
"admin": false,
|
83
|
+
"active": false,
|
84
|
+
"default_space_guid": "space-id-1",
|
85
|
+
"spaces_url": "/v2/users/user-id-1/spaces",
|
86
|
+
"organizations_url": "/v2/users/user-id-1/organizations",
|
87
|
+
"managed_organizations_url": "/v2/users/user-id-1/managed_organizations",
|
88
|
+
"billing_managed_organizations_url": "/v2/users/user-id-1/billing_managed_organizations",
|
89
|
+
"audited_organizations_url": "/v2/users/user-id-1/audited_organizations",
|
90
|
+
"managed_spaces_url": "/v2/users/user-id-1/managed_spaces",
|
91
|
+
"audited_spaces_url": "/v2/users/user-id-1/audited_spaces",
|
92
|
+
"default_space_url": "/v2/spaces/space-id-1"
|
93
|
+
}
|
94
|
+
}
|
95
|
+
],
|
96
|
+
"billing_managers_url": "/v2/organizations/organization-id-1/billing_managers",
|
97
|
+
"billing_managers": [
|
98
|
+
{
|
99
|
+
"metadata": {
|
100
|
+
"guid": "user-id-1",
|
101
|
+
"url": "/v2/users/user-id-1",
|
102
|
+
"created_at": "2012-10-24 12:14:54 -0700",
|
103
|
+
"updated_at": "2012-10-24 12:16:11 -0700"
|
104
|
+
},
|
105
|
+
"entity": {
|
106
|
+
"admin": false,
|
107
|
+
"active": false,
|
108
|
+
"default_space_guid": "space-id-1",
|
109
|
+
"spaces_url": "/v2/users/user-id-1/spaces",
|
110
|
+
"organizations_url": "/v2/users/user-id-1/organizations",
|
111
|
+
"managed_organizations_url": "/v2/users/user-id-1/managed_organizations",
|
112
|
+
"billing_managed_organizations_url": "/v2/users/user-id-1/billing_managed_organizations",
|
113
|
+
"audited_organizations_url": "/v2/users/user-id-1/audited_organizations",
|
114
|
+
"managed_spaces_url": "/v2/users/user-id-1/managed_spaces",
|
115
|
+
"audited_spaces_url": "/v2/users/user-id-1/audited_spaces",
|
116
|
+
"default_space_url": "/v2/spaces/space-id-1"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
],
|
120
|
+
"auditors_url": "/v2/organizations/organization-id-1/auditors",
|
121
|
+
"auditors": [
|
122
|
+
{
|
123
|
+
"metadata": {
|
124
|
+
"guid": "user-id-1",
|
125
|
+
"url": "/v2/users/user-id-1",
|
126
|
+
"created_at": "2012-10-24 12:14:54 -0700",
|
127
|
+
"updated_at": "2012-10-24 12:16:11 -0700"
|
128
|
+
},
|
129
|
+
"entity": {
|
130
|
+
"admin": false,
|
131
|
+
"active": false,
|
132
|
+
"default_space_guid": "space-id-1",
|
133
|
+
"spaces_url": "/v2/users/user-id-1/spaces",
|
134
|
+
"organizations_url": "/v2/users/user-id-1/organizations",
|
135
|
+
"managed_organizations_url": "/v2/users/user-id-1/managed_organizations",
|
136
|
+
"billing_managed_organizations_url": "/v2/users/user-id-1/billing_managed_organizations",
|
137
|
+
"audited_organizations_url": "/v2/users/user-id-1/audited_organizations",
|
138
|
+
"managed_spaces_url": "/v2/users/user-id-1/managed_spaces",
|
139
|
+
"audited_spaces_url": "/v2/users/user-id-1/audited_spaces",
|
140
|
+
"default_space_url": "/v2/spaces/space-id-1"
|
141
|
+
}
|
142
|
+
}
|
143
|
+
],
|
144
|
+
"quota_definition_url": "/v2/quota_definitions/quota-definition-1",
|
145
|
+
"quota_definition": {
|
146
|
+
"metadata": {
|
147
|
+
"guid": "quota-definition-1",
|
148
|
+
"url": "/v2/quota_definitions/quota-definition-1",
|
149
|
+
"created_at": "2013-05-04 00:29:46 +0000",
|
150
|
+
"updated_at": "2013-08-22 19:23:03 +0000"
|
151
|
+
},
|
152
|
+
"entity": {
|
153
|
+
"name": "trial",
|
154
|
+
"non_basic_services_allowed": false,
|
155
|
+
"total_services": 2,
|
156
|
+
"memory_limit": 2000,
|
157
|
+
"trial_db_allowed": false
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|