powerplatform_api_bapi

package
v0.3.0-preview Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (client *BapiAuth) AuthenticateClientSecret(ctx context.Context, tenantId, applicationId, secret string) (string, error)

func (*BapiAuth) AuthenticateUserPass

func (client *BapiAuth) AuthenticateUserPass(ctx context.Context, tenantId, username, password string) (string, error)

func (*BapiAuth) GetBase

func (client *BapiAuth) GetBase() api.AuthInterface

type BapiAuthInterface

type BapiAuthInterface interface {
	GetBase() api.AuthInterface

	AuthenticateUserPass(ctx context.Context, tenantId, username, password string) (string, error)
	AuthenticateClientSecret(ctx context.Context, tenantId, applicationid, secret string) (string, error)
}

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)

Jump to

Keyboard shortcuts

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