resourcepolicy

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserMetadataObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"id":   types.StringType,
	"name": types.StringType,
}}

Functions

func DataSource

func DataSource() datasource.DataSource

func NewAdminPolicies

func NewAdminPolicies(ctx context.Context, input []TFPolicyModel) []admin.ApiAtlasPolicyCreate

func NewUserMetadataObjectType

func NewUserMetadataObjectType(ctx context.Context, input *admin.ApiAtlasUserMetadata, diags *diag.Diagnostics) types.Object

func PluralDataSource

func PluralDataSource() datasource.DataSource

func Resource

func Resource() resource.Resource

func ResourceSchema

func ResourceSchema(ctx context.Context) schema.Schema

Types

type TFModel

type TFModel struct {
	CreatedByUser     types.Object    `tfsdk:"created_by_user"`
	CreatedDate       types.String    `tfsdk:"created_date"`
	ID                types.String    `tfsdk:"id"`
	LastUpdatedByUser types.Object    `tfsdk:"last_updated_by_user"`
	LastUpdatedDate   types.String    `tfsdk:"last_updated_date"`
	Name              types.String    `tfsdk:"name"`
	OrgID             types.String    `tfsdk:"org_id"`
	Version           types.String    `tfsdk:"version"`
	Policies          []TFPolicyModel `tfsdk:"policies"`
}

type TFModelDSP

type TFModelDSP struct {
	OrgID            types.String `tfsdk:"org_id"`
	ResourcePolicies []TFModel    `tfsdk:"resource_policies"`
	Results          []TFModel    `tfsdk:"results"`
}

func NewTFModelDSP

func NewTFModelDSP(ctx context.Context, orgID string, input []admin.ApiAtlasResourcePolicy) (*TFModelDSP, diag.Diagnostics)

type TFPolicyModel

type TFPolicyModel struct {
	Body types.String `tfsdk:"body"`
	ID   types.String `tfsdk:"id"`
}

func NewTFPolicies

func NewTFPolicies(ctx context.Context, input *[]admin.ApiAtlasPolicy, diags *diag.Diagnostics) []TFPolicyModel

type TFUserMetadataModel

type TFUserMetadataModel struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

Jump to

Keyboard shortcuts

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