openapi

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 6 Imported by: 2

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.27.1
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go 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 to https://serverless.twilio.com

Class Method HTTP request Description
ServicesApi CreateService Post /v1/Services
ServicesApi DeleteService Delete /v1/Services/{Sid}
ServicesApi FetchService Get /v1/Services/{Sid}
ServicesApi ListService Get /v1/Services
ServicesApi UpdateService Post /v1/Services/{Sid}
ServicesAssetsApi CreateAsset Post /v1/Services/{ServiceSid}/Assets
ServicesAssetsApi DeleteAsset Delete /v1/Services/{ServiceSid}/Assets/{Sid}
ServicesAssetsApi FetchAsset Get /v1/Services/{ServiceSid}/Assets/{Sid}
ServicesAssetsApi ListAsset Get /v1/Services/{ServiceSid}/Assets
ServicesAssetsApi UpdateAsset Post /v1/Services/{ServiceSid}/Assets/{Sid}
ServicesAssetsVersionsApi FetchAssetVersion Get /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}
ServicesAssetsVersionsApi ListAssetVersion Get /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions
ServicesBuildsApi CreateBuild Post /v1/Services/{ServiceSid}/Builds
ServicesBuildsApi DeleteBuild Delete /v1/Services/{ServiceSid}/Builds/{Sid}
ServicesBuildsApi FetchBuild Get /v1/Services/{ServiceSid}/Builds/{Sid}
ServicesBuildsApi ListBuild Get /v1/Services/{ServiceSid}/Builds
ServicesBuildsStatusApi FetchBuildStatus Get /v1/Services/{ServiceSid}/Builds/{Sid}/Status
ServicesEnvironmentsApi CreateEnvironment Post /v1/Services/{ServiceSid}/Environments
ServicesEnvironmentsApi DeleteEnvironment Delete /v1/Services/{ServiceSid}/Environments/{Sid}
ServicesEnvironmentsApi FetchEnvironment Get /v1/Services/{ServiceSid}/Environments/{Sid}
ServicesEnvironmentsApi ListEnvironment Get /v1/Services/{ServiceSid}/Environments
ServicesEnvironmentsDeploymentsApi CreateDeployment Post /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
ServicesEnvironmentsDeploymentsApi FetchDeployment Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}
ServicesEnvironmentsDeploymentsApi ListDeployment Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
ServicesEnvironmentsLogsApi FetchLog Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}
ServicesEnvironmentsLogsApi ListLog Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs
ServicesEnvironmentsVariablesApi CreateVariable Post /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables
ServicesEnvironmentsVariablesApi DeleteVariable Delete /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}
ServicesEnvironmentsVariablesApi FetchVariable Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}
ServicesEnvironmentsVariablesApi ListVariable Get /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables
ServicesEnvironmentsVariablesApi UpdateVariable Post /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}
ServicesFunctionsApi CreateFunction Post /v1/Services/{ServiceSid}/Functions
ServicesFunctionsApi DeleteFunction Delete /v1/Services/{ServiceSid}/Functions/{Sid}
ServicesFunctionsApi FetchFunction Get /v1/Services/{ServiceSid}/Functions/{Sid}
ServicesFunctionsApi ListFunction Get /v1/Services/{ServiceSid}/Functions
ServicesFunctionsApi UpdateFunction Post /v1/Services/{ServiceSid}/Functions/{Sid}
ServicesFunctionsVersionsApi FetchFunctionVersion Get /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}
ServicesFunctionsVersionsApi ListFunctionVersion Get /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions
ServicesFunctionsVersionsContentApi FetchFunctionVersionContent Get /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content

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

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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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"`
	// 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 list of the Function Version resource SIDs to include in the Build.
	FunctionVersions *[]string `json:"FunctionVersions,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 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"`
	// A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters.
	UniqueName *string `json:"UniqueName,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 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"`
	// 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"`
}

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   ListServiceResponseMeta `json:"meta,omitempty"`
}

ListAssetResponse struct for ListAssetResponse

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          ListServiceResponseMeta    `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   ListServiceResponseMeta `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        ListServiceResponseMeta  `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         ListServiceResponseMeta   `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      ListServiceResponseMeta `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             ListServiceResponseMeta       `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 ListServiceResponseMeta `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 {
	Meta     ListServiceResponseMeta `json:"meta,omitempty"`
	Services []ServerlessV1Service   `json:"services,omitempty"`
}

ListServiceResponse struct for ListServiceResponse

type ListServiceResponseMeta

type ListServiceResponseMeta struct {
	FirstPageUrl    string `json:"first_page_url,omitempty"`
	Key             string `json:"key,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"`
}

ListServiceResponseMeta struct for ListServiceResponseMeta

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 {
	Meta      ListServiceResponseMeta `json:"meta,omitempty"`
	Variables []ServerlessV1Variable  `json:"variables,omitempty"`
}

ListVariableResponse struct for ListVariableResponse

type ServerlessV1Asset added in v0.14.0

type ServerlessV1Asset struct {
	// The SID of the Account that created the Asset resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Asset resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Asset resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the Asset resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The URLs of the Asset resource's nested resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The SID of the Service that the Asset resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Asset resource
	Sid *string `json:"sid,omitempty"`
	// The absolute URL of the Asset resource
	Url *string `json:"url,omitempty"`
}

ServerlessV1Asset struct for ServerlessV1Asset

type ServerlessV1AssetVersion added in v0.14.0

type ServerlessV1AssetVersion struct {
	// The SID of the Account that created the Asset Version resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Asset resource that is the parent of the Asset Version
	AssetSid *string `json:"asset_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Asset Version resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The URL-friendly string by which the Asset Version can be referenced
	Path *string `json:"path,omitempty"`
	// The SID of the Service that the Asset Version resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Asset Version resource
	Sid *string `json:"sid,omitempty"`
	// The absolute URL of the Asset Version resource
	Url *string `json:"url,omitempty"`
	// The access control that determines how the Asset Version can be accessed
	Visibility *string `json:"visibility,omitempty"`
}

ServerlessV1AssetVersion struct for ServerlessV1AssetVersion

type ServerlessV1Build added in v0.14.0

type ServerlessV1Build struct {
	// The SID of the Account that created the Build resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The list of Asset Version resource SIDs that are included in the Build
	AssetVersions *[]map[string]interface{} `json:"asset_versions,omitempty"`
	// The ISO 8601 date and time in GMT when the Build resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Build resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A list of objects that describe the Dependencies included in the Build
	Dependencies *[]map[string]interface{} `json:"dependencies,omitempty"`
	// The list of Function Version resource SIDs that are included in the Build
	FunctionVersions *[]map[string]interface{} `json:"function_versions,omitempty"`
	Links            *map[string]interface{}   `json:"links,omitempty"`
	// The Runtime version that will be used to run the Build.
	Runtime *string `json:"runtime,omitempty"`
	// The SID of the Service that the Build resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Build resource
	Sid *string `json:"sid,omitempty"`
	// The status of the Build
	Status *string `json:"status,omitempty"`
	// The absolute URL of the Build resource
	Url *string `json:"url,omitempty"`
}

ServerlessV1Build struct for ServerlessV1Build

type ServerlessV1BuildStatus added in v0.14.0

type ServerlessV1BuildStatus struct {
	// The SID of the 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"`
	// The unique string that identifies the Build resource
	Sid *string `json:"sid,omitempty"`
	// The status of the Build
	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 SID of the Account that created the Deployment resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Build for the deployment
	BuildSid *string `json:"build_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Deployment resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Deployment resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The SID of the Environment for the Deployment
	EnvironmentSid *string `json:"environment_sid,omitempty"`
	// The SID of the Service that the Deployment resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Deployment resource
	Sid *string `json:"sid,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 SID of the Account that created the Environment resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the build deployed in the environment
	BuildSid *string `json:"build_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Environment resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Environment resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The domain name for all Functions and Assets deployed in the Environment
	DomainName *string `json:"domain_name,omitempty"`
	// A URL-friendly name that represents the environment
	DomainSuffix *string `json:"domain_suffix,omitempty"`
	// The URLs of the Environment resource's nested resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The SID of the Service that the Environment resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Environment resource
	Sid *string `json:"sid,omitempty"`
	// A user-defined string that uniquely identifies the Environment resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Environment resource
	Url *string `json:"url,omitempty"`
}

ServerlessV1Environment struct for ServerlessV1Environment

type ServerlessV1Function added in v0.14.0

type ServerlessV1Function struct {
	// The SID of the Account that created the Function resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Function resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Function resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the Function resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The URLs of nested resources of the Function resource
	Links *map[string]interface{} `json:"links,omitempty"`
	// The SID of the Service that the Function resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Function resource
	Sid *string `json:"sid,omitempty"`
	// The absolute URL of the Function resource
	Url *string `json:"url,omitempty"`
}

ServerlessV1Function struct for ServerlessV1Function

type ServerlessV1FunctionVersion added in v0.14.0

type ServerlessV1FunctionVersion struct {
	// The SID of the Account that created the Function Version resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Function Version resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The SID of the Function resource that is the parent of the Function Version resource
	FunctionSid *string                 `json:"function_sid,omitempty"`
	Links       *map[string]interface{} `json:"links,omitempty"`
	// The URL-friendly string by which the Function Version resource can be referenced
	Path *string `json:"path,omitempty"`
	// The SID of the Service that the Function Version resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Function Version resource
	Sid *string `json:"sid,omitempty"`
	// The absolute URL of the Function Version resource
	Url *string `json:"url,omitempty"`
	// The access control that determines how the Function Version resource can be accessed
	Visibility *string `json:"visibility,omitempty"`
}

ServerlessV1FunctionVersion struct for ServerlessV1FunctionVersion

type ServerlessV1FunctionVersionContent added in v0.14.0

type ServerlessV1FunctionVersionContent struct {
	// The SID of the Account that created the Function Version resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The content of the Function Version resource
	Content *string `json:"content,omitempty"`
	// The SID of the Function that is the parent of the Function Version
	FunctionSid *string `json:"function_sid,omitempty"`
	// The SID of the Service that the Function Version resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Function Version resource
	Sid *string `json:"sid,omitempty"`
	Url *string `json:"url,omitempty"`
}

ServerlessV1FunctionVersionContent struct for ServerlessV1FunctionVersionContent

type ServerlessV1Log added in v0.14.0

type ServerlessV1Log struct {
	// The SID of the Account that created the Log resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the build that corresponds to the log
	BuildSid *string `json:"build_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Log resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The SID of the deployment that corresponds to the log
	DeploymentSid *string `json:"deployment_sid,omitempty"`
	// The SID of the environment in which the log occurred
	EnvironmentSid *string `json:"environment_sid,omitempty"`
	// The SID of the function whose invocation produced the log
	FunctionSid *string `json:"function_sid,omitempty"`
	// The log level
	Level *string `json:"level,omitempty"`
	// The log message
	Message *string `json:"message,omitempty"`
	// The SID of the request associated with the log
	RequestSid *string `json:"request_sid,omitempty"`
	// The SID of the Service that the Log resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Log resource
	Sid *string `json:"sid,omitempty"`
	// The absolute URL of the Log resource
	Url *string `json:"url,omitempty"`
}

ServerlessV1Log struct for ServerlessV1Log

type ServerlessV1Service

type ServerlessV1Service struct {
	// The SID of the Account that created the Service resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Service resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Service resource was last updated
	DateUpdated *time.Time `json:"date_updated,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 string that you assigned to describe the Service resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// Whether to inject Account credentials into a function invocation context
	IncludeCredentials *bool `json:"include_credentials,omitempty"`
	// The URLs of the Service's nested resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The unique string that identifies the Service resource
	Sid *string `json:"sid,omitempty"`
	// Whether the Service resource's properties and subresources can be edited via the UI
	UiEditable *bool `json:"ui_editable,omitempty"`
	// A user-defined string that uniquely identifies the Service resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Service resource
	Url *string `json:"url,omitempty"`
}

ServerlessV1Service struct for ServerlessV1Service

type ServerlessV1Variable added in v0.14.0

type ServerlessV1Variable struct {
	// The SID of the Account that created the Variable resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the Variable resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Variable resource was last updated
	DateUpdated *time.Time `json:"date_updated,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"`
	// The SID of the Service that the Variable resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the Variable resource
	Sid *string `json:"sid,omitempty"`
	// The absolute URL of the Variable resource
	Url *string `json:"url,omitempty"`
	// A string that contains the actual value of the Variable
	Value *string `json:"value,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 {
	// 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.
	IncludeCredentials *bool `json:"IncludeCredentials,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

Jump to

Keyboard shortcuts

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