Documentation
¶
Overview ¶
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchModelBuildResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchModelBuildResponse, error)
- func (c Client) Update(input *UpdateModelBuildInput) (*UpdateModelBuildResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateModelBuildInput) (*UpdateModelBuildResponse, error)
- type ClientProperties
- type FetchModelBuildResponse
- type UpdateModelBuildInput
- type UpdateModelBuildResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for managing a specific model build resource See https://www.twilio.com/docs/autopilot/api/model-build for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the model build client
func (Client) Delete ¶
Delete removes a model build resource from the account See https://www.twilio.com/docs/autopilot/api/model-build#delete-a-modelbuild-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a model build resource from the account See https://www.twilio.com/docs/autopilot/api/model-build#delete-a-modelbuild-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchModelBuildResponse, error)
Fetch retrieves a model build resource See https://www.twilio.com/docs/autopilot/api/model-build#fetch-a-modelbuild-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchModelBuildResponse, error)
FetchWithContext retrieves a model build resource See https://www.twilio.com/docs/autopilot/api/model-build#fetch-a-modelbuild-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateModelBuildInput) (*UpdateModelBuildResponse, error)
Update modifies an model build resource See https://www.twilio.com/docs/autopilot/api/model-build#update-a-modelbuild-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) UpdateWithContext ¶
func (c Client) UpdateWithContext(context context.Context, input *UpdateModelBuildInput) (*UpdateModelBuildResponse, error)
UpdateWithContext modifies an model build resource See https://www.twilio.com/docs/autopilot/api/model-build#update-a-modelbuild-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the model build resources
type FetchModelBuildResponse ¶
type FetchModelBuildResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` BuildDuration *int `json:"build_duration,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` ErrorCode *int `json:"error_code,omitempty"` Sid string `json:"sid"` Status string `json:"status"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
FetchModelBuildResponse defines the response fields for the retrieved model build
type UpdateModelBuildInput ¶
type UpdateModelBuildInput struct {
UniqueName *string `form:"UniqueName,omitempty"`
}
UpdateModelBuildInput defines the input fields for updating a model build
type UpdateModelBuildResponse ¶
type UpdateModelBuildResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` BuildDuration *int `json:"build_duration,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` ErrorCode *int `json:"error_code,omitempty"` Sid string `json:"sid"` Status string `json:"status"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
UpdateModelBuildResponse defines the response fields for the updated model build