Documentation
¶
Overview ¶
Package variable contains auto-generated files. DO NOT MODIFY
Package variable contains auto-generated files. DO NOT MODIFY
Package variable contains auto-generated files. DO NOT MODIFY
Package variable contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchVariableResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchVariableResponse, error)
- func (c Client) Update(input *UpdateVariableInput) (*UpdateVariableResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateVariableInput) (*UpdateVariableResponse, error)
- type ClientProperties
- type FetchVariableResponse
- type UpdateVariableInput
- type UpdateVariableResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for managing a specific environment variable resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/variable for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the variable client
func (Client) Delete ¶
Delete removes a environment variable resource from the account See https://www.twilio.com/docs/runtime/functions-assets-api/api/variable#delete-a-variable-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a environment variable resource from the account See https://www.twilio.com/docs/runtime/functions-assets-api/api/variable#delete-a-variable-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchVariableResponse, error)
Fetch retrieves a environment variable resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/variable#fetch-a-variable-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchVariableResponse, error)
FetchWithContext retrieves a environment variable resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/variable#fetch-a-variable-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateVariableInput) (*UpdateVariableResponse, error)
Update modifies a environment variable resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/variable#update-a-variable-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) UpdateWithContext ¶
func (c Client) UpdateWithContext(context context.Context, input *UpdateVariableInput) (*UpdateVariableResponse, error)
UpdateWithContext modifies a environment variable resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/variable#update-a-variable-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the variable resources
type FetchVariableResponse ¶
type FetchVariableResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` EnvironmentSid string `json:"environment_sid"` Key string `json:"key"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` Value string `json:"value"` }
FetchVariableResponse defines the response fields for the retrieved environment variable
type UpdateVariableInput ¶
type UpdateVariableInput struct { Key *string `form:"Key,omitempty"` Value *string `form:"Value,omitempty"` }
UpdateVariableInput defines input fields for updating a environment variable resource
type UpdateVariableResponse ¶
type UpdateVariableResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` EnvironmentSid string `json:"environment_sid"` Key string `json:"key"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` Value string `json:"value"` }
UpdateVariableResponse defines the response fields for the updated environment variable