Documentation
¶
Overview ¶
Policies
Index ¶
- type Client
- func (c *Client) CreatePolicy(ctx context.Context, org string, request *sgsdkgo.Policy, ...) (*sgsdkgo.PolicyCreateUpdateResponse, error)
- func (c *Client) DeletePolicy(ctx context.Context, org string, policy string, opts ...option.RequestOption) error
- func (c *Client) ListAllPolicies(ctx context.Context, org string, opts ...option.RequestOption) error
- func (c *Client) ReadPolicy(ctx context.Context, org string, policy string, opts ...option.RequestOption) (*sgsdkgo.PolicyGetResponse, error)
- func (c *Client) UpdatePolicy(ctx context.Context, org string, policy string, request *sgsdkgo.PatchedPolicy, ...) (*sgsdkgo.PolicyCreateUpdateResponse, 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) 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
Click to show internal directories.
Click to hide internal directories.