openapi
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
Go API client for openapi
This is the public Twilio REST API.
Overview
This API client was generated by theOpenAPI Generator project from the OpenAPI specs located attwilio/twilio-oai. By using theOpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGeneratorFor more information, please visithttps://support.twilio.com
Installation
Install the following dependencies:
go get github.com/stretchr/testify/assertgo get golang.org/x/net/context
Put the package under your project folder and add the following in import:
import "./openapi"
Documentation for API Endpoints
All URIs are relative tohttps://serverless.twilio.com
Class | Method | HTTP request | Description |
---|---|---|---|
ServicesApi | CreateService | Post /v1/Services | Create a new Service resource. |
ServicesApi | DeleteService | Delete /v1/Services/{Sid} | Delete a Service resource. |
ServicesApi | FetchService | Get /v1/Services/{Sid} | Retrieve a specific Service resource. |
ServicesApi | ListService | Get /v1/Services | Retrieve a list of all Services. |
ServicesApi | UpdateService | Post /v1/Services/{Sid} | Update a specific Service resource. |
ServicesAssetsApi | CreateAsset | Post /v1/Services/{ServiceSid}/Assets | Create a new Asset resource. |
ServicesAssetsApi | DeleteAsset | Delete /v1/Services/{ServiceSid}/Assets/{Sid} | Delete an Asset resource. |
ServicesAssetsApi | FetchAsset | Get /v1/Services/{ServiceSid}/Assets/{Sid} | Retrieve a specific Asset resource. |
ServicesAssetsApi | ListAsset | Get /v1/Services/{ServiceSid}/Assets | Retrieve a list of all Assets. |
ServicesAssetsApi | UpdateAsset | Post /v1/Services/{ServiceSid}/Assets/{Sid} | Update a specific Asset resource. |
ServicesAssetsVersionsApi | FetchAssetVersion | Get /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid} | Retrieve a specific Asset Version. |
ServicesAssetsVersionsApi | ListAssetVersion | Get /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions | Retrieve a list of all Asset Versions. |
ServicesBuildsApi | CreateBuild | Post /v1/Services/{ServiceSid}/Builds | Create a new Build resource. At least one function version or asset version is required. |
ServicesBuildsApi | DeleteBuild | Delete /v1/Services/{ServiceSid}/Builds/{Sid} | Delete a Build resource. |
ServicesBuildsApi | FetchBuild | Get /v1/Services/{ServiceSid}/Builds/{Sid} | Retrieve a specific Build resource. |
ServicesBuildsApi | ListBuild | Get /v1/Services/{ServiceSid}/Builds | Retrieve a list of all Builds. |
ServicesBuildsStatusApi | FetchBuildStatus | Get /v1/Services/{ServiceSid}/Builds/{Sid}/Status | Retrieve a specific Build resource. |
ServicesEnvironmentsApi | CreateEnvironment | Post /v1/Services/{ServiceSid}/Environments | Create a new environment. |
ServicesEnvironmentsApi | DeleteEnvironment | Delete /v1/Services/{ServiceSid}/Environments/{Sid} | Delete a specific environment. |
ServicesEnvironmentsApi | FetchEnvironment | Get /v1/Services/{ServiceSid}/Environments/{Sid} | Retrieve a specific environment. |
ServicesEnvironmentsApi | ListEnvironment | Get /v1/Services/{ServiceSid}/Environments | Retrieve a list of all environments. |
ServicesEnvironmentsDeploymentsApi | CreateDeployment | Post /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | Create a new Deployment. |
ServicesEnvironmentsDeploymentsApi | FetchDeployment | Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid} | Retrieve a specific Deployment. |
ServicesEnvironmentsDeploymentsApi | ListDeployment | Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | Retrieve a list of all Deployments. |
ServicesEnvironmentsLogsApi | FetchLog | Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid} | Retrieve a specific log. |
ServicesEnvironmentsLogsApi | ListLog | Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs | Retrieve a list of all logs. |
ServicesEnvironmentsVariablesApi | CreateVariable | Post /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | Create a new Variable. |
ServicesEnvironmentsVariablesApi | DeleteVariable | Delete /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | Delete a specific Variable. |
ServicesEnvironmentsVariablesApi | FetchVariable | Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | Retrieve a specific Variable. |
ServicesEnvironmentsVariablesApi | ListVariable | Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | Retrieve a list of all Variables. |
ServicesEnvironmentsVariablesApi | UpdateVariable | Post /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | Update a specific Variable. |
ServicesFunctionsApi | CreateFunction | Post /v1/Services/{ServiceSid}/Functions | Create a new Function resource. |
ServicesFunctionsApi | DeleteFunction | Delete /v1/Services/{ServiceSid}/Functions/{Sid} | Delete a Function resource. |
ServicesFunctionsApi | FetchFunction | Get /v1/Services/{ServiceSid}/Functions/{Sid} | Retrieve a specific Function resource. |
ServicesFunctionsApi | ListFunction | Get /v1/Services/{ServiceSid}/Functions | Retrieve a list of all Functions. |
ServicesFunctionsApi | UpdateFunction | Post /v1/Services/{ServiceSid}/Functions/{Sid} | Update a specific Function resource. |
ServicesFunctionsVersionsApi | FetchFunctionVersion | Get /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid} | Retrieve a specific Function Version resource. |
ServicesFunctionsVersionsApi | ListFunctionVersion | Get /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions | Retrieve a list of all Function Version resources. |
ServicesFunctionsVersionsContentApi | FetchFunctionVersionContent | Get /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content | Retrieve a the content of a specific Function Version resource. |
Documentation For Models
- ServerlessV1FunctionVersion
- ListAssetResponseMeta
- ListVariableResponse
- ServerlessV1BuildStatus
- ServerlessV1FunctionVersionContent
- ServerlessV1Variable
- ListLogResponse
- ServerlessV1Function
- ServerlessV1Asset
- ListServiceResponse
- ServerlessV1AssetVersion
- ListBuildResponse
- ListEnvironmentResponse
- ListFunctionVersionResponse
- ServerlessV1Environment
- ServerlessV1Service
- ListDeploymentResponse
- ServerlessV1Log
- ListAssetVersionResponse
- ListFunctionResponse
- ServerlessV1Deployment
- ListAssetResponse
- ServerlessV1Build
Documentation For Authorization
accountSid_authToken
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ UserName: "username", Password: "password",})r, err := client.Service.Operation(auth, args)
Documentation¶
Index¶
- type ApiService
- func (c *ApiService) CreateAsset(ServiceSid string, params *CreateAssetParams) (*ServerlessV1Asset, error)
- func (c *ApiService) CreateBuild(ServiceSid string, params *CreateBuildParams) (*ServerlessV1Build, error)
- func (c *ApiService) CreateDeployment(ServiceSid string, EnvironmentSid string, params *CreateDeploymentParams) (*ServerlessV1Deployment, error)
- func (c *ApiService) CreateEnvironment(ServiceSid string, params *CreateEnvironmentParams) (*ServerlessV1Environment, error)
- func (c *ApiService) CreateFunction(ServiceSid string, params *CreateFunctionParams) (*ServerlessV1Function, error)
- func (c *ApiService) CreateService(params *CreateServiceParams) (*ServerlessV1Service, error)
- func (c *ApiService) CreateVariable(ServiceSid string, EnvironmentSid string, params *CreateVariableParams) (*ServerlessV1Variable, error)
- func (c *ApiService) DeleteAsset(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteBuild(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteEnvironment(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteFunction(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteService(Sid string) error
- func (c *ApiService) DeleteVariable(ServiceSid string, EnvironmentSid string, Sid string) error
- func (c *ApiService) FetchAsset(ServiceSid string, Sid string) (*ServerlessV1Asset, error)
- func (c *ApiService) FetchAssetVersion(ServiceSid string, AssetSid string, Sid string) (*ServerlessV1AssetVersion, error)
- func (c *ApiService) FetchBuild(ServiceSid string, Sid string) (*ServerlessV1Build, error)
- func (c *ApiService) FetchBuildStatus(ServiceSid string, Sid string) (*ServerlessV1BuildStatus, error)
- func (c *ApiService) FetchDeployment(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Deployment, error)
- func (c *ApiService) FetchEnvironment(ServiceSid string, Sid string) (*ServerlessV1Environment, error)
- func (c *ApiService) FetchFunction(ServiceSid string, Sid string) (*ServerlessV1Function, error)
- func (c *ApiService) FetchFunctionVersion(ServiceSid string, FunctionSid string, Sid string) (*ServerlessV1FunctionVersion, error)
- func (c *ApiService) FetchFunctionVersionContent(ServiceSid string, FunctionSid string, Sid string) (*ServerlessV1FunctionVersionContent, error)
- func (c *ApiService) FetchLog(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Log, error)
- func (c *ApiService) FetchService(Sid string) (*ServerlessV1Service, error)
- func (c *ApiService) FetchVariable(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Variable, error)
- func (c *ApiService) ListAsset(ServiceSid string, params *ListAssetParams) ([]ServerlessV1Asset, error)
- func (c *ApiService) ListAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) ([]ServerlessV1AssetVersion, error)
- func (c *ApiService) ListBuild(ServiceSid string, params *ListBuildParams) ([]ServerlessV1Build, error)
- func (c *ApiService) ListDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) ([]ServerlessV1Deployment, error)
- func (c *ApiService) ListEnvironment(ServiceSid string, params *ListEnvironmentParams) ([]ServerlessV1Environment, error)
- func (c *ApiService) ListFunction(ServiceSid string, params *ListFunctionParams) ([]ServerlessV1Function, error)
- func (c *ApiService) ListFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) ([]ServerlessV1FunctionVersion, error)
- func (c *ApiService) ListLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) ([]ServerlessV1Log, error)
- func (c *ApiService) ListService(params *ListServiceParams) ([]ServerlessV1Service, error)
- func (c *ApiService) ListVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) ([]ServerlessV1Variable, error)
- func (c *ApiService) PageAsset(ServiceSid string, params *ListAssetParams, pageToken, pageNumber string) (*ListAssetResponse, error)
- func (c *ApiService) PageAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams, ...) (*ListAssetVersionResponse, error)
- func (c *ApiService) PageBuild(ServiceSid string, params *ListBuildParams, pageToken, pageNumber string) (*ListBuildResponse, error)
- func (c *ApiService) PageDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams, ...) (*ListDeploymentResponse, error)
- func (c *ApiService) PageEnvironment(ServiceSid string, params *ListEnvironmentParams, pageToken, pageNumber string) (*ListEnvironmentResponse, error)
- func (c *ApiService) PageFunction(ServiceSid string, params *ListFunctionParams, pageToken, pageNumber string) (*ListFunctionResponse, error)
- func (c *ApiService) PageFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams, ...) (*ListFunctionVersionResponse, error)
- func (c *ApiService) PageLog(ServiceSid string, EnvironmentSid string, params *ListLogParams, ...) (*ListLogResponse, error)
- func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)
- func (c *ApiService) PageVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams, ...) (*ListVariableResponse, error)
- func (c *ApiService) RequestHandler() *twilio.RequestHandler
- func (c *ApiService) StreamAsset(ServiceSid string, params *ListAssetParams) (chan ServerlessV1Asset, chan error)
- func (c *ApiService) StreamAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) (chan ServerlessV1AssetVersion, chan error)
- func (c *ApiService) StreamBuild(ServiceSid string, params *ListBuildParams) (chan ServerlessV1Build, chan error)
- func (c *ApiService) StreamDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) (chan ServerlessV1Deployment, chan error)
- func (c *ApiService) StreamEnvironment(ServiceSid string, params *ListEnvironmentParams) (chan ServerlessV1Environment, chan error)
- func (c *ApiService) StreamFunction(ServiceSid string, params *ListFunctionParams) (chan ServerlessV1Function, chan error)
- func (c *ApiService) StreamFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) (chan ServerlessV1FunctionVersion, chan error)
- func (c *ApiService) StreamLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) (chan ServerlessV1Log, chan error)
- func (c *ApiService) StreamService(params *ListServiceParams) (chan ServerlessV1Service, chan error)
- func (c *ApiService) StreamVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) (chan ServerlessV1Variable, chan error)
- func (c *ApiService) UpdateAsset(ServiceSid string, Sid string, params *UpdateAssetParams) (*ServerlessV1Asset, error)
- func (c *ApiService) UpdateFunction(ServiceSid string, Sid string, params *UpdateFunctionParams) (*ServerlessV1Function, error)
- func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ServerlessV1Service, error)
- func (c *ApiService) UpdateVariable(ServiceSid string, EnvironmentSid string, Sid string, ...) (*ServerlessV1Variable, error)
- type CreateAssetParams
- type CreateBuildParams
- func (params *CreateBuildParams) SetAssetVersions(AssetVersions []string) *CreateBuildParams
- func (params *CreateBuildParams) SetDependencies(Dependencies string) *CreateBuildParams
- func (params *CreateBuildParams) SetFunctionVersions(FunctionVersions []string) *CreateBuildParams
- func (params *CreateBuildParams) SetRuntime(Runtime string) *CreateBuildParams
- type CreateDeploymentParams
- type CreateEnvironmentParams
- type CreateFunctionParams
- type CreateServiceParams
- func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams
- func (params *CreateServiceParams) SetIncludeCredentials(IncludeCredentials bool) *CreateServiceParams
- func (params *CreateServiceParams) SetUiEditable(UiEditable bool) *CreateServiceParams
- func (params *CreateServiceParams) SetUniqueName(UniqueName string) *CreateServiceParams
- type CreateVariableParams
- type ListAssetParams
- type ListAssetResponse
- type ListAssetResponseMeta
- type ListAssetVersionParams
- type ListAssetVersionResponse
- type ListBuildParams
- type ListBuildResponse
- type ListDeploymentParams
- type ListDeploymentResponse
- type ListEnvironmentParams
- type ListEnvironmentResponse
- type ListFunctionParams
- type ListFunctionResponse
- type ListFunctionVersionParams
- type ListFunctionVersionResponse
- type ListLogParams
- func (params *ListLogParams) SetEndDate(EndDate time.Time) *ListLogParams
- func (params *ListLogParams) SetFunctionSid(FunctionSid string) *ListLogParams
- func (params *ListLogParams) SetLimit(Limit int) *ListLogParams
- func (params *ListLogParams) SetPageSize(PageSize int) *ListLogParams
- func (params *ListLogParams) SetStartDate(StartDate time.Time) *ListLogParams
- type ListLogResponse
- type ListServiceParams
- type ListServiceResponse
- type ListVariableParams
- type ListVariableResponse
- type ServerlessV1Asset
- type ServerlessV1AssetVersion
- type ServerlessV1Build
- type ServerlessV1BuildStatus
- type ServerlessV1Deployment
- type ServerlessV1Environment
- type ServerlessV1Function
- type ServerlessV1FunctionVersion
- type ServerlessV1FunctionVersionContent
- type ServerlessV1Log
- type ServerlessV1Service
- type ServerlessV1Variable
- type UpdateAssetParams
- type UpdateFunctionParams
- type UpdateServiceParams
- type UpdateVariableParams
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeApiService¶added inv0.11.0
type ApiService struct {// contains filtered or unexported fields}
funcNewApiService¶added inv0.11.0
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
funcNewApiServiceWithClient¶added inv0.11.0
func NewApiServiceWithClient(clienttwilio.BaseClient) *ApiService
func (*ApiService)CreateAsset¶added inv0.11.0
func (c *ApiService) CreateAsset(ServiceSidstring, params *CreateAssetParams) (*ServerlessV1Asset,error)
Create a new Asset resource.
func (*ApiService)CreateBuild¶added inv0.11.0
func (c *ApiService) CreateBuild(ServiceSidstring, params *CreateBuildParams) (*ServerlessV1Build,error)
Create a new Build resource. At least one function version or asset version is required.
func (*ApiService)CreateDeployment¶added inv0.11.0
func (c *ApiService) CreateDeployment(ServiceSidstring, EnvironmentSidstring, params *CreateDeploymentParams) (*ServerlessV1Deployment,error)
Create a new Deployment.
func (*ApiService)CreateEnvironment¶added inv0.11.0
func (c *ApiService) CreateEnvironment(ServiceSidstring, params *CreateEnvironmentParams) (*ServerlessV1Environment,error)
Create a new environment.
func (*ApiService)CreateFunction¶added inv0.11.0
func (c *ApiService) CreateFunction(ServiceSidstring, params *CreateFunctionParams) (*ServerlessV1Function,error)
Create a new Function resource.
func (*ApiService)CreateService¶added inv0.11.0
func (c *ApiService) CreateService(params *CreateServiceParams) (*ServerlessV1Service,error)
Create a new Service resource.
func (*ApiService)CreateVariable¶added inv0.11.0
func (c *ApiService) CreateVariable(ServiceSidstring, EnvironmentSidstring, params *CreateVariableParams) (*ServerlessV1Variable,error)
Create a new Variable.
func (*ApiService)DeleteAsset¶added inv0.11.0
func (c *ApiService) DeleteAsset(ServiceSidstring, Sidstring)error
Delete an Asset resource.
func (*ApiService)DeleteBuild¶added inv0.11.0
func (c *ApiService) DeleteBuild(ServiceSidstring, Sidstring)error
Delete a Build resource.
func (*ApiService)DeleteEnvironment¶added inv0.11.0
func (c *ApiService) DeleteEnvironment(ServiceSidstring, Sidstring)error
Delete a specific environment.
func (*ApiService)DeleteFunction¶added inv0.11.0
func (c *ApiService) DeleteFunction(ServiceSidstring, Sidstring)error
Delete a Function resource.
func (*ApiService)DeleteService¶added inv0.11.0
func (c *ApiService) DeleteService(Sidstring)error
Delete a Service resource.
func (*ApiService)DeleteVariable¶added inv0.11.0
func (c *ApiService) DeleteVariable(ServiceSidstring, EnvironmentSidstring, Sidstring)error
Delete a specific Variable.
func (*ApiService)FetchAsset¶added inv0.11.0
func (c *ApiService) FetchAsset(ServiceSidstring, Sidstring) (*ServerlessV1Asset,error)
Retrieve a specific Asset resource.
func (*ApiService)FetchAssetVersion¶added inv0.11.0
func (c *ApiService) FetchAssetVersion(ServiceSidstring, AssetSidstring, Sidstring) (*ServerlessV1AssetVersion,error)
Retrieve a specific Asset Version.
func (*ApiService)FetchBuild¶added inv0.11.0
func (c *ApiService) FetchBuild(ServiceSidstring, Sidstring) (*ServerlessV1Build,error)
Retrieve a specific Build resource.
func (*ApiService)FetchBuildStatus¶added inv0.11.0
func (c *ApiService) FetchBuildStatus(ServiceSidstring, Sidstring) (*ServerlessV1BuildStatus,error)
Retrieve a specific Build resource.
func (*ApiService)FetchDeployment¶added inv0.11.0
func (c *ApiService) FetchDeployment(ServiceSidstring, EnvironmentSidstring, Sidstring) (*ServerlessV1Deployment,error)
Retrieve a specific Deployment.
func (*ApiService)FetchEnvironment¶added inv0.11.0
func (c *ApiService) FetchEnvironment(ServiceSidstring, Sidstring) (*ServerlessV1Environment,error)
Retrieve a specific environment.
func (*ApiService)FetchFunction¶added inv0.11.0
func (c *ApiService) FetchFunction(ServiceSidstring, Sidstring) (*ServerlessV1Function,error)
Retrieve a specific Function resource.
func (*ApiService)FetchFunctionVersion¶added inv0.11.0
func (c *ApiService) FetchFunctionVersion(ServiceSidstring, FunctionSidstring, Sidstring) (*ServerlessV1FunctionVersion,error)
Retrieve a specific Function Version resource.
func (*ApiService)FetchFunctionVersionContent¶added inv0.11.0
func (c *ApiService) FetchFunctionVersionContent(ServiceSidstring, FunctionSidstring, Sidstring) (*ServerlessV1FunctionVersionContent,error)
Retrieve a the content of a specific Function Version resource.
func (*ApiService)FetchLog¶added inv0.11.0
func (c *ApiService) FetchLog(ServiceSidstring, EnvironmentSidstring, Sidstring) (*ServerlessV1Log,error)
Retrieve a specific log.
func (*ApiService)FetchService¶added inv0.11.0
func (c *ApiService) FetchService(Sidstring) (*ServerlessV1Service,error)
Retrieve a specific Service resource.
func (*ApiService)FetchVariable¶added inv0.11.0
func (c *ApiService) FetchVariable(ServiceSidstring, EnvironmentSidstring, Sidstring) (*ServerlessV1Variable,error)
Retrieve a specific Variable.
func (*ApiService)ListAsset¶added inv0.11.0
func (c *ApiService) ListAsset(ServiceSidstring, params *ListAssetParams) ([]ServerlessV1Asset,error)
Lists Asset records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListAssetVersion¶added inv0.11.0
func (c *ApiService) ListAssetVersion(ServiceSidstring, AssetSidstring, params *ListAssetVersionParams) ([]ServerlessV1AssetVersion,error)
Lists AssetVersion records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListBuild¶added inv0.11.0
func (c *ApiService) ListBuild(ServiceSidstring, params *ListBuildParams) ([]ServerlessV1Build,error)
Lists Build records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListDeployment¶added inv0.11.0
func (c *ApiService) ListDeployment(ServiceSidstring, EnvironmentSidstring, params *ListDeploymentParams) ([]ServerlessV1Deployment,error)
Lists Deployment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListEnvironment¶added inv0.11.0
func (c *ApiService) ListEnvironment(ServiceSidstring, params *ListEnvironmentParams) ([]ServerlessV1Environment,error)
Lists Environment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListFunction¶added inv0.11.0
func (c *ApiService) ListFunction(ServiceSidstring, params *ListFunctionParams) ([]ServerlessV1Function,error)
Lists Function records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListFunctionVersion¶added inv0.11.0
func (c *ApiService) ListFunctionVersion(ServiceSidstring, FunctionSidstring, params *ListFunctionVersionParams) ([]ServerlessV1FunctionVersion,error)
Lists FunctionVersion records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListLog¶added inv0.11.0
func (c *ApiService) ListLog(ServiceSidstring, EnvironmentSidstring, params *ListLogParams) ([]ServerlessV1Log,error)
Lists Log records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListService¶added inv0.11.0
func (c *ApiService) ListService(params *ListServiceParams) ([]ServerlessV1Service,error)
Lists Service records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)ListVariable¶added inv0.11.0
func (c *ApiService) ListVariable(ServiceSidstring, EnvironmentSidstring, params *ListVariableParams) ([]ServerlessV1Variable,error)
Lists Variable records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService)PageAsset¶added inv0.13.0
func (c *ApiService) PageAsset(ServiceSidstring, params *ListAssetParams, pageToken, pageNumberstring) (*ListAssetResponse,error)
Retrieve a single page of Asset records from the API. Request is executed immediately.
func (*ApiService)PageAssetVersion¶added inv0.13.0
func (c *ApiService) PageAssetVersion(ServiceSidstring, AssetSidstring, params *ListAssetVersionParams, pageToken, pageNumberstring) (*ListAssetVersionResponse,error)
Retrieve a single page of AssetVersion records from the API. Request is executed immediately.
func (*ApiService)PageBuild¶added inv0.13.0
func (c *ApiService) PageBuild(ServiceSidstring, params *ListBuildParams, pageToken, pageNumberstring) (*ListBuildResponse,error)
Retrieve a single page of Build records from the API. Request is executed immediately.
func (*ApiService)PageDeployment¶added inv0.13.0
func (c *ApiService) PageDeployment(ServiceSidstring, EnvironmentSidstring, params *ListDeploymentParams, pageToken, pageNumberstring) (*ListDeploymentResponse,error)
Retrieve a single page of Deployment records from the API. Request is executed immediately.
func (*ApiService)PageEnvironment¶added inv0.13.0
func (c *ApiService) PageEnvironment(ServiceSidstring, params *ListEnvironmentParams, pageToken, pageNumberstring) (*ListEnvironmentResponse,error)
Retrieve a single page of Environment records from the API. Request is executed immediately.
func (*ApiService)PageFunction¶added inv0.13.0
func (c *ApiService) PageFunction(ServiceSidstring, params *ListFunctionParams, pageToken, pageNumberstring) (*ListFunctionResponse,error)
Retrieve a single page of Function records from the API. Request is executed immediately.
func (*ApiService)PageFunctionVersion¶added inv0.13.0
func (c *ApiService) PageFunctionVersion(ServiceSidstring, FunctionSidstring, params *ListFunctionVersionParams, pageToken, pageNumberstring) (*ListFunctionVersionResponse,error)
Retrieve a single page of FunctionVersion records from the API. Request is executed immediately.
func (*ApiService)PageLog¶added inv0.13.0
func (c *ApiService) PageLog(ServiceSidstring, EnvironmentSidstring, params *ListLogParams, pageToken, pageNumberstring) (*ListLogResponse,error)
Retrieve a single page of Log records from the API. Request is executed immediately.
func (*ApiService)PageService¶added inv0.13.0
func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumberstring) (*ListServiceResponse,error)
Retrieve a single page of Service records from the API. Request is executed immediately.
func (*ApiService)PageVariable¶added inv0.13.0
func (c *ApiService) PageVariable(ServiceSidstring, EnvironmentSidstring, params *ListVariableParams, pageToken, pageNumberstring) (*ListVariableResponse,error)
Retrieve a single page of Variable records from the API. Request is executed immediately.
func (*ApiService)RequestHandler¶added inv1.25.0
func (c *ApiService) RequestHandler() *twilio.RequestHandler
func (*ApiService)StreamAsset¶added inv0.13.0
func (c *ApiService) StreamAsset(ServiceSidstring, params *ListAssetParams) (chanServerlessV1Asset, chanerror)
Streams Asset records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamAssetVersion¶added inv0.13.0
func (c *ApiService) StreamAssetVersion(ServiceSidstring, AssetSidstring, params *ListAssetVersionParams) (chanServerlessV1AssetVersion, chanerror)
Streams AssetVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamBuild¶added inv0.13.0
func (c *ApiService) StreamBuild(ServiceSidstring, params *ListBuildParams) (chanServerlessV1Build, chanerror)
Streams Build records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamDeployment¶added inv0.13.0
func (c *ApiService) StreamDeployment(ServiceSidstring, EnvironmentSidstring, params *ListDeploymentParams) (chanServerlessV1Deployment, chanerror)
Streams Deployment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamEnvironment¶added inv0.13.0
func (c *ApiService) StreamEnvironment(ServiceSidstring, params *ListEnvironmentParams) (chanServerlessV1Environment, chanerror)
Streams Environment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamFunction¶added inv0.13.0
func (c *ApiService) StreamFunction(ServiceSidstring, params *ListFunctionParams) (chanServerlessV1Function, chanerror)
Streams Function records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamFunctionVersion¶added inv0.13.0
func (c *ApiService) StreamFunctionVersion(ServiceSidstring, FunctionSidstring, params *ListFunctionVersionParams) (chanServerlessV1FunctionVersion, chanerror)
Streams FunctionVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamLog¶added inv0.13.0
func (c *ApiService) StreamLog(ServiceSidstring, EnvironmentSidstring, params *ListLogParams) (chanServerlessV1Log, chanerror)
Streams Log records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamService¶added inv0.13.0
func (c *ApiService) StreamService(params *ListServiceParams) (chanServerlessV1Service, chanerror)
Streams Service records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)StreamVariable¶added inv0.13.0
func (c *ApiService) StreamVariable(ServiceSidstring, EnvironmentSidstring, params *ListVariableParams) (chanServerlessV1Variable, chanerror)
Streams Variable records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService)UpdateAsset¶added inv0.11.0
func (c *ApiService) UpdateAsset(ServiceSidstring, Sidstring, params *UpdateAssetParams) (*ServerlessV1Asset,error)
Update a specific Asset resource.
func (*ApiService)UpdateFunction¶added inv0.11.0
func (c *ApiService) UpdateFunction(ServiceSidstring, Sidstring, params *UpdateFunctionParams) (*ServerlessV1Function,error)
Update a specific Function resource.
func (*ApiService)UpdateService¶added inv0.11.0
func (c *ApiService) UpdateService(Sidstring, params *UpdateServiceParams) (*ServerlessV1Service,error)
Update a specific Service resource.
func (*ApiService)UpdateVariable¶added inv0.11.0
func (c *ApiService) UpdateVariable(ServiceSidstring, EnvironmentSidstring, Sidstring, params *UpdateVariableParams) (*ServerlessV1Variable,error)
Update a specific Variable.
typeCreateAssetParams¶
type CreateAssetParams struct {// A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.FriendlyName *string `json:"FriendlyName,omitempty"`}
Optional parameters for the method 'CreateAsset'
func (*CreateAssetParams)SetFriendlyName¶
func (params *CreateAssetParams) SetFriendlyName(FriendlyNamestring) *CreateAssetParams
typeCreateBuildParams¶
type CreateBuildParams struct {// The list of Asset Version resource SIDs to include in the Build.AssetVersions *[]string `json:"AssetVersions,omitempty"`// The list of the Function Version resource SIDs to include in the Build.FunctionVersions *[]string `json:"FunctionVersions,omitempty"`// A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency.Dependencies *string `json:"Dependencies,omitempty"`// The Runtime version that will be used to run the Build resource when it is deployed.Runtime *string `json:"Runtime,omitempty"`}
Optional parameters for the method 'CreateBuild'
func (*CreateBuildParams)SetAssetVersions¶
func (params *CreateBuildParams) SetAssetVersions(AssetVersions []string) *CreateBuildParams
func (*CreateBuildParams)SetDependencies¶
func (params *CreateBuildParams) SetDependencies(Dependenciesstring) *CreateBuildParams
func (*CreateBuildParams)SetFunctionVersions¶
func (params *CreateBuildParams) SetFunctionVersions(FunctionVersions []string) *CreateBuildParams
func (*CreateBuildParams)SetRuntime¶
func (params *CreateBuildParams) SetRuntime(Runtimestring) *CreateBuildParams
typeCreateDeploymentParams¶
type CreateDeploymentParams struct {// The SID of the Build for the Deployment.BuildSid *string `json:"BuildSid,omitempty"`// Whether the Deployment is a plugin.IsPlugin *bool `json:"IsPlugin,omitempty"`}
Optional parameters for the method 'CreateDeployment'
func (*CreateDeploymentParams)SetBuildSid¶
func (params *CreateDeploymentParams) SetBuildSid(BuildSidstring) *CreateDeploymentParams
func (*CreateDeploymentParams)SetIsPlugin¶added inv1.23.2
func (params *CreateDeploymentParams) SetIsPlugin(IsPluginbool) *CreateDeploymentParams
typeCreateEnvironmentParams¶
type CreateEnvironmentParams struct {// A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters.UniqueName *string `json:"UniqueName,omitempty"`// A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters.DomainSuffix *string `json:"DomainSuffix,omitempty"`}
Optional parameters for the method 'CreateEnvironment'
func (*CreateEnvironmentParams)SetDomainSuffix¶
func (params *CreateEnvironmentParams) SetDomainSuffix(DomainSuffixstring) *CreateEnvironmentParams
func (*CreateEnvironmentParams)SetUniqueName¶
func (params *CreateEnvironmentParams) SetUniqueName(UniqueNamestring) *CreateEnvironmentParams
typeCreateFunctionParams¶
type CreateFunctionParams struct {// A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters.FriendlyName *string `json:"FriendlyName,omitempty"`}
Optional parameters for the method 'CreateFunction'
func (*CreateFunctionParams)SetFriendlyName¶
func (params *CreateFunctionParams) SetFriendlyName(FriendlyNamestring) *CreateFunctionParams
typeCreateServiceParams¶
type CreateServiceParams struct {// A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique.UniqueName *string `json:"UniqueName,omitempty"`// A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters.FriendlyName *string `json:"FriendlyName,omitempty"`// Whether to inject Account credentials into a function invocation context. The default value is `true`.IncludeCredentials *bool `json:"IncludeCredentials,omitempty"`// Whether the Service's properties and subresources can be edited via the UI. The default value is `false`.UiEditable *bool `json:"UiEditable,omitempty"`}
Optional parameters for the method 'CreateService'
func (*CreateServiceParams)SetFriendlyName¶
func (params *CreateServiceParams) SetFriendlyName(FriendlyNamestring) *CreateServiceParams
func (*CreateServiceParams)SetIncludeCredentials¶
func (params *CreateServiceParams) SetIncludeCredentials(IncludeCredentialsbool) *CreateServiceParams
func (*CreateServiceParams)SetUiEditable¶
func (params *CreateServiceParams) SetUiEditable(UiEditablebool) *CreateServiceParams
func (*CreateServiceParams)SetUniqueName¶
func (params *CreateServiceParams) SetUniqueName(UniqueNamestring) *CreateServiceParams
typeCreateVariableParams¶
type CreateVariableParams struct {// A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.Key *string `json:"Key,omitempty"`// A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.Value *string `json:"Value,omitempty"`}
Optional parameters for the method 'CreateVariable'
func (*CreateVariableParams)SetKey¶
func (params *CreateVariableParams) SetKey(Keystring) *CreateVariableParams
func (*CreateVariableParams)SetValue¶
func (params *CreateVariableParams) SetValue(Valuestring) *CreateVariableParams
typeListAssetParams¶
type ListAssetParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListAsset'
func (*ListAssetParams)SetLimit¶added inv0.13.0
func (params *ListAssetParams) SetLimit(Limitint) *ListAssetParams
func (*ListAssetParams)SetPageSize¶
func (params *ListAssetParams) SetPageSize(PageSizeint) *ListAssetParams
typeListAssetResponse¶
type ListAssetResponse struct {Assets []ServerlessV1Asset `json:"assets,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListAssetResponse struct for ListAssetResponse
typeListAssetResponseMeta¶added inv1.0.0
type ListAssetResponseMeta struct {FirstPageUrlstring `json:"first_page_url,omitempty"`Keystring `json:"key,omitempty"`NextPageUrl *string `json:"next_page_url,omitempty"`Pageint `json:"page,omitempty"`PageSizeint `json:"page_size,omitempty"`PreviousPageUrl *string `json:"previous_page_url,omitempty"`Urlstring `json:"url,omitempty"`}
ListAssetResponseMeta struct for ListAssetResponseMeta
typeListAssetVersionParams¶
type ListAssetVersionParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListAssetVersion'
func (*ListAssetVersionParams)SetLimit¶added inv0.13.0
func (params *ListAssetVersionParams) SetLimit(Limitint) *ListAssetVersionParams
func (*ListAssetVersionParams)SetPageSize¶
func (params *ListAssetVersionParams) SetPageSize(PageSizeint) *ListAssetVersionParams
typeListAssetVersionResponse¶
type ListAssetVersionResponse struct {AssetVersions []ServerlessV1AssetVersion `json:"asset_versions,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListAssetVersionResponse struct for ListAssetVersionResponse
typeListBuildParams¶
type ListBuildParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListBuild'
func (*ListBuildParams)SetLimit¶added inv0.13.0
func (params *ListBuildParams) SetLimit(Limitint) *ListBuildParams
func (*ListBuildParams)SetPageSize¶
func (params *ListBuildParams) SetPageSize(PageSizeint) *ListBuildParams
typeListBuildResponse¶
type ListBuildResponse struct {Builds []ServerlessV1Build `json:"builds,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListBuildResponse struct for ListBuildResponse
typeListDeploymentParams¶
type ListDeploymentParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListDeployment'
func (*ListDeploymentParams)SetLimit¶added inv0.13.0
func (params *ListDeploymentParams) SetLimit(Limitint) *ListDeploymentParams
func (*ListDeploymentParams)SetPageSize¶
func (params *ListDeploymentParams) SetPageSize(PageSizeint) *ListDeploymentParams
typeListDeploymentResponse¶
type ListDeploymentResponse struct {Deployments []ServerlessV1Deployment `json:"deployments,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListDeploymentResponse struct for ListDeploymentResponse
typeListEnvironmentParams¶
type ListEnvironmentParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListEnvironment'
func (*ListEnvironmentParams)SetLimit¶added inv0.13.0
func (params *ListEnvironmentParams) SetLimit(Limitint) *ListEnvironmentParams
func (*ListEnvironmentParams)SetPageSize¶
func (params *ListEnvironmentParams) SetPageSize(PageSizeint) *ListEnvironmentParams
typeListEnvironmentResponse¶
type ListEnvironmentResponse struct {Environments []ServerlessV1Environment `json:"environments,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListEnvironmentResponse struct for ListEnvironmentResponse
typeListFunctionParams¶
type ListFunctionParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListFunction'
func (*ListFunctionParams)SetLimit¶added inv0.13.0
func (params *ListFunctionParams) SetLimit(Limitint) *ListFunctionParams
func (*ListFunctionParams)SetPageSize¶
func (params *ListFunctionParams) SetPageSize(PageSizeint) *ListFunctionParams
typeListFunctionResponse¶
type ListFunctionResponse struct {Functions []ServerlessV1Function `json:"functions,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListFunctionResponse struct for ListFunctionResponse
typeListFunctionVersionParams¶
type ListFunctionVersionParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListFunctionVersion'
func (*ListFunctionVersionParams)SetLimit¶added inv0.13.0
func (params *ListFunctionVersionParams) SetLimit(Limitint) *ListFunctionVersionParams
func (*ListFunctionVersionParams)SetPageSize¶
func (params *ListFunctionVersionParams) SetPageSize(PageSizeint) *ListFunctionVersionParams
typeListFunctionVersionResponse¶
type ListFunctionVersionResponse struct {FunctionVersions []ServerlessV1FunctionVersion `json:"function_versions,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListFunctionVersionResponse struct for ListFunctionVersionResponse
typeListLogParams¶
type ListLogParams struct {// The SID of the function whose invocation produced the Log resources to read.FunctionSid *string `json:"FunctionSid,omitempty"`// The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.StartDate *time.Time `json:"StartDate,omitempty"`// The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.EndDate *time.Time `json:"EndDate,omitempty"`// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListLog'
func (*ListLogParams)SetEndDate¶
func (params *ListLogParams) SetEndDate(EndDatetime.Time) *ListLogParams
func (*ListLogParams)SetFunctionSid¶
func (params *ListLogParams) SetFunctionSid(FunctionSidstring) *ListLogParams
func (*ListLogParams)SetLimit¶added inv0.13.0
func (params *ListLogParams) SetLimit(Limitint) *ListLogParams
func (*ListLogParams)SetPageSize¶
func (params *ListLogParams) SetPageSize(PageSizeint) *ListLogParams
func (*ListLogParams)SetStartDate¶
func (params *ListLogParams) SetStartDate(StartDatetime.Time) *ListLogParams
typeListLogResponse¶
type ListLogResponse struct {Logs []ServerlessV1Log `json:"logs,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListLogResponse struct for ListLogResponse
typeListServiceParams¶
type ListServiceParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListService'
func (*ListServiceParams)SetLimit¶added inv0.13.0
func (params *ListServiceParams) SetLimit(Limitint) *ListServiceParams
func (*ListServiceParams)SetPageSize¶
func (params *ListServiceParams) SetPageSize(PageSizeint) *ListServiceParams
typeListServiceResponse¶
type ListServiceResponse struct {Services []ServerlessV1Service `json:"services,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListServiceResponse struct for ListServiceResponse
typeListVariableParams¶
type ListVariableParams struct {// How many resources to return in each list page. The default is 50, and the maximum is 1000.PageSize *int `json:"PageSize,omitempty"`// Max number of records to return.Limit *int `json:"limit,omitempty"`}
Optional parameters for the method 'ListVariable'
func (*ListVariableParams)SetLimit¶added inv0.13.0
func (params *ListVariableParams) SetLimit(Limitint) *ListVariableParams
func (*ListVariableParams)SetPageSize¶
func (params *ListVariableParams) SetPageSize(PageSizeint) *ListVariableParams
typeListVariableResponse¶
type ListVariableResponse struct {Variables []ServerlessV1Variable `json:"variables,omitempty"`MetaListAssetResponseMeta `json:"meta,omitempty"`}
ListVariableResponse struct for ListVariableResponse
typeServerlessV1Asset¶added inv0.14.0
type ServerlessV1Asset struct {// The unique string that we created to identify the Asset resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Asset resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Asset resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The string that you assigned to describe the Asset resource. It can be a maximum of 255 characters.FriendlyName *string `json:"friendly_name,omitempty"`// The date and time in GMT when the Asset resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The date and time in GMT when the Asset resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateUpdated *time.Time `json:"date_updated,omitempty"`// The absolute URL of the Asset resource.Url *string `json:"url,omitempty"`// The URLs of the Asset resource's nested resources.Links *map[string]interface{} `json:"links,omitempty"`}
ServerlessV1Asset struct for ServerlessV1Asset
typeServerlessV1AssetVersion¶added inv0.14.0
type ServerlessV1AssetVersion struct {// The unique string that we created to identify the Asset Version resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Asset Version resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Asset Version resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The SID of the Asset resource that is the parent of the Asset Version.AssetSid *string `json:"asset_sid,omitempty"`// The URL-friendly string by which the Asset Version can be referenced. It can be a maximum of 255 characters. All paths begin with a forward slash ('/'). If an Asset Version creation request is submitted with a path not containing a leading slash, the path will automatically be prepended with one.Path *string `json:"path,omitempty"`Visibility *string `json:"visibility,omitempty"`// The date and time in GMT when the Asset Version resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The absolute URL of the Asset Version resource.Url *string `json:"url,omitempty"`}
ServerlessV1AssetVersion struct for ServerlessV1AssetVersion
typeServerlessV1Build¶added inv0.14.0
type ServerlessV1Build struct {// The unique string that we created to identify the Build resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Build resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Build resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`Status *string `json:"status,omitempty"`// The list of Asset Version resource SIDs that are included in the Build.AssetVersions *[]interface{} `json:"asset_versions,omitempty"`// The list of Function Version resource SIDs that are included in the Build.FunctionVersions *[]interface{} `json:"function_versions,omitempty"`// A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency.Dependencies *[]interface{} `json:"dependencies,omitempty"`Runtime *string `json:"runtime,omitempty"`// The date and time in GMT when the Build resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The date and time in GMT when the Build resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateUpdated *time.Time `json:"date_updated,omitempty"`// The absolute URL of the Build resource.Url *string `json:"url,omitempty"`Links *map[string]interface{} `json:"links,omitempty"`}
ServerlessV1Build struct for ServerlessV1Build
typeServerlessV1BuildStatus¶added inv0.14.0
type ServerlessV1BuildStatus struct {// The unique string that we created to identify the Build resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Build resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Build resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`Status *string `json:"status,omitempty"`// The absolute URL of the Build Status resource.Url *string `json:"url,omitempty"`}
ServerlessV1BuildStatus struct for ServerlessV1BuildStatus
typeServerlessV1Deployment¶added inv0.14.0
type ServerlessV1Deployment struct {// The unique string that we created to identify the Deployment resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Deployment resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Deployment resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The SID of the Environment for the Deployment.EnvironmentSid *string `json:"environment_sid,omitempty"`// The SID of the Build for the deployment.BuildSid *string `json:"build_sid,omitempty"`// The date and time in GMT when the Deployment resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The date and time in GMT when the Deployment resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateUpdated *time.Time `json:"date_updated,omitempty"`// The absolute URL of the Deployment resource.Url *string `json:"url,omitempty"`}
ServerlessV1Deployment struct for ServerlessV1Deployment
typeServerlessV1Environment¶added inv0.14.0
type ServerlessV1Environment struct {// The unique string that we created to identify the Environment resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Environment resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Environment resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The SID of the build deployed in the environment.BuildSid *string `json:"build_sid,omitempty"`// A user-defined string that uniquely identifies the Environment resource.UniqueName *string `json:"unique_name,omitempty"`// A URL-friendly name that represents the environment and forms part of the domain name.DomainSuffix *string `json:"domain_suffix,omitempty"`// The domain name for all Functions and Assets deployed in the Environment, using the Service unique name, a randomly-generated Service suffix, and an optional Environment domain suffix.DomainName *string `json:"domain_name,omitempty"`// The date and time in GMT when the Environment resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The date and time in GMT when the Environment resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateUpdated *time.Time `json:"date_updated,omitempty"`// The absolute URL of the Environment resource.Url *string `json:"url,omitempty"`// The URLs of the Environment resource's nested resources.Links *map[string]interface{} `json:"links,omitempty"`}
ServerlessV1Environment struct for ServerlessV1Environment
typeServerlessV1Function¶added inv0.14.0
type ServerlessV1Function struct {// The unique string that we created to identify the Function resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Function resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Function resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The string that you assigned to describe the Function resource. It can be a maximum of 255 characters.FriendlyName *string `json:"friendly_name,omitempty"`// The date and time in GMT when the Function resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The date and time in GMT when the Function resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateUpdated *time.Time `json:"date_updated,omitempty"`// The absolute URL of the Function resource.Url *string `json:"url,omitempty"`// The URLs of nested resources of the Function resource.Links *map[string]interface{} `json:"links,omitempty"`}
ServerlessV1Function struct for ServerlessV1Function
typeServerlessV1FunctionVersion¶added inv0.14.0
type ServerlessV1FunctionVersion struct {// The unique string that we created to identify the Function Version resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Function Version resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Function Version resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The SID of the Function resource that is the parent of the Function Version resource.FunctionSid *string `json:"function_sid,omitempty"`// The URL-friendly string by which the Function Version resource can be referenced. It can be a maximum of 255 characters. All paths begin with a forward slash ('/'). If a Function Version creation request is submitted with a path not containing a leading slash, the path will automatically be prepended with one.Path *string `json:"path,omitempty"`Visibility *string `json:"visibility,omitempty"`// The date and time in GMT when the Function Version resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The absolute URL of the Function Version resource.Url *string `json:"url,omitempty"`Links *map[string]interface{} `json:"links,omitempty"`}
ServerlessV1FunctionVersion struct for ServerlessV1FunctionVersion
typeServerlessV1FunctionVersionContent¶added inv0.14.0
type ServerlessV1FunctionVersionContent struct {// The unique string that we created to identify the Function Version resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Function Version resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Function Version resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The SID of the Function that is the parent of the Function Version.FunctionSid *string `json:"function_sid,omitempty"`// The content of the Function Version resource.Content *string `json:"content,omitempty"`Url *string `json:"url,omitempty"`}
ServerlessV1FunctionVersionContent struct for ServerlessV1FunctionVersionContent
typeServerlessV1Log¶added inv0.14.0
type ServerlessV1Log struct {// The unique string that we created to identify the Log resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Log resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Log resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The SID of the environment in which the log occurred.EnvironmentSid *string `json:"environment_sid,omitempty"`// The SID of the build that corresponds to the log.BuildSid *string `json:"build_sid,omitempty"`// The SID of the deployment that corresponds to the log.DeploymentSid *string `json:"deployment_sid,omitempty"`// The SID of the function whose invocation produced the log.FunctionSid *string `json:"function_sid,omitempty"`// The SID of the request associated with the log.RequestSid *string `json:"request_sid,omitempty"`// The log level.Level *string `json:"level,omitempty"`// The log message.Message *string `json:"message,omitempty"`// The date and time in GMT when the Log resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The absolute URL of the Log resource.Url *string `json:"url,omitempty"`}
ServerlessV1Log struct for ServerlessV1Log
typeServerlessV1Service¶
type ServerlessV1Service struct {// The unique string that we created to identify the Service resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource.AccountSid *string `json:"account_sid,omitempty"`// The string that you assigned to describe the Service resource.FriendlyName *string `json:"friendly_name,omitempty"`// A user-defined string that uniquely identifies the Service resource. It can be used in place of the Service resource's `sid` in the URL to address the Service resource.UniqueName *string `json:"unique_name,omitempty"`// Whether to inject Account credentials into a function invocation context.IncludeCredentials *bool `json:"include_credentials,omitempty"`// Whether the Service resource's properties and subresources can be edited via the UI.UiEditable *bool `json:"ui_editable,omitempty"`// The base domain name for this Service, which is a combination of the unique name and a randomly generated string.DomainBase *string `json:"domain_base,omitempty"`// The date and time in GMT when the Service resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The date and time in GMT when the Service resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateUpdated *time.Time `json:"date_updated,omitempty"`// The absolute URL of the Service resource.Url *string `json:"url,omitempty"`// The URLs of the Service's nested resources.Links *map[string]interface{} `json:"links,omitempty"`}
ServerlessV1Service struct for ServerlessV1Service
typeServerlessV1Variable¶added inv0.14.0
type ServerlessV1Variable struct {// The unique string that we created to identify the Variable resource.Sid *string `json:"sid,omitempty"`// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Variable resource.AccountSid *string `json:"account_sid,omitempty"`// The SID of the Service that the Variable resource is associated with.ServiceSid *string `json:"service_sid,omitempty"`// The SID of the Environment in which the Variable exists.EnvironmentSid *string `json:"environment_sid,omitempty"`// A string by which the Variable resource can be referenced.Key *string `json:"key,omitempty"`// A string that contains the actual value of the Variable.Value *string `json:"value,omitempty"`// The date and time in GMT when the Variable resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateCreated *time.Time `json:"date_created,omitempty"`// The date and time in GMT when the Variable resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.DateUpdated *time.Time `json:"date_updated,omitempty"`// The absolute URL of the Variable resource.Url *string `json:"url,omitempty"`}
ServerlessV1Variable struct for ServerlessV1Variable
typeUpdateAssetParams¶
type UpdateAssetParams struct {// A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.FriendlyName *string `json:"FriendlyName,omitempty"`}
Optional parameters for the method 'UpdateAsset'
func (*UpdateAssetParams)SetFriendlyName¶
func (params *UpdateAssetParams) SetFriendlyName(FriendlyNamestring) *UpdateAssetParams
typeUpdateFunctionParams¶
type UpdateFunctionParams struct {// A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters.FriendlyName *string `json:"FriendlyName,omitempty"`}
Optional parameters for the method 'UpdateFunction'
func (*UpdateFunctionParams)SetFriendlyName¶
func (params *UpdateFunctionParams) SetFriendlyName(FriendlyNamestring) *UpdateFunctionParams
typeUpdateServiceParams¶
type UpdateServiceParams struct {// Whether to inject Account credentials into a function invocation context.IncludeCredentials *bool `json:"IncludeCredentials,omitempty"`// A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters.FriendlyName *string `json:"FriendlyName,omitempty"`// Whether the Service resource's properties and subresources can be edited via the UI. The default value is `false`.UiEditable *bool `json:"UiEditable,omitempty"`}
Optional parameters for the method 'UpdateService'
func (*UpdateServiceParams)SetFriendlyName¶
func (params *UpdateServiceParams) SetFriendlyName(FriendlyNamestring) *UpdateServiceParams
func (*UpdateServiceParams)SetIncludeCredentials¶
func (params *UpdateServiceParams) SetIncludeCredentials(IncludeCredentialsbool) *UpdateServiceParams
func (*UpdateServiceParams)SetUiEditable¶
func (params *UpdateServiceParams) SetUiEditable(UiEditablebool) *UpdateServiceParams
typeUpdateVariableParams¶
type UpdateVariableParams struct {// A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.Key *string `json:"Key,omitempty"`// A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.Value *string `json:"Value,omitempty"`}
Optional parameters for the method 'UpdateVariable'
func (*UpdateVariableParams)SetKey¶
func (params *UpdateVariableParams) SetKey(Keystring) *UpdateVariableParams
func (*UpdateVariableParams)SetValue¶
func (params *UpdateVariableParams) SetValue(Valuestring) *UpdateVariableParams
Source Files¶
- api_service.go
- model_list_asset_response.go
- model_list_asset_response_meta.go
- model_list_asset_version_response.go
- model_list_build_response.go
- model_list_deployment_response.go
- model_list_environment_response.go
- model_list_function_response.go
- model_list_function_version_response.go
- model_list_log_response.go
- model_list_service_response.go
- model_list_variable_response.go
- model_serverless_v1_asset.go
- model_serverless_v1_asset_version.go
- model_serverless_v1_build.go
- model_serverless_v1_build_status.go
- model_serverless_v1_deployment.go
- model_serverless_v1_environment.go
- model_serverless_v1_function.go
- model_serverless_v1_function_version.go
- model_serverless_v1_function_version_content.go
- model_serverless_v1_log.go
- model_serverless_v1_service.go
- model_serverless_v1_variable.go
- services.go
- services_assets.go
- services_assets_versions.go
- services_builds.go
- services_builds_status.go
- services_environments.go
- services_environments_deployments.go
- services_environments_logs.go
- services_environments_variables.go
- services_functions.go
- services_functions_versions.go
- services_functions_versions_content.go