Documentation ¶
Index ¶
- type BapiAuth
- type BapiAuthInterface
- type BapiClientApi
- func (client *BapiClientApi) CreateEnvironment(ctx context.Context, environment models.EnvironmentCreateDto) (*models.EnvironmentDto, error)
- func (client *BapiClientApi) CreatePolicy(ctx context.Context, policy models.DlpPolicyModel) (*models.DlpPolicyModel, error)
- func (client *BapiClientApi) DeleteEnvironment(ctx context.Context, environmentId string) error
- func (client *BapiClientApi) DeletePolicy(ctx context.Context, name string) error
- func (client *BapiClientApi) Execute(ctx context.Context, method string, url string, body interface{}, ...) (*api.ApiHttpResponse, error)
- func (client *BapiClientApi) GetBase() api.ApiClientInterface
- func (client *BapiClientApi) GetConnectors(ctx context.Context) ([]models.ConnectorDto, error)
- func (client *BapiClientApi) GetEnvironment(ctx context.Context, environmentId string) (*models.EnvironmentDto, error)
- func (client *BapiClientApi) GetEnvironments(ctx context.Context) ([]models.EnvironmentDto, error)
- func (client *BapiClientApi) GetPolicy(ctx context.Context, name string) (*models.DlpPolicyModel, error)
- func (client *BapiClientApi) GetPowerApps(ctx context.Context, environmentId string) ([]models.PowerAppBapi, error)
- func (client *BapiClientApi) SetDataverseClient(dataverseClient api.DataverseClientInterface)
- func (client *BapiClientApi) UpdateEnvironment(ctx context.Context, environmentId string, environment models.EnvironmentDto) (*models.EnvironmentDto, error)
- func (client *BapiClientApi) UpdatePolicy(ctx context.Context, name string, policy models.DlpPolicyModel) (*models.DlpPolicyModel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BapiAuth ¶
type BapiAuth struct {
BaseAuth api.AuthInterface
}
func (*BapiAuth) AuthenticateClientSecret ¶
func (*BapiAuth) AuthenticateUserPass ¶
func (*BapiAuth) GetBase ¶
func (client *BapiAuth) GetBase() api.AuthInterface
type BapiAuthInterface ¶
type BapiClientApi ¶
type BapiClientApi struct { BaseApi api.ApiClientInterface Auth BapiAuthInterface DataverseClient api.DataverseClientInterface }
func (*BapiClientApi) CreateEnvironment ¶
func (client *BapiClientApi) CreateEnvironment(ctx context.Context, environment models.EnvironmentCreateDto) (*models.EnvironmentDto, error)
func (*BapiClientApi) CreatePolicy ¶
func (client *BapiClientApi) CreatePolicy(ctx context.Context, policy models.DlpPolicyModel) (*models.DlpPolicyModel, error)
func (*BapiClientApi) DeleteEnvironment ¶
func (client *BapiClientApi) DeleteEnvironment(ctx context.Context, environmentId string) error
func (*BapiClientApi) DeletePolicy ¶
func (client *BapiClientApi) DeletePolicy(ctx context.Context, name string) error
func (*BapiClientApi) Execute ¶
func (client *BapiClientApi) Execute(ctx context.Context, method string, url string, body interface{}, acceptableStatusCodes []int, responseObj interface{}) (*api.ApiHttpResponse, error)
func (*BapiClientApi) GetBase ¶
func (client *BapiClientApi) GetBase() api.ApiClientInterface
func (*BapiClientApi) GetConnectors ¶
func (client *BapiClientApi) GetConnectors(ctx context.Context) ([]models.ConnectorDto, error)
func (*BapiClientApi) GetEnvironment ¶
func (client *BapiClientApi) GetEnvironment(ctx context.Context, environmentId string) (*models.EnvironmentDto, error)
func (*BapiClientApi) GetEnvironments ¶
func (client *BapiClientApi) GetEnvironments(ctx context.Context) ([]models.EnvironmentDto, error)
func (*BapiClientApi) GetPolicy ¶
func (client *BapiClientApi) GetPolicy(ctx context.Context, name string) (*models.DlpPolicyModel, error)
func (*BapiClientApi) GetPowerApps ¶
func (client *BapiClientApi) GetPowerApps(ctx context.Context, environmentId string) ([]models.PowerAppBapi, error)
func (*BapiClientApi) SetDataverseClient ¶
func (client *BapiClientApi) SetDataverseClient(dataverseClient api.DataverseClientInterface)
func (*BapiClientApi) UpdateEnvironment ¶
func (client *BapiClientApi) UpdateEnvironment(ctx context.Context, environmentId string, environment models.EnvironmentDto) (*models.EnvironmentDto, error)
func (*BapiClientApi) UpdatePolicy ¶
func (client *BapiClientApi) UpdatePolicy(ctx context.Context, name string, policy models.DlpPolicyModel) (*models.DlpPolicyModel, error)
Click to show internal directories.
Click to hide internal directories.