MCPcopy Index your code
hub / github.com/cloudfoundry/cli / CreateSpace

Method CreateSpace

api/cloudcontroller/ccv3/space.go:8–18  ·  view source on GitHub ↗
(space resources.Space)

Source from the content-addressed store, hash-verified

6)
7
8func (client *Client) CreateSpace(space resources.Space) (resources.Space, Warnings, error) {
9 var responseBody resources.Space
10
11 _, warnings, err := client.MakeRequest(RequestParams{
12 RequestName: internal.PostSpaceRequest,
13 RequestBody: space,
14 ResponseBody: &responseBody,
15 })
16
17 return responseBody, warnings, err
18}
19
20func (client *Client) DeleteSpace(spaceGUID string) (JobURL, Warnings, error) {
21 jobURL, warnings, err := client.MakeRequest(RequestParams{

Callers

nothing calls this directly

Calls 1

MakeRequestMethod · 0.65

Tested by

no test coverage detected