Documentation
¶
Overview ¶
Templates
Index ¶
- type Client
- func (c *Client) CreateTemplateRevision(ctx context.Context, request *sgsdkgo.CreateTemplateRevisionRequest, ...) (*sgsdkgo.TemplateCreatePatchResponse, error)
- func (c *Client) DeleteTemplateRevision(ctx context.Context, org string, template string, templateType string, ...) error
- func (c *Client) ListAllTemplates(ctx context.Context, templateType sgsdkgo.ListAllTemplatesRequestTemplateType, ...) (*sgsdkgo.ListallTemplatesResponse, error)
- func (c *Client) ReadSubscription(ctx context.Context, org string, subscription string, ...) (*sgsdkgo.GetSubscriptionResponse, error)
- func (c *Client) ReadTemplateRevision(ctx context.Context, org string, template string, templateType string, ...) (*sgsdkgo.TemplateGetResponse, error)
- func (c *Client) UpdateTemplateRevision(ctx context.Context, org string, template string, templateType string, ...) (*sgsdkgo.TemplateCreatePatchResponse, error)
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
}
func NewClient ¶
func NewClient(opts ...option.RequestOption) *Client
func (*Client) CreateTemplateRevision ¶
func (c *Client) CreateTemplateRevision( ctx context.Context, request *sgsdkgo.CreateTemplateRevisionRequest, opts ...option.RequestOption, ) (*sgsdkgo.TemplateCreatePatchResponse, error)
Create Template and its first revision if the template does not exist, otherwise create a new revision of the template
func (*Client) DeleteTemplateRevision ¶
func (c *Client) DeleteTemplateRevision( ctx context.Context, org string, template string, templateType string, request *sgsdkgo.DeleteTemplateRevisionRequest, opts ...option.RequestOption, ) error
Delete a template revision. A template parent is automatically deleted when all revisions are deleted.
func (*Client) ListAllTemplates ¶
func (c *Client) ListAllTemplates( ctx context.Context, templateType sgsdkgo.ListAllTemplatesRequestTemplateType, request *sgsdkgo.ListAllTemplatesRequest, opts ...option.RequestOption, ) (*sgsdkgo.ListallTemplatesResponse, error)
List all Templates and its revisions created or subscribed by the Organization
func (*Client) ReadSubscription ¶
func (c *Client) ReadSubscription( ctx context.Context, org string, subscription string, request *sgsdkgo.ReadSubscriptionRequest, opts ...option.RequestOption, ) (*sgsdkgo.GetSubscriptionResponse, error)
Read all subscribed templates by an organization
func (*Client) ReadTemplateRevision ¶
func (c *Client) ReadTemplateRevision( ctx context.Context, org string, template string, templateType string, request *sgsdkgo.ReadTemplateRevisionRequest, opts ...option.RequestOption, ) (*sgsdkgo.TemplateGetResponse, error)
Read parent template or its revision
func (*Client) UpdateTemplateRevision ¶
func (c *Client) UpdateTemplateRevision( ctx context.Context, org string, template string, templateType string, request *sgsdkgo.PatchedTemplateUpdate, opts ...option.RequestOption, ) (*sgsdkgo.TemplateCreatePatchResponse, error)
Update parent template or its revision
Click to show internal directories.
Click to hide internal directories.