account

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: Apache-2.0 Imports: 9 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Balance  func() *balance.Client
	Key      func(string) *key.Client
	Keys     *keys.Client
	Message  func(string) *message.Client
	Messages *messages.Client
	// contains filtered or unexported fields
}

Client for managing a specific account resource See https://www.twilio.com/docs/iam/api/account for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the account client

func (Client) Fetch

func (c Client) Fetch() (*FetchAccountResponse, error)

Fetch retrieves a Twilio account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#fetch-an-account-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) (*FetchAccountResponse, error)

FetchWithContext retrieves a Twilio account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#fetch-an-account-resource for more details

func (Client) Update

Update modifies a Twilio Account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#update-an-account-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 *UpdateAccountInput) (*UpdateAccountResponse, error)

UpdateWithContext modifies a Twilio Account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#update-an-account-resource for more details

type ClientProperties

type ClientProperties struct {
	Sid string
}

ClientProperties are the properties required to manage the account resources

type FetchAccountResponse

type FetchAccountResponse struct {
	AuthToken       string             `json:"auth_token"`
	DateCreated     utils.RFC2822Time  `json:"date_created"`
	DateUpdated     *utils.RFC2822Time `json:"date_updated,omitempty"`
	FriendlyName    string             `json:"friendly_name"`
	OwnerAccountSid string             `json:"owner_account_sid"`
	Sid             string             `json:"sid"`
	Status          string             `json:"status"`
	Type            string             `json:"type"`
}

FetchAccountResponse defines the response fields for the retrieved account

type UpdateAccountInput

type UpdateAccountInput struct {
	FriendlyName *string `form:"FriendlyName,omitempty"`
	Status       *string `form:"Status,omitempty"`
}

UpdateAccountInput defines input fields for updating an account resource

type UpdateAccountResponse

type UpdateAccountResponse struct {
	AuthToken       string             `json:"auth_token"`
	DateCreated     utils.RFC2822Time  `json:"date_created"`
	DateUpdated     *utils.RFC2822Time `json:"date_updated,omitempty"`
	FriendlyName    string             `json:"friendly_name"`
	OwnerAccountSid string             `json:"owner_account_sid"`
	Sid             string             `json:"sid"`
	Status          string             `json:"status"`
	Type            string             `json:"type"`
}

UpdateAccountResponse defines the response fields for the updated account

Directories

Path Synopsis
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.
feedback
This is an autogenerated file.
This is an autogenerated file.
media_attachment
This is an autogenerated file.
This is an autogenerated file.
media_attachments
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.

Jump to

Keyboard shortcuts

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