templates

package
v1.1.0-beta-1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Templates

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
}

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) CreateTemplateRevision

func (c *Client) CreateTemplateRevision(
	ctx context.Context,
	request *sgsdkgo.CreateTemplateRequest,
	opts ...option.RequestOption,
) (*sgsdkgo.CreateTemplateResponse, 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

List all Templates and its revisions created or subscribed by the Organization

func (*Client) ReadIacGroupsIacTemplate added in v1.1.0

func (c *Client) ReadIacGroupsIacTemplate(
	ctx context.Context,
	org string,
	subTemplateId string,
	template string,
	request *sgsdkgo.ReadIacGroupsIacTemplateRequest,
	opts ...option.RequestOption,
) (*sgsdkgo.TemplateGetResponse, error)

Read IAC Group's IAC Template

func (*Client) ReadSubscription

func (c *Client) ReadSubscription(
	ctx context.Context,
	org 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

Jump to

Keyboard shortcuts

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