Documentation
¶
Overview ¶
Package model_builds contains auto-generated files. DO NOT MODIFY
Package model_builds contains auto-generated files. DO NOT MODIFY
Package model_builds contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Create(input *CreateModelBuildInput) (*CreateModelBuildResponse, error)
- func (c Client) CreateWithContext(context context.Context, input *CreateModelBuildInput) (*CreateModelBuildResponse, error)
- func (c *Client) NewModelBuildsPaginator() *ModelBuildsPaginator
- func (c *Client) NewModelBuildsPaginatorWithOptions(options *ModelBuildsPageOptions) *ModelBuildsPaginator
- func (c Client) Page(options *ModelBuildsPageOptions) (*ModelBuildsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *ModelBuildsPageOptions) (*ModelBuildsPageResponse, error)
- type ClientProperties
- type CreateModelBuildInput
- type CreateModelBuildResponse
- type ModelBuildsPage
- type ModelBuildsPageOptions
- type ModelBuildsPageResponse
- type ModelBuildsPaginator
- type PageMetaResponse
- type PageModelBuildResponse
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 model build resources 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 builds client
func (Client) Create ¶
func (c Client) Create(input *CreateModelBuildInput) (*CreateModelBuildResponse, error)
Create creates a new model build See https://www.twilio.com/docs/autopilot/api/model-build#create-a-modelbuild-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) CreateWithContext ¶
func (c Client) CreateWithContext(context context.Context, input *CreateModelBuildInput) (*CreateModelBuildResponse, error)
CreateWithContext creates a new model build See https://www.twilio.com/docs/autopilot/api/model-build#create-a-modelbuild-resource for more details
func (*Client) NewModelBuildsPaginator ¶
func (c *Client) NewModelBuildsPaginator() *ModelBuildsPaginator
NewModelBuildsPaginator creates a new instance of the paginator for Page.
func (*Client) NewModelBuildsPaginatorWithOptions ¶
func (c *Client) NewModelBuildsPaginatorWithOptions(options *ModelBuildsPageOptions) *ModelBuildsPaginator
NewModelBuildsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *ModelBuildsPageOptions) (*ModelBuildsPageResponse, error)
Page retrieves a page of model builds See https://www.twilio.com/docs/autopilot/api/model-build#read-multiple-modelbuild-resources for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) PageWithContext ¶
func (c Client) PageWithContext(context context.Context, options *ModelBuildsPageOptions) (*ModelBuildsPageResponse, error)
PageWithContext retrieves a page of model builds See https://www.twilio.com/docs/autopilot/api/model-build#read-multiple-modelbuild-resources for more details
type ClientProperties ¶
type ClientProperties struct {
AssistantSid string
}
ClientProperties are the properties required to manage the model builds resources
type CreateModelBuildInput ¶
type CreateModelBuildInput struct { StatusCallback *string `form:"StatusCallback,omitempty"` UniqueName *string `form:"UniqueName,omitempty"` }
CreateModelBuildInput defines the input fields for creating a new model build resource
type CreateModelBuildResponse ¶
type CreateModelBuildResponse 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"` }
CreateModelBuildResponse defines the response fields for the created model build
type ModelBuildsPage ¶
type ModelBuildsPage struct { CurrentPage *ModelBuildsPageResponse Error error // contains filtered or unexported fields }
ModelBuildsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageModelBuildResponse or error that is returned from the api call(s)
type ModelBuildsPageOptions ¶
ModelBuildsPageOptions defines the query options for the api operation
type ModelBuildsPageResponse ¶
type ModelBuildsPageResponse struct { Meta PageMetaResponse `json:"meta"` ModelBuilds []PageModelBuildResponse `json:"model_builds"` }
ModelBuildsPageResponse defines the response fields for the model build page
type ModelBuildsPaginator ¶
type ModelBuildsPaginator struct { Page *ModelBuildsPage ModelBuilds []PageModelBuildResponse // contains filtered or unexported fields }
ModelBuildsPaginator defines the fields for makings paginated api calls ModelBuilds is an array of modelbuilds that have been returned from all of the page calls
func (*ModelBuildsPaginator) CurrentPage ¶
func (p *ModelBuildsPaginator) CurrentPage() *ModelBuildsPageResponse
CurrentPage retrieves the results for the current page
func (*ModelBuildsPaginator) Error ¶
func (p *ModelBuildsPaginator) Error() error
Error retrieves the error returned from the page
func (*ModelBuildsPaginator) Next ¶
func (p *ModelBuildsPaginator) Next() bool
Next retrieves the next page of results. Next will return false when either an error occurs or there are no more pages to iterate Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (*ModelBuildsPaginator) NextWithContext ¶
func (p *ModelBuildsPaginator) NextWithContext(context context.Context) bool
NextWithContext retrieves the next page of results. NextWithContext will return false when either an error occurs or there are no more pages to iterate
type PageMetaResponse ¶
type PageModelBuildResponse ¶
type PageModelBuildResponse 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"` }