Movatterモバイル変換


[0]ホーム

URL:


openapi

package
v1.26.5Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License:MITImports:6Imported by:2

Details

Repository

github.com/twilio/twilio-go

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

ClassMethodHTTP requestDescription
ServicesApiCreateServicePost /v1/ServicesCreate a new Service resource.
ServicesApiDeleteServiceDelete /v1/Services/{Sid}Delete a Service resource.
ServicesApiFetchServiceGet /v1/Services/{Sid}Retrieve a specific Service resource.
ServicesApiListServiceGet /v1/ServicesRetrieve a list of all Services.
ServicesApiUpdateServicePost /v1/Services/{Sid}Update a specific Service resource.
ServicesAssetsApiCreateAssetPost /v1/Services/{ServiceSid}/AssetsCreate a new Asset resource.
ServicesAssetsApiDeleteAssetDelete /v1/Services/{ServiceSid}/Assets/{Sid}Delete an Asset resource.
ServicesAssetsApiFetchAssetGet /v1/Services/{ServiceSid}/Assets/{Sid}Retrieve a specific Asset resource.
ServicesAssetsApiListAssetGet /v1/Services/{ServiceSid}/AssetsRetrieve a list of all Assets.
ServicesAssetsApiUpdateAssetPost /v1/Services/{ServiceSid}/Assets/{Sid}Update a specific Asset resource.
ServicesAssetsVersionsApiFetchAssetVersionGet /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}Retrieve a specific Asset Version.
ServicesAssetsVersionsApiListAssetVersionGet /v1/Services/{ServiceSid}/Assets/{AssetSid}/VersionsRetrieve a list of all Asset Versions.
ServicesBuildsApiCreateBuildPost /v1/Services/{ServiceSid}/BuildsCreate a new Build resource. At least one function version or asset version is required.
ServicesBuildsApiDeleteBuildDelete /v1/Services/{ServiceSid}/Builds/{Sid}Delete a Build resource.
ServicesBuildsApiFetchBuildGet /v1/Services/{ServiceSid}/Builds/{Sid}Retrieve a specific Build resource.
ServicesBuildsApiListBuildGet /v1/Services/{ServiceSid}/BuildsRetrieve a list of all Builds.
ServicesBuildsStatusApiFetchBuildStatusGet /v1/Services/{ServiceSid}/Builds/{Sid}/StatusRetrieve a specific Build resource.
ServicesEnvironmentsApiCreateEnvironmentPost /v1/Services/{ServiceSid}/EnvironmentsCreate a new environment.
ServicesEnvironmentsApiDeleteEnvironmentDelete /v1/Services/{ServiceSid}/Environments/{Sid}Delete a specific environment.
ServicesEnvironmentsApiFetchEnvironmentGet /v1/Services/{ServiceSid}/Environments/{Sid}Retrieve a specific environment.
ServicesEnvironmentsApiListEnvironmentGet /v1/Services/{ServiceSid}/EnvironmentsRetrieve a list of all environments.
ServicesEnvironmentsDeploymentsApiCreateDeploymentPost /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/DeploymentsCreate a new Deployment.
ServicesEnvironmentsDeploymentsApiFetchDeploymentGet /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}Retrieve a specific Deployment.
ServicesEnvironmentsDeploymentsApiListDeploymentGet /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/DeploymentsRetrieve a list of all Deployments.
ServicesEnvironmentsLogsApiFetchLogGet /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}Retrieve a specific log.
ServicesEnvironmentsLogsApiListLogGet /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/LogsRetrieve a list of all logs.
ServicesEnvironmentsVariablesApiCreateVariablePost /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/VariablesCreate a new Variable.
ServicesEnvironmentsVariablesApiDeleteVariableDelete /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}Delete a specific Variable.
ServicesEnvironmentsVariablesApiFetchVariableGet /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}Retrieve a specific Variable.
ServicesEnvironmentsVariablesApiListVariableGet /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/VariablesRetrieve a list of all Variables.
ServicesEnvironmentsVariablesApiUpdateVariablePost /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}Update a specific Variable.
ServicesFunctionsApiCreateFunctionPost /v1/Services/{ServiceSid}/FunctionsCreate a new Function resource.
ServicesFunctionsApiDeleteFunctionDelete /v1/Services/{ServiceSid}/Functions/{Sid}Delete a Function resource.
ServicesFunctionsApiFetchFunctionGet /v1/Services/{ServiceSid}/Functions/{Sid}Retrieve a specific Function resource.
ServicesFunctionsApiListFunctionGet /v1/Services/{ServiceSid}/FunctionsRetrieve a list of all Functions.
ServicesFunctionsApiUpdateFunctionPost /v1/Services/{ServiceSid}/Functions/{Sid}Update a specific Function resource.
ServicesFunctionsVersionsApiFetchFunctionVersionGet /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}Retrieve a specific Function Version resource.
ServicesFunctionsVersionsApiListFunctionVersionGet /v1/Services/{ServiceSid}/Functions/{FunctionSid}/VersionsRetrieve a list of all Function Version resources.
ServicesFunctionsVersionsContentApiFetchFunctionVersionContentGet /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/ContentRetrieve a the content of a specific Function Version resource.

Documentation For Models

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeApiServiceadded inv0.11.0

type ApiService struct {// contains filtered or unexported fields}

funcNewApiServiceadded inv0.11.0

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

funcNewApiServiceWithClientadded inv0.11.0

func NewApiServiceWithClient(clienttwilio.BaseClient) *ApiService

func (*ApiService)CreateAssetadded inv0.11.0

func (c *ApiService) CreateAsset(ServiceSidstring, params *CreateAssetParams) (*ServerlessV1Asset,error)

Create a new Asset resource.

func (*ApiService)CreateBuildadded 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)CreateDeploymentadded inv0.11.0

func (c *ApiService) CreateDeployment(ServiceSidstring, EnvironmentSidstring, params *CreateDeploymentParams) (*ServerlessV1Deployment,error)

Create a new Deployment.

func (*ApiService)CreateEnvironmentadded inv0.11.0

func (c *ApiService) CreateEnvironment(ServiceSidstring, params *CreateEnvironmentParams) (*ServerlessV1Environment,error)

Create a new environment.

func (*ApiService)CreateFunctionadded inv0.11.0

func (c *ApiService) CreateFunction(ServiceSidstring, params *CreateFunctionParams) (*ServerlessV1Function,error)

Create a new Function resource.

func (*ApiService)CreateServiceadded inv0.11.0

func (c *ApiService) CreateService(params *CreateServiceParams) (*ServerlessV1Service,error)

Create a new Service resource.

func (*ApiService)CreateVariableadded inv0.11.0

func (c *ApiService) CreateVariable(ServiceSidstring, EnvironmentSidstring, params *CreateVariableParams) (*ServerlessV1Variable,error)

Create a new Variable.

func (*ApiService)DeleteAssetadded inv0.11.0

func (c *ApiService) DeleteAsset(ServiceSidstring, Sidstring)error

Delete an Asset resource.

func (*ApiService)DeleteBuildadded inv0.11.0

func (c *ApiService) DeleteBuild(ServiceSidstring, Sidstring)error

Delete a Build resource.

func (*ApiService)DeleteEnvironmentadded inv0.11.0

func (c *ApiService) DeleteEnvironment(ServiceSidstring, Sidstring)error

Delete a specific environment.

func (*ApiService)DeleteFunctionadded inv0.11.0

func (c *ApiService) DeleteFunction(ServiceSidstring, Sidstring)error

Delete a Function resource.

func (*ApiService)DeleteServiceadded inv0.11.0

func (c *ApiService) DeleteService(Sidstring)error

Delete a Service resource.

func (*ApiService)DeleteVariableadded inv0.11.0

func (c *ApiService) DeleteVariable(ServiceSidstring, EnvironmentSidstring, Sidstring)error

Delete a specific Variable.

func (*ApiService)FetchAssetadded inv0.11.0

func (c *ApiService) FetchAsset(ServiceSidstring, Sidstring) (*ServerlessV1Asset,error)

Retrieve a specific Asset resource.

func (*ApiService)FetchAssetVersionadded inv0.11.0

func (c *ApiService) FetchAssetVersion(ServiceSidstring, AssetSidstring, Sidstring) (*ServerlessV1AssetVersion,error)

Retrieve a specific Asset Version.

func (*ApiService)FetchBuildadded inv0.11.0

func (c *ApiService) FetchBuild(ServiceSidstring, Sidstring) (*ServerlessV1Build,error)

Retrieve a specific Build resource.

func (*ApiService)FetchBuildStatusadded inv0.11.0

func (c *ApiService) FetchBuildStatus(ServiceSidstring, Sidstring) (*ServerlessV1BuildStatus,error)

Retrieve a specific Build resource.

func (*ApiService)FetchDeploymentadded inv0.11.0

func (c *ApiService) FetchDeployment(ServiceSidstring, EnvironmentSidstring, Sidstring) (*ServerlessV1Deployment,error)

Retrieve a specific Deployment.

func (*ApiService)FetchEnvironmentadded inv0.11.0

func (c *ApiService) FetchEnvironment(ServiceSidstring, Sidstring) (*ServerlessV1Environment,error)

Retrieve a specific environment.

func (*ApiService)FetchFunctionadded inv0.11.0

func (c *ApiService) FetchFunction(ServiceSidstring, Sidstring) (*ServerlessV1Function,error)

Retrieve a specific Function resource.

func (*ApiService)FetchFunctionVersionadded inv0.11.0

func (c *ApiService) FetchFunctionVersion(ServiceSidstring, FunctionSidstring, Sidstring) (*ServerlessV1FunctionVersion,error)

Retrieve a specific Function Version resource.

func (*ApiService)FetchFunctionVersionContentadded inv0.11.0

func (c *ApiService) FetchFunctionVersionContent(ServiceSidstring, FunctionSidstring, Sidstring) (*ServerlessV1FunctionVersionContent,error)

Retrieve a the content of a specific Function Version resource.

func (*ApiService)FetchLogadded inv0.11.0

func (c *ApiService) FetchLog(ServiceSidstring, EnvironmentSidstring, Sidstring) (*ServerlessV1Log,error)

Retrieve a specific log.

func (*ApiService)FetchServiceadded inv0.11.0

func (c *ApiService) FetchService(Sidstring) (*ServerlessV1Service,error)

Retrieve a specific Service resource.

func (*ApiService)FetchVariableadded inv0.11.0

func (c *ApiService) FetchVariable(ServiceSidstring, EnvironmentSidstring, Sidstring) (*ServerlessV1Variable,error)

Retrieve a specific Variable.

func (*ApiService)ListAssetadded 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)ListAssetVersionadded 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)ListBuildadded 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)ListDeploymentadded 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)ListEnvironmentadded 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)ListFunctionadded 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)ListFunctionVersionadded 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)ListLogadded 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)ListServiceadded 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)ListVariableadded 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)PageAssetadded 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)PageAssetVersionadded 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)PageBuildadded 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)PageDeploymentadded 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)PageEnvironmentadded 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)PageFunctionadded 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)PageFunctionVersionadded 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)PageLogadded 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)PageServiceadded 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)PageVariableadded 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)RequestHandleradded inv1.25.0

func (c *ApiService) RequestHandler() *twilio.RequestHandler

func (*ApiService)StreamAssetadded 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)StreamAssetVersionadded 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)StreamBuildadded 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)StreamDeploymentadded 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)StreamEnvironmentadded 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)StreamFunctionadded 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)StreamFunctionVersionadded 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)StreamLogadded 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)StreamServiceadded 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)StreamVariableadded 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)UpdateAssetadded inv0.11.0

func (c *ApiService) UpdateAsset(ServiceSidstring, Sidstring, params *UpdateAssetParams) (*ServerlessV1Asset,error)

Update a specific Asset resource.

func (*ApiService)UpdateFunctionadded inv0.11.0

func (c *ApiService) UpdateFunction(ServiceSidstring, Sidstring, params *UpdateFunctionParams) (*ServerlessV1Function,error)

Update a specific Function resource.

func (*ApiService)UpdateServiceadded inv0.11.0

func (c *ApiService) UpdateService(Sidstring, params *UpdateServiceParams) (*ServerlessV1Service,error)

Update a specific Service resource.

func (*ApiService)UpdateVariableadded 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)SetIsPluginadded 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 (*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)SetLimitadded 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

typeListAssetResponseMetaadded 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)SetLimitadded 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)SetLimitadded 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)SetLimitadded 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)SetLimitadded 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)SetLimitadded 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)SetLimitadded inv0.13.0

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)SetLimitadded 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)SetLimitadded 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)SetLimitadded 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

typeServerlessV1Assetadded 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

typeServerlessV1AssetVersionadded 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

typeServerlessV1Buildadded 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

typeServerlessV1BuildStatusadded 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

typeServerlessV1Deploymentadded 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

typeServerlessV1Environmentadded 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

typeServerlessV1Functionadded 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

typeServerlessV1FunctionVersionadded 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

typeServerlessV1FunctionVersionContentadded 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

typeServerlessV1Logadded 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

typeServerlessV1Variableadded 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 (*UpdateVariableParams)SetValue

func (params *UpdateVariableParams) SetValue(Valuestring) *UpdateVariableParams

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp