messaging_configuration

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package messaging_configuration contains auto-generated files. DO NOT MODIFY

Package messaging_configuration contains auto-generated files. DO NOT MODIFY

Package messaging_configuration contains auto-generated files. DO NOT MODIFY

Package messaging_configuration contains auto-generated files. 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 messaging configuration resource

func New

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

New creates a new instance of the messaging configuration client

func (Client) Delete

func (c Client) Delete() error

Delete removes a messaging configuration resource from the account 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 messaging configuration resource from the account

func (Client) Fetch

Fetch retrieves a messaging configuration resource 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) (*FetchMessagingConfigurationResponse, error)

FetchWithContext retrieves a messaging configuration resource

func (Client) Update

Update modifies a messaging configuration resource Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) UpdateWithContext

UpdateWithContext modifies a messaging configuration resource

type ClientProperties

type ClientProperties struct {
	CountryCode string
	ServiceSid  string
}

ClientProperties are the properties required to manage the messaging configuration resources

type FetchMessagingConfigurationResponse

type FetchMessagingConfigurationResponse struct {
	AccountSid          string     `json:"account_sid"`
	Country             string     `json:"country"`
	DateCreated         time.Time  `json:"date_created"`
	DateUpdated         *time.Time `json:"date_updated,omitempty"`
	MessagingServiceSid string     `json:"messaging_service_sid"`
	ServiceSid          string     `json:"service_sid"`
	URL                 string     `json:"url"`
}

FetchMessagingConfigurationResponse defines the response fields for the retrieved messaging configuration

type UpdateMessagingConfigurationInput

type UpdateMessagingConfigurationInput struct {
	MessagingServiceSid string `validate:"required" form:"MessagingServiceSid"`
}

UpdateMessagingConfigurationInput defines input fields for updating a messaging configuration resource

type UpdateMessagingConfigurationResponse

type UpdateMessagingConfigurationResponse struct {
	AccountSid          string     `json:"account_sid"`
	Country             string     `json:"country"`
	DateCreated         time.Time  `json:"date_created"`
	DateUpdated         *time.Time `json:"date_updated,omitempty"`
	MessagingServiceSid string     `json:"messaging_service_sid"`
	ServiceSid          string     `json:"service_sid"`
	URL                 string     `json:"url"`
}

UpdateMessagingConfigurationResponse defines the response fields for the updated messaging configuration

Jump to

Keyboard shortcuts

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