forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
projectrequest.go
44 lines (36 loc) · 1.26 KB
/
projectrequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by client-gen. DO NOT EDIT.
package internalversion
import (
project "github.com/openshift/origin/pkg/project/apis/project"
rest "k8s.io/client-go/rest"
)
// ProjectRequestsGetter has a method to return a ProjectRequestInterface.
// A group's client should implement this interface.
type ProjectRequestsGetter interface {
ProjectRequests() ProjectRequestInterface
}
// ProjectRequestInterface has methods to work with ProjectRequest resources.
type ProjectRequestInterface interface {
Create(*project.ProjectRequest) (*project.Project, error)
ProjectRequestExpansion
}
// projectRequests implements ProjectRequestInterface
type projectRequests struct {
client rest.Interface
}
// newProjectRequests returns a ProjectRequests
func newProjectRequests(c *ProjectClient) *projectRequests {
return &projectRequests{
client: c.RESTClient(),
}
}
// Create takes the representation of a projectRequest and creates it. Returns the server's representation of the projectResource, and an error, if there is any.
func (c *projectRequests) Create(projectRequest *project.ProjectRequest) (result *project.Project, err error) {
result = &project.Project{}
err = c.client.Post().
Resource("projectrequests").
Body(projectRequest).
Do().
Into(result)
return
}