Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateAccessMonitoringRule(ctx context.Context, in *accessmonitoringrulesv1.AccessMonitoringRule) (*accessmonitoringrulesv1.AccessMonitoringRule, error)
- func (c *Client) DeleteAccessMonitoringRule(ctx context.Context, resourceName string) error
- func (c *Client) DeleteAllAccessMonitoringRules(ctx context.Context) error
- func (c *Client) GetAccessMonitoringRule(ctx context.Context, resourceName string) (*accessmonitoringrulesv1.AccessMonitoringRule, error)
- func (c *Client) ListAccessMonitoringRules(ctx context.Context, pageSize int, pageToken string) ([]*accessmonitoringrulesv1.AccessMonitoringRule, string, error)
- func (c *Client) ListAccessMonitoringRulesWithFilter(ctx context.Context, pageSize int, pageToken string, subjects []string, ...) ([]*accessmonitoringrulesv1.AccessMonitoringRule, string, error)
- func (c *Client) UpdateAccessMonitoringRule(ctx context.Context, in *accessmonitoringrulesv1.AccessMonitoringRule) (*accessmonitoringrulesv1.AccessMonitoringRule, error)
- func (c *Client) UpsertAccessMonitoringRule(ctx context.Context, in *accessmonitoringrulesv1.AccessMonitoringRule) (*accessmonitoringrulesv1.AccessMonitoringRule, 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
}
Client is an access monitoring rules client that conforms to services.AccessMonitoringRules.
func NewClient ¶
func NewClient(grpcClient accessmonitoringrulesv1.AccessMonitoringRulesServiceClient) *Client
NewClient returns and access monitoring rules client
func (*Client) CreateAccessMonitoringRule ¶
func (c *Client) CreateAccessMonitoringRule(ctx context.Context, in *accessmonitoringrulesv1.AccessMonitoringRule) (*accessmonitoringrulesv1.AccessMonitoringRule, error)
CreateAccessMonitoringRule creates the specified access monitoring rule.
func (*Client) DeleteAccessMonitoringRule ¶
DeleteAccessMonitoringRule deletes the specified access monitoring rule.
func (*Client) DeleteAllAccessMonitoringRules ¶
DeleteAllAccessMonitoringRules deletes all access monitoring rules.
func (*Client) GetAccessMonitoringRule ¶
func (c *Client) GetAccessMonitoringRule(ctx context.Context, resourceName string) (*accessmonitoringrulesv1.AccessMonitoringRule, error)
GetAccessMonitoringRule gets the specified access monitoring rule.
func (*Client) ListAccessMonitoringRules ¶
func (c *Client) ListAccessMonitoringRules(ctx context.Context, pageSize int, pageToken string) ([]*accessmonitoringrulesv1.AccessMonitoringRule, string, error)
ListAccessMonitoringRules lists current access monitoring rules.
func (*Client) ListAccessMonitoringRulesWithFilter ¶
func (c *Client) ListAccessMonitoringRulesWithFilter(ctx context.Context, pageSize int, pageToken string, subjects []string, notificationName string) ([]*accessmonitoringrulesv1.AccessMonitoringRule, string, error)
ListAccessMonitoringRulesWithFilter lists current access monitoring rules.
func (*Client) UpdateAccessMonitoringRule ¶
func (c *Client) UpdateAccessMonitoringRule(ctx context.Context, in *accessmonitoringrulesv1.AccessMonitoringRule) (*accessmonitoringrulesv1.AccessMonitoringRule, error)
UpdateAccessMonitoringRule updates the specified access monitoring rule.
func (*Client) UpsertAccessMonitoringRule ¶
func (c *Client) UpsertAccessMonitoringRule(ctx context.Context, in *accessmonitoringrulesv1.AccessMonitoringRule) (*accessmonitoringrulesv1.AccessMonitoringRule, error)
UpsertAccessMonitoringRule upserts the specified access monitoring rule.