service

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

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

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

func (c Client) Delete() error

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

func (c Client) DeleteWithContext(context context.Context) error

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

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

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.

Jump to

Keyboard shortcuts

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