Documentation ¶
Overview ¶
Package binding contains auto-generated files. DO NOT MODIFY
Package binding contains auto-generated files. DO NOT MODIFY
Package binding 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 service binding resource See https://www.twilio.com/docs/notify/api/binding-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the binding client
func (Client) Delete ¶
Delete removes a service binding resource from the account See https://www.twilio.com/docs/notify/api/binding-resource#delete-a-binding-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 binding resource from the account See https://www.twilio.com/docs/notify/api/binding-resource#delete-a-binding-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchBindingResponse, error)
Fetch retrieves a service binding resource See https://www.twilio.com/docs/notify/api/binding-resource#fetch-a-binding-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) (*FetchBindingResponse, error)
FetchWithContext retrieves a service binding resource See https://www.twilio.com/docs/notify/api/binding-resource#fetch-a-binding-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the binding resources
type FetchBindingResponse ¶
type FetchBindingResponse struct { AccountSid string `json:"account_sid"` Address string `json:"address"` BindingType string `json:"binding_type"` CredentialSid *string `json:"credential_sid,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Identity string `json:"identity"` NotificationProtocolVersion string `json:"notification_protocol_version"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` Tags []string `json:"tags"` URL string `json:"url"` }
FetchBindingResponse defines the response fields for the retrieved service binding