/
client_deployments_by_project_key_deployments.go
56 lines (50 loc) · 1.9 KB
/
client_deployments_by_project_key_deployments.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
45
46
47
48
49
50
51
52
53
54
55
56
package connect
// Generated file, please do not change!!!
import (
"fmt"
)
type ByProjectKeyDeploymentsRequestBuilder struct {
projectKey string
client *Client
}
func (rb *ByProjectKeyDeploymentsRequestBuilder) WithId(id string) *ByProjectKeyDeploymentsByIDRequestBuilder {
return &ByProjectKeyDeploymentsByIDRequestBuilder{
id: id,
projectKey: rb.projectKey,
client: rb.client,
}
}
func (rb *ByProjectKeyDeploymentsRequestBuilder) WithKey(key string) *ByProjectKeyDeploymentsKeyByKeyRequestBuilder {
return &ByProjectKeyDeploymentsKeyByKeyRequestBuilder{
key: key,
projectKey: rb.projectKey,
client: rb.client,
}
}
/**
* Specific error codes:
* - [ConnectorStagedNotPreviewable](ctp:connect:type:ConnectorStagedNotPreviewableError)
* - [DeploymentUnsupportedRegion](ctp:connect:type:DeploymentUnsupportedRegionError)
* - [DeploymentUnknownApplicationConfiguration](ctp:connect:type:DeploymentUnknownApplicationConfigurationError)
* - [DeploymentUnknownApplicationConfigurationKey](ctp:connect:type:DeploymentUnknownApplicationConfigurationKeyError)
* - [DeploymentApplicationDoNotBelong](ctp:connect:type:DeploymentApplicationDoNotBelongError)
* - [DeploymentMustIncludeApplication](ctp:connect:type:DeploymentMustIncludeApplicationError)
* - [DeploymentApplicationRequired](ctp:connect:type:DeploymentApplicationRequiredError)
*
*/
func (rb *ByProjectKeyDeploymentsRequestBuilder) Post(body DeploymentDraft) *ByProjectKeyDeploymentsRequestMethodPost {
return &ByProjectKeyDeploymentsRequestMethodPost{
body: body,
url: fmt.Sprintf("/%s/deployments", rb.projectKey),
client: rb.client,
}
}
/**
* Retrieves all deployments of a project key.
*/
func (rb *ByProjectKeyDeploymentsRequestBuilder) Get() *ByProjectKeyDeploymentsRequestMethodGet {
return &ByProjectKeyDeploymentsRequestMethodGet{
url: fmt.Sprintf("/%s/deployments", rb.projectKey),
client: rb.client,
}
}