Documentation ¶
Overview ¶
Package build contains auto-generated files. DO NOT MODIFY
Package build contains auto-generated files. DO NOT MODIFY
Package 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 ¶
Client for managing a specific build resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/build for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the build client
func (Client) Delete ¶
Delete removes a build resource from the account See https://www.twilio.com/docs/runtime/functions-assets-api/api/build#delete-a-build-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 build resource from the account See https://www.twilio.com/docs/runtime/functions-assets-api/api/build#delete-a-build-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchBuildResponse, error)
Fetch retrieves a build resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/build#fetch-a-build-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) (*FetchBuildResponse, error)
FetchWithContext retrieves a build resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/build#fetch-a-build-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the build resources
type FetchAssetVersion ¶
type FetchAssetVersion struct { AccountSid string `json:"account_sid"` AssetSid string `json:"asset_sid"` DateCreated time.Time `json:"date_created"` Path string `json:"path"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` Visibility string `json:"visibility"` }
type FetchBuildResponse ¶
type FetchBuildResponse struct { AccountSid string `json:"account_sid"` AssetVersions *[]FetchAssetVersion `json:"asset_versions,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Dependencies *[]FetchDependency `json:"dependencies,omitempty"` FunctionVersions *[]FetchFunctionVersion `json:"function_versions,omitempty"` Runtime string `json:"runtime"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` Status string `json:"status"` URL string `json:"url"` }
FetchBuildResponse defines the response fields for the retrieved build
type FetchDependency ¶
type FetchFunctionVersion ¶
type FetchFunctionVersion struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` FunctionSid string `json:"function_sid"` Path string `json:"path"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` Visibility string `json:"visibility"` }