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 ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchServiceResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchServiceResponse, error)
- func (c Client) Update(input *UpdateServiceInput) (*UpdateServiceResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateServiceInput) (*UpdateServiceResponse, error)
- type ClientProperties
- type FetchServiceResponse
- type UpdateServiceInput
- type UpdateServiceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Asset func(string) *asset.Client Assets *assets.Client Build func(string) *build.Client Builds *builds.Client Environment func(string) *environment.Client Environments *environments.Client Function func(string) *function.Client Functions *functions.Client // contains filtered or unexported fields }
Client for managing a specific service resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/service for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the service client
func (Client) Delete ¶
Delete removes a service resource from the account See https://www.twilio.com/docs/runtime/functions-assets-api/api/service#delete-a-service-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 service resource from the account See https://www.twilio.com/docs/runtime/functions-assets-api/api/service#delete-a-service-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchServiceResponse, error)
Fetch retrieves a service resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/service#fetch-a-service-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) (*FetchServiceResponse, error)
FetchWithContext retrieves a service resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/service#fetch-a-service-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateServiceInput) (*UpdateServiceResponse, error)
Update modifies a service resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/service#update-a-service-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 *UpdateServiceInput) (*UpdateServiceResponse, error)
UpdateWithContext modifies a service resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/service#update-a-service-resource for more details
type ClientProperties ¶
type ClientProperties struct {
Sid string
}
ClientProperties are the properties required to manage the service resources
type FetchServiceResponse ¶
type FetchServiceResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` IncludeCredentials bool `json:"include_credentials"` Sid string `json:"sid"` URL string `json:"url"` UiEditable bool `json:"ui_editable"` UniqueName string `json:"unique_name"` }
FetchServiceResponse defines the response fields for the retrieved service
type UpdateServiceInput ¶
type UpdateServiceInput struct { FriendlyName *string `form:"FriendlyName,omitempty"` IncludeCredentials *bool `form:"IncludeCredentials,omitempty"` UiEditable *bool `form:"UiEditable,omitempty"` }
UpdateServiceInput defines input fields for updating a service resource
type UpdateServiceResponse ¶
type UpdateServiceResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` IncludeCredentials bool `json:"include_credentials"` Sid string `json:"sid"` URL string `json:"url"` UiEditable bool `json:"ui_editable"` UniqueName string `json:"unique_name"` }
UpdateServiceResponse defines the response fields for the updated service
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This is an autogenerated file.
|
This is an autogenerated file. |
version
This is an autogenerated file.
|
This is an autogenerated file. |
versions
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
deployment
This is an autogenerated file.
|
This is an autogenerated file. |
deployments
This is an autogenerated file.
|
This is an autogenerated file. |
variable
This is an autogenerated file.
|
This is an autogenerated file. |
variables
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
version
This is an autogenerated file.
|
This is an autogenerated file. |
version/content
This is an autogenerated file.
|
This is an autogenerated file. |
versions
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |