-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployments.go
56 lines (47 loc) · 1.81 KB
/
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
// This file was auto-generated by Fern from our API Definition.
package api
import (
fmt "fmt"
)
type DeploymentsListRequest struct {
// Number of results to return per page.
Limit *int `json:"-"`
// The initial index from which to return the results.
Offset *int `json:"-"`
// Which field to use when ordering the results.
Ordering *string `json:"-"`
// status
Status *DeploymentsListRequestStatus `json:"-"`
}
type DeploymentProviderPayloadRequest struct {
// The ID of the deployment. Must provide either this or deployment_name.
DeploymentId *string `json:"deployment_id,omitempty"`
// The name of the deployment. Must provide either this or deployment_id.
DeploymentName *string `json:"deployment_name,omitempty"`
// The list of inputs defined in the Prompt's deployment with their corresponding values.
Inputs []*PromptDeploymentInputRequest `json:"inputs,omitempty"`
// Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment
ReleaseTag *string `json:"release_tag,omitempty"`
}
type DeploymentsListRequestStatus string
const (
DeploymentsListRequestStatusActive DeploymentsListRequestStatus = "ACTIVE"
DeploymentsListRequestStatusArchived DeploymentsListRequestStatus = "ARCHIVED"
)
func NewDeploymentsListRequestStatusFromString(s string) (DeploymentsListRequestStatus, error) {
switch s {
case "ACTIVE":
return DeploymentsListRequestStatusActive, nil
case "ARCHIVED":
return DeploymentsListRequestStatusArchived, nil
}
var t DeploymentsListRequestStatus
return "", fmt.Errorf("%s is not a valid %T", s, t)
}
func (d DeploymentsListRequestStatus) Ptr() *DeploymentsListRequestStatus {
return &d
}
type PatchedDeploymentReleaseTagUpdateRequest struct {
// The ID of the Deployment History Item to tag
HistoryItemId *string `json:"history_item_id,omitempty"`
}