policies

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Policies

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) CreatePolicy

func (c *Client) CreatePolicy(
	ctx context.Context,
	org string,
	request *sgsdkgo.Policy,
	opts ...option.RequestOption,
) (*sgsdkgo.PolicyCreateUpdateResponse, error)

Create Policy

func (*Client) DeletePolicy

func (c *Client) DeletePolicy(
	ctx context.Context,
	org string,
	policy string,
	opts ...option.RequestOption,
) error

Delete Policy

func (*Client) ListAllPolicies

func (c *Client) ListAllPolicies(
	ctx context.Context,
	org string,
	opts ...option.RequestOption,
) error

List All Policies

func (*Client) ReadPolicy

func (c *Client) ReadPolicy(
	ctx context.Context,
	org string,
	policy string,
	opts ...option.RequestOption,
) (*sgsdkgo.PolicyGetResponse, error)

Read policy details in an organization

func (*Client) UpdatePolicy

func (c *Client) UpdatePolicy(
	ctx context.Context,
	org string,
	policy string,
	request *sgsdkgo.PatchedPolicy,
	opts ...option.RequestOption,
) (*sgsdkgo.PolicyCreateUpdateResponse, error)

Update Policy

Jump to

Keyboard shortcuts

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