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) 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 ¶
type ApiService ¶ added in v0.11.0
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶ added in v0.11.0
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
func NewApiServiceWithClient ¶ added in v0.11.0
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService
func (*ApiService) CreateAsset ¶ added in v0.11.0
func (c *ApiService) CreateAsset(ServiceSid string, params *CreateAssetParams) (*ServerlessV1Asset, error)
Create a new Asset resource.
func (*ApiService) CreateBuild ¶ added in v0.11.0
func (c *ApiService) CreateBuild(ServiceSid string, params *CreateBuildParams) (*ServerlessV1Build, error)
Create a new Build resource. At least one function version or asset version is required.
func (*ApiService) CreateDeployment ¶ added in v0.11.0
func (c *ApiService) CreateDeployment(ServiceSid string, EnvironmentSid string, params *CreateDeploymentParams) (*ServerlessV1Deployment, error)
Create a new Deployment.
func (*ApiService) CreateEnvironment ¶ added in v0.11.0
func (c *ApiService) CreateEnvironment(ServiceSid string, params *CreateEnvironmentParams) (*ServerlessV1Environment, error)
Create a new environment.
func (*ApiService) CreateFunction ¶ added in v0.11.0
func (c *ApiService) CreateFunction(ServiceSid string, params *CreateFunctionParams) (*ServerlessV1Function, error)
Create a new Function resource.
func (*ApiService) CreateService ¶ added in v0.11.0
func (c *ApiService) CreateService(params *CreateServiceParams) (*ServerlessV1Service, error)
Create a new Service resource.
func (*ApiService) CreateVariable ¶ added in v0.11.0
func (c *ApiService) CreateVariable(ServiceSid string, EnvironmentSid string, params *CreateVariableParams) (*ServerlessV1Variable, error)
Create a new Variable.
func (*ApiService) DeleteAsset ¶ added in v0.11.0
func (c *ApiService) DeleteAsset(ServiceSid string, Sid string) error
Delete an Asset resource.
func (*ApiService) DeleteBuild ¶ added in v0.11.0
func (c *ApiService) DeleteBuild(ServiceSid string, Sid string) error
Delete a Build resource.
func (*ApiService) DeleteEnvironment ¶ added in v0.11.0
func (c *ApiService) DeleteEnvironment(ServiceSid string, Sid string) error
Delete a specific environment.
func (*ApiService) DeleteFunction ¶ added in v0.11.0
func (c *ApiService) DeleteFunction(ServiceSid string, Sid string) error
Delete a Function resource.
func (*ApiService) DeleteService ¶ added in v0.11.0
func (c *ApiService) DeleteService(Sid string) error
Delete a Service resource.
func (*ApiService) DeleteVariable ¶ added in v0.11.0
func (c *ApiService) DeleteVariable(ServiceSid string, EnvironmentSid string, Sid string) error
Delete a specific Variable.
func (*ApiService) FetchAsset ¶ added in v0.11.0
func (c *ApiService) FetchAsset(ServiceSid string, Sid string) (*ServerlessV1Asset, error)
Retrieve a specific Asset resource.
func (*ApiService) FetchAssetVersion ¶ added in v0.11.0
func (c *ApiService) FetchAssetVersion(ServiceSid string, AssetSid string, Sid string) (*ServerlessV1AssetVersion, error)
Retrieve a specific Asset Version.
func (*ApiService) FetchBuild ¶ added in v0.11.0
func (c *ApiService) FetchBuild(ServiceSid string, Sid string) (*ServerlessV1Build, error)
Retrieve a specific Build resource.
func (*ApiService) FetchBuildStatus ¶ added in v0.11.0
func (c *ApiService) FetchBuildStatus(ServiceSid string, Sid string) (*ServerlessV1BuildStatus, error)
Retrieve a specific Build resource.
func (*ApiService) FetchDeployment ¶ added in v0.11.0
func (c *ApiService) FetchDeployment(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Deployment, error)
Retrieve a specific Deployment.
func (*ApiService) FetchEnvironment ¶ added in v0.11.0
func (c *ApiService) FetchEnvironment(ServiceSid string, Sid string) (*ServerlessV1Environment, error)
Retrieve a specific environment.
func (*ApiService) FetchFunction ¶ added in v0.11.0
func (c *ApiService) FetchFunction(ServiceSid string, Sid string) (*ServerlessV1Function, error)
Retrieve a specific Function resource.
func (*ApiService) FetchFunctionVersion ¶ added in v0.11.0
func (c *ApiService) FetchFunctionVersion(ServiceSid string, FunctionSid string, Sid string) (*ServerlessV1FunctionVersion, error)
Retrieve a specific Function Version resource.
func (*ApiService) FetchFunctionVersionContent ¶ added in v0.11.0
func (c *ApiService) FetchFunctionVersionContent(ServiceSid string, FunctionSid string, Sid string) (*ServerlessV1FunctionVersionContent, error)
Retrieve a the content of a specific Function Version resource.
func (*ApiService) FetchLog ¶ added in v0.11.0
func (c *ApiService) FetchLog(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Log, error)
Retrieve a specific log.
func (*ApiService) FetchService ¶ added in v0.11.0
func (c *ApiService) FetchService(Sid string) (*ServerlessV1Service, error)
Retrieve a specific Service resource.
func (*ApiService) FetchVariable ¶ added in v0.11.0
func (c *ApiService) FetchVariable(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Variable, error)
Retrieve a specific Variable.
func (*ApiService) ListAsset ¶ added in v0.11.0
func (c *ApiService) ListAsset(ServiceSid string, 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 in v0.11.0
func (c *ApiService) ListAssetVersion(ServiceSid string, AssetSid string, 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 in v0.11.0
func (c *ApiService) ListBuild(ServiceSid string, 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 in v0.11.0
func (c *ApiService) ListDeployment(ServiceSid string, EnvironmentSid string, 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 in v0.11.0
func (c *ApiService) ListEnvironment(ServiceSid string, 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 in v0.11.0
func (c *ApiService) ListFunction(ServiceSid string, 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 in v0.11.0
func (c *ApiService) ListFunctionVersion(ServiceSid string, FunctionSid string, 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 in v0.11.0
func (c *ApiService) ListLog(ServiceSid string, EnvironmentSid string, 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 in v0.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 in v0.11.0
func (c *ApiService) ListVariable(ServiceSid string, EnvironmentSid string, 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 in v0.13.0
func (c *ApiService) PageAsset(ServiceSid string, params *ListAssetParams, pageToken, pageNumber string) (*ListAssetResponse, error)
Retrieve a single page of Asset records from the API. Request is executed immediately.
func (*ApiService) PageAssetVersion ¶ added in v0.13.0
func (c *ApiService) PageAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams, pageToken, pageNumber string) (*ListAssetVersionResponse, error)
Retrieve a single page of AssetVersion records from the API. Request is executed immediately.
func (*ApiService) PageBuild ¶ added in v0.13.0
func (c *ApiService) PageBuild(ServiceSid string, params *ListBuildParams, pageToken, pageNumber string) (*ListBuildResponse, error)
Retrieve a single page of Build records from the API. Request is executed immediately.
func (*ApiService) PageDeployment ¶ added in v0.13.0
func (c *ApiService) PageDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams, pageToken, pageNumber string) (*ListDeploymentResponse, error)
Retrieve a single page of Deployment records from the API. Request is executed immediately.
func (*ApiService) PageEnvironment ¶ added in v0.13.0
func (c *ApiService) PageEnvironment(ServiceSid string, params *ListEnvironmentParams, pageToken, pageNumber string) (*ListEnvironmentResponse, error)
Retrieve a single page of Environment records from the API. Request is executed immediately.
func (*ApiService) PageFunction ¶ added in v0.13.0
func (c *ApiService) PageFunction(ServiceSid string, params *ListFunctionParams, pageToken, pageNumber string) (*ListFunctionResponse, error)
Retrieve a single page of Function records from the API. Request is executed immediately.
func (*ApiService) PageFunctionVersion ¶ added in v0.13.0
func (c *ApiService) PageFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams, pageToken, pageNumber string) (*ListFunctionVersionResponse, error)
Retrieve a single page of FunctionVersion records from the API. Request is executed immediately.
func (*ApiService) PageLog ¶ added in v0.13.0
func (c *ApiService) PageLog(ServiceSid string, EnvironmentSid string, params *ListLogParams, pageToken, pageNumber string) (*ListLogResponse, error)
Retrieve a single page of Log records from the API. Request is executed immediately.
func (*ApiService) PageService ¶ added in v0.13.0
func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)
Retrieve a single page of Service records from the API. Request is executed immediately.
func (*ApiService) PageVariable ¶ added in v0.13.0
func (c *ApiService) PageVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams, pageToken, pageNumber string) (*ListVariableResponse, error)
Retrieve a single page of Variable records from the API. Request is executed immediately.
func (*ApiService) StreamAsset ¶ added in v0.13.0
func (c *ApiService) StreamAsset(ServiceSid string, params *ListAssetParams) (chan ServerlessV1Asset, chan error)
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 in v0.13.0
func (c *ApiService) StreamAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) (chan ServerlessV1AssetVersion, chan error)
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 in v0.13.0
func (c *ApiService) StreamBuild(ServiceSid string, params *ListBuildParams) (chan ServerlessV1Build, chan error)
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 in v0.13.0
func (c *ApiService) StreamDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) (chan ServerlessV1Deployment, chan error)
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 in v0.13.0
func (c *ApiService) StreamEnvironment(ServiceSid string, params *ListEnvironmentParams) (chan ServerlessV1Environment, chan error)
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 in v0.13.0
func (c *ApiService) StreamFunction(ServiceSid string, params *ListFunctionParams) (chan ServerlessV1Function, chan error)
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 in v0.13.0
func (c *ApiService) StreamFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) (chan ServerlessV1FunctionVersion, chan error)
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 in v0.13.0
func (c *ApiService) StreamLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) (chan ServerlessV1Log, chan error)
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 in v0.13.0
func (c *ApiService) StreamService(params *ListServiceParams) (chan ServerlessV1Service, chan error)
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 in v0.13.0
func (c *ApiService) StreamVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) (chan ServerlessV1Variable, chan error)
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 in v0.11.0
func (c *ApiService) UpdateAsset(ServiceSid string, Sid string, params *UpdateAssetParams) (*ServerlessV1Asset, error)
Update a specific Asset resource.
func (*ApiService) UpdateFunction ¶ added in v0.11.0
func (c *ApiService) UpdateFunction(ServiceSid string, Sid string, params *UpdateFunctionParams) (*ServerlessV1Function, error)
Update a specific Function resource.
func (*ApiService) UpdateService ¶ added in v0.11.0
func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ServerlessV1Service, error)
Update a specific Service resource.
func (*ApiService) UpdateVariable ¶ added in v0.11.0
func (c *ApiService) UpdateVariable(ServiceSid string, EnvironmentSid string, Sid string, params *UpdateVariableParams) (*ServerlessV1Variable, error)
Update a specific Variable.
type CreateAssetParams ¶
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(FriendlyName string) *CreateAssetParams
type CreateBuildParams ¶
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(Dependencies string) *CreateBuildParams
func (*CreateBuildParams) SetFunctionVersions ¶
func (params *CreateBuildParams) SetFunctionVersions(FunctionVersions []string) *CreateBuildParams
func (*CreateBuildParams) SetRuntime ¶
func (params *CreateBuildParams) SetRuntime(Runtime string) *CreateBuildParams
type CreateDeploymentParams ¶
type CreateDeploymentParams struct { // The SID of the Build for the Deployment. BuildSid *string `json:"BuildSid,omitempty"` }
Optional parameters for the method 'CreateDeployment'
func (*CreateDeploymentParams) SetBuildSid ¶
func (params *CreateDeploymentParams) SetBuildSid(BuildSid string) *CreateDeploymentParams
type CreateEnvironmentParams ¶
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(DomainSuffix string) *CreateEnvironmentParams
func (*CreateEnvironmentParams) SetUniqueName ¶
func (params *CreateEnvironmentParams) SetUniqueName(UniqueName string) *CreateEnvironmentParams
type CreateFunctionParams ¶
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(FriendlyName string) *CreateFunctionParams
type CreateServiceParams ¶
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(FriendlyName string) *CreateServiceParams
func (*CreateServiceParams) SetIncludeCredentials ¶
func (params *CreateServiceParams) SetIncludeCredentials(IncludeCredentials bool) *CreateServiceParams
func (*CreateServiceParams) SetUiEditable ¶
func (params *CreateServiceParams) SetUiEditable(UiEditable bool) *CreateServiceParams
func (*CreateServiceParams) SetUniqueName ¶
func (params *CreateServiceParams) SetUniqueName(UniqueName string) *CreateServiceParams
type CreateVariableParams ¶
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(Key string) *CreateVariableParams
func (*CreateVariableParams) SetValue ¶
func (params *CreateVariableParams) SetValue(Value string) *CreateVariableParams
type ListAssetParams ¶
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 in v0.13.0
func (params *ListAssetParams) SetLimit(Limit int) *ListAssetParams
func (*ListAssetParams) SetPageSize ¶
func (params *ListAssetParams) SetPageSize(PageSize int) *ListAssetParams
type ListAssetResponse ¶
type ListAssetResponse struct { Assets []ServerlessV1Asset `json:"assets,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListAssetResponse struct for ListAssetResponse
type ListAssetResponseMeta ¶ added in v1.0.0
type ListAssetResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` Key string `json:"key,omitempty"` }
ListAssetResponseMeta struct for ListAssetResponseMeta
type ListAssetVersionParams ¶
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 in v0.13.0
func (params *ListAssetVersionParams) SetLimit(Limit int) *ListAssetVersionParams
func (*ListAssetVersionParams) SetPageSize ¶
func (params *ListAssetVersionParams) SetPageSize(PageSize int) *ListAssetVersionParams
type ListAssetVersionResponse ¶
type ListAssetVersionResponse struct { AssetVersions []ServerlessV1AssetVersion `json:"asset_versions,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListAssetVersionResponse struct for ListAssetVersionResponse
type ListBuildParams ¶
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 in v0.13.0
func (params *ListBuildParams) SetLimit(Limit int) *ListBuildParams
func (*ListBuildParams) SetPageSize ¶
func (params *ListBuildParams) SetPageSize(PageSize int) *ListBuildParams
type ListBuildResponse ¶
type ListBuildResponse struct { Builds []ServerlessV1Build `json:"builds,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListBuildResponse struct for ListBuildResponse
type ListDeploymentParams ¶
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 in v0.13.0
func (params *ListDeploymentParams) SetLimit(Limit int) *ListDeploymentParams
func (*ListDeploymentParams) SetPageSize ¶
func (params *ListDeploymentParams) SetPageSize(PageSize int) *ListDeploymentParams
type ListDeploymentResponse ¶
type ListDeploymentResponse struct { Deployments []ServerlessV1Deployment `json:"deployments,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListDeploymentResponse struct for ListDeploymentResponse
type ListEnvironmentParams ¶
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 in v0.13.0
func (params *ListEnvironmentParams) SetLimit(Limit int) *ListEnvironmentParams
func (*ListEnvironmentParams) SetPageSize ¶
func (params *ListEnvironmentParams) SetPageSize(PageSize int) *ListEnvironmentParams
type ListEnvironmentResponse ¶
type ListEnvironmentResponse struct { Environments []ServerlessV1Environment `json:"environments,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListEnvironmentResponse struct for ListEnvironmentResponse
type ListFunctionParams ¶
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 in v0.13.0
func (params *ListFunctionParams) SetLimit(Limit int) *ListFunctionParams
func (*ListFunctionParams) SetPageSize ¶
func (params *ListFunctionParams) SetPageSize(PageSize int) *ListFunctionParams
type ListFunctionResponse ¶
type ListFunctionResponse struct { Functions []ServerlessV1Function `json:"functions,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListFunctionResponse struct for ListFunctionResponse
type ListFunctionVersionParams ¶
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 in v0.13.0
func (params *ListFunctionVersionParams) SetLimit(Limit int) *ListFunctionVersionParams
func (*ListFunctionVersionParams) SetPageSize ¶
func (params *ListFunctionVersionParams) SetPageSize(PageSize int) *ListFunctionVersionParams
type ListFunctionVersionResponse ¶
type ListFunctionVersionResponse struct { FunctionVersions []ServerlessV1FunctionVersion `json:"function_versions,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListFunctionVersionResponse struct for ListFunctionVersionResponse
type ListLogParams ¶
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(EndDate time.Time) *ListLogParams
func (*ListLogParams) SetFunctionSid ¶
func (params *ListLogParams) SetFunctionSid(FunctionSid string) *ListLogParams
func (*ListLogParams) SetLimit ¶ added in v0.13.0
func (params *ListLogParams) SetLimit(Limit int) *ListLogParams
func (*ListLogParams) SetPageSize ¶
func (params *ListLogParams) SetPageSize(PageSize int) *ListLogParams
func (*ListLogParams) SetStartDate ¶
func (params *ListLogParams) SetStartDate(StartDate time.Time) *ListLogParams
type ListLogResponse ¶
type ListLogResponse struct { Logs []ServerlessV1Log `json:"logs,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListLogResponse struct for ListLogResponse
type ListServiceParams ¶
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 in v0.13.0
func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams
func (*ListServiceParams) SetPageSize ¶
func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams
type ListServiceResponse ¶
type ListServiceResponse struct { Services []ServerlessV1Service `json:"services,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListServiceResponse struct for ListServiceResponse
type ListVariableParams ¶
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 in v0.13.0
func (params *ListVariableParams) SetLimit(Limit int) *ListVariableParams
func (*ListVariableParams) SetPageSize ¶
func (params *ListVariableParams) SetPageSize(PageSize int) *ListVariableParams
type ListVariableResponse ¶
type ListVariableResponse struct { Variables []ServerlessV1Variable `json:"variables,omitempty"` Meta ListAssetResponseMeta `json:"meta,omitempty"` }
ListVariableResponse struct for ListVariableResponse
type ServerlessV1Asset ¶ added in v0.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
type ServerlessV1AssetVersion ¶ added in v0.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
type ServerlessV1Build ¶ added in v0.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
type ServerlessV1BuildStatus ¶ added in v0.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
type ServerlessV1Deployment ¶ added in v0.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
type ServerlessV1Environment ¶ added in v0.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
type ServerlessV1Function ¶ added in v0.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
type ServerlessV1FunctionVersion ¶ added in v0.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
type ServerlessV1FunctionVersionContent ¶ added in v0.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
type ServerlessV1Log ¶ added in v0.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"` 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
type ServerlessV1Service ¶
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
type ServerlessV1Variable ¶ added in v0.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
type UpdateAssetParams ¶
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(FriendlyName string) *UpdateAssetParams
type UpdateFunctionParams ¶
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(FriendlyName string) *UpdateFunctionParams
type UpdateServiceParams ¶
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(FriendlyName string) *UpdateServiceParams
func (*UpdateServiceParams) SetIncludeCredentials ¶
func (params *UpdateServiceParams) SetIncludeCredentials(IncludeCredentials bool) *UpdateServiceParams
func (*UpdateServiceParams) SetUiEditable ¶
func (params *UpdateServiceParams) SetUiEditable(UiEditable bool) *UpdateServiceParams
type UpdateVariableParams ¶
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(Key string) *UpdateVariableParams
func (*UpdateVariableParams) SetValue ¶
func (params *UpdateVariableParams) SetValue(Value string) *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