powerplatform

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataLossPreventionPolicyDataSource

func NewDataLossPreventionPolicyDataSource() datasource.DataSource

func NewDataLossPreventionPolicyResource

func NewDataLossPreventionPolicyResource() resource.Resource

Types

type DataLossPreventionPolicyDataSource

type DataLossPreventionPolicyDataSource struct {
	DlpPolicyClient  DlpPolicyClient
	ProviderTypeName string
	TypeName         string
}

func (*DataLossPreventionPolicyDataSource) Configure

func (*DataLossPreventionPolicyDataSource) Metadata

func (*DataLossPreventionPolicyDataSource) Read

func (*DataLossPreventionPolicyDataSource) Schema

type DataLossPreventionPolicyResource

type DataLossPreventionPolicyResource struct {
	DlpPolicyClient  DlpPolicyClient
	ProviderTypeName string
	TypeName         string
}

func (*DataLossPreventionPolicyResource) Configure

func (*DataLossPreventionPolicyResource) Create

func (*DataLossPreventionPolicyResource) Delete

func (*DataLossPreventionPolicyResource) ImportState

func (*DataLossPreventionPolicyResource) Metadata

func (*DataLossPreventionPolicyResource) Read

func (*DataLossPreventionPolicyResource) Schema

func (*DataLossPreventionPolicyResource) Update

type DataLossPreventionPolicyResourceConnectorActionRuleModel

type DataLossPreventionPolicyResourceConnectorActionRuleModel struct {
	ActionId types.String `tfsdk:"action_id"`
	Behavior types.String `tfsdk:"behavior"`
}

type DataLossPreventionPolicyResourceConnectorEndpointRuleModel

type DataLossPreventionPolicyResourceConnectorEndpointRuleModel struct {
	Order    types.Int64  `tfsdk:"order"`
	Behavior types.String `tfsdk:"behavior"`
	Endpoint types.String `tfsdk:"endpoint"`
}

type DataLossPreventionPolicyResourceConnectorModel

type DataLossPreventionPolicyResourceConnectorModel struct {
	Id                        types.String                                                 `tfsdk:"id"`
	DefaultActionRuleBehavior types.String                                                 `tfsdk:"default_action_rule_behavior"`
	ActionRules               []DataLossPreventionPolicyResourceConnectorActionRuleModel   `tfsdk:"action_rules"`
	EndpointRules             []DataLossPreventionPolicyResourceConnectorEndpointRuleModel `tfsdk:"endpoint_rules"`
}

type DataLossPreventionPolicyResourceCustomConnectorPattern

type DataLossPreventionPolicyResourceCustomConnectorPattern struct {
	Order          types.Int64  `tfsdk:"order"`
	HostUrlPattern types.String `tfsdk:"host_url_pattern"`
	DataGroup      types.String `tfsdk:"data_group"`
}

type DataLossPreventionPolicyResourceEnvironmentsModel

type DataLossPreventionPolicyResourceEnvironmentsModel struct {
	Name types.String `tfsdk:"name"`
}

type DataLossPreventionPolicyResourceModel

type DataLossPreventionPolicyResourceModel struct {
	Id                                types.String `tfsdk:"id"`
	DisplayName                       types.String `tfsdk:"display_name"`
	DefaultConnectorsClassification   types.String `tfsdk:"default_connectors_classification"`
	EnvironmentType                   types.String `tfsdk:"environment_type"`
	CreatedBy                         types.String `tfsdk:"created_by"`
	CreatedTime                       types.String `tfsdk:"created_time"`
	LastModifiedBy                    types.String `tfsdk:"last_modified_by"`
	LastModifiedTime                  types.String `tfsdk:"last_modified_time"`
	Environments                      []string     `tfsdk:"environments"`
	NonBusinessConfidentialConnectors types.Set    `tfsdk:"non_business_connectors"`
	BusinessGeneralConnectors         types.Set    `tfsdk:"business_connectors"`
	BlockedConnectors                 types.Set    `tfsdk:"blocked_connectors"`
	CustomConnectorsPatterns          types.Set    `tfsdk:"custom_connectors_patterns"`
}

type DlpActionRuleDto

type DlpActionRuleDto struct {
	ActionId string `json:"actionId"`
	Behavior string `json:"behavior"`
}

type DlpConnectorActionConfigurationsDto

type DlpConnectorActionConfigurationsDto struct {
	ConnectorId                        string             `json:"connectorId"`
	DefaultConnectorActionRuleBehavior string             `json:"defaultConnectorActionRuleBehavior"`
	ActionRules                        []DlpActionRuleDto `json:"actionRules"`
}

type DlpConnectorConfigurationsDefinitionDto

type DlpConnectorConfigurationsDefinitionDto struct {
	ConnectorActionConfigurations []DlpConnectorActionConfigurationsDto `json:"connectorActionConfigurations,omitempty"`
	EndpointConfigurations        []DlpEndpointConfigurationsDto        `json:"endpointConfigurations,omitempty"`
}

type DlpConnectorDto

type DlpConnectorDto struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

type DlpConnectorGroupsDto

type DlpConnectorGroupsDto struct {
	Classification string            `json:"classification"`
	Connectors     []DlpConnectorDto `json:"connectors"`
}

type DlpConnectorGroupsModelDto

type DlpConnectorGroupsModelDto struct {
	Classification string                 `json:"classification"`
	Connectors     []DlpConnectorModelDto `json:"connectors"`
}

type DlpConnectorModelDto

type DlpConnectorModelDto struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`

	DefaultActionRuleBehavior string
	ActionRules               []DlpActionRuleDto
	EndpointRules             []DlpEndpointRuleDto
}

type DlpConnectorUrlPatternsDefinitionDto

type DlpConnectorUrlPatternsDefinitionDto struct {
	Rules []DlpConnectorUrlPatternsRuleDto `json:"rules"`
}

type DlpConnectorUrlPatternsRuleDto

type DlpConnectorUrlPatternsRuleDto struct {
	Order                       int64  `json:"order"`
	ConnectorRuleClassification string `json:"customConnectorRuleClassification"`
	Pattern                     string `json:"pattern"`
}

type DlpEndpointConfigurationsDto

type DlpEndpointConfigurationsDto struct {
	ConnectorId   string               `json:"connectorId"`
	EndpointRules []DlpEndpointRuleDto `json:"endpointRules"`
}

type DlpEndpointRuleDto

type DlpEndpointRuleDto struct {
	Order    int64  `json:"order"`
	Behavior string `json:"behavior"`
	Endpoint string `json:"endpoint"`
}

type DlpEnvironmentDto

type DlpEnvironmentDto struct {
	Name string `json:"name"`
	Id   string `json:"id"`   //$"/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/{x.Name}",
	Type string `json:"type"` //"Microsoft.BusinessAppPlatform/scopes/environments"
}

type DlpPolicyClient

type DlpPolicyClient struct {
	Api *api.ApiClient
}

func NewDlpPolicyClient

func NewDlpPolicyClient(api *api.ApiClient) DlpPolicyClient

func (*DlpPolicyClient) CreatePolicy

func (client *DlpPolicyClient) CreatePolicy(ctx context.Context, policy DlpPolicyModelDto) (*DlpPolicyModelDto, error)

func (*DlpPolicyClient) DeletePolicy

func (client *DlpPolicyClient) DeletePolicy(ctx context.Context, name string) error

func (*DlpPolicyClient) GetPolicies

func (client *DlpPolicyClient) GetPolicies(ctx context.Context) ([]DlpPolicyModelDto, error)

func (*DlpPolicyClient) GetPolicy

func (client *DlpPolicyClient) GetPolicy(ctx context.Context, name string) (*DlpPolicyModelDto, error)

func (*DlpPolicyClient) UpdatePolicy

func (client *DlpPolicyClient) UpdatePolicy(ctx context.Context, name string, policy DlpPolicyModelDto) (*DlpPolicyModelDto, error)

type DlpPolicyDefinitionDto

type DlpPolicyDefinitionDto struct {
	Name                            string                  `json:"name,omitempty"`
	DisplayName                     string                  `json:"displayName"`
	DefaultConnectorsClassification string                  `json:"defaultConnectorsClassification"`
	EnvironmentType                 string                  `json:"environmentType"`
	Environments                    []DlpEnvironmentDto     `json:"environments"`
	ConnectorGroups                 []DlpConnectorGroupsDto `json:"connectorGroups"`
	ETag                            string                  `json:"etag,omitempty"`
	CreatedBy                       DlpPolicyLastActionDto  `json:"createdBy,omitempty"`
	CreatedTime                     string                  `json:"createdTime,omitempty"`
	LastModifiedBy                  DlpPolicyLastActionDto  `json:"lastModifiedBy,omitempty"`
	LastModifiedTime                string                  `json:"lastModifiedTime,omitempty"`
}

type DlpPolicyDefinitionDtoArray

type DlpPolicyDefinitionDtoArray struct {
	Value []DlpPolicyDto `json:"value"`
}

type DlpPolicyDto

type DlpPolicyDto struct {
	PolicyDefinition                     DlpPolicyDefinitionDto                   `json:"policyDefinition"`
	ConnectorConfigurationsDefinition    *DlpConnectorConfigurationsDefinitionDto `json:"connectorConfigurationsDefinition,omitempty"`
	CustomConnectorUrlPatternsDefinition DlpConnectorUrlPatternsDefinitionDto     `json:"customConnectorUrlPatternsDefinition"`
}

type DlpPolicyLastActionDto

type DlpPolicyLastActionDto struct {
	DisplayName string `json:"displayName"`
}

type DlpPolicyModelDto

type DlpPolicyModelDto struct {
	Name                                 string                                  `json:"name"`
	DisplayName                          string                                  `json:"displayName"`
	DefaultConnectorsClassification      string                                  `json:"defaultConnectorsClassification"`
	EnvironmentType                      string                                  `json:"environmentType"`
	ETag                                 string                                  `json:"etag"`
	CreatedBy                            string                                  `json:"createdBy"`
	CreatedTime                          string                                  `json:"createdTime"`
	LastModifiedBy                       string                                  `json:"lastModifiedBy"`
	LastModifiedTime                     string                                  `json:"lastModifiedTime"`
	Environments                         []DlpEnvironmentDto                     `json:"environments"`
	ConnectorGroups                      []DlpConnectorGroupsModelDto            `json:"connectorGroups"`
	CustomConnectorUrlPatternsDefinition []DlpConnectorUrlPatternsDefinitionDto  `json:"customConnectorUrlPatternsDefinition,omitempty"`
	ConnectorConfigurationsDefinition    DlpConnectorConfigurationsDefinitionDto `json:"connectorConfigurationsDefinition,omitempty"`
}

type PoliciesListDataSourceModel

type PoliciesListDataSourceModel struct {
	Id       types.String                            `tfsdk:"id"`
	Policies []DataLossPreventionPolicyResourceModel `tfsdk:"policies"`
}

Jump to

Keyboard shortcuts

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