Documentation
¶
Overview ¶
Package service contains auto-generated files. DO NOT MODIFY
Package service contains auto-generated files. DO NOT MODIFY
Package service contains auto-generated files. DO NOT MODIFY
Package service contains auto-generated files. 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 { Binding func(string) *binding.Client Bindings *bindings.Client Notifications *notifications.Client // contains filtered or unexported fields }
Client for managing a specific service resource See https://www.twilio.com/docs/notify/api/service-resource 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/notify/api/service-resource#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/notify/api/service-resource#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/notify/api/service-resource#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/notify/api/service-resource#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/notify/api/service-resource#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/notify/api/service-resource#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 { APNCredentialSid *string `json:"apn_credential_sid,omitempty"` AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DefaultAPNNotificationProtocolVersion string `json:"default_apn_notification_protocol_version"` DefaultFCMNotificationProtocolVersion string `json:"default_fcm_notification_protocol_version"` DeliveryCallbackEnabled bool `json:"delivery_callback_enabled"` DeliveryCallbackURL *string `json:"delivery_callback_url,omitempty"` FCMCredentialSid *string `json:"fcm_credential_sid,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` LogEnabled bool `json:"log_enabled"` MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` Sid string `json:"sid"` URL string `json:"url"` }
FetchServiceResponse defines the response fields for the retrieved service
type UpdateServiceInput ¶
type UpdateServiceInput struct { APNCredentialSid *string `form:"ApnCredentialSid,omitempty"` DefaultAPNNotificationProtocolVersion *string `form:"DefaultApnNotificationProtocolVersion,omitempty"` DefaultFCMNotificationProtocolVersion *string `form:"DefaultFcmNotificationProtocolVersion,omitempty"` DeliveryCallbackEnabled *bool `form:"DeliveryCallbackEnabled,omitempty"` DeliveryCallbackURL *string `form:"DeliveryCallbackUrl,omitempty"` FCMCredentialSid *string `form:"FcmCredentialSid,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` LogEnabled *bool `form:"LogEnabled,omitempty"` MessagingServiceSid *string `form:"MessagingServiceSid,omitempty"` }
UpdateServiceInput defines input fields for updating a service resource
type UpdateServiceResponse ¶
type UpdateServiceResponse struct { APNCredentialSid *string `json:"apn_credential_sid,omitempty"` AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DefaultAPNNotificationProtocolVersion string `json:"default_apn_notification_protocol_version"` DefaultFCMNotificationProtocolVersion string `json:"default_fcm_notification_protocol_version"` DeliveryCallbackEnabled bool `json:"delivery_callback_enabled"` DeliveryCallbackURL *string `json:"delivery_callback_url,omitempty"` FCMCredentialSid *string `json:"fcm_credential_sid,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` LogEnabled bool `json:"log_enabled"` MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` Sid string `json:"sid"` URL string `json:"url"` }
UpdateServiceResponse defines the response fields for the updated service
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package binding contains auto-generated files.
|
Package binding contains auto-generated files. |
Package bindings contains auto-generated files.
|
Package bindings contains auto-generated files. |
Package notifications contains auto-generated files.
|
Package notifications contains auto-generated files. |