Help us shape the future of Go! Take the 2026 Go Developer Survey

opslevel

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Overview

management_rule_schema.go

Index

Constants

View Source
const AzureIdRegexPattern = `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`

Variables

View Source
var (
	TEAM_BUILTIN_PROPERTIES      = []string{"name", "alias", "contact", "tag"}
	USER_BUILTIN_PROPERTIES      = []string{"name", "contact", "tag"}
	COMPONENT_BUILTIN_PROPERTIES = []string{"name", "alias", "tag"}
)
View Source
var (
	TagKeyRegex    = regexp.MustCompile(`\A[a-z][0-9a-z_\.\/\\-]*\z`)
	TagKeyErrorMsg = "tag key name must start with a letter and be only lowercase alphanumerics, underscores, hyphens, periods, and slashes."
)

Tag key names are stored in OpsLevel as lowercase so we need to ensure the configuration is written as lowercase

View Source
var ComponentTypeDataSourceSchema = map[string]schema.Attribute{
	"id": schema.StringAttribute{
		MarkdownDescription: "The ID of this resource.",
		Computed:            true,
	},
	"name": schema.StringAttribute{
		MarkdownDescription: "The unique name of the component type.",
		Computed:            true,
	},
	"alias": schema.StringAttribute{
		MarkdownDescription: "The unique alias of the component type.",
		Computed:            true,
	},
	"description": schema.StringAttribute{
		MarkdownDescription: "The description of the component type.",
		Computed:            true,
	},
	"icon": schema.SingleNestedAttribute{
		MarkdownDescription: "The icon associated with the component type",
		Computed:            true,
		Attributes: map[string]schema.Attribute{
			"color": schema.StringAttribute{
				Description: "The color, represented as a hexcode, for the icon.",
				Computed:    true,
			},
			"name": schema.StringAttribute{
				Description: "The name of the icon in Phosphor icons for Vue, e.g. `PhBird`. See https://phosphoricons.com/ for a full list.",
				Computed:    true,
			},
		},
	},
	"owner_relationship": schema.SingleNestedAttribute{
		MarkdownDescription: "The owner relationship configuration for this component type.",
		Computed:            true,
		Attributes: map[string]schema.Attribute{
			"management_rules": ManagementRulesDataSourceAttribute(),
		},
	},
	"system_relationship": schema.SingleNestedAttribute{
		MarkdownDescription: "The system relationship configuration for this component type.",
		Computed:            true,
		Attributes: map[string]schema.Attribute{
			"management_rules": ManagementRulesDataSourceAttribute(),
		},
	},
	"properties": schema.MapNestedAttribute{
		Description: "The properties of this component type.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: map[string]schema.Attribute{
				"name": schema.StringAttribute{
					Description: "The name of the property definition.",
					Computed:    true,
				},
				"description": schema.StringAttribute{
					Description: "The description of the property definition.",
					Computed:    true,
				},
				"allowed_in_config_files": schema.BoolAttribute{
					Description: "Whether or not the property is allowed to be set in opslevel.yml config files.",
					Computed:    true,
				},
				"display_status": schema.StringAttribute{
					Description: "The display status of the property.",
					Computed:    true,
				},
				"locked_status": schema.StringAttribute{
					Description: "Restricts what sources are able to assign values to this property.",
					Computed:    true,
				},
				"schema": schema.StringAttribute{
					Description: "The schema of the property.",
					Computed:    true,
				},
			},
		},
	},
}
View Source
var FilterPredicateType = map[string]attr.Type{
	"case_insensitive": types.BoolType,
	"case_sensitive":   types.BoolType,
	"key":              types.StringType,
	"key_data":         types.StringType,
	"type":             types.StringType,
	"value":            types.StringType,
}
View Source
var RelationshipDefinitionDataSourceSchema = map[string]schema.Attribute{
	"id": schema.StringAttribute{
		MarkdownDescription: "The ID of this resource.",
		Computed:            true,
	},
	"name": schema.StringAttribute{
		MarkdownDescription: "The display name of the relationship definition.",
		Computed:            true,
	},
	"alias": schema.StringAttribute{
		MarkdownDescription: "The unique identifier of the relationship.",
		Computed:            true,
	},
	"description": schema.StringAttribute{
		MarkdownDescription: "The description of the relationship definition.",
		Computed:            true,
	},
	"component_type": schema.StringAttribute{
		MarkdownDescription: "The component type that the relationship belongs to.",
		Computed:            true,
	},
	"allowed_categories": schema.ListAttribute{
		MarkdownDescription: "The categories of resources that can be selected for this relationship definition. Can include any component category alias on your account.",
		Computed:            true,
		ElementType:         types.StringType,
	},
	"allowed_types": schema.ListAttribute{
		MarkdownDescription: "The types of resources that can be selected for this relationship definition. Can include any component type alias on your account or 'team'.",
		Computed:            true,
		ElementType:         types.StringType,
	},
	"management_rules": ManagementRulesDataSourceAttribute(),
}

Functions

func BuildPropertyString added in v1.8.0

func BuildPropertyString(property, tagKey, tagOperation string) string

func CampaignAttributes added in v1.11.0

func CampaignAttributes(attrs map[string]schema.Attribute) map[string]schema.Attribute

func CampaignCheckListValue added in v1.13.0

func CampaignCheckListValue(ctx context.Context, checks []opslevel.CampaignCheckNode) (types.List, diag.Diagnostics)

CampaignCheckListValue converts a campaign's checks into the data source's checks attribute.

A check with no source reports source_check_id as null rather than an empty string: the source may have been deleted, or the copy may predate OpsLevel recording where copies came from. Null distinguishes "unknown" from a real id.

func CampaignCheckWasDeleted added in v1.13.0

func CampaignCheckWasDeleted(campaignStatus opslevel.CampaignStatusEnum) bool

CampaignCheckWasDeleted reports whether a check the API cannot find has really been deleted, given the status of the campaign it belongs to.

Once a campaign has ended, every check on it fails the API's active? gate and reads as missing even though it still exists and is still attached. Treating that as a deletion would drop the resource from state and make Terraform plan a re-copy, which is not the remedy.

func CheckBaseAttributes added in v1.0.0

func CheckBaseAttributes(attrs map[string]schema.Attribute) map[string]schema.Attribute

func ComputedStringListValue added in v1.14.0

func ComputedStringListValue(values []string) basetypes.ListValue

Returns values wrapped in a types.ListValue, empty rather than null when there are none. Use this where "none" is a real answer rather than an unknown - a team with no tags genuinely has zero tags, so callers can length() it without a null check.

func ComputedStringValue added in v1.0.0

func ComputedStringValue(value string) basetypes.StringValue

Syntactic sugar for OptionalStringValue

func DiffCheckIds added in v1.11.0

func DiffCheckIds(stateIds, planIds map[string]bool) (toAdd []string, toRemove []string)

DiffCheckIds computes which IDs to add and remove given two sets of IDs.

func DomainAttributes added in v1.0.0

func DomainAttributes(attrs map[string]schema.Attribute) map[string]schema.Attribute

func FilterAttrs added in v1.0.0

func FilterAttrs(validFieldNames []string) map[string]schema.Attribute

func GetTeamID added in v1.4.0

func GetTeamID(d *diag.Diagnostics, client *opslevel.Client, identifier string) *opslevel.Nullable[opslevel.ID]

func IdStringValidator added in v1.0.0

func IdStringValidator() validator.String

func ImmutableStringPlanModifier added in v1.13.0

func ImmutableStringPlanModifier() planmodifier.String

func ImmutableViolation added in v1.13.0

func ImmutableViolation(stateValue, planValue types.String) (bool, string)

ImmutableViolation reports whether moving a write-once attribute from stateValue to planValue is forbidden, and why.

A write-once attribute records something that happened at create time and cannot be restated afterwards. Setting one where none exists is refused as well as changing one: an imported resource has no record of the value, and the action it would describe has already taken place.

An unknown plan value cannot be judged, since the value it will take is not known until apply.

func IsBuiltinProperty added in v1.8.0

func IsBuiltinProperty(targetTypeOrCategory string, propertyName string, isType bool) bool

func JsonHasNameKeyValidator added in v1.0.0

func JsonHasNameKeyValidator() validator.String

func JsonObjectValidator added in v1.0.0

func JsonObjectValidator() validator.String

func JsonStringValidator added in v1.0.0

func JsonStringValidator() validator.String

func ListValueToStringSlice added in v1.0.0

func ListValueToStringSlice(ctx context.Context, listValue basetypes.ListValue) ([]string, diag.Diagnostics)

Converts a basetypes.ListValue to a []string (returns empty string array if input list value is null)

func ManagementRuleListValueFromResourceAndModel added in v1.8.0

func ManagementRuleListValueFromResourceAndModel(resourceRules []opslevel.RelationshipDefinitionManagementRule, modelValue basetypes.ListValue) basetypes.ListValue

func ManagementRuleModelAttrs added in v1.7.0

func ManagementRuleModelAttrs() map[string]attr.Type

func ManagementRuleTagValidator added in v1.7.0

func ManagementRuleTagValidator() validator.List

func ManagementRulesDataSourceAttribute added in v1.8.0

func ManagementRulesDataSourceAttribute() dsschema.ListNestedAttribute

ManagementRulesDataSourceAttribute returns the management_rules schema for data sources

func ManagementRulesResourceAttribute added in v1.8.0

func ManagementRulesResourceAttribute() resschema.ListNestedAttribute

ManagementRulesResourceAttribute returns the management_rules schema for resources

func MapValueToOpslevelJson added in v1.0.0

func MapValueToOpslevelJson(ctx context.Context, mapValue basetypes.MapValue) (opslevel.JSON, diag.Diagnostics)

Converts a basetypes.MapValue to an opslevel.JSON

func New added in v1.0.0

func New(version string) func() provider.Provider

func NewAliasResource added in v1.3.2

func NewAliasResource() resource.Resource

func NewCampaignCheckResource added in v1.13.0

func NewCampaignCheckResource() resource.Resource

func NewCampaignDataSource added in v1.11.0

func NewCampaignDataSource() datasource.DataSource

func NewCampaignDataSourcesAll added in v1.11.0

func NewCampaignDataSourcesAll() datasource.DataSource

func NewCampaignResource added in v1.11.0

func NewCampaignResource() resource.Resource

func NewCategoryDataSource added in v1.0.0

func NewCategoryDataSource() datasource.DataSource

func NewCategoryDataSourceWithFilterModel added in v1.0.0

func NewCategoryDataSourceWithFilterModel(category opslevel.Category, filter filterBlockModel) categoryDataSourceWithFilterModel

func NewCategoryDataSourcesAll added in v1.0.0

func NewCategoryDataSourcesAll() datasource.DataSource

func NewCheckAlertSourceUsageResource added in v1.0.0

func NewCheckAlertSourceUsageResource() resource.Resource

func NewCheckCodeIssueResource added in v1.3.2

func NewCheckCodeIssueResource() resource.Resource

func NewCheckCustomEventResource added in v1.0.0

func NewCheckCustomEventResource() resource.Resource

func NewCheckGitBranchProtectionResource added in v1.0.0

func NewCheckGitBranchProtectionResource() resource.Resource

func NewCheckHasDocumentationResource added in v1.0.0

func NewCheckHasDocumentationResource() resource.Resource

func NewCheckHasRecentDeployResource added in v1.0.0

func NewCheckHasRecentDeployResource() resource.Resource

func NewCheckManualResource added in v1.0.0

func NewCheckManualResource() resource.Resource

func NewCheckPackageVersionResource added in v1.2.2

func NewCheckPackageVersionResource() resource.Resource

func NewCheckRelationshipResource added in v1.5.1

func NewCheckRelationshipResource() resource.Resource

func NewCheckRepositoryFileResource added in v1.0.0

func NewCheckRepositoryFileResource() resource.Resource

func NewCheckRepositoryGrepResource added in v1.0.0

func NewCheckRepositoryGrepResource() resource.Resource

func NewCheckRepositoryIntegratedResource added in v1.0.0

func NewCheckRepositoryIntegratedResource() resource.Resource

func NewCheckRepositorySearchResource added in v1.0.0

func NewCheckRepositorySearchResource() resource.Resource

func NewCheckServiceConfigurationResource added in v1.0.0

func NewCheckServiceConfigurationResource() resource.Resource

func NewCheckServiceDependencyResource added in v1.0.0

func NewCheckServiceDependencyResource() resource.Resource

func NewCheckServiceOwnershipResource added in v1.0.0

func NewCheckServiceOwnershipResource() resource.Resource

func NewCheckServicePropertyResource added in v1.0.0

func NewCheckServicePropertyResource() resource.Resource

func NewCheckTagDefinedResource added in v1.0.0

func NewCheckTagDefinedResource() resource.Resource

func NewCheckToolUsageResource added in v1.0.0

func NewCheckToolUsageResource() resource.Resource

func NewComponentTypeDataSourceMulti added in v1.4.1

func NewComponentTypeDataSourceMulti() datasource.DataSource

func NewComponentTypeDataSourceSingle added in v1.4.1

func NewComponentTypeDataSourceSingle() datasource.DataSource

func NewComponentTypeResource added in v1.4.0

func NewComponentTypeResource() resource.Resource

func NewDomainDataSource added in v1.0.0

func NewDomainDataSource() datasource.DataSource

func NewDomainDataSourcesAll added in v1.0.0

func NewDomainDataSourcesAll() datasource.DataSource

func NewDomainResource added in v1.0.0

func NewDomainResource() resource.Resource

func NewFilterBlockModel added in v1.0.0

func NewFilterBlockModel(field string, value string) filterBlockModel

func NewFilterDataSource added in v1.0.0

func NewFilterDataSource() datasource.DataSource

func NewFilterDataSourcesAll added in v1.0.0

func NewFilterDataSourcesAll() datasource.DataSource

func NewFilterResource added in v1.0.0

func NewFilterResource() resource.Resource

func NewInfrastructureResource added in v1.0.0

func NewInfrastructureResource() resource.Resource

func NewIntegrationAwsResource added in v1.0.0

func NewIntegrationAwsResource() resource.Resource

func NewIntegrationAzureResourcesResource added in v1.2.2

func NewIntegrationAzureResourcesResource() resource.Resource

func NewIntegrationCustomResource added in v1.13.0

func NewIntegrationCustomResource() resource.Resource

func NewIntegrationDataSource added in v1.0.0

func NewIntegrationDataSource() datasource.DataSource

func NewIntegrationDataSourceModel added in v1.0.0

func NewIntegrationDataSourceModel(ctx context.Context, integration opslevel.Integration, filter filterBlockModel) integrationDataSourceWithFilterModel

func NewIntegrationDataSourcesAll added in v1.0.0

func NewIntegrationDataSourcesAll() datasource.DataSource

func NewIntegrationDataSourcesAllModel added in v1.0.0

func NewIntegrationDataSourcesAllModel(integrations []opslevel.Integration) integrationDataSourcesAllModel

func NewIntegrationEndpointResource added in v1.3.2

func NewIntegrationEndpointResource() resource.Resource

func NewIntegrationGoogleCloudResource added in v1.2.6

func NewIntegrationGoogleCloudResource() resource.Resource

func NewIntegrationKubernetesResource added in v1.12.0

func NewIntegrationKubernetesResource() resource.Resource

func NewLevelDataSource added in v1.0.0

func NewLevelDataSource() datasource.DataSource

func NewLevelDataSourceWithFilterModel added in v1.0.0

func NewLevelDataSourceWithFilterModel(ctx context.Context, level opslevel.Level, filter filterBlockModel) levelDataSourceWithFilterModel

func NewLevelDataSourcesAll added in v1.0.0

func NewLevelDataSourcesAll() datasource.DataSource

func NewLevelDataSourcesAllModel added in v1.0.0

func NewLevelDataSourcesAllModel(levels []opslevel.Level) levelDataSourcesAllModel

func NewLifecycleDataSource added in v1.0.0

func NewLifecycleDataSource() datasource.DataSource

func NewLifecycleDataSourceModel added in v1.0.0

func NewLifecycleDataSourceModel(ctx context.Context, lifecycle opslevel.Lifecycle, filter filterBlockModel) lifecycleDataSourceWithFilterModel

func NewLifecycleDataSourcesAll added in v1.0.0

func NewLifecycleDataSourcesAll() datasource.DataSource

func NewLifecycleDataSourcesAllModel added in v1.0.0

func NewLifecycleDataSourcesAllModel(lifecycles []opslevel.Lifecycle) lifecycleDataSourcesAllModel

func NewManagementRuleValue added in v1.7.0

func NewManagementRuleValue(rule opslevel.RelationshipDefinitionManagementRule) attr.Value

func NewPropertiesAllModel added in v1.0.0

func NewPropertiesAllModel(ctx context.Context, opslevelProperties []opslevel.Property) ([]propertyModel, diag.Diagnostics)

func NewPropertiesInput added in v1.4.0

func NewPropertyAssignmentResource added in v1.0.0

func NewPropertyAssignmentResource() resource.Resource

func NewPropertyDefinitionDataSource added in v1.0.0

func NewPropertyDefinitionDataSource() datasource.DataSource

func NewPropertyDefinitionDataSourceWithFilterModel added in v1.0.0

func NewPropertyDefinitionDataSourceWithFilterModel(propertydefinition opslevel.PropertyDefinition, identifier string) propertyDefinitionDataSourceWithFilterModel

func NewPropertyDefinitionDataSourcesAll added in v1.0.0

func NewPropertyDefinitionDataSourcesAll() datasource.DataSource

func NewPropertyDefinitionDataSourcesAllModel added in v1.0.0

func NewPropertyDefinitionDataSourcesAllModel(propertyDefinitions []opslevel.PropertyDefinition) propertyDefinitionDataSourcesAllModel

func NewPropertyDefinitionResource added in v1.0.0

func NewPropertyDefinitionResource() resource.Resource

func NewPropertyModel added in v1.0.0

func NewPropertyModel(opslevelProperty opslevel.Property) propertyModel

func NewRelationshipAssignmentResource added in v1.5.0

func NewRelationshipAssignmentResource() resource.Resource

func NewRelationshipDefinitionDataSourceMulti added in v1.5.0

func NewRelationshipDefinitionDataSourceMulti() datasource.DataSource

func NewRelationshipDefinitionDataSourceSingle added in v1.5.0

func NewRelationshipDefinitionDataSourceSingle() datasource.DataSource

func NewRelationshipDefinitionResource added in v1.5.0

func NewRelationshipDefinitionResource() resource.Resource

func NewRepositoriesDataSourceAll added in v1.0.0

func NewRepositoriesDataSourceAll() datasource.DataSource

func NewRepositoryDataSource added in v1.0.0

func NewRepositoryDataSource() datasource.DataSource

func NewRepositoryResource added in v1.0.0

func NewRepositoryResource() resource.Resource

func NewRubricCategoryResource added in v1.0.0

func NewRubricCategoryResource() resource.Resource

func NewRubricLevelResource added in v1.0.0

func NewRubricLevelResource() resource.Resource

func NewScorecardDataSource added in v1.0.0

func NewScorecardDataSource() datasource.DataSource

func NewScorecardDataSourceWithIdentifierModel added in v1.0.0

func NewScorecardDataSourceWithIdentifierModel(
	scorecard opslevel.Scorecard,
	identifier string,
	categoriesModel []categoryDataSourceModel,
) scorecardDataSourceWithIdentifierModel

func NewScorecardDataSourcesAll added in v1.0.0

func NewScorecardDataSourcesAll() datasource.DataSource

func NewScorecardDataSourcesAllModel added in v1.0.0

func NewScorecardDataSourcesAllModel(ctx context.Context, client *opslevel.Client, scorecards []opslevel.Scorecard) (scorecardDataSourcesAllModel, diag.Diagnostics)

func NewScorecardResource added in v1.0.0

func NewScorecardResource() resource.Resource

func NewSecretResource added in v1.0.0

func NewSecretResource() resource.Resource

func NewServiceDataSource added in v1.0.0

func NewServiceDataSource() datasource.DataSource

func NewServiceDataSourcesAll added in v1.0.0

func NewServiceDataSourcesAll() datasource.DataSource

func NewServiceDataSourcesAllModel added in v1.0.0

func NewServiceDataSourcesAllModel(services []opslevel.Service) serviceDataSourcesAllModel

func NewServiceDependenciesDataSource added in v1.2.6

func NewServiceDependenciesDataSource() datasource.DataSource

func NewServiceDependencyResource added in v1.0.0

func NewServiceDependencyResource() resource.Resource

func NewServiceRelationshipResource added in v1.3.6

func NewServiceRelationshipResource() resource.Resource

func NewServiceRepositoryResource added in v1.0.0

func NewServiceRepositoryResource() resource.Resource

func NewServiceResource added in v1.0.0

func NewServiceResource() resource.Resource

func NewServiceTagResource added in v1.0.0

func NewServiceTagResource() resource.Resource

func NewServiceToolResource added in v1.0.0

func NewServiceToolResource() resource.Resource

func NewSystemDataSource added in v1.0.0

func NewSystemDataSource() datasource.DataSource

func NewSystemDataSourcesAll added in v1.0.0

func NewSystemDataSourcesAll() datasource.DataSource

func NewSystemResource added in v1.0.0

func NewSystemResource() resource.Resource

func NewTagResource added in v1.0.0

func NewTagResource() resource.Resource

func NewTeamContactResource added in v1.0.0

func NewTeamContactResource() resource.Resource

func NewTeamDataSource added in v1.0.0

func NewTeamDataSource() datasource.DataSource

func NewTeamDataSourcesAll added in v1.0.0

func NewTeamDataSourcesAll() datasource.DataSource

func NewTeamPropertyDefinitionDataSource added in v1.9.0

func NewTeamPropertyDefinitionDataSource() datasource.DataSource

func NewTeamPropertyDefinitionDataSourceModel added in v1.9.0

func NewTeamPropertyDefinitionDataSourceModel(definition opslevel.TeamPropertyDefinition, identifier string) teamPropertyDefinitionDataSourceModel

func NewTeamPropertyDefinitionDataSourcesAll added in v1.9.0

func NewTeamPropertyDefinitionDataSourcesAll() datasource.DataSource

func NewTeamPropertyDefinitionDataSourcesAllModel added in v1.9.0

func NewTeamPropertyDefinitionDataSourcesAllModel(definitions []opslevel.TeamPropertyDefinition) teamPropertyDefinitionDataSourcesAllModel

func NewTeamPropertyDefinitionResource added in v1.9.0

func NewTeamPropertyDefinitionResource() resource.Resource

func NewTeamResource added in v1.0.0

func NewTeamResource() resource.Resource

func NewTeamTagResource added in v1.0.0

func NewTeamTagResource() resource.Resource

func NewTierDataSource added in v1.0.0

func NewTierDataSource() datasource.DataSource

func NewTierDataSourcesAll added in v1.0.0

func NewTierDataSourcesAll() datasource.DataSource

func NewTriggerDefinitionResource added in v1.0.0

func NewTriggerDefinitionResource() resource.Resource

func NewUserDataSource added in v1.0.0

func NewUserDataSource() datasource.DataSource

func NewUserDataSourcesAll added in v1.0.0

func NewUserDataSourcesAll() datasource.DataSource

func NewUserResource added in v1.0.0

func NewUserResource() resource.Resource

func NewWebhookActionDataSource added in v1.0.0

func NewWebhookActionDataSource() datasource.DataSource

func NewWebhookActionDataSourcesAll added in v1.0.0

func NewWebhookActionDataSourcesAll() datasource.DataSource

func NewWebhookActionResource added in v1.0.0

func NewWebhookActionResource() resource.Resource

func NonEmptyYAML added in v1.13.0

func NonEmptyYAML() validator.String

func NullableStringConfigValue added in v1.0.0

func NullableStringConfigValue(s types.String) *opslevel.Nullable[string]

Returns value from config as a string OR null if the value is not set/explicitly set to null (supports empty strings)

func OptionalBoolValue added in v1.0.0

func OptionalBoolValue(value *bool) basetypes.BoolValue

Returns value wrapped in a types.BoolValue, or types.BoolNull if blank

func OptionalStringListValue added in v1.0.0

func OptionalStringListValue(values []string) basetypes.ListValue

Returns value wrapped in a types.StringValue, or types.ListNull if blank

func OptionalStringValue added in v1.0.0

func OptionalStringValue(value string) basetypes.StringValue

Returns value wrapped in a types.StringValue, or types.StringNull if blank

func ParseManagementRules added in v1.8.0

func ParseManagementRules(ctx context.Context, planRules types.List, componentTypeAlias string, diags *diag.Diagnostics) []opslevel.ManagementRuleInput

func ParsePredicate added in v1.2.2

func ParsePredicate(predicate *opslevel.Predicate) types.Object

func ParsePropertyString added in v1.8.0

func ParsePropertyString(propertyStr string) (property, tagKey, tagOperation string)

func PredicateSchema added in v1.0.0

func PredicateSchema() schema.SingleNestedAttribute

func PreventRemovalPlanModifier added in v1.8.1

func PreventRemovalPlanModifier(fieldName string) planmodifier.List

func PropertyDefinitionAttributes added in v1.0.0

func PropertyDefinitionAttributes(attrs map[string]schema.Attribute) map[string]schema.Attribute

func RequiredBoolValue added in v1.0.0

func RequiredBoolValue(value bool) basetypes.BoolValue

Returns value wrapped in a types.BoolValue

func RequiredIntValue added in v1.0.0

func RequiredIntValue(value int) basetypes.Int64Value

Returns value wrapped in a types.Int64Value

func RequiredStringValue added in v1.0.0

func RequiredStringValue(value string) basetypes.StringValue

Returns value wrapped in a types.StringValue, even if blank string given

func ScorecardAttributes added in v1.0.0

func ScorecardAttributes(attrs map[string]schema.Attribute) map[string]schema.Attribute

func SelectCreatedCheck added in v1.13.0

func SelectCreatedCheck(created []opslevel.Check) (*opslevel.Check, error)

SelectCreatedCheck picks the single check a copy call created.

The copy mutation reports exactly which checks it made, so this is a direct answer rather than an inference. Anything other than one check means we cannot say which check this resource owns, and guessing risks adopting - and later deleting - a check we did not create.

func SetValueToStringSlice added in v1.0.0

func SetValueToStringSlice(ctx context.Context, setValue basetypes.SetValue) ([]string, diag.Diagnostics)

Converts a basetypes.SetValue to a []string

func StringListValueFromResourceAndModelField added in v1.7.0

func StringListValueFromResourceAndModelField(resourceValues []string, modelValue basetypes.ListValue) basetypes.ListValue

func StringSliceToSetValue added in v1.1.1

func StringSliceToSetValue(values []string) basetypes.SetValue

Converts a []string to a basetypes.SetValue

func StringValueFromResourceAndModelField added in v1.1.2

func StringValueFromResourceAndModelField(resourceValue string, modelValue basetypes.StringValue) basetypes.StringValue

Returns resourceValue wrapped in types.StringValue or types.StringNull if modelValue is null

func TagFormatValidator added in v1.0.0

func TagFormatValidator() validator.Set

func TagSetValueToTagSlice added in v1.1.1

func TagSetValueToTagSlice(ctx context.Context, setValue basetypes.SetValue) ([]opslevel.Tag, diag.Diagnostics)

func UseStateForEquivalentYAML added in v1.13.0

func UseStateForEquivalentYAML() planmodifier.String

Types

type AliasResource added in v1.3.2

type AliasResource struct {
	CommonResourceClient
}

AliasResource defines the resource implementation for managing aliases.

func (*AliasResource) Create added in v1.3.2

func (*AliasResource) Delete added in v1.3.2

func (*AliasResource) Metadata added in v1.3.2

func (*AliasResource) Read added in v1.3.2

func (*AliasResource) Schema added in v1.3.2

func (*AliasResource) Update added in v1.3.2

type AliasResourceModel added in v1.3.2

type AliasResourceModel struct {
	ResourceType       types.String `tfsdk:"resource_type"`
	ResourceIdentifier types.String `tfsdk:"resource_identifier"`
	Aliases            types.Set    `tfsdk:"aliases"`

	Id types.String `tfsdk:"id"`
}

func (AliasResourceModel) GetAliases added in v1.3.2

func (s AliasResourceModel) GetAliases(ctx context.Context, d *diag.Diagnostics) []string

func (AliasResourceModel) GetResource added in v1.3.2

type CampaignCheckResource added in v1.13.0

type CampaignCheckResource struct {
	CommonResourceClient
}

func (*CampaignCheckResource) Create added in v1.13.0

func (*CampaignCheckResource) Delete added in v1.13.0

func (*CampaignCheckResource) ImportState added in v1.13.0

ImportState takes the copied check's own id. campaign_id is derived on read, and copied_from_check_id stays null - nothing records what an existing copy was made from.

func (*CampaignCheckResource) Metadata added in v1.13.0

func (*CampaignCheckResource) Read added in v1.13.0

func (*CampaignCheckResource) Schema added in v1.13.0

func (*CampaignCheckResource) Update added in v1.13.0

type CampaignCheckResourceModel added in v1.13.0

type CampaignCheckResourceModel struct {
	Id                types.String `tfsdk:"id"`
	CampaignId        types.String `tfsdk:"campaign_id"`
	CopiedFromCheckId types.String `tfsdk:"copied_from_check_id"`
	SourceCheckId     types.String `tfsdk:"source_check_id"`
	Name              types.String `tfsdk:"name"`
	Notes             types.String `tfsdk:"notes"`
	Owner             types.String `tfsdk:"owner"`
	Enabled           types.Bool   `tfsdk:"enabled"`
	EnableOn          types.String `tfsdk:"enable_on"`
	Type              types.String `tfsdk:"type"`
	Description       types.String `tfsdk:"description"`
	Filter            types.String `tfsdk:"filter"`
}

func NewCampaignCheckResourceModel added in v1.13.0

func NewCampaignCheckResourceModel(check opslevel.Check, givenModel CampaignCheckResourceModel) CampaignCheckResourceModel

type CampaignDataSource added in v1.11.0

type CampaignDataSource struct {
	CommonDataSourceClient
}

func (*CampaignDataSource) Metadata added in v1.11.0

func (*CampaignDataSource) Read added in v1.11.0

func (*CampaignDataSource) Schema added in v1.11.0

type CampaignDataSourcesAll added in v1.11.0

type CampaignDataSourcesAll struct {
	CommonDataSourceClient
}

func (*CampaignDataSourcesAll) Metadata added in v1.11.0

func (*CampaignDataSourcesAll) Read added in v1.11.0

func (*CampaignDataSourcesAll) Schema added in v1.11.0

type CampaignResource added in v1.11.0

type CampaignResource struct {
	CommonResourceClient
}

func (*CampaignResource) Create added in v1.11.0

func (*CampaignResource) Delete added in v1.11.0

func (*CampaignResource) ImportState added in v1.11.0

func (*CampaignResource) Metadata added in v1.11.0

func (*CampaignResource) Read added in v1.11.0

func (*CampaignResource) Schema added in v1.11.0

func (*CampaignResource) Update added in v1.11.0

func (*CampaignResource) ValidateConfig added in v1.11.0

type CampaignResourceModel added in v1.11.0

type CampaignResourceModel struct {
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	OwnerId      types.String `tfsdk:"owner_id"`
	FilterId     types.String `tfsdk:"filter_id"`
	ProjectBrief types.String `tfsdk:"project_brief"`
	CheckIds     types.List   `tfsdk:"check_ids"`
	StartDate    types.String `tfsdk:"start_date"`
	TargetDate   types.String `tfsdk:"target_date"`
	Status       types.String `tfsdk:"status"`
	HtmlUrl      types.String `tfsdk:"html_url"`
}

func NewCampaignResourceModel added in v1.11.0

func NewCampaignResourceModel(campaign opslevel.Campaign, givenModel CampaignResourceModel) CampaignResourceModel

type CategoryDataSource added in v1.0.0

type CategoryDataSource struct {
	CommonDataSourceClient
}

CategoryDataSource manages a Category data source.

func (*CategoryDataSource) Metadata added in v1.0.0

func (*CategoryDataSource) Read added in v1.0.0

func (*CategoryDataSource) Schema added in v1.0.0

type CategoryDataSourcesAll added in v1.0.0

type CategoryDataSourcesAll struct {
	CommonDataSourceClient
}

CategoryDataSourcesAll manages a Category data source.

func (*CategoryDataSourcesAll) Metadata added in v1.0.0

func (*CategoryDataSourcesAll) Read added in v1.0.0

func (*CategoryDataSourcesAll) Schema added in v1.0.0

type CategoryDataSourcesAllModel added in v1.0.0

type CategoryDataSourcesAllModel struct {
	RubricCategories []categoryDataSourceModel `tfsdk:"rubric_categories"`
}

CategoryDataSourcesAllModel describes the data source data model.

func NewCategoryDataSourcesAllModel added in v1.0.0

func NewCategoryDataSourcesAllModel(categories []opslevel.Category) CategoryDataSourcesAllModel

type CheckAlertSourceUsageResource added in v1.0.0

type CheckAlertSourceUsageResource struct {
	CommonResourceClient
}

CheckAlertSourceUsageResource defines the resource implementation.

func (*CheckAlertSourceUsageResource) Create added in v1.0.0

func (*CheckAlertSourceUsageResource) Delete added in v1.0.0

func (*CheckAlertSourceUsageResource) ImportState added in v1.0.0

func (*CheckAlertSourceUsageResource) Metadata added in v1.0.0

func (*CheckAlertSourceUsageResource) Read added in v1.0.0

func (*CheckAlertSourceUsageResource) Schema added in v1.0.0

func (*CheckAlertSourceUsageResource) Update added in v1.0.0

func (*CheckAlertSourceUsageResource) UpgradeState added in v1.1.4

func (*CheckAlertSourceUsageResource) ValidateConfig added in v1.0.0

type CheckAlertSourceUsageResourceModel added in v1.0.0

type CheckAlertSourceUsageResourceModel struct {
	CheckCodeBaseResourceModel

	AlertType          types.String `tfsdk:"alert_type"`
	AlertNamePredicate types.Object `tfsdk:"alert_name_predicate"`
}

func NewCheckAlertSourceUsageResourceModel added in v1.0.0

func NewCheckAlertSourceUsageResourceModel(ctx context.Context, check opslevel.Check, planModel CheckAlertSourceUsageResourceModel) CheckAlertSourceUsageResourceModel

type CheckCodeBaseResourceModel added in v1.3.2

type CheckCodeBaseResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`
}

func NewCheckCodeBaseResourceModel added in v1.3.2

func NewCheckCodeBaseResourceModel(check opslevel.Check, givenModel CheckCodeBaseResourceModel) CheckCodeBaseResourceModel

type CheckCodeIssueResource added in v1.3.2

type CheckCodeIssueResource struct {
	CommonResourceClient
}

CheckCodeIssueResource defines the resource implementation.

func (*CheckCodeIssueResource) Create added in v1.3.2

func (*CheckCodeIssueResource) Delete added in v1.3.2

func (*CheckCodeIssueResource) ImportState added in v1.3.2

func (*CheckCodeIssueResource) Metadata added in v1.3.2

func (*CheckCodeIssueResource) Read added in v1.3.2

func (*CheckCodeIssueResource) Schema added in v1.3.2

func (*CheckCodeIssueResource) Update added in v1.3.2

type CheckCodeIssueResourceModel added in v1.3.2

type CheckCodeIssueResourceModel struct {
	CheckCodeBaseResourceModel

	Constraint     types.String `tfsdk:"constraint"`
	IssueName      types.String `tfsdk:"issue_name"`
	IssueType      types.List   `tfsdk:"issue_type"`
	MaxAllowed     types.Int64  `tfsdk:"max_allowed"`
	ResolutionTime types.Object `tfsdk:"resolution_time"`
	Severity       types.List   `tfsdk:"severity"`
}

func NewCheckCodeIssueResourceModel added in v1.3.2

func NewCheckCodeIssueResourceModel(ctx context.Context, check opslevel.Check, givenModel CheckCodeIssueResourceModel) CheckCodeIssueResourceModel

type CheckCustomEventResource added in v1.0.0

type CheckCustomEventResource struct {
	CommonResourceClient
}

CheckCustomEventResource defines the resource implementation.

func (*CheckCustomEventResource) Create added in v1.0.0

func (*CheckCustomEventResource) Delete added in v1.0.0

func (*CheckCustomEventResource) ImportState added in v1.0.0

func (*CheckCustomEventResource) Metadata added in v1.0.0

func (*CheckCustomEventResource) Read added in v1.0.0

func (*CheckCustomEventResource) Schema added in v1.0.0

func (*CheckCustomEventResource) Update added in v1.0.0

type CheckCustomEventResourceModel added in v1.0.0

type CheckCustomEventResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	Integration      types.String `tfsdk:"integration"`
	PassPending      types.Bool   `tfsdk:"pass_pending"`
	ServiceSelector  types.String `tfsdk:"service_selector"`
	SuccessCondition types.String `tfsdk:"success_condition"`
	Message          types.String `tfsdk:"message"`
}

func NewCheckCustomEventResourceModel added in v1.0.0

func NewCheckCustomEventResourceModel(ctx context.Context, check opslevel.Check, planModel CheckCustomEventResourceModel) CheckCustomEventResourceModel

type CheckGitBranchProtectionResource added in v1.0.0

type CheckGitBranchProtectionResource struct {
	CommonResourceClient
}

CheckGitBranchProtectionResource defines the resource implementation.

func (*CheckGitBranchProtectionResource) Create added in v1.0.0

func (*CheckGitBranchProtectionResource) Delete added in v1.0.0

func (*CheckGitBranchProtectionResource) ImportState added in v1.0.0

func (*CheckGitBranchProtectionResource) Metadata added in v1.0.0

func (*CheckGitBranchProtectionResource) Read added in v1.0.0

func (*CheckGitBranchProtectionResource) Schema added in v1.0.0

func (*CheckGitBranchProtectionResource) Update added in v1.0.0

type CheckHasDocumentationResource added in v1.0.0

type CheckHasDocumentationResource struct {
	CommonResourceClient
}

CheckHasDocumentationResource defines the resource implementation.

func (*CheckHasDocumentationResource) Create added in v1.0.0

func (*CheckHasDocumentationResource) Delete added in v1.0.0

func (*CheckHasDocumentationResource) ImportState added in v1.0.0

func (*CheckHasDocumentationResource) Metadata added in v1.0.0

func (*CheckHasDocumentationResource) Read added in v1.0.0

func (*CheckHasDocumentationResource) Schema added in v1.0.0

func (*CheckHasDocumentationResource) Update added in v1.0.0

type CheckHasDocumentationResourceModel added in v1.0.0

type CheckHasDocumentationResourceModel struct {
	CheckCodeBaseResourceModel

	DocumentType    types.String `tfsdk:"document_type"`
	DocumentSubtype types.String `tfsdk:"document_subtype"`
}

func NewCheckHasDocumentationResourceModel added in v1.0.0

func NewCheckHasDocumentationResourceModel(ctx context.Context, check opslevel.Check, planModel CheckHasDocumentationResourceModel) CheckHasDocumentationResourceModel

type CheckHasRecentDeployResource added in v1.0.0

type CheckHasRecentDeployResource struct {
	CommonResourceClient
}

CheckHasRecentDeployResource defines the resource implementation.

func (*CheckHasRecentDeployResource) Create added in v1.0.0

func (*CheckHasRecentDeployResource) Delete added in v1.0.0

func (*CheckHasRecentDeployResource) ImportState added in v1.0.0

func (*CheckHasRecentDeployResource) Metadata added in v1.0.0

func (*CheckHasRecentDeployResource) Read added in v1.0.0

func (*CheckHasRecentDeployResource) Schema added in v1.0.0

func (*CheckHasRecentDeployResource) Update added in v1.0.0

type CheckHasRecentDeployResourceModel added in v1.0.0

type CheckHasRecentDeployResourceModel struct {
	CheckCodeBaseResourceModel

	Days types.Int64 `tfsdk:"days"`
}

func NewCheckHasRecentDeployResourceModel added in v1.0.0

func NewCheckHasRecentDeployResourceModel(ctx context.Context, check opslevel.Check, planModel CheckHasRecentDeployResourceModel) CheckHasRecentDeployResourceModel

type CheckManualResource added in v1.0.0

type CheckManualResource struct {
	CommonResourceClient
}

CheckManualResource defines the resource implementation.

func (*CheckManualResource) Create added in v1.0.0

func (*CheckManualResource) Delete added in v1.0.0

func (*CheckManualResource) ImportState added in v1.0.0

func (*CheckManualResource) Metadata added in v1.0.0

func (*CheckManualResource) Read added in v1.0.0

func (*CheckManualResource) Schema added in v1.0.0

func (*CheckManualResource) Update added in v1.0.0

func (*CheckManualResource) UpgradeState added in v1.2.0

type CheckManualResourceModel added in v1.0.0

type CheckManualResourceModel struct {
	CheckCodeBaseResourceModel

	UpdateFrequency       *CheckUpdateFrequency `tfsdk:"update_frequency"`
	UpdateRequiresComment types.Bool            `tfsdk:"update_requires_comment"`
}

func NewCheckManualResourceModel added in v1.0.0

func NewCheckManualResourceModel(ctx context.Context, check opslevel.Check, planModel CheckManualResourceModel) CheckManualResourceModel

type CheckPackageVersionResource added in v1.2.2

type CheckPackageVersionResource struct {
	CommonResourceClient
}

CheckPackageVersionResource defines the resource implementation.

func (*CheckPackageVersionResource) Create added in v1.2.2

func (*CheckPackageVersionResource) Delete added in v1.2.2

func (*CheckPackageVersionResource) ImportState added in v1.2.2

func (*CheckPackageVersionResource) Metadata added in v1.2.2

func (*CheckPackageVersionResource) Read added in v1.2.2

func (*CheckPackageVersionResource) Schema added in v1.2.2

func (*CheckPackageVersionResource) Update added in v1.2.2

func (*CheckPackageVersionResource) ValidateConfig added in v1.2.2

type CheckPackageVersionResourceModel added in v1.2.2

type CheckPackageVersionResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	MissingPackageResult       types.String `tfsdk:"missing_package_result"`
	PackageConstraint          types.String `tfsdk:"package_constraint"`
	PackageManager             types.String `tfsdk:"package_manager"`
	PackageName                types.String `tfsdk:"package_name"`
	PackageNameIsRegex         types.Bool   `tfsdk:"package_name_is_regex"`
	VersionConstraintPredicate types.Object `tfsdk:"version_constraint_predicate"`
}

func NewCheckPackageVersionResourceModel added in v1.2.2

func NewCheckPackageVersionResourceModel(ctx context.Context, check opslevel.Check, planModel CheckPackageVersionResourceModel) CheckPackageVersionResourceModel

type CheckRelationshipResource added in v1.5.1

type CheckRelationshipResource struct {
	CommonResourceClient
}

CheckRelationshipResource defines the resource implementation.

func (*CheckRelationshipResource) Create added in v1.5.1

func (*CheckRelationshipResource) Delete added in v1.5.1

func (*CheckRelationshipResource) ImportState added in v1.5.1

func (*CheckRelationshipResource) Metadata added in v1.5.1

func (*CheckRelationshipResource) Read added in v1.5.1

func (*CheckRelationshipResource) Schema added in v1.5.1

func (*CheckRelationshipResource) Update added in v1.5.1

type CheckRelationshipResourceModel added in v1.5.1

type CheckRelationshipResourceModel struct {
	Category                   types.String `tfsdk:"category"`
	Description                types.String `tfsdk:"description"`
	Enabled                    types.Bool   `tfsdk:"enabled"`
	EnableOn                   types.String `tfsdk:"enable_on"`
	Filter                     types.String `tfsdk:"filter"`
	Id                         types.String `tfsdk:"id"`
	Level                      types.String `tfsdk:"level"`
	Name                       types.String `tfsdk:"name"`
	Notes                      types.String `tfsdk:"notes"`
	Owner                      types.String `tfsdk:"owner"`
	RelationshipCountPredicate types.Object `tfsdk:"relationship_count_predicate"`
	RelationshipDefinitionId   types.String `tfsdk:"relationship_definition_id"`
}

func NewCheckRelationshipResourceModel added in v1.5.1

func NewCheckRelationshipResourceModel(ctx context.Context, check opslevel.Check, planModel CheckRelationshipResourceModel) CheckRelationshipResourceModel

type CheckRepositoryFileResource added in v1.0.0

type CheckRepositoryFileResource struct {
	CommonResourceClient
}

CheckRepositoryFileResource defines the resource implementation.

func (*CheckRepositoryFileResource) Create added in v1.0.0

func (*CheckRepositoryFileResource) Delete added in v1.0.0

func (*CheckRepositoryFileResource) ImportState added in v1.0.0

func (*CheckRepositoryFileResource) Metadata added in v1.0.0

func (*CheckRepositoryFileResource) Read added in v1.0.0

func (*CheckRepositoryFileResource) Schema added in v1.0.0

func (*CheckRepositoryFileResource) Update added in v1.0.0

func (*CheckRepositoryFileResource) UpgradeState added in v1.1.4

func (*CheckRepositoryFileResource) ValidateConfig added in v1.0.0

type CheckRepositoryFileResourceModel added in v1.0.0

type CheckRepositoryFileResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	DirectorySearch       types.Bool   `tfsdk:"directory_search"`
	Filepaths             types.List   `tfsdk:"filepaths"`
	FileContentsPredicate types.Object `tfsdk:"file_contents_predicate"`
	UseAbsoluteRoot       types.Bool   `tfsdk:"use_absolute_root"`
}

func NewCheckRepositoryFileResourceModel added in v1.0.0

func NewCheckRepositoryFileResourceModel(ctx context.Context, check opslevel.Check, planModel CheckRepositoryFileResourceModel) CheckRepositoryFileResourceModel

type CheckRepositoryGrepResource added in v1.0.0

type CheckRepositoryGrepResource struct {
	CommonResourceClient
}

CheckRepositoryGrepResource defines the resource implementation.

func (*CheckRepositoryGrepResource) Create added in v1.0.0

func (*CheckRepositoryGrepResource) Delete added in v1.0.0

func (*CheckRepositoryGrepResource) ImportState added in v1.0.0

func (*CheckRepositoryGrepResource) Metadata added in v1.0.0

func (*CheckRepositoryGrepResource) Read added in v1.0.0

func (*CheckRepositoryGrepResource) Schema added in v1.0.0

func (*CheckRepositoryGrepResource) Update added in v1.0.0

func (*CheckRepositoryGrepResource) UpgradeState added in v1.1.4

func (*CheckRepositoryGrepResource) ValidateConfig added in v1.0.0

type CheckRepositoryGrepResourceModel added in v1.0.0

type CheckRepositoryGrepResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	DirectorySearch       types.Bool   `tfsdk:"directory_search"`
	Filepaths             types.List   `tfsdk:"filepaths"`
	FileContentsPredicate types.Object `tfsdk:"file_contents_predicate"`
}

func NewCheckRepositoryGrepResourceModel added in v1.0.0

func NewCheckRepositoryGrepResourceModel(ctx context.Context, check opslevel.Check, planModel CheckRepositoryGrepResourceModel) CheckRepositoryGrepResourceModel

type CheckRepositoryIntegratedResource added in v1.0.0

type CheckRepositoryIntegratedResource struct {
	CommonResourceClient
}

CheckRepositoryIntegratedResource defines the resource implementation.

func (*CheckRepositoryIntegratedResource) Create added in v1.0.0

func (*CheckRepositoryIntegratedResource) Delete added in v1.0.0

func (*CheckRepositoryIntegratedResource) ImportState added in v1.0.0

func (*CheckRepositoryIntegratedResource) Metadata added in v1.0.0

func (*CheckRepositoryIntegratedResource) Read added in v1.0.0

func (*CheckRepositoryIntegratedResource) Schema added in v1.0.0

func (*CheckRepositoryIntegratedResource) Update added in v1.0.0

type CheckRepositoryIntegratedResourceModel added in v1.0.0

type CheckRepositoryIntegratedResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`
}

func NewCheckRepositoryIntegratedResourceModel added in v1.0.0

func NewCheckRepositoryIntegratedResourceModel(ctx context.Context, check opslevel.Check, planModel CheckRepositoryIntegratedResourceModel) CheckRepositoryIntegratedResourceModel

type CheckRepositorySearchResource added in v1.0.0

type CheckRepositorySearchResource struct {
	CommonResourceClient
}

CheckRepositorySearchResource defines the resource implementation.

func (*CheckRepositorySearchResource) Create added in v1.0.0

func (*CheckRepositorySearchResource) Delete added in v1.0.0

func (*CheckRepositorySearchResource) ImportState added in v1.0.0

func (*CheckRepositorySearchResource) Metadata added in v1.0.0

func (*CheckRepositorySearchResource) Read added in v1.0.0

func (*CheckRepositorySearchResource) Schema added in v1.0.0

func (*CheckRepositorySearchResource) Update added in v1.0.0

func (*CheckRepositorySearchResource) UpgradeState added in v1.1.4

func (*CheckRepositorySearchResource) ValidateConfig added in v1.0.0

type CheckRepositorySearchResourceModel added in v1.0.0

type CheckRepositorySearchResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	FileExtensions        types.Set    `tfsdk:"file_extensions"`
	FileContentsPredicate types.Object `tfsdk:"file_contents_predicate"`
}

func NewCheckRepositorySearchResourceModel added in v1.0.0

func NewCheckRepositorySearchResourceModel(ctx context.Context, check opslevel.Check, planModel CheckRepositorySearchResourceModel) (CheckRepositorySearchResourceModel, diag.Diagnostics)

type CheckServiceConfigurationResource added in v1.0.0

type CheckServiceConfigurationResource struct {
	CommonResourceClient
}

CheckServiceConfigurationResource defines the resource implementation.

func (*CheckServiceConfigurationResource) Create added in v1.0.0

func (*CheckServiceConfigurationResource) Delete added in v1.0.0

func (*CheckServiceConfigurationResource) ImportState added in v1.0.0

func (*CheckServiceConfigurationResource) Metadata added in v1.0.0

func (*CheckServiceConfigurationResource) Read added in v1.0.0

func (*CheckServiceConfigurationResource) Schema added in v1.0.0

func (*CheckServiceConfigurationResource) Update added in v1.0.0

type CheckServiceConfigurationResourceModel added in v1.0.0

type CheckServiceConfigurationResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`
}

func NewCheckServiceConfigurationResourceModel added in v1.0.0

func NewCheckServiceConfigurationResourceModel(ctx context.Context, check opslevel.Check, planModel CheckServiceConfigurationResourceModel) CheckServiceConfigurationResourceModel

type CheckServiceDependencyResource added in v1.0.0

type CheckServiceDependencyResource struct {
	CommonResourceClient
}

CheckServiceDependencyResource defines the resource implementation.

func (*CheckServiceDependencyResource) Create added in v1.0.0

func (*CheckServiceDependencyResource) Delete added in v1.0.0

func (*CheckServiceDependencyResource) ImportState added in v1.0.0

func (*CheckServiceDependencyResource) Metadata added in v1.0.0

func (*CheckServiceDependencyResource) Read added in v1.0.0

func (*CheckServiceDependencyResource) Schema added in v1.0.0

func (*CheckServiceDependencyResource) Update added in v1.0.0

type CheckServiceDependencyResourceModel added in v1.0.0

type CheckServiceDependencyResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`
}

func NewCheckServiceDependencyResourceModel added in v1.0.0

func NewCheckServiceDependencyResourceModel(ctx context.Context, check opslevel.Check, planModel CheckServiceDependencyResourceModel) CheckServiceDependencyResourceModel

type CheckServiceOwnershipResource added in v1.0.0

type CheckServiceOwnershipResource struct {
	CommonResourceClient
}

CheckServiceOwnershipResource defines the resource implementation.

func (*CheckServiceOwnershipResource) Create added in v1.0.0

func (*CheckServiceOwnershipResource) Delete added in v1.0.0

func (*CheckServiceOwnershipResource) ImportState added in v1.0.0

func (*CheckServiceOwnershipResource) Metadata added in v1.0.0

func (*CheckServiceOwnershipResource) Read added in v1.0.0

func (*CheckServiceOwnershipResource) Schema added in v1.0.0

func (*CheckServiceOwnershipResource) Update added in v1.0.0

func (*CheckServiceOwnershipResource) UpgradeState added in v1.1.4

func (*CheckServiceOwnershipResource) ValidateConfig added in v1.0.0

type CheckServiceOwnershipResourceModel added in v1.0.0

type CheckServiceOwnershipResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	RequireContactMethod types.Bool   `tfsdk:"require_contact_method"`
	ContactMethod        types.String `tfsdk:"contact_method"`
	TagKey               types.String `tfsdk:"tag_key"`
	TagPredicate         types.Object `tfsdk:"tag_predicate"`
}

func NewCheckServiceOwnershipResourceModel added in v1.0.0

func NewCheckServiceOwnershipResourceModel(ctx context.Context, check opslevel.Check, planModel CheckServiceOwnershipResourceModel) CheckServiceOwnershipResourceModel

type CheckServicePropertyResource added in v1.0.0

type CheckServicePropertyResource struct {
	CommonResourceClient
}

CheckServicePropertyResource defines the resource implementation.

func (*CheckServicePropertyResource) Create added in v1.0.0

func (*CheckServicePropertyResource) Delete added in v1.0.0

func (*CheckServicePropertyResource) ImportState added in v1.0.0

func (*CheckServicePropertyResource) Metadata added in v1.0.0

func (*CheckServicePropertyResource) Read added in v1.0.0

func (*CheckServicePropertyResource) Schema added in v1.0.0

func (*CheckServicePropertyResource) Update added in v1.0.0

func (*CheckServicePropertyResource) UpgradeState added in v1.1.4

func (*CheckServicePropertyResource) ValidateConfig added in v1.0.0

type CheckServicePropertyResourceModel added in v1.0.0

type CheckServicePropertyResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	ComponentType      types.String `tfsdk:"component_type"`
	Property           types.String `tfsdk:"property"`
	PropertyDefinition types.String `tfsdk:"property_definition"`
	Predicate          types.Object `tfsdk:"predicate"`
}

func NewCheckServicePropertyResourceModel added in v1.0.0

func NewCheckServicePropertyResourceModel(ctx context.Context, check opslevel.Check, planModel CheckServicePropertyResourceModel) CheckServicePropertyResourceModel

type CheckTagDefinedResource added in v1.0.0

type CheckTagDefinedResource struct {
	CommonResourceClient
}

CheckTagDefinedResource defines the resource implementation.

func (*CheckTagDefinedResource) Create added in v1.0.0

func (*CheckTagDefinedResource) Delete added in v1.0.0

func (*CheckTagDefinedResource) ImportState added in v1.0.0

func (*CheckTagDefinedResource) Metadata added in v1.0.0

func (*CheckTagDefinedResource) Read added in v1.0.0

func (*CheckTagDefinedResource) Schema added in v1.0.0

func (*CheckTagDefinedResource) Update added in v1.0.0

func (*CheckTagDefinedResource) UpgradeState added in v1.1.4

func (*CheckTagDefinedResource) ValidateConfig added in v1.0.0

type CheckTagDefinedResourceModel added in v1.0.0

type CheckTagDefinedResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	TagKey       types.String `tfsdk:"tag_key"`
	TagPredicate types.Object `tfsdk:"tag_predicate"`
}

func NewCheckTagDefinedResourceModel added in v1.0.0

func NewCheckTagDefinedResourceModel(ctx context.Context, check opslevel.Check, planModel CheckTagDefinedResourceModel) CheckTagDefinedResourceModel

type CheckToolUsageResource added in v1.0.0

type CheckToolUsageResource struct {
	CommonResourceClient
}

CheckToolUsageResource defines the resource implementation.

func (*CheckToolUsageResource) Create added in v1.0.0

func (*CheckToolUsageResource) Delete added in v1.0.0

func (*CheckToolUsageResource) ImportState added in v1.0.0

func (*CheckToolUsageResource) Metadata added in v1.0.0

func (*CheckToolUsageResource) Read added in v1.0.0

func (*CheckToolUsageResource) Schema added in v1.0.0

func (*CheckToolUsageResource) Update added in v1.0.0

func (*CheckToolUsageResource) UpgradeState added in v1.1.4

func (*CheckToolUsageResource) ValidateConfig added in v1.0.0

type CheckToolUsageResourceModel added in v1.0.0

type CheckToolUsageResourceModel struct {
	Category    types.String `tfsdk:"category"`
	Description types.String `tfsdk:"description"`
	Enabled     types.Bool   `tfsdk:"enabled"`
	EnableOn    types.String `tfsdk:"enable_on"`
	Filter      types.String `tfsdk:"filter"`
	Id          types.String `tfsdk:"id"`
	Level       types.String `tfsdk:"level"`
	Name        types.String `tfsdk:"name"`
	Notes       types.String `tfsdk:"notes"`
	Owner       types.String `tfsdk:"owner"`

	ToolCategory         types.String `tfsdk:"tool_category"`
	ToolNamePredicate    types.Object `tfsdk:"tool_name_predicate"`
	ToolUrlPredicate     types.Object `tfsdk:"tool_url_predicate"`
	EnvironmentPredicate types.Object `tfsdk:"environment_predicate"`
}

func NewCheckToolUsageResourceModel added in v1.0.0

func NewCheckToolUsageResourceModel(ctx context.Context, check opslevel.Check, planModel CheckToolUsageResourceModel) CheckToolUsageResourceModel

type CheckUpdateFrequency added in v1.0.0

type CheckUpdateFrequency struct {
	StartingDate types.String `tfsdk:"starting_date"`
	TimeScale    types.String `tfsdk:"time_scale"`
	Value        types.Int64  `tfsdk:"value"`
}

type CommonDataSourceClient added in v1.0.0

type CommonDataSourceClient struct {
	// contains filtered or unexported fields
}

func (*CommonDataSourceClient) Configure added in v1.0.0

Configure sets up the OpsLevel client for datasources and resources

type CommonResourceClient added in v1.0.0

type CommonResourceClient struct {
	// contains filtered or unexported fields
}

func (*CommonResourceClient) Configure added in v1.0.0

Configure sets up the OpsLevel client for datasources and resources

type ComponentTypeDataSourceModel added in v1.4.1

type ComponentTypeDataSourceModel struct {
	Id                 types.String             `tfsdk:"id"`
	Name               types.String             `tfsdk:"name"`
	Alias              types.String             `tfsdk:"alias"`
	Description        types.String             `tfsdk:"description"`
	Icon               *ComponentTypeIconModel  `tfsdk:"icon"`
	OwnerRelationship  *RelationshipConfigModel `tfsdk:"owner_relationship"`
	SystemRelationship *RelationshipConfigModel `tfsdk:"system_relationship"`
	Properties         map[string]PropertyModel `tfsdk:"properties"`
}

ComponentTypeDataSourceModel is a simplified version of ComponentTypeModel for data sources It excludes relationships, because opslevel-go does not yet have Relationships on ComponentType

type ComponentTypeDataSourceSingleModel added in v1.6.2

type ComponentTypeDataSourceSingleModel struct {
	Identifier types.String `tfsdk:"identifier"`
	ComponentTypeDataSourceModel
}

type ComponentTypeIconModel added in v1.4.0

type ComponentTypeIconModel struct {
	Color types.String `tfsdk:"color"`
	Name  types.String `tfsdk:"name"`
}

type ComponentTypeModel added in v1.4.0

type ComponentTypeModel struct {
	Id                 types.String                 `tfsdk:"id"`
	Name               types.String                 `tfsdk:"name"`
	Alias              types.String                 `tfsdk:"alias"`
	Description        types.String                 `tfsdk:"description"`
	Icon               *ComponentTypeIconModel      `tfsdk:"icon"`
	OwnerRelationship  *RelationshipConfigModel     `tfsdk:"owner_relationship"`
	SystemRelationship *RelationshipConfigModel     `tfsdk:"system_relationship"`
	Properties         map[string]PropertyModel     `tfsdk:"properties"`
	Relationships      map[string]RelationshipModel `tfsdk:"relationships"`
}

type ComponentTypeResource added in v1.4.0

type ComponentTypeResource struct {
	CommonResourceClient
}

func (ComponentTypeResource) Create added in v1.4.0

func (ComponentTypeResource) Delete added in v1.4.0

func (ComponentTypeResource) ImportState added in v1.4.0

func (ComponentTypeResource) Metadata added in v1.4.0

func (ComponentTypeResource) NewModel added in v1.4.0

func (ComponentTypeResource) Read added in v1.4.0

func (ComponentTypeResource) Schema added in v1.4.0

func (ComponentTypeResource) Update added in v1.4.0

type DomainDataSource added in v1.0.0

type DomainDataSource struct {
	CommonDataSourceClient
}

DomainDataSource manages a Domain data source.

func (*DomainDataSource) Metadata added in v1.0.0

func (*DomainDataSource) Read added in v1.0.0

func (*DomainDataSource) Schema added in v1.0.0

type DomainDataSourcesAll added in v1.0.0

type DomainDataSourcesAll struct {
	CommonDataSourceClient
}

DomainDataSourcesAll manages a list of all Domain data sources.

func (*DomainDataSourcesAll) Metadata added in v1.0.0

func (*DomainDataSourcesAll) Read added in v1.0.0

func (*DomainDataSourcesAll) Schema added in v1.0.0

type DomainDataSourcesAllModel added in v1.0.0

type DomainDataSourcesAllModel struct {
	Domains []domainDataSourceModel `tfsdk:"domains"`
}

DomainDataSourcesAllModel describes the data source data model.

func NewDomainDataSourcesAllModel added in v1.0.0

func NewDomainDataSourcesAllModel(ctx context.Context, domains []opslevel.Domain) (DomainDataSourcesAllModel, diag.Diagnostics)

type DomainResource added in v1.0.0

type DomainResource struct {
	CommonResourceClient
}

DomainResource defines the resource implementation.

func (*DomainResource) Create added in v1.0.0

func (*DomainResource) Delete added in v1.0.0

func (*DomainResource) ImportState added in v1.0.0

func (*DomainResource) Metadata added in v1.0.0

func (*DomainResource) Read added in v1.0.0

func (*DomainResource) Schema added in v1.0.0

func (*DomainResource) Update added in v1.0.0

type DomainResourceModel added in v1.0.0

type DomainResourceModel struct {
	Aliases     types.List   `tfsdk:"aliases"`
	Description types.String `tfsdk:"description"`
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Note        types.String `tfsdk:"note"`
	Owner       types.String `tfsdk:"owner"`
}

DomainResourceModel describes the Domain managed resource.

func NewDomainResourceModel added in v1.0.0

func NewDomainResourceModel(ctx context.Context, domain opslevel.Domain, givenModel DomainResourceModel) DomainResourceModel

type FilterDataSource added in v1.0.0

type FilterDataSource struct {
	CommonDataSourceClient
}

FilterDataSource manages a Filter data source.

func (*FilterDataSource) Metadata added in v1.0.0

func (*FilterDataSource) Read added in v1.0.0

func (*FilterDataSource) Schema added in v1.0.0

type FilterDataSourcesAll added in v1.0.0

type FilterDataSourcesAll struct {
	CommonDataSourceClient
}

FilterDataSourcesAll manages a list of all Filter data sources.

func (*FilterDataSourcesAll) Metadata added in v1.0.0

func (*FilterDataSourcesAll) Read added in v1.0.0

func (*FilterDataSourcesAll) Schema added in v1.0.0

type FilterDataSourcesAllModel added in v1.0.0

type FilterDataSourcesAllModel struct {
	Filters []filterDataSourceModel `tfsdk:"filters"`
}

FilterDataSourcesAllModel describes the data source data model.

func NewFilterDataSourcesAllModel added in v1.0.0

func NewFilterDataSourcesAllModel(filters []opslevel.Filter) FilterDataSourcesAllModel

type FilterPredicateModel added in v1.1.2

type FilterPredicateModel struct {
	CaseInsensitive types.Bool   `tfsdk:"case_insensitive"`
	CaseSensitive   types.Bool   `tfsdk:"case_sensitive"`
	Key             types.String `tfsdk:"key"`
	KeyData         types.String `tfsdk:"key_data"`
	Type            types.String `tfsdk:"type"`
	Value           types.String `tfsdk:"value"`
}

func ExtractFilterPredicateModel added in v1.1.0

func ExtractFilterPredicateModel(opslevelFilterPredicate *opslevel.FilterPredicate, givenModels []FilterPredicateModel) FilterPredicateModel

func NewFilterPredicateModel added in v1.1.3

func NewFilterPredicateModel(filterPredicate *opslevel.FilterPredicate) FilterPredicateModel

func (FilterPredicateModel) Validate added in v1.1.2

func (fp FilterPredicateModel) Validate() error

type FilterResource added in v1.0.0

type FilterResource struct {
	CommonResourceClient
}

FilterResource defines the resource implementation.

func (*FilterResource) Create added in v1.0.0

func (*FilterResource) Delete added in v1.0.0

func (*FilterResource) ImportState added in v1.0.0

func (*FilterResource) Metadata added in v1.0.0

func (*FilterResource) Read added in v1.0.0

func (*FilterResource) Schema added in v1.0.0

func (*FilterResource) Update added in v1.0.0

func (*FilterResource) ValidateConfig added in v1.1.0

type FilterResourceModel added in v1.0.0

type FilterResourceModel struct {
	Connective types.String `tfsdk:"connective"`
	Id         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Predicate  types.List   `tfsdk:"predicate"`
}

FilterResourceModel describes the Filter managed resource.

func NewFilterResourceModel added in v1.0.0

func NewFilterResourceModel(ctx context.Context, filter opslevel.Filter, givenModel FilterResourceModel) (FilterResourceModel, diag.Diagnostics)

type InfraProviderData added in v1.0.0

type InfraProviderData struct {
	Account types.String `tfsdk:"account"`
	Name    types.String `tfsdk:"name"`
	Type    types.String `tfsdk:"type"`
	Url     types.String `tfsdk:"url"`
}

type InfrastructureResource added in v1.0.0

type InfrastructureResource struct {
	CommonResourceClient
}

InfrastructureResource defines the resource implementation.

func (*InfrastructureResource) Create added in v1.0.0

func (*InfrastructureResource) Delete added in v1.0.0

func (*InfrastructureResource) ImportState added in v1.0.0

func (*InfrastructureResource) Metadata added in v1.0.0

func (*InfrastructureResource) Read added in v1.0.0

func (*InfrastructureResource) Schema added in v1.0.0

func (*InfrastructureResource) Update added in v1.0.0

func (*InfrastructureResource) UpgradeState added in v1.2.0

type InfrastructureResourceModel added in v1.0.0

type InfrastructureResourceModel struct {
	Aliases      types.Set          `tfsdk:"aliases"`
	Data         types.String       `tfsdk:"data"`
	Id           types.String       `tfsdk:"id"`
	ProviderData *InfraProviderData `tfsdk:"provider_data"`
	Owner        types.String       `tfsdk:"owner"`
	Schema       types.String       `tfsdk:"schema"`
}

InfrastructureResourceModel describes the Infrastructure managed resource.

func NewInfrastructureResourceModel added in v1.0.0

func NewInfrastructureResourceModel(ctx context.Context, infrastructure opslevel.InfrastructureResource, givenModel InfrastructureResourceModel) InfrastructureResourceModel

type IntegrationAwsResource added in v1.0.0

type IntegrationAwsResource struct {
	CommonResourceClient
}

IntegrationAwsResource defines the resource implementation.

func (*IntegrationAwsResource) Create added in v1.0.0

func (*IntegrationAwsResource) Delete added in v1.0.0

func (*IntegrationAwsResource) ImportState added in v1.0.0

func (*IntegrationAwsResource) Metadata added in v1.0.0

func (*IntegrationAwsResource) Read added in v1.0.0

func (*IntegrationAwsResource) Schema added in v1.0.0

func (*IntegrationAwsResource) Update added in v1.0.0

type IntegrationAwsResourceModel added in v1.0.0

type IntegrationAwsResourceModel struct {
	ExternalID            types.String `tfsdk:"external_id"`
	IamRole               types.String `tfsdk:"iam_role"`
	Id                    types.String `tfsdk:"id"`
	Name                  types.String `tfsdk:"name"`
	OwnershipTagOverrides types.Bool   `tfsdk:"ownership_tag_overrides"`
	OwnershipTagKeys      types.List   `tfsdk:"ownership_tag_keys"`
	RegionOverride        types.List   `tfsdk:"region_override"`
}

IntegrationAwsResourceModel describes the AWS Integration managed resource.

func NewIntegrationAwsResourceModel added in v1.0.0

func NewIntegrationAwsResourceModel(awsIntegration opslevel.Integration) IntegrationAwsResourceModel

type IntegrationAzureResourcesResource added in v1.2.2

type IntegrationAzureResourcesResource struct {
	CommonResourceClient
}

func (*IntegrationAzureResourcesResource) Create added in v1.2.2

func (*IntegrationAzureResourcesResource) Delete added in v1.2.2

func (*IntegrationAzureResourcesResource) ImportState added in v1.2.2

func (*IntegrationAzureResourcesResource) Metadata added in v1.2.2

func (*IntegrationAzureResourcesResource) Read added in v1.2.2

func (*IntegrationAzureResourcesResource) Schema added in v1.2.2

func (*IntegrationAzureResourcesResource) Update added in v1.2.2

type IntegrationAzureResourcesResourceModel added in v1.2.2

type IntegrationAzureResourcesResourceModel struct {
	Aliases               types.List   `tfsdk:"aliases"`
	ClientId              types.String `tfsdk:"client_id"`
	ClientSecret          types.String `tfsdk:"client_secret"`
	CreatedAt             types.String `tfsdk:"created_at"`
	Id                    types.String `tfsdk:"id"`
	InstalledAt           types.String `tfsdk:"installed_at"`
	Name                  types.String `tfsdk:"name"`
	OwnershipTagKeys      types.List   `tfsdk:"ownership_tag_keys"`
	SubscriptionId        types.String `tfsdk:"subscription_id"`
	TagsOverrideOwnership types.Bool   `tfsdk:"ownership_tag_overrides"`
	TenantId              types.String `tfsdk:"tenant_id"`
}

func NewIntegrationAzureResourcesResourceModel added in v1.2.2

func NewIntegrationAzureResourcesResourceModel(ctx context.Context, azureResourcesIntegration opslevel.Integration, givenModel IntegrationAzureResourcesResourceModel) IntegrationAzureResourcesResourceModel

type IntegrationCustomResource added in v1.13.0

type IntegrationCustomResource struct {
	CommonResourceClient
}

IntegrationCustomResource defines the resource implementation.

func (*IntegrationCustomResource) Create added in v1.13.0

func (*IntegrationCustomResource) Delete added in v1.13.0

func (*IntegrationCustomResource) ImportState added in v1.13.0

func (*IntegrationCustomResource) Metadata added in v1.13.0

func (*IntegrationCustomResource) Read added in v1.13.0

func (*IntegrationCustomResource) Schema added in v1.13.0

func (*IntegrationCustomResource) Update added in v1.13.0

type IntegrationCustomResourceModel added in v1.13.0

type IntegrationCustomResourceModel struct {
	EtlDefinition types.Object `tfsdk:"etl_definition"`
	Id            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
	WebhookURL    types.String `tfsdk:"webhook_url"`
}

IntegrationCustomResourceModel describes the Custom Integration managed resource.

func NewIntegrationCustomResourceModel added in v1.13.0

func NewIntegrationCustomResourceModel(ctx context.Context, customIntegration opslevel.Integration, givenModel IntegrationCustomResourceModel, diags *diag.Diagnostics) IntegrationCustomResourceModel

type IntegrationDataSource added in v1.0.0

type IntegrationDataSource struct {
	CommonDataSourceClient
}

IntegrationDataSource manages an Integration data source.

func (*IntegrationDataSource) Metadata added in v1.0.0

func (*IntegrationDataSource) Read added in v1.0.0

func (*IntegrationDataSource) Schema added in v1.0.0

type IntegrationDataSourcesAll added in v1.0.0

type IntegrationDataSourcesAll struct {
	CommonDataSourceClient
}

IntegrationDataSourcesAll manages an Integration data source.

func (*IntegrationDataSourcesAll) Metadata added in v1.0.0

func (*IntegrationDataSourcesAll) Read added in v1.0.0

func (*IntegrationDataSourcesAll) Schema added in v1.0.0

type IntegrationEndpointResource added in v1.3.2

type IntegrationEndpointResource struct {
	CommonResourceClient
}

IntegrationEndpointResource defines the resource implementation.

func (*IntegrationEndpointResource) Create added in v1.3.2

func (*IntegrationEndpointResource) Delete added in v1.3.2

func (*IntegrationEndpointResource) ImportState added in v1.3.2

func (*IntegrationEndpointResource) Metadata added in v1.3.2

func (*IntegrationEndpointResource) Read added in v1.3.2

func (*IntegrationEndpointResource) Schema added in v1.3.2

func (*IntegrationEndpointResource) Update added in v1.3.2

type IntegrationEndpointResourceModel added in v1.3.2

type IntegrationEndpointResourceModel struct {
	Id         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Type       types.String `tfsdk:"type"`
	WebhookURL types.String `tfsdk:"webhook_url"`
}

IntegrationEndpointResourceModel describes the Integration Endpoint managed resource.

func NewIntegrationEndpointResourceModel added in v1.3.2

func NewIntegrationEndpointResourceModel(integrationEndpoint opslevel.Integration, givenModel IntegrationEndpointResourceModel) IntegrationEndpointResourceModel

type IntegrationEtlDefinitionModel added in v1.13.0

type IntegrationEtlDefinitionModel struct {
	ExtractDefinition   types.String `tfsdk:"extract_definition"`
	TransformDefinition types.String `tfsdk:"transform_definition"`
}

type IntegrationKubernetesResource added in v1.12.0

type IntegrationKubernetesResource struct {
	CommonResourceClient
}

IntegrationKubernetesResource defines the resource implementation.

func (*IntegrationKubernetesResource) Create added in v1.12.0

func (*IntegrationKubernetesResource) Delete added in v1.12.0

func (*IntegrationKubernetesResource) ImportState added in v1.12.0

func (*IntegrationKubernetesResource) Metadata added in v1.12.0

func (*IntegrationKubernetesResource) Read added in v1.12.0

func (*IntegrationKubernetesResource) Schema added in v1.12.0

func (*IntegrationKubernetesResource) Update added in v1.12.0

type IntegrationKubernetesResourceModel added in v1.12.0

type IntegrationKubernetesResourceModel struct {
	EtlDefinition types.Object `tfsdk:"etl_definition"`
	Id            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
}

IntegrationKubernetesResourceModel describes the Kubernetes Integration managed resource.

func NewIntegrationKubernetesResourceModel added in v1.12.0

func NewIntegrationKubernetesResourceModel(ctx context.Context, kubernetesIntegration opslevel.Integration, givenModel IntegrationKubernetesResourceModel, diags *diag.Diagnostics) IntegrationKubernetesResourceModel

type LanguagesModel added in v1.0.0

type LanguagesModel struct {
	Name  types.String  `tfsdk:"name"`
	Usage types.Float64 `tfsdk:"usage"`
}

LanguagesModel describes the model for the Languages data of the repository.

func LanguagesValue added in v1.0.0

func LanguagesValue(value []opslevel.Language) []LanguagesModel

LanguagesValue function converts the raw opslevel data to terraform friendly format

type LevelDataSource added in v1.0.0

type LevelDataSource struct {
	CommonDataSourceClient
}

LevelDataSource manages a Level data source.

func (*LevelDataSource) Metadata added in v1.0.0

func (*LevelDataSource) Read added in v1.0.0

func (*LevelDataSource) Schema added in v1.0.0

type LevelDataSourcesAll added in v1.0.0

type LevelDataSourcesAll struct {
	CommonDataSourceClient
}

LevelDataSourcesAll manages a list of Level data sources.

func (*LevelDataSourcesAll) Metadata added in v1.0.0

func (*LevelDataSourcesAll) Read added in v1.0.0

func (*LevelDataSourcesAll) Schema added in v1.0.0

type LifecycleDataSource added in v1.0.0

type LifecycleDataSource struct {
	CommonDataSourceClient
}

LifecycleDataSource manages a Lifecycle data source.

func (*LifecycleDataSource) Metadata added in v1.0.0

func (lifecycleDataSource *LifecycleDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

func (*LifecycleDataSource) Read added in v1.0.0

func (lifecycleDataSource *LifecycleDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

func (*LifecycleDataSource) Schema added in v1.0.0

func (lifecycleDataSource *LifecycleDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)

type LifecycleDataSourcesAll added in v1.0.0

type LifecycleDataSourcesAll struct {
	CommonDataSourceClient
}

LifecycleDataSource manages a Lifecycle data source.

func (*LifecycleDataSourcesAll) Metadata added in v1.0.0

func (*LifecycleDataSourcesAll) Read added in v1.0.0

func (*LifecycleDataSourcesAll) Schema added in v1.0.0

type ManagementRuleModel added in v1.7.0

type ManagementRuleModel struct {
	Operator           types.String `tfsdk:"operator"`
	SourceProperty     types.String `tfsdk:"source_property"`
	SourceTagKey       types.String `tfsdk:"source_tag_key"`
	SourceTagOperation types.String `tfsdk:"source_tag_operation"`
	TargetCategory     types.String `tfsdk:"target_category"`
	TargetProperty     types.String `tfsdk:"target_property"`
	TargetTagKey       types.String `tfsdk:"target_tag_key"`
	TargetTagOperation types.String `tfsdk:"target_tag_operation"`
	TargetType         types.String `tfsdk:"target_type"`
}

type OpslevelProvider added in v1.0.0

type OpslevelProvider struct {
	// contains filtered or unexported fields
}

func (*OpslevelProvider) Configure added in v1.0.0

func (*OpslevelProvider) DataSources added in v1.0.0

func (p *OpslevelProvider) DataSources(context.Context) []func() datasource.DataSource

func (*OpslevelProvider) Metadata added in v1.0.0

func (*OpslevelProvider) Resources added in v1.0.0

func (p *OpslevelProvider) Resources(context.Context) []func() resource.Resource

func (*OpslevelProvider) Schema added in v1.0.0

func (*OpslevelProvider) ValidateConfig added in v1.0.0

type OpslevelProviderModel added in v1.0.0

type OpslevelProviderModel struct {
	ApiToken   types.String `tfsdk:"api_token"`
	ApiUrl     types.String `tfsdk:"api_url"`
	ApiTimeout types.Int64  `tfsdk:"api_timeout"`
}

type PredicateModel added in v1.0.0

type PredicateModel struct {
	Type  types.String `tfsdk:"type"`
	Value types.String `tfsdk:"value"`
}

func PredicateObjectToModel added in v1.0.3

func PredicateObjectToModel(ctx context.Context, predicateObj basetypes.ObjectValue) (PredicateModel, diag.Diagnostics)

Converts a basetypes.ObjectValue to a PredicateModel

func (PredicateModel) ToCreateInput added in v1.0.0

func (p PredicateModel) ToCreateInput() *opslevel.PredicateInput

func (PredicateModel) ToUpdateInput added in v1.0.0

func (s PredicateModel) ToUpdateInput() *opslevel.PredicateUpdateInput

func (PredicateModel) Validate added in v1.0.0

func (p PredicateModel) Validate() error

type PropertyAssignmentResource added in v1.0.0

type PropertyAssignmentResource struct {
	CommonResourceClient
}

func (*PropertyAssignmentResource) Create added in v1.0.0

func (*PropertyAssignmentResource) Delete added in v1.0.0

func (*PropertyAssignmentResource) ImportState added in v1.2.7

func (*PropertyAssignmentResource) Metadata added in v1.0.0

func (*PropertyAssignmentResource) Read added in v1.0.0

func (*PropertyAssignmentResource) Schema added in v1.0.0

func (*PropertyAssignmentResource) Update added in v1.0.0

type PropertyAssignmentResourceModel added in v1.0.0

type PropertyAssignmentResourceModel struct {
	Definition types.String `tfsdk:"definition"`
	Id         types.String `tfsdk:"id"`
	Locked     types.Bool   `tfsdk:"locked"`
	Owner      types.String `tfsdk:"owner"`
	Value      types.String `tfsdk:"value"`
}

func NewPropertyAssignmentResourceModel added in v1.0.0

func NewPropertyAssignmentResourceModel(assignment opslevel.Property) PropertyAssignmentResourceModel

type PropertyDefinitionDataSource added in v1.0.0

type PropertyDefinitionDataSource struct {
	CommonDataSourceClient
}

PropertyDefinitionDataSource manages a PropertyDefinition data source.

func (*PropertyDefinitionDataSource) Metadata added in v1.0.0

func (*PropertyDefinitionDataSource) Read added in v1.0.0

func (*PropertyDefinitionDataSource) Schema added in v1.0.0

type PropertyDefinitionDataSourcesAll added in v1.0.0

type PropertyDefinitionDataSourcesAll struct {
	CommonDataSourceClient
}

PropertyDefinitionDataSourcesAll manages a PropertyDefinition data source.

func (*PropertyDefinitionDataSourcesAll) Metadata added in v1.0.0

func (*PropertyDefinitionDataSourcesAll) Read added in v1.0.0

func (*PropertyDefinitionDataSourcesAll) Schema added in v1.0.0

type PropertyDefinitionResource added in v1.0.0

type PropertyDefinitionResource struct {
	CommonResourceClient
}

func (*PropertyDefinitionResource) Create added in v1.0.0

func (*PropertyDefinitionResource) Delete added in v1.0.0

func (*PropertyDefinitionResource) ImportState added in v1.2.7

func (*PropertyDefinitionResource) Metadata added in v1.0.0

func (*PropertyDefinitionResource) Read added in v1.0.0

func (*PropertyDefinitionResource) Schema added in v1.0.0

func (*PropertyDefinitionResource) Update added in v1.0.0

type PropertyDefinitionResourceModel added in v1.0.0

type PropertyDefinitionResourceModel struct {
	AllowedInConfigFiles  types.Bool   `tfsdk:"allowed_in_config_files"`
	Description           types.String `tfsdk:"description"`
	Id                    types.String `tfsdk:"id"`
	Name                  types.String `tfsdk:"name"`
	PropertyDisplayStatus types.String `tfsdk:"property_display_status"`
	LockedStatus          types.String `tfsdk:"locked_status"`
	Schema                types.String `tfsdk:"schema"`
}

PropertyDefinitionResourceModel describes the Property Definition managed resource.

func NewPropertyDefinitionResourceModel added in v1.0.0

func NewPropertyDefinitionResourceModel(definition opslevel.PropertyDefinition, givenModel PropertyDefinitionResourceModel) PropertyDefinitionResourceModel

type PropertyModel added in v1.4.0

type PropertyModel struct {
	Name                 types.String `tfsdk:"name"`
	Description          types.String `tfsdk:"description"`
	AllowedInConfigFiles types.Bool   `tfsdk:"allowed_in_config_files"`
	DisplayStatus        types.String `tfsdk:"display_status"`
	LockedStatus         types.String `tfsdk:"locked_status"`
	Schema               types.String `tfsdk:"schema"`
}

type RelationshipAssignmentResource added in v1.5.0

type RelationshipAssignmentResource struct {
	CommonResourceClient
}

RelationshipAssignmentResource defines the resource implementation.

func (*RelationshipAssignmentResource) Create added in v1.5.0

func (*RelationshipAssignmentResource) Delete added in v1.5.0

func (*RelationshipAssignmentResource) ImportState added in v1.5.0

func (*RelationshipAssignmentResource) Metadata added in v1.5.0

func (*RelationshipAssignmentResource) Read added in v1.5.0

func (*RelationshipAssignmentResource) Schema added in v1.5.0

func (*RelationshipAssignmentResource) Update added in v1.5.0

type RelationshipAssignmentResourceModel added in v1.5.0

type RelationshipAssignmentResourceModel struct {
	Id         types.String `tfsdk:"id"`
	Source     types.String `tfsdk:"source"`
	Target     types.String `tfsdk:"target"`
	Type       types.String `tfsdk:"type"`
	Definition types.String `tfsdk:"definition"`
}

RelationshipAssignmentResourceModel describes the Relationship Assignment managed resource.

func NewRelationshipAssignmentResourceModel added in v1.5.0

func NewRelationshipAssignmentResourceModel(relationship *opslevel.RelationshipType, givenModel RelationshipAssignmentResourceModel) RelationshipAssignmentResourceModel

type RelationshipConfigModel added in v1.10.0

type RelationshipConfigModel struct {
	ManagementRules types.List `tfsdk:"management_rules"`
}

type RelationshipDefinitionDataSourceModel added in v1.5.0

type RelationshipDefinitionDataSourceModel struct {
	Identifier types.String `tfsdk:"identifier"`
	RelationshipDefinitionResourceModel
}

type RelationshipDefinitionResource added in v1.5.0

type RelationshipDefinitionResource struct {
	CommonResourceClient
}

RelationshipDefinitionResource defines the resource implementation.

func (*RelationshipDefinitionResource) Create added in v1.5.0

func (*RelationshipDefinitionResource) Delete added in v1.5.0

func (*RelationshipDefinitionResource) GetComponentTypeAlias added in v1.7.0

func (r *RelationshipDefinitionResource) GetComponentTypeAlias(componentTypeValue string, diags *diag.Diagnostics) string

func (*RelationshipDefinitionResource) ImportState added in v1.5.0

func (*RelationshipDefinitionResource) Metadata added in v1.5.0

func (*RelationshipDefinitionResource) Read added in v1.5.0

func (*RelationshipDefinitionResource) Schema added in v1.5.0

func (*RelationshipDefinitionResource) Update added in v1.5.0

type RelationshipDefinitionResourceModel added in v1.5.0

type RelationshipDefinitionResourceModel struct {
	Id                types.String `tfsdk:"id"`
	Name              types.String `tfsdk:"name"`
	Alias             types.String `tfsdk:"alias"`
	Description       types.String `tfsdk:"description"`
	ComponentType     types.String `tfsdk:"component_type"`
	AllowedCategories types.List   `tfsdk:"allowed_categories"`
	AllowedTypes      types.List   `tfsdk:"allowed_types"`
	ManagementRules   types.List   `tfsdk:"management_rules"`
}

RelationshipDefinitionResourceModel describes the Relationship Definition managed resource.

func NewRelationshipDefinitionResourceModel added in v1.5.0

func NewRelationshipDefinitionResourceModel(definition opslevel.RelationshipDefinitionType, givenModel RelationshipDefinitionResourceModel) RelationshipDefinitionResourceModel

type RelationshipModel added in v1.5.0

type RelationshipModel struct {
	Name              types.String `tfsdk:"name"`
	Description       types.String `tfsdk:"description"`
	AllowedCategories types.List   `tfsdk:"allowed_categories"`
	AllowedTypes      types.List   `tfsdk:"allowed_types"`
}

type RepositoriesDataSourcesAll added in v1.0.0

type RepositoriesDataSourcesAll struct {
	CommonDataSourceClient
}

RepositoryDataSource manages a Repository data source.

func (*RepositoriesDataSourcesAll) Metadata added in v1.0.0

func (*RepositoriesDataSourcesAll) Read added in v1.0.0

func (*RepositoriesDataSourcesAll) Schema added in v1.0.0

type RepositoriesDataSourcesAllModel added in v1.0.0

type RepositoriesDataSourcesAllModel struct {
	Filter       *filterBlockModel           `tfsdk:"filter"`
	Repositories []RepositoryDataSourceModel `tfsdk:"repositories"`
}

RepositoryDataSourceModel describes the data source data model.

func NewRepositoriesDataSourcesAllModel added in v1.0.0

func NewRepositoriesDataSourcesAllModel(repositories []opslevel.Repository) RepositoriesDataSourcesAllModel

type RepositoryDataSource added in v1.0.0

type RepositoryDataSource struct {
	CommonDataSourceClient
}

RepositoryDataSource manages a Repository data source.

func (*RepositoryDataSource) Metadata added in v1.0.0

func (*RepositoryDataSource) Read added in v1.0.0

func (*RepositoryDataSource) Schema added in v1.0.0

type RepositoryDataSourceModel added in v1.0.0

type RepositoryDataSourceModel struct {
	Alias     types.String     `tfsdk:"alias"`
	Id        types.String     `tfsdk:"id"`
	Name      types.String     `tfsdk:"name"`
	Url       types.String     `tfsdk:"url"`
	Languages []LanguagesModel `tfsdk:"languages"`
}

RepositoryDataSourceModel describes the data source data model.

func NewRepositoryDataSourceModel added in v1.0.0

func NewRepositoryDataSourceModel(repository opslevel.Repository) RepositoryDataSourceModel

type RepositoryResource added in v1.0.0

type RepositoryResource struct {
	CommonResourceClient
}

RepositoryResource defines the resource implementation.

func (*RepositoryResource) Create added in v1.0.0

func (*RepositoryResource) Delete added in v1.0.0

func (*RepositoryResource) ImportState added in v1.0.0

func (*RepositoryResource) Metadata added in v1.0.0

func (*RepositoryResource) Read added in v1.0.0

func (*RepositoryResource) Schema added in v1.0.0

func (*RepositoryResource) Update added in v1.0.0

type RepositoryResourceModel added in v1.0.0

type RepositoryResourceModel struct {
	Id             types.String `tfsdk:"id"`
	Identifier     types.String `tfsdk:"identifier"`
	Owner          types.String `tfsdk:"owner"`
	SBOMGeneration types.String `tfsdk:"sbom_generation"`
}

RepositoryResourceModel describes the Repository managed resource.

func NewRepositoryResourceModel added in v1.0.0

func NewRepositoryResourceModel(ctx context.Context, repository opslevel.Repository) RepositoryResourceModel

type RubricCategoryResource added in v1.0.0

type RubricCategoryResource struct {
	CommonResourceClient
}

RubricCategoryResource defines the resource implementation.

func (*RubricCategoryResource) Create added in v1.0.0

func (*RubricCategoryResource) Delete added in v1.0.0

func (*RubricCategoryResource) ImportState added in v1.0.0

func (*RubricCategoryResource) Metadata added in v1.0.0

func (*RubricCategoryResource) Read added in v1.0.0

func (*RubricCategoryResource) Schema added in v1.0.0

func (*RubricCategoryResource) Update added in v1.0.0

type RubricCategoryResourceModel added in v1.0.0

type RubricCategoryResourceModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

RubricCategoryResourceModel describes the rubric category managed resource.

func NewRubricCategoryResourceModel added in v1.0.0

func NewRubricCategoryResourceModel(rubricCategory opslevel.Category) RubricCategoryResourceModel

type RubricLevelResource added in v1.0.0

type RubricLevelResource struct {
	CommonResourceClient
}

RubricLevelResource defines the resource implementation.

func (*RubricLevelResource) Create added in v1.0.0

func (*RubricLevelResource) Delete added in v1.0.0

func (*RubricLevelResource) ImportState added in v1.0.0

func (*RubricLevelResource) Metadata added in v1.0.0

func (*RubricLevelResource) Read added in v1.0.0

func (*RubricLevelResource) Schema added in v1.0.0

func (*RubricLevelResource) Update added in v1.0.0

type RubricLevelResourceModel added in v1.0.0

type RubricLevelResourceModel struct {
	Description types.String `tfsdk:"description"`
	Id          types.String `tfsdk:"id"`
	Index       types.Int64  `tfsdk:"index"`
	Name        types.String `tfsdk:"name"`
}

RubricLevelResourceModel describes the rubric level managed resource.

func NewRubricLevelResourceModel added in v1.0.0

func NewRubricLevelResourceModel(rubricLevel opslevel.Level, givenModel RubricLevelResourceModel) RubricLevelResourceModel

type ScorecardDataSource added in v1.0.0

type ScorecardDataSource struct {
	CommonDataSourceClient
}

ScorecardDataSource manages a Scorecard data source.

func (*ScorecardDataSource) Metadata added in v1.0.0

func (*ScorecardDataSource) Read added in v1.0.0

func (*ScorecardDataSource) Schema added in v1.0.0

type ScorecardDataSourcesAll added in v1.0.0

type ScorecardDataSourcesAll struct {
	CommonDataSourceClient
}

ScorecardDataSourcesAll manages a Scorecard data source.

func (*ScorecardDataSourcesAll) Metadata added in v1.0.0

func (*ScorecardDataSourcesAll) Read added in v1.0.0

func (*ScorecardDataSourcesAll) Schema added in v1.0.0

type ScorecardResource added in v1.0.0

type ScorecardResource struct {
	CommonResourceClient
}

ScorecardResource defines the resource implementation.

func (*ScorecardResource) Create added in v1.0.0

func (*ScorecardResource) Delete added in v1.0.0

func (*ScorecardResource) ImportState added in v1.0.0

func (*ScorecardResource) Metadata added in v1.0.0

func (*ScorecardResource) Read added in v1.0.0

func (*ScorecardResource) Schema added in v1.0.0

func (*ScorecardResource) Update added in v1.0.0

type ScorecardResourceModel added in v1.0.0

type ScorecardResourceModel struct {
	AffectsOverallServiceLevels types.Bool   `tfsdk:"affects_overall_service_levels"`
	Aliases                     types.List   `tfsdk:"aliases"`
	CategoryIds                 types.List   `tfsdk:"categories"`
	Description                 types.String `tfsdk:"description"`
	FilterId                    types.String `tfsdk:"filter_id"`
	Id                          types.String `tfsdk:"id"`
	Name                        types.String `tfsdk:"name"`
	OwnerId                     types.String `tfsdk:"owner_id"`
	PassingChecks               types.Int64  `tfsdk:"passing_checks"`
	ServiceCount                types.Int64  `tfsdk:"service_count"`
	TotalChecks                 types.Int64  `tfsdk:"total_checks"`
}

ScorecardResourceModel describes the Scorecard managed resource.

func NewScorecardResourceModel added in v1.0.0

func NewScorecardResourceModel(ctx context.Context, scorecard opslevel.Scorecard, categoryIds []string, givenModel ScorecardResourceModel) ScorecardResourceModel

type SecretResource added in v1.0.0

type SecretResource struct {
	CommonResourceClient
}

SecretResource defines the resource implementation.

func (*SecretResource) Create added in v1.0.0

func (*SecretResource) Delete added in v1.0.0

func (*SecretResource) ImportState added in v1.0.0

func (*SecretResource) Metadata added in v1.0.0

func (*SecretResource) Read added in v1.0.0

func (*SecretResource) Schema added in v1.0.0

func (*SecretResource) Update added in v1.0.0

type SecretResourceModel added in v1.0.0

type SecretResourceModel struct {
	Alias     types.String `tfsdk:"alias"`
	CreatedAt types.String `tfsdk:"created_at"`
	Id        types.String `tfsdk:"id"`
	Owner     types.String `tfsdk:"owner"`
	UpdatedAt types.String `tfsdk:"updated_at"`
	Value     types.String `tfsdk:"value"`
}

SecretResourceModel describes the Secret managed resource.

func NewSecretResourceModel added in v1.0.0

func NewSecretResourceModel(secret opslevel.Secret, ownerIdentifier, sensitiveValue string) SecretResourceModel

type ServiceDataSource added in v1.0.0

type ServiceDataSource struct {
	CommonDataSourceClient
}

ServiceDataSource manages a Service data source.

func (*ServiceDataSource) Metadata added in v1.0.0

func (*ServiceDataSource) Read added in v1.0.0

func (*ServiceDataSource) Schema added in v1.0.0

type ServiceDataSourceModel added in v1.0.0

type ServiceDataSourceModel struct {
	Alias                      types.String           `tfsdk:"alias"`
	Aliases                    types.List             `tfsdk:"aliases"`
	ApiDocumentPath            types.String           `tfsdk:"api_document_path"`
	Description                types.String           `tfsdk:"description"`
	Framework                  types.String           `tfsdk:"framework"`
	Id                         types.String           `tfsdk:"id"`
	Language                   types.String           `tfsdk:"language"`
	LifecycleAlias             types.String           `tfsdk:"lifecycle_alias"`
	Name                       types.String           `tfsdk:"name"`
	Owner                      types.String           `tfsdk:"owner"`
	OwnerId                    types.String           `tfsdk:"owner_id"`
	PreferredApiDocumentSource types.String           `tfsdk:"preferred_api_document_source"`
	Product                    types.String           `tfsdk:"product"`
	Properties                 []propertyModel        `tfsdk:"properties"`
	Repositories               types.List             `tfsdk:"repositories"`
	System                     *systemDataSourceModel `tfsdk:"system"`
	Tags                       types.List             `tfsdk:"tags"`
	TierAlias                  types.String           `tfsdk:"tier_alias"`
}

ServiceDataSourceModel describes the data source data model.

func NewServiceDataSourceModel added in v1.0.0

func NewServiceDataSourceModel(ctx context.Context, service opslevel.Service, alias string) ServiceDataSourceModel

type ServiceDataSourcesAll added in v1.0.0

type ServiceDataSourcesAll struct {
	CommonDataSourceClient
}

ServiceDataSource manages a Service data source.

func (*ServiceDataSourcesAll) Metadata added in v1.0.0

func (*ServiceDataSourcesAll) Read added in v1.0.0

func (*ServiceDataSourcesAll) Schema added in v1.0.0

type ServiceDependenciesDataSource added in v1.2.6

type ServiceDependenciesDataSource struct {
	CommonDataSourceClient
}

ServiceDataSource manages a Service data source.

func (*ServiceDependenciesDataSource) Metadata added in v1.2.6

func (*ServiceDependenciesDataSource) Read added in v1.2.6

func (*ServiceDependenciesDataSource) Schema added in v1.2.6

type ServiceDependenciesModel added in v1.2.6

type ServiceDependenciesModel struct {
	Dependents   []dependentsModel   `tfsdk:"dependents"`
	Dependencies []dependenciesModel `tfsdk:"dependencies"`
	Service      types.String        `tfsdk:"service"`
}

ServiceDependenciesModel describes the data source data model.

func NewServiceDependenciesModel added in v1.2.6

func NewServiceDependenciesModel(serviceIdentifier string, dependents []dependentsModel, dependencies []dependenciesModel) ServiceDependenciesModel

type ServiceDependencyResource added in v1.0.0

type ServiceDependencyResource struct {
	CommonResourceClient
}

ServiceDependencyResource defines the resource implementation.

func (*ServiceDependencyResource) Create added in v1.0.0

func (*ServiceDependencyResource) Delete added in v1.0.0

func (*ServiceDependencyResource) ImportState added in v1.0.0

func (*ServiceDependencyResource) Metadata added in v1.0.0

func (*ServiceDependencyResource) Read added in v1.0.0

func (*ServiceDependencyResource) Schema added in v1.0.0

func (*ServiceDependencyResource) Update added in v1.0.0

type ServiceDependencyResourceModel added in v1.0.0

type ServiceDependencyResourceModel struct {
	DependsUpon types.String `tfsdk:"depends_upon"`
	Id          types.String `tfsdk:"id"`
	Note        types.String `tfsdk:"note"`
	Service     types.String `tfsdk:"service"`
}

ServiceDependencyResourceModel describes the ServiceDependency managed resource.

func NewServiceDependencyResourceModel added in v1.0.0

func NewServiceDependencyResourceModel(serviceDependency opslevel.ServiceDependency, givenModel ServiceDependencyResourceModel) (ServiceDependencyResourceModel, diag.Diagnostics)

type ServiceRelationshipResource added in v1.3.6

type ServiceRelationshipResource struct {
	CommonResourceClient
}

ServiceRelationshipResource defines the resource implementation.

func (*ServiceRelationshipResource) Create added in v1.3.6

func (*ServiceRelationshipResource) Delete added in v1.3.6

func (*ServiceRelationshipResource) ImportState added in v1.3.6

func (*ServiceRelationshipResource) Metadata added in v1.3.6

func (*ServiceRelationshipResource) Read added in v1.3.6

func (*ServiceRelationshipResource) Schema added in v1.3.6

func (*ServiceRelationshipResource) Update added in v1.3.6

type ServiceRelationshipResourceModel added in v1.3.6

type ServiceRelationshipResourceModel struct {
	Service types.String `tfsdk:"service"`
	System  types.String `tfsdk:"system"`
}

ServiceRelationshipResourceModel describes the Service managed resource.

func NewServiceRelationshipResourceModel added in v1.3.6

func NewServiceRelationshipResourceModel(service *opslevel.Service, givenModel ServiceRelationshipResourceModel) ServiceRelationshipResourceModel

type ServiceRepositoryResource added in v1.0.0

type ServiceRepositoryResource struct {
	CommonResourceClient
}

ServiceRepositoryResource defines the resource implementation.

func (*ServiceRepositoryResource) Create added in v1.0.0

func (*ServiceRepositoryResource) Delete added in v1.0.0

func (*ServiceRepositoryResource) ImportState added in v1.0.0

func (*ServiceRepositoryResource) Metadata added in v1.0.0

func (*ServiceRepositoryResource) Read added in v1.0.0

func (*ServiceRepositoryResource) Schema added in v1.0.0

func (*ServiceRepositoryResource) Update added in v1.0.0

type ServiceRepositoryResourceModel added in v1.0.0

type ServiceRepositoryResourceModel struct {
	BaseDirectory   types.String `tfsdk:"base_directory"`
	Id              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	Repository      types.String `tfsdk:"repository"`
	RepositoryAlias types.String `tfsdk:"repository_alias"`
	Service         types.String `tfsdk:"service"`
	ServiceAlias    types.String `tfsdk:"service_alias"`
}

ServiceRepositoryResourceModel describes the Servicerepository managed resource.

func NewServiceRepositoryResourceModel added in v1.0.0

func NewServiceRepositoryResourceModel(ctx context.Context, serviceRepository opslevel.ServiceRepository, planModel ServiceRepositoryResourceModel) ServiceRepositoryResourceModel

type ServiceResource added in v1.0.0

type ServiceResource struct {
	CommonResourceClient
}

ServiceResource defines the resource implementation.

func (*ServiceResource) Create added in v1.0.0

func (*ServiceResource) Delete added in v1.0.0

func (*ServiceResource) ImportState added in v1.0.0

func (*ServiceResource) Metadata added in v1.0.0

func (*ServiceResource) Read added in v1.0.0

func (*ServiceResource) Schema added in v1.0.0

func (*ServiceResource) Update added in v1.0.0

type ServiceResourceModel added in v1.0.0

type ServiceResourceModel struct {
	Aliases                    types.Set    `tfsdk:"aliases"`
	ApiDocumentPath            types.String `tfsdk:"api_document_path"`
	Description                types.String `tfsdk:"description"`
	Framework                  types.String `tfsdk:"framework"`
	Id                         types.String `tfsdk:"id"`
	Language                   types.String `tfsdk:"language"`
	LifecycleAlias             types.String `tfsdk:"lifecycle_alias"`
	Name                       types.String `tfsdk:"name"`
	Note                       types.String `tfsdk:"note"`
	Owner                      types.String `tfsdk:"owner"`
	Parent                     types.String `tfsdk:"parent"`
	PreferredApiDocumentSource types.String `tfsdk:"preferred_api_document_source"`
	Product                    types.String `tfsdk:"product"`
	Tags                       types.Set    `tfsdk:"tags"`
	TierAlias                  types.String `tfsdk:"tier_alias"`
	Type                       types.String `tfsdk:"type"`
}

ServiceResourceModel describes the Service managed resource.

type ServiceTagResource added in v1.0.0

type ServiceTagResource struct {
	CommonResourceClient
}

func (*ServiceTagResource) Create added in v1.0.0

func (serviceTagResource *ServiceTagResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)

func (*ServiceTagResource) Delete added in v1.0.0

func (serviceTagResource *ServiceTagResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)

func (*ServiceTagResource) ImportState added in v1.0.0

func (serviceTagResource *ServiceTagResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func (*ServiceTagResource) Metadata added in v1.0.0

func (serviceTagResource *ServiceTagResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)

func (*ServiceTagResource) Read added in v1.0.0

func (serviceTagResource *ServiceTagResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)

func (*ServiceTagResource) Schema added in v1.0.0

func (serviceTagResource *ServiceTagResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)

func (*ServiceTagResource) Update added in v1.0.0

func (serviceTagResource *ServiceTagResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)

type ServiceTagResourceModel added in v1.0.0

type ServiceTagResourceModel struct {
	Id           types.String `tfsdk:"id"`
	Key          types.String `tfsdk:"key"`
	Service      types.String `tfsdk:"service"`
	ServiceAlias types.String `tfsdk:"service_alias"`
	Value        types.String `tfsdk:"value"`
}

func NewServiceTagResourceModel added in v1.0.0

func NewServiceTagResourceModel(serviceTag opslevel.Tag) ServiceTagResourceModel

type ServiceToolResource added in v1.0.0

type ServiceToolResource struct {
	CommonResourceClient
}

ServiceToolResource defines the resource implementation.

func (*ServiceToolResource) Create added in v1.0.0

func (*ServiceToolResource) Delete added in v1.0.0

func (*ServiceToolResource) ImportState added in v1.0.0

func (*ServiceToolResource) Metadata added in v1.0.0

func (*ServiceToolResource) Read added in v1.0.0

func (*ServiceToolResource) Schema added in v1.0.0

func (*ServiceToolResource) Update added in v1.0.0

type ServiceToolResourceModel added in v1.0.0

type ServiceToolResourceModel struct {
	Category     types.String `tfsdk:"category"`
	Environment  types.String `tfsdk:"environment"`
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	Service      types.String `tfsdk:"service"`
	ServiceAlias types.String `tfsdk:"service_alias"`
	Url          types.String `tfsdk:"url"`
}

ServiceToolResourceModel describes the ServiceTool managed resource.

func NewServiceToolResourceModel added in v1.0.0

func NewServiceToolResourceModel(ctx context.Context, serviceTool opslevel.Tool, planModel ServiceToolResourceModel) ServiceToolResourceModel

type SystemDataSource added in v1.0.0

type SystemDataSource struct {
	CommonDataSourceClient
}

SystemDataSource manages a System data source.

func (*SystemDataSource) Metadata added in v1.0.0

func (*SystemDataSource) Read added in v1.0.0

func (*SystemDataSource) Schema added in v1.0.0

type SystemDataSourcesAll added in v1.0.0

type SystemDataSourcesAll struct {
	CommonDataSourceClient
}

func (*SystemDataSourcesAll) Metadata added in v1.0.0

func (*SystemDataSourcesAll) Read added in v1.0.0

func (*SystemDataSourcesAll) Schema added in v1.0.0

type SystemDataSourcesAllModel added in v1.0.0

type SystemDataSourcesAllModel struct {
	Systems []systemDataSourceModel `tfsdk:"systems"`
}

func NewSystemDataSourcesAllModel added in v1.0.0

func NewSystemDataSourcesAllModel(ctx context.Context, systems []opslevel.System) (SystemDataSourcesAllModel, diag.Diagnostics)

type SystemResource added in v1.0.0

type SystemResource struct {
	CommonResourceClient
}

SystemResource defines the resource implementation.

func (*SystemResource) Create added in v1.0.0

func (*SystemResource) Delete added in v1.0.0

func (*SystemResource) ImportState added in v1.0.0

func (*SystemResource) Metadata added in v1.0.0

func (*SystemResource) Read added in v1.0.0

func (*SystemResource) Schema added in v1.0.0

func (*SystemResource) Update added in v1.0.0

type SystemResourceModel added in v1.0.0

type SystemResourceModel struct {
	Aliases     types.List   `tfsdk:"aliases"`
	Description types.String `tfsdk:"description"`
	Domain      types.String `tfsdk:"domain"`
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Note        types.String `tfsdk:"note"`
	Owner       types.String `tfsdk:"owner"`
}

SystemResourceModel describes the System managed resource.

func NewSystemResourceModel added in v1.0.0

func NewSystemResourceModel(system opslevel.System, givenModel SystemResourceModel) SystemResourceModel

type TagResource added in v1.0.0

type TagResource struct {
	CommonResourceClient
}

TagResource defines the resource implementation.

func (*TagResource) Create added in v1.0.0

func (*TagResource) Delete added in v1.0.0

func (*TagResource) ImportState added in v1.0.0

func (*TagResource) Metadata added in v1.0.0

func (*TagResource) Read added in v1.0.0

func (*TagResource) Schema added in v1.0.0

func (*TagResource) Update added in v1.0.0

type TagResourceModel added in v1.0.0

type TagResourceModel struct {
	TargetResource types.String `tfsdk:"resource_identifier"`
	TargetType     types.String `tfsdk:"resource_type"`
	Key            types.String `tfsdk:"key"`
	Value          types.String `tfsdk:"value"`

	Id types.String `tfsdk:"id"`
}

TagResourceModel describes the Domain managed resource.

func NewTagResourceModel added in v1.0.0

func NewTagResourceModel(ctx context.Context, tag opslevel.Tag, planModel TagResourceModel) TagResourceModel

type TeamContactResource added in v1.0.0

type TeamContactResource struct {
	CommonResourceClient
}

func (*TeamContactResource) Create added in v1.0.0

func (teamContactResource *TeamContactResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)

func (*TeamContactResource) Delete added in v1.0.0

func (teamContactResource *TeamContactResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)

func (*TeamContactResource) ImportState added in v1.0.0

func (teamContactResource *TeamContactResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func (*TeamContactResource) Metadata added in v1.0.0

func (teamContactResource *TeamContactResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)

func (*TeamContactResource) Read added in v1.0.0

func (teamContactResource *TeamContactResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)

func (*TeamContactResource) Schema added in v1.0.0

func (teamContactResource *TeamContactResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)

func (*TeamContactResource) Update added in v1.0.0

func (teamContactResource *TeamContactResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)

type TeamContactResourceModel added in v1.0.0

type TeamContactResourceModel struct {
	Id    types.String `tfsdk:"id"`
	Name  types.String `tfsdk:"name"`
	Team  types.String `tfsdk:"team"`
	Type  types.String `tfsdk:"type"`
	Value types.String `tfsdk:"value"`
}

func NewTeamContactResourceModel added in v1.0.0

func NewTeamContactResourceModel(teamContact opslevel.Contact) TeamContactResourceModel

type TeamDataSource added in v1.0.0

type TeamDataSource struct {
	CommonDataSourceClient
}

TeamDataSource manages a Team data source.

func (*TeamDataSource) Metadata added in v1.0.0

func (teamDataSource *TeamDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

func (*TeamDataSource) Read added in v1.0.0

func (teamDataSource *TeamDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

func (*TeamDataSource) Schema added in v1.0.0

func (teamDataSource *TeamDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)

type TeamDataSourcesAll added in v1.0.0

type TeamDataSourcesAll struct {
	CommonDataSourceClient
}

func (*TeamDataSourcesAll) Metadata added in v1.0.0

func (*TeamDataSourcesAll) Read added in v1.0.0

func (*TeamDataSourcesAll) Schema added in v1.0.0

type TeamMember added in v1.0.0

type TeamMember struct {
	Email types.String `tfsdk:"email"`
	Role  types.String `tfsdk:"role"`
}

type TeamPropertyDefinitionDataSource added in v1.9.0

type TeamPropertyDefinitionDataSource struct {
	CommonDataSourceClient
}

func (*TeamPropertyDefinitionDataSource) Metadata added in v1.9.0

func (*TeamPropertyDefinitionDataSource) Read added in v1.9.0

func (*TeamPropertyDefinitionDataSource) Schema added in v1.9.0

type TeamPropertyDefinitionDataSourcesAll added in v1.9.0

type TeamPropertyDefinitionDataSourcesAll struct {
	CommonDataSourceClient
}

func (*TeamPropertyDefinitionDataSourcesAll) Metadata added in v1.9.0

func (*TeamPropertyDefinitionDataSourcesAll) Read added in v1.9.0

func (*TeamPropertyDefinitionDataSourcesAll) Schema added in v1.9.0

type TeamPropertyDefinitionResource added in v1.9.0

type TeamPropertyDefinitionResource struct {
	CommonResourceClient
}

func (*TeamPropertyDefinitionResource) Create added in v1.9.0

func (*TeamPropertyDefinitionResource) Delete added in v1.9.0

func (*TeamPropertyDefinitionResource) ImportState added in v1.9.0

func (*TeamPropertyDefinitionResource) Metadata added in v1.9.0

func (*TeamPropertyDefinitionResource) Read added in v1.9.0

func (*TeamPropertyDefinitionResource) Schema added in v1.9.0

func (*TeamPropertyDefinitionResource) Update added in v1.9.0

type TeamPropertyDefinitionResourceModel added in v1.9.0

type TeamPropertyDefinitionResourceModel struct {
	Alias        types.String `tfsdk:"alias"`
	Description  types.String `tfsdk:"description"`
	Id           types.String `tfsdk:"id"`
	LockedStatus types.String `tfsdk:"locked_status"`
	Name         types.String `tfsdk:"name"`
	Schema       types.String `tfsdk:"schema"`
}

func NewTeamPropertyDefinitionResourceModel added in v1.9.0

func NewTeamPropertyDefinitionResourceModel(definition opslevel.TeamPropertyDefinition, givenModel TeamPropertyDefinitionResourceModel) TeamPropertyDefinitionResourceModel

type TeamResource added in v1.0.0

type TeamResource struct {
	CommonResourceClient
}

func (*TeamResource) Create added in v1.0.0

func (teamResource *TeamResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)

func (*TeamResource) Delete added in v1.0.0

func (teamResource *TeamResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)

func (*TeamResource) ImportState added in v1.0.0

func (teamResource *TeamResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func (*TeamResource) Metadata added in v1.0.0

func (teamResource *TeamResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)

func (*TeamResource) Read added in v1.0.0

func (teamResource *TeamResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)

func (*TeamResource) Schema added in v1.0.0

func (teamResource *TeamResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)

func (*TeamResource) Update added in v1.0.0

func (teamResource *TeamResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)

type TeamResourceModel added in v1.0.0

type TeamResourceModel struct {
	Aliases          types.Set    `tfsdk:"aliases"`
	Id               types.String `tfsdk:"id"`
	Member           []TeamMember `tfsdk:"member"`
	Name             types.String `tfsdk:"name"`
	Parent           types.String `tfsdk:"parent"`
	Responsibilities types.String `tfsdk:"responsibilities"`
}

TeamResourceModel describes the Team managed resource.

func NewTeamResourceModel added in v1.0.0

func NewTeamResourceModel(ctx context.Context, team opslevel.Team, givenModel TeamResourceModel) TeamResourceModel

type TeamTagResource added in v1.0.0

type TeamTagResource struct {
	CommonResourceClient
}

func (*TeamTagResource) Create added in v1.0.0

func (teamTagResource *TeamTagResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)

func (*TeamTagResource) Delete added in v1.0.0

func (teamTagResource *TeamTagResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)

func (*TeamTagResource) ImportState added in v1.0.0

func (teamTagResource *TeamTagResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func (*TeamTagResource) Metadata added in v1.0.0

func (teamTagResource *TeamTagResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)

func (*TeamTagResource) Read added in v1.0.0

func (teamTagResource *TeamTagResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)

func (*TeamTagResource) Schema added in v1.0.0

func (teamTagResource *TeamTagResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)

func (*TeamTagResource) Update added in v1.0.0

func (teamTagResource *TeamTagResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)

type TeamTagResourceModel added in v1.0.0

type TeamTagResourceModel struct {
	Id        types.String `tfsdk:"id"`
	Key       types.String `tfsdk:"key"`
	Team      types.String `tfsdk:"team"`
	TeamAlias types.String `tfsdk:"team_alias"`
	Value     types.String `tfsdk:"value"`
}

func NewTeamTagResourceModel added in v1.0.0

func NewTeamTagResourceModel(teamTag opslevel.Tag) TeamTagResourceModel

type TerraformSource added in v1.3.2

type TerraformSource interface {
	Get(ctx context.Context, target interface{}) diag.Diagnostics
}

type TierDataSource added in v1.0.0

type TierDataSource struct {
	CommonDataSourceClient
}

TierDataSource manages a Tier data source.

func (*TierDataSource) Metadata added in v1.0.0

func (*TierDataSource) Read added in v1.0.0

func (*TierDataSource) Schema added in v1.0.0

type TierDataSourcesAll added in v1.0.0

type TierDataSourcesAll struct {
	CommonDataSourceClient
}

func (*TierDataSourcesAll) Metadata added in v1.0.0

func (*TierDataSourcesAll) Read added in v1.0.0

func (*TierDataSourcesAll) Schema added in v1.0.0

type TriggerDefinitionResource added in v1.0.0

type TriggerDefinitionResource struct {
	CommonResourceClient
}

TriggerDefinitionResource defines the resource implementation.

func (*TriggerDefinitionResource) Create added in v1.0.0

func (*TriggerDefinitionResource) Delete added in v1.0.0

func (*TriggerDefinitionResource) ImportState added in v1.0.0

func (*TriggerDefinitionResource) Metadata added in v1.0.0

func (*TriggerDefinitionResource) Read added in v1.0.0

func (*TriggerDefinitionResource) Schema added in v1.0.0

func (*TriggerDefinitionResource) Update added in v1.0.0

type TriggerDefinitionResourceModel added in v1.0.0

type TriggerDefinitionResourceModel struct {
	AccessControl          types.String `tfsdk:"access_control"`
	Action                 types.String `tfsdk:"action"`
	ApprovalRequired       types.Bool   `tfsdk:"approval_required"`
	ApprovalTeams          types.List   `tfsdk:"approval_teams"`
	ApprovalUsers          types.List   `tfsdk:"approval_users"`
	Description            types.String `tfsdk:"description"`
	EntityType             types.String `tfsdk:"entity_type"`
	ExtendedTeamAccess     types.List   `tfsdk:"extended_team_access"`
	Filter                 types.String `tfsdk:"filter"`
	Id                     types.String `tfsdk:"id"`
	ManualInputsDefinition types.String `tfsdk:"manual_inputs_definition"`
	Name                   types.String `tfsdk:"name"`
	Owner                  types.String `tfsdk:"owner"`
	ResponseTemplate       types.String `tfsdk:"response_template"`
	Published              types.Bool   `tfsdk:"published"`
}

TriggerDefinitionResourceModel describes the trigger definition managed resource.

func NewTriggerDefinitionResourceModel added in v1.0.0

func NewTriggerDefinitionResourceModel(ctx context.Context, client *opslevel.Client, triggerDefinition opslevel.CustomActionsTriggerDefinition, givenModel TriggerDefinitionResourceModel) (TriggerDefinitionResourceModel, diag.Diagnostics)

type UserDataSource added in v1.0.0

type UserDataSource struct {
	CommonDataSourceClient
}

UserDataSource manages a User data source.

func (*UserDataSource) Metadata added in v1.0.0

func (*UserDataSource) Read added in v1.0.0

func (*UserDataSource) Schema added in v1.0.0

type UserDataSourcesAll added in v1.0.0

type UserDataSourcesAll struct {
	CommonDataSourceClient
}

func (*UserDataSourcesAll) Metadata added in v1.0.0

func (*UserDataSourcesAll) Read added in v1.0.0

func (*UserDataSourcesAll) Schema added in v1.0.0

type UserResource added in v1.0.0

type UserResource struct {
	CommonResourceClient
}

UserResource defines the resource implementation.

func (*UserResource) Create added in v1.0.0

func (*UserResource) Delete added in v1.0.0

func (*UserResource) ImportState added in v1.0.0

func (*UserResource) Metadata added in v1.0.0

func (*UserResource) Read added in v1.0.0

func (*UserResource) Schema added in v1.0.0

func (*UserResource) Update added in v1.0.0

type UserResourceModel added in v1.0.0

type UserResourceModel struct {
	Email            types.String `tfsdk:"email"`
	Id               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	Role             types.String `tfsdk:"role"`
	SendInvite       types.Bool   `tfsdk:"send_invite"`
	SkipWelcomeEmail types.Bool   `tfsdk:"skip_welcome_email"`
}

UserResourceModel describes the User managed resource.

func NewUserResourceModel added in v1.0.0

func NewUserResourceModel(user opslevel.User, model UserResourceModel) UserResourceModel

type WebhookActionDataSource added in v1.0.0

type WebhookActionDataSource struct {
	CommonDataSourceClient
}

WebhookActionDataSource manages a WebhookAction data source.

func (*WebhookActionDataSource) Metadata added in v1.0.0

func (*WebhookActionDataSource) Read added in v1.0.0

func (*WebhookActionDataSource) Schema added in v1.0.0

type WebhookActionDataSourcesAll added in v1.0.0

type WebhookActionDataSourcesAll struct {
	CommonDataSourceClient
}

func (*WebhookActionDataSourcesAll) Metadata added in v1.0.0

func (*WebhookActionDataSourcesAll) Read added in v1.0.0

func (*WebhookActionDataSourcesAll) Schema added in v1.0.0

type WebhookActionResource added in v1.0.0

type WebhookActionResource struct {
	CommonResourceClient
}

WebhookActionResource defines the resource implementation.

func (*WebhookActionResource) Create added in v1.0.0

func (*WebhookActionResource) Delete added in v1.0.0

func (*WebhookActionResource) ImportState added in v1.0.0

func (*WebhookActionResource) Metadata added in v1.0.0

func (*WebhookActionResource) Read added in v1.0.0

func (*WebhookActionResource) Schema added in v1.0.0

func (*WebhookActionResource) Update added in v1.0.0

type WebhookActionResourceModel added in v1.0.0

type WebhookActionResourceModel struct {
	Async       types.Bool   `tfsdk:"async"`
	Description types.String `tfsdk:"description"`
	Headers     types.Map    `tfsdk:"headers"`
	Id          types.String `tfsdk:"id"`
	Method      types.String `tfsdk:"method"`
	Name        types.String `tfsdk:"name"`
	Payload     types.String `tfsdk:"payload"`
	Url         types.String `tfsdk:"url"`
}

WebhookActionResourceModel describes the Webhook Action managed resource.

func NewWebhookActionResourceModel added in v1.0.0

func NewWebhookActionResourceModel(webhookAction opslevel.CustomActionsExternalAction, givenModel WebhookActionResourceModel) WebhookActionResourceModel

Source Files

Jump to

Keyboard shortcuts

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