model_builds

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

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

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

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

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

type ModelBuildsPageOptions struct {
	PageSize  *int
	Page      *int
	PageToken *string
}

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

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 PageMetaResponse struct {
	FirstPageURL    string  `json:"first_page_url"`
	Key             string  `json:"key"`
	NextPageURL     *string `json:"next_page_url,omitempty"`
	Page            int     `json:"page"`
	PageSize        int     `json:"page_size"`
	PreviousPageURL *string `json:"previous_page_url,omitempty"`
	URL             string  `json:"url"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL