Documentation ¶
Index ¶
- func NewDataLossPreventionPolicyDataSource() datasource.DataSource
- func NewDataLossPreventionPolicyResource() resource.Resource
- type DataLossPreventionPolicyDataSource
- func (d *DataLossPreventionPolicyDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *DataLossPreventionPolicyDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *DataLossPreventionPolicyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataLossPreventionPolicyDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type DataLossPreventionPolicyResource
- func (r *DataLossPreventionPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DataLossPreventionPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DataLossPreventionPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DataLossPreventionPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DataLossPreventionPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DataLossPreventionPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DataLossPreventionPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DataLossPreventionPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DataLossPreventionPolicyResourceConnectorActionRuleModel
- type DataLossPreventionPolicyResourceConnectorEndpointRuleModel
- type DataLossPreventionPolicyResourceConnectorModel
- type DataLossPreventionPolicyResourceCustomConnectorPattern
- type DataLossPreventionPolicyResourceEnvironmentsModel
- type DataLossPreventionPolicyResourceModel
- type DlpActionRuleDto
- type DlpConnectorActionConfigurationsDto
- type DlpConnectorConfigurationsDefinitionDto
- type DlpConnectorDto
- type DlpConnectorGroupsDto
- type DlpConnectorGroupsModelDto
- type DlpConnectorModelDto
- type DlpConnectorUrlPatternsDefinitionDto
- type DlpConnectorUrlPatternsRuleDto
- type DlpEndpointConfigurationsDto
- type DlpEndpointRuleDto
- type DlpEnvironmentDto
- type DlpPolicyClient
- func (client *DlpPolicyClient) CreatePolicy(ctx context.Context, policy DlpPolicyModelDto) (*DlpPolicyModelDto, error)
- func (client *DlpPolicyClient) DeletePolicy(ctx context.Context, name string) error
- func (client *DlpPolicyClient) GetPolicies(ctx context.Context) ([]DlpPolicyModelDto, error)
- func (client *DlpPolicyClient) GetPolicy(ctx context.Context, name string) (*DlpPolicyModelDto, error)
- func (client *DlpPolicyClient) UpdatePolicy(ctx context.Context, name string, policy DlpPolicyModelDto) (*DlpPolicyModelDto, error)
- type DlpPolicyDefinitionDto
- type DlpPolicyDefinitionDtoArray
- type DlpPolicyDto
- type DlpPolicyLastActionDto
- type DlpPolicyModelDto
- type PoliciesListDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataLossPreventionPolicyDataSource ¶
func NewDataLossPreventionPolicyDataSource() datasource.DataSource
Types ¶
type DataLossPreventionPolicyDataSource ¶
type DataLossPreventionPolicyDataSource struct { DlpPolicyClient DlpPolicyClient ProviderTypeName string TypeName string }
func (*DataLossPreventionPolicyDataSource) Configure ¶
func (d *DataLossPreventionPolicyDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DataLossPreventionPolicyDataSource) Metadata ¶
func (d *DataLossPreventionPolicyDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DataLossPreventionPolicyDataSource) Read ¶
func (d *DataLossPreventionPolicyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DataLossPreventionPolicyDataSource) Schema ¶
func (d *DataLossPreventionPolicyDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DataLossPreventionPolicyResource ¶
type DataLossPreventionPolicyResource struct { DlpPolicyClient DlpPolicyClient ProviderTypeName string TypeName string }
func (*DataLossPreventionPolicyResource) Configure ¶
func (r *DataLossPreventionPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DataLossPreventionPolicyResource) Create ¶
func (r *DataLossPreventionPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DataLossPreventionPolicyResource) Delete ¶
func (r *DataLossPreventionPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DataLossPreventionPolicyResource) ImportState ¶
func (r *DataLossPreventionPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DataLossPreventionPolicyResource) Metadata ¶
func (r *DataLossPreventionPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DataLossPreventionPolicyResource) Read ¶
func (r *DataLossPreventionPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DataLossPreventionPolicyResource) Schema ¶
func (r *DataLossPreventionPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DataLossPreventionPolicyResource) Update ¶
func (r *DataLossPreventionPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 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 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 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 DlpEndpointConfigurationsDto ¶
type DlpEndpointConfigurationsDto struct { ConnectorId string `json:"connectorId"` EndpointRules []DlpEndpointRuleDto `json:"endpointRules"` }
type DlpEndpointRuleDto ¶
type DlpEnvironmentDto ¶
type DlpPolicyClient ¶
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"` }
Click to show internal directories.
Click to hide internal directories.