variable

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

Index

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

func (c Client) Delete() error

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

func (c Client) DeleteWithContext(context context.Context) error

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

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

type ClientProperties struct {
	EnvironmentSid string
	ServiceSid     string
	Sid            string
}

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

Jump to

Keyboard shortcuts

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