opslevel

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CheckBaseAttributes added in v1.0.0

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

func ComputedStringValue added in v1.0.0

func ComputedStringValue(value string) basetypes.StringValue

Syntactic sugar for OptionalStringValue

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 IdStringValidator added in v1.0.0

func IdStringValidator() validator.String

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

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 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 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 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 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 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 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 NewPropertiesAllModel added in v1.0.0

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

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(ctx context.Context, opslevelProperty opslevel.Property) (propertyModel, diag.Diagnostics)

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(ctx context.Context, scorecard opslevel.Scorecard, identifier string) (scorecardDataSourceWithIdentifierModel, diag.Diagnostics)

func NewScorecardDataSourcesAll added in v1.0.0

func NewScorecardDataSourcesAll() datasource.DataSource

func NewScorecardDataSourcesAllModel added in v1.0.0

func NewScorecardDataSourcesAllModel(ctx context.Context, 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 NewServiceDependencyResource added in v1.0.0

func NewServiceDependencyResource() 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 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 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(ctx context.Context, value []string) (basetypes.ListValue, diag.Diagnostics)

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 PredicateSchema added in v1.0.0

func PredicateSchema() schema.SingleNestedAttribute

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 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 TagFormatValidator added in v1.0.0

func TagFormatValidator() validator.Set

Types

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) ValidateConfig added in v1.0.0

type CheckAlertSourceUsageResourceModel added in v1.0.0

type CheckAlertSourceUsageResourceModel 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"`

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

func NewCheckAlertSourceUsageResourceModel added in v1.0.0

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

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 CheckGitBranchProtectionResourceModel added in v1.0.0

type CheckGitBranchProtectionResourceModel 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 NewCheckGitBranchProtectionResourceModel added in v1.0.0

func NewCheckGitBranchProtectionResourceModel(ctx context.Context, check opslevel.Check, planModel CheckGitBranchProtectionResourceModel) CheckGitBranchProtectionResourceModel

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 {
	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"`

	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 {
	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"`

	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

type CheckManualResourceModel added in v1.0.0

type CheckManualResourceModel 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"`

	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 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) 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 *PredicateModel `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, diag.Diagnostics)

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) 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 PredicateModel `tfsdk:"file_contents_predicate"`
}

func NewCheckRepositoryGrepResourceModel added in v1.0.0

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

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) 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 PredicateModel `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) 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         *PredicateModel `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) 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"`

	Property  types.String    `tfsdk:"property"`
	Predicate *PredicateModel `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) 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 *PredicateModel `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) 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    *PredicateModel `tfsdk:"tool_name_predicate"`
	ToolUrlPredicate     *PredicateModel `tfsdk:"tool_url_predicate"`
	EnvironmentPredicate *PredicateModel `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 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) (DomainResourceModel, diag.Diagnostics)

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 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

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  []filterPredicate `tfsdk:"predicate"`
}

FilterResourceModel describes the Filter managed resource.

func NewFilterResourceModel added in v1.0.0

func NewFilterResourceModel(filter opslevel.Filter) FilterResourceModel

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

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, diag.Diagnostics)

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"`
}

IntegrationAwsResourceModel describes the AWS Integraion managed resource.

func NewIntegrationAwsResourceModel added in v1.0.0

func NewIntegrationAwsResourceModel(ctx context.Context, awsIntegration opslevel.Integration) (IntegrationAwsResourceModel, diag.Diagnostics)

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 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 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 NewPredicateModel added in v1.0.0

func NewPredicateModel(predicate opslevel.Predicate) *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) 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) 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"`
	Schema                types.String `tfsdk:"schema"`
}

PropertyDefinitionResourceModel describes the Property Definition managed resource.

func NewPropertyDefinitionResourceModel added in v1.0.0

func NewPropertyDefinitionResourceModel(definition opslevel.PropertyDefinition) PropertyDefinitionResourceModel

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"`
}

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) 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"`
	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) (ScorecardResourceModel, diag.Diagnostics)

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"`
	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, diag.Diagnostics)

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 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(ctx context.Context, serviceDependency opslevel.ServiceDependency) ServiceDependencyResourceModel

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"`
	Owner                      types.String `tfsdk:"owner"`
	PreferredApiDocumentSource types.String `tfsdk:"preferred_api_document_source"`
	Product                    types.String `tfsdk:"product"`
	Tags                       types.Set    `tfsdk:"tags"`
	TierAlias                  types.String `tfsdk:"tier_alias"`
}

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(ctx context.Context, system opslevel.System) (SystemResourceModel, diag.Diagnostics)

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 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, diag.Diagnostics)

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 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"`
	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(triggerDefinition opslevel.CustomActionsTriggerDefinition, extendedTeams basetypes.ListValue) TriggerDefinitionResourceModel

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"`
	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 {
	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) WebhookActionResourceModel

Source Files

Jump to

Keyboard shortcuts

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