code: func (client *Client) CreatePackage(pkg Package) (Package, Warnings, error) {
  	bodyBytes, err := json.Marshal(pkg)
  	if err != nil {
  		return Package{}, nil, err
  	}
  
  	request, err := client.newHTTPRequest(requestOptions{
  		RequestName: internal.PostPackageRequest,
  		Body:        bytes.NewReader(bodyBytes),
  	})
  	if err != nil {
  		return Package{}, nil, err
  	}
  
  	var responsePackage Package
  	response := cloudcontroller.Response{
  		DecodeJSONResponseInto: &responsePackage,
  	}
  	err = client.connection.Make(request, &response)
  
  	return responsePackage, response.Warnings, err
  }
docs: // CreatePackage creates a package with the given settings, Type and the
  // ApplicationRelationship must be set.