model_build

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package model_build contains auto-generated files. DO NOT MODIFY

Package model_build contains auto-generated files. DO NOT MODIFY

Package model_build contains auto-generated files. DO NOT MODIFY

Package model_build 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 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

func (c Client) Delete() error

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

func (c Client) DeleteWithContext(context context.Context) error

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

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

type ClientProperties struct {
	AssistantSid string
	Sid          string
}

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

Jump to

Keyboard shortcuts

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