schemas

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MPL-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvironmentResourceDescription                             = "environment"
	EnvironmentSortOrder                                       = "sort_order"
	EnvironmentAllowDynamicInfrastructure                      = "allow_dynamic_infrastructure"
	EnvironmentUseGuidedFailure                                = "use_guided_failure"
	EnvironmentJiraExtensionSettings                           = "jira_extension_settings"
	EnvironmentJiraServiceManagementExtensionSettings          = "jira_service_management_extension_settings"
	EnvironmentServiceNowExtensionSettings                     = "servicenow_extension_settings"
	EnvironmentJiraExtensionSettingsEnvironmentType            = "environment_type"
	EnvironmentJiraServiceManagementExtensionSettingsIsEnabled = "is_enabled"
	EnvironmentServiceNowExtensionSettingsIsEnabled            = "is_enabled"
)
View Source
const (
	GitCredentialResourceName   = "git_credential"
	GitCredentialDatasourceName = "git_credentials"
)
View Source
const (
	TenantCommonVariableResourceDescription = "Tenant Common Variable"
	TenantCommonVariableResourceName        = "tenant_common_variable"
)
View Source
const (
	TenantProjectVariableResourceDescription = "Tenant Project Variable"
	TenantProjectVariableResourceName        = "tenant_project_variable"
)
View Source
const (
	VariableResourceDescription    = "variable"
	VariablesDataSourceDescription = "variables"
)
View Source
const ProjectDataSourceName = "projects"
View Source
const ProjectResourceName = "project"
View Source
const RunbookResourceDescription = "runbook"
View Source
const TagResourceName = "tag"
View Source
const TagSetDataSourceName = "tag_sets"
View Source
const TagSetResourceName = "tag_set"

Variables

View Source
var RunbookSchemaAttributeNames = struct {
	ID                         string
	Name                       string
	Description                string
	ProjectID                  string
	RunbookProcessID           string
	PublishedRunbookSnapshotID string
	SpaceID                    string
	MultiTenancyMode           string
	ConnectivityPolicy         string
	EnvironmentScope           string
	Environments               string
	DefaultGuidedFailureMode   string
	RetentionPolicy            string
	ForcePackageDownload       string
}{
	ID:                         "id",
	Name:                       "name",
	Description:                "description",
	ProjectID:                  "project_id",
	RunbookProcessID:           "runbook_process_id",
	PublishedRunbookSnapshotID: "published_runbook_snapshot_id",
	SpaceID:                    "space_id",
	MultiTenancyMode:           "multi_tenancy_mode",
	ConnectivityPolicy:         "connectivity_policy",
	EnvironmentScope:           "environment_scope",
	Environments:               "environments",
	DefaultGuidedFailureMode:   "default_guided_failure_mode",
	RetentionPolicy:            "retention_policy",
	ForcePackageDownload:       "force_package_download",
}
View Source
var SchemaAttributeNames = struct {
	ID          string
	Name        string
	Description string
	SpaceID     string
}{
	ID:          "id",
	Name:        "name",
	Description: "description",
	SpaceID:     "space_id",
}
View Source
var VariableSchemaAttributeNames = struct {
	Prompt          string
	OwnerID         string
	ProjectID       string
	Value           string
	SensitiveValue  string
	Scope           string
	IsEditable      string
	IsSensitive     string
	Type            string
	DisplaySettings string
	ControlType     string
	SelectOption    string
	DisplayName     string
	IsRequired      string
	Label           string
}{
	Prompt:          "prompt",
	OwnerID:         "owner_id",
	ProjectID:       "project_id",
	Value:           "value",
	SensitiveValue:  "sensitive_value",
	Scope:           "scope",
	IsEditable:      "is_editable",
	IsSensitive:     "is_sensitive",
	Type:            "type",
	DisplaySettings: "display_settings",
	ControlType:     "control_type",
	SelectOption:    "select_option",
	DisplayName:     "display_name",
	IsRequired:      "is_required",
	Label:           "label",
}
View Source
var VariableTypeNames = struct {
	AmazonWebServicesAccount string
	AzureAccount             string
	GoogleCloudAccount       string
	UsernamePasswordAccount  string
	Certificate              string
	Sensitive                string
	String                   string
	WorkerPool               string
}{
	AmazonWebServicesAccount: "AmazonWebServicesAccount",
	AzureAccount:             "AzureAccount",
	GoogleCloudAccount:       "GoogleCloudAccount",
	UsernamePasswordAccount:  "UsernamePasswordAccount",
	Certificate:              "Certificate",
	Sensitive:                "Sensitive",
	String:                   "String",
	WorkerPool:               "WorkerPool",
}
View Source
var VariableTypes = []string{
	VariableTypeNames.AmazonWebServicesAccount,
	VariableTypeNames.AzureAccount,
	VariableTypeNames.GoogleCloudAccount,
	VariableTypeNames.UsernamePasswordAccount,
	VariableTypeNames.Certificate,
	VariableTypeNames.Sensitive,
	VariableTypeNames.String,
	VariableTypeNames.WorkerPool,
}

Functions

func BuildTenantProjectID added in v0.30.0

func BuildTenantProjectID(spaceID string, tenantID string, projectID string) string

func EnvironmentObjectType

func EnvironmentObjectType() map[string]attr.Type

func ExpandActionTemplateParameters

func ExpandActionTemplateParameters(actionTemplateParameters types.List) []actiontemplates.ActionTemplateParameter

func FeedObjectType

func FeedObjectType() map[string]attr.Type

func FlattenFeed

func FlattenFeed(feed *feeds.FeedResource) attr.Value

func FlattenScriptModule

func FlattenScriptModule(scriptModule *variables.ScriptModule) attr.Value

func FlattenTemplateIds

func FlattenTemplateIds(actionTemplateParameters []actiontemplates.ActionTemplateParameter) types.Map

func FlattenTemplates

func FlattenTemplates(actionTemplateParameters []actiontemplates.ActionTemplateParameter) types.List

func FlattenTenant

func FlattenTenant(tenant *tenants.Tenant) attr.Value

func GetActionTemplateParameterSchema

func GetActionTemplateParameterSchema() resourceSchema.ListNestedBlock

func GetBooleanDatasourceAttribute

func GetBooleanDatasourceAttribute(description string, isOptional bool) datasourceSchema.Attribute

func GetBooleanResourceAttribute

func GetBooleanResourceAttribute(description string, defaultValue bool, isOptional bool) resourceSchema.Attribute

func GetConnectivityPolicyObjectType

func GetConnectivityPolicyObjectType() map[string]attr.Type

func GetDefaultConnectivityPolicy

func GetDefaultConnectivityPolicy() *core.ConnectivityPolicy

func GetDefaultRunbookRetentionPeriod

func GetDefaultRunbookRetentionPeriod() *runbooks.RunbookRetentionPeriod

func GetDescriptionDatasourceSchema

func GetDescriptionDatasourceSchema(resourceDescription string) datasourceSchema.Attribute

func GetDescriptionResourceSchema

func GetDescriptionResourceSchema(resourceDescription string) resourceSchema.Attribute

func GetDownloadAttemptsResourceSchema added in v0.30.0

func GetDownloadAttemptsResourceSchema() resourceSchema.Attribute

func GetDownloadRetryBackoffSecondsResourceSchema added in v0.30.0

func GetDownloadRetryBackoffSecondsResourceSchema() resourceSchema.Attribute

func GetFeedUriResourceSchema added in v0.30.0

func GetFeedUriResourceSchema() resourceSchema.Attribute

func GetGitCredentialDatasourceAttributes

func GetGitCredentialDatasourceAttributes() map[string]datasourceSchema.Attribute

func GetIdDatasourceSchema

func GetIdDatasourceSchema(isReadOnly bool) datasourceSchema.Attribute

func GetIdResourceSchema

func GetIdResourceSchema() resourceSchema.Attribute

func GetLibraryVariableSetObjectType

func GetLibraryVariableSetObjectType() map[string]attr.Type

func GetNameDatasourceSchema

func GetNameDatasourceSchema(isRequired bool) datasourceSchema.Attribute

func GetNameResourceSchema

func GetNameResourceSchema(isRequired bool) resourceSchema.Attribute

func GetNumber

func GetNumber(val types.Int64) int

func GetPackageAcquisitionLocationOptionsResourceSchema added in v0.30.0

func GetPackageAcquisitionLocationOptionsResourceSchema() resourceSchema.Attribute

func GetPasswordResourceSchema added in v0.30.0

func GetPasswordResourceSchema(isRequired bool) resourceSchema.Attribute

func GetQueryDatasourceTags added in v0.30.0

func GetQueryDatasourceTags() datasourceSchema.Attribute

func GetQueryIDsDatasourceSchema

func GetQueryIDsDatasourceSchema() datasourceSchema.Attribute

func GetQueryNameDatasourceSchema added in v0.30.0

func GetQueryNameDatasourceSchema() datasourceSchema.Attribute

func GetQueryPartialNameDatasourceSchema

func GetQueryPartialNameDatasourceSchema() datasourceSchema.Attribute

func GetQuerySkipDatasourceSchema

func GetQuerySkipDatasourceSchema() datasourceSchema.Attribute

func GetQueryTakeDatasourceSchema

func GetQueryTakeDatasourceSchema() datasourceSchema.Attribute

func GetReadonlyDescriptionDatasourceSchema

func GetReadonlyDescriptionDatasourceSchema(resourceDescription string) datasourceSchema.Attribute

func GetReadonlyNameDatasourceSchema

func GetReadonlyNameDatasourceSchema() datasourceSchema.Attribute

func GetRequiredStringResourceSchema added in v0.30.0

func GetRequiredStringResourceSchema(description string) resourceSchema.StringAttribute

func GetRunbookRetentionPeriodObjectType

func GetRunbookRetentionPeriodObjectType() map[string]attr.Type

func GetScriptModuleDatasourceSchema

func GetScriptModuleDatasourceSchema() map[string]datasourceSchema.Attribute

func GetSlugDatasourceSchema

func GetSlugDatasourceSchema(resourceDescription string, isReadOnly bool) datasourceSchema.Attribute

func GetSlugResourceSchema

func GetSlugResourceSchema(resourceDescription string) resourceSchema.Attribute

func GetSortOrderDatasourceSchema added in v0.30.0

func GetSortOrderDatasourceSchema(resourceDescription string) datasourceSchema.Attribute

func GetSortOrderResourceSchema added in v0.30.0

func GetSortOrderResourceSchema(resourceDescription string) resourceSchema.Attribute

func GetSpaceIdDatasourceSchema

func GetSpaceIdDatasourceSchema(resourceDescription string, isReadOnly bool) datasourceSchema.Attribute

func GetSpaceIdResourceSchema

func GetSpaceIdResourceSchema(resourceDescription string) resourceSchema.Attribute

func GetSpaceTypeAttributes

func GetSpaceTypeAttributes() attr.Type

func GetTagSetAttrTypes

func GetTagSetAttrTypes() map[string]attr.Type

func GetTenantCommonVariableResourceSchema

func GetTenantCommonVariableResourceSchema() schema.Schema

func GetTentacleCertificateSchema

func GetTentacleCertificateSchema() resourceSchema.Schema

func GetUsernameResourceSchema added in v0.30.0

func GetUsernameResourceSchema(isRequired bool) resourceSchema.Attribute

func JiraExtensionSettingsObjectType

func JiraExtensionSettingsObjectType() map[string]attr.Type

func JiraServiceManagementExtensionSettingsObjectType

func JiraServiceManagementExtensionSettingsObjectType() map[string]attr.Type

func MapFromConnectivityPolicy

func MapFromConnectivityPolicy(connectivityPolicy *core.ConnectivityPolicy) attr.Value

func MapFromDisplaySettings

func MapFromDisplaySettings(displaySettings *resources.DisplaySettings) attr.Value

func MapFromLibraryVariableSet

func MapFromLibraryVariableSet(data *LibraryVariableSetResourceModel, spaceId string, libraryVariableSet *variables.LibraryVariableSet)

func MapFromRunbookRetentionPeriod

func MapFromRunbookRetentionPeriod(retentionPeriod *runbooks.RunbookRetentionPeriod) attr.Value

func MapFromScriptModuleToState

func MapFromScriptModuleToState(data *ScriptModuleResourceModel) *variables.ScriptModule

func MapFromSelectOptions

func MapFromSelectOptions(selectOptions []*resources.SelectOption) []attr.Value

func MapFromStateToTag

func MapFromStateToTag(data *TagResourceModel) *tagsets.Tag

func MapFromTagToState

func MapFromTagToState(data *TagResourceModel, tag *tagsets.Tag, tagSet *tagsets.TagSet)

func MapFromVariablePromptOptions

func MapFromVariablePromptOptions(variablePromptOptions *variables.VariablePromptOptions) attr.Value

func MapFromVariableScope

func MapFromVariableScope(variableScope variables.VariableScope) attr.Value

func MapJiraExtensionSettings

func MapJiraExtensionSettings(jiraExtensionSettings *environments.JiraExtensionSettings) attr.Value

func MapJiraServiceManagementExtensionSettings

func MapJiraServiceManagementExtensionSettings(jiraServiceManagementExtensionSettings *environments.JiraServiceManagementExtensionSettings) attr.Value

func MapServiceNowExtensionSettings

func MapServiceNowExtensionSettings(serviceNowExtensionSettings *environments.ServiceNowExtensionSettings) attr.Value

func MapTenantToTenantProject added in v0.30.0

func MapTenantToTenantProject(tenant *tenants.Tenant, projectID string) attr.Value

func MapToConnectivityPolicy

func MapToConnectivityPolicy(flattenedConnectivityPolicy types.List) *core.ConnectivityPolicy

func MapToDisplaySettings

func MapToDisplaySettings(displaySettings types.List) *resources.DisplaySettings

func MapToRunbookRetentionPeriod

func MapToRunbookRetentionPeriod(flattenedRunbookRetentionPeriod types.List) *runbooks.RunbookRetentionPeriod

func MapToScriptModuleFromState

func MapToScriptModuleFromState(data *ScriptModuleResourceModel, scriptModule *variables.ScriptModule)

func MapToSelectOptions

func MapToSelectOptions(selectOptions types.List) []*resources.SelectOption

func MapToVariablePromptOptions

func MapToVariablePromptOptions(flattenedVariablePromptOptions types.List) *variables.VariablePromptOptions

func MapToVariableScope

func MapToVariableScope(variableScope types.List) variables.VariableScope

func ScriptModuleObjectType

func ScriptModuleObjectType() map[string]attr.Type

func ScriptObjectType

func ScriptObjectType() types.ObjectType

func ServiceNowExtensionSettingsObjectType

func ServiceNowExtensionSettingsObjectType() map[string]attr.Type

func TemplateObjectType

func TemplateObjectType() map[string]attr.Type

func TenantObjectType

func TenantObjectType() map[string]attr.Type

func TenantProjectType added in v0.30.0

func TenantProjectType() map[string]attr.Type

func VariableDisplaySettingsObjectType

func VariableDisplaySettingsObjectType() map[string]attr.Type

func VariablePromptOptionsObjectType

func VariablePromptOptionsObjectType() map[string]attr.Type

func VariableScopeObjectType

func VariableScopeObjectType() map[string]attr.Type

func VariableSelectOptionsObjectType

func VariableSelectOptionsObjectType() map[string]attr.Type

Types

type ActionTemplateParameterSchema added in v0.30.0

type ActionTemplateParameterSchema struct{}

func (ActionTemplateParameterSchema) GetDatasourceSchema added in v0.30.0

func (a ActionTemplateParameterSchema) GetDatasourceSchema() datasourceSchema.Schema

func (ActionTemplateParameterSchema) GetResourceSchema added in v0.30.0

func (a ActionTemplateParameterSchema) GetResourceSchema() resourceSchema.Schema

type ArtifactoryGenericFeedSchema added in v0.30.0

type ArtifactoryGenericFeedSchema struct{}

func (ArtifactoryGenericFeedSchema) GetDatasourceSchema added in v0.30.0

func (a ArtifactoryGenericFeedSchema) GetDatasourceSchema() datasourceSchema.Schema

func (ArtifactoryGenericFeedSchema) GetResourceSchema added in v0.30.0

func (a ArtifactoryGenericFeedSchema) GetResourceSchema() resourceSchema.Schema

type ArtifactoryGenericFeedTypeResourceModel

type ArtifactoryGenericFeedTypeResourceModel struct {
	FeedUri                           types.String `tfsdk:"feed_uri"`
	Name                              types.String `tfsdk:"name"`
	PackageAcquisitionLocationOptions types.List   `tfsdk:"package_acquisition_location_options"`
	Password                          types.String `tfsdk:"password"`
	SpaceID                           types.String `tfsdk:"space_id"`
	Username                          types.String `tfsdk:"username"`
	Repository                        types.String `tfsdk:"repository"`
	LayoutRegex                       types.String `tfsdk:"layout_regex"`

	ResourceModel
}

type AwsElasticContainerRegistryFeedTypeResourceModel

type AwsElasticContainerRegistryFeedTypeResourceModel struct {
	AccessKey                         types.String `tfsdk:"access_key"`
	Name                              types.String `tfsdk:"name"`
	PackageAcquisitionLocationOptions types.List   `tfsdk:"package_acquisition_location_options"`
	Region                            types.String `tfsdk:"region"`
	SecretKey                         types.String `tfsdk:"secret_key"`
	SpaceID                           types.String `tfsdk:"space_id"`

	ResourceModel
}

type AwsElasticContainerRegistrySchema added in v0.30.0

type AwsElasticContainerRegistrySchema struct{}

func (AwsElasticContainerRegistrySchema) GetDatasourceSchema added in v0.30.0

func (AwsElasticContainerRegistrySchema) GetResourceSchema added in v0.30.0

type DockerContainerRegistryFeedSchema added in v0.30.0

type DockerContainerRegistryFeedSchema struct{}

func (DockerContainerRegistryFeedSchema) GetDatasourceSchema added in v0.30.0

func (DockerContainerRegistryFeedSchema) GetResourceSchema added in v0.30.0

type DockerContainerRegistryFeedTypeResourceModel

type DockerContainerRegistryFeedTypeResourceModel struct {
	APIVersion                        types.String `tfsdk:"api_version"`
	FeedUri                           types.String `tfsdk:"feed_uri"`
	Name                              types.String `tfsdk:"name"`
	PackageAcquisitionLocationOptions types.List   `tfsdk:"package_acquisition_location_options"`
	Password                          types.String `tfsdk:"password"`
	SpaceID                           types.String `tfsdk:"space_id"`
	Username                          types.String `tfsdk:"username"`
	RegistryPath                      types.String `tfsdk:"registry_path"`

	ResourceModel
}

type EntitySchema added in v0.30.0

type EntitySchema interface {
	GetResourceSchema() resourceSchema.Schema
	GetDatasourceSchema() datasourceSchema.Schema
}

type EnvironmentSchema added in v0.30.0

type EnvironmentSchema struct{}

func (EnvironmentSchema) GetDatasourceSchema added in v0.30.0

func (e EnvironmentSchema) GetDatasourceSchema() datasourceSchema.Schema

func (EnvironmentSchema) GetDatasourceSchemaAttributes added in v0.30.0

func (e EnvironmentSchema) GetDatasourceSchemaAttributes() map[string]datasourceSchema.Attribute

func (EnvironmentSchema) GetResourceSchema added in v0.30.0

func (e EnvironmentSchema) GetResourceSchema() resourceSchema.Schema

type EnvironmentTypeResourceModel

type EnvironmentTypeResourceModel struct {
	Slug                                   types.String `tfsdk:"slug"`
	Name                                   types.String `tfsdk:"name"`
	Description                            types.String `tfsdk:"description"`
	AllowDynamicInfrastructure             types.Bool   `tfsdk:"allow_dynamic_infrastructure"`
	SortOrder                              types.Int64  `tfsdk:"sort_order"`
	UseGuidedFailure                       types.Bool   `tfsdk:"use_guided_failure"`
	SpaceID                                types.String `tfsdk:"space_id"`
	JiraExtensionSettings                  types.List   `tfsdk:"jira_extension_settings"`
	JiraServiceManagementExtensionSettings types.List   `tfsdk:"jira_service_management_extension_settings"`
	ServiceNowExtensionSettings            types.List   `tfsdk:"servicenow_extension_settings"`

	ResourceModel
}

type FeedsDataSourceModel

type FeedsDataSourceModel struct {
	ID          types.String `tfsdk:"id"`
	Feeds       types.List   `tfsdk:"feeds"`
	FeedType    types.String `tfsdk:"feed_type"`
	IDs         types.List   `tfsdk:"ids"`
	Name        types.String `tfsdk:"name"`
	PartialName types.String `tfsdk:"partial_name"`
	Skip        types.Int64  `tfsdk:"skip"`
	Take        types.Int64  `tfsdk:"take"`
	SpaceID     types.String `tfsdk:"space_id"`
}

type FeedsSchema added in v0.30.0

type FeedsSchema struct{}

func (FeedsSchema) GetDatasourceSchema added in v0.30.0

func (f FeedsSchema) GetDatasourceSchema() datasourceSchema.Schema

func (FeedsSchema) GetResourceSchema added in v0.30.0

func (f FeedsSchema) GetResourceSchema() resourceSchema.Schema

type GitCredentialSchema added in v0.30.0

type GitCredentialSchema struct{}

func (GitCredentialSchema) GetDatasourceSchema added in v0.30.0

func (g GitCredentialSchema) GetDatasourceSchema() datasourceSchema.Schema

func (GitCredentialSchema) GetResourceSchema added in v0.30.0

func (g GitCredentialSchema) GetResourceSchema() resourceSchema.Schema

type GitHubRepositoryFeedSchema added in v0.30.0

type GitHubRepositoryFeedSchema struct{}

func (GitHubRepositoryFeedSchema) GetDatasourceSchema added in v0.30.0

func (g GitHubRepositoryFeedSchema) GetDatasourceSchema() datasourceSchema.Schema

func (GitHubRepositoryFeedSchema) GetResourceSchema added in v0.30.0

func (g GitHubRepositoryFeedSchema) GetResourceSchema() resourceSchema.Schema

type GitHubRepositoryFeedTypeResourceModel

type GitHubRepositoryFeedTypeResourceModel struct {
	DownloadAttempts                  types.Int64  `tfsdk:"download_attempts"`
	DownloadRetryBackoffSeconds       types.Int64  `tfsdk:"download_retry_backoff_seconds"`
	FeedUri                           types.String `tfsdk:"feed_uri"`
	Name                              types.String `tfsdk:"name"`
	PackageAcquisitionLocationOptions types.List   `tfsdk:"package_acquisition_location_options"`
	Password                          types.String `tfsdk:"password"`
	SpaceID                           types.String `tfsdk:"space_id"`
	Username                          types.String `tfsdk:"username"`

	ResourceModel
}

type HelmFeedSchema added in v0.30.0

type HelmFeedSchema struct{}

func (HelmFeedSchema) GetDatasourceSchema added in v0.30.0

func (h HelmFeedSchema) GetDatasourceSchema() datasourceSchema.Schema

func (HelmFeedSchema) GetResourceSchema added in v0.30.0

func (h HelmFeedSchema) GetResourceSchema() resourceSchema.Schema

type HelmFeedTypeResourceModel

type HelmFeedTypeResourceModel struct {
	FeedUri                           types.String `tfsdk:"feed_uri"`
	Name                              types.String `tfsdk:"name"`
	PackageAcquisitionLocationOptions types.List   `tfsdk:"package_acquisition_location_options"`
	Password                          types.String `tfsdk:"password"`
	SpaceID                           types.String `tfsdk:"space_id"`
	Username                          types.String `tfsdk:"username"`

	ResourceModel
}

type IResourceModel

type IResourceModel interface {
	GetID() string
}

type LibraryVariableSetResourceModel

type LibraryVariableSetResourceModel struct {
	Description   types.String `tfsdk:"description"`
	Name          types.String `tfsdk:"name"`
	SpaceID       types.String `tfsdk:"space_id"`
	Template      types.List   `tfsdk:"template"`
	TemplateIds   types.Map    `tfsdk:"template_ids"`
	VariableSetId types.String `tfsdk:"variable_set_id"`

	ResourceModel
}

type LibraryVariableSetSchema added in v0.30.0

type LibraryVariableSetSchema struct{}

func (LibraryVariableSetSchema) GetDatasourceSchema added in v0.30.0

func (l LibraryVariableSetSchema) GetDatasourceSchema() datasourceSchema.Schema

func (LibraryVariableSetSchema) GetResourceSchema added in v0.30.0

func (l LibraryVariableSetSchema) GetResourceSchema() resourceSchema.Schema

type LifecycleSchema added in v0.30.0

type LifecycleSchema struct{}

func (LifecycleSchema) GetDatasourceSchema added in v0.30.0

func (l LifecycleSchema) GetDatasourceSchema() datasourceSchema.Schema

func (LifecycleSchema) GetResourceSchema added in v0.30.0

func (l LifecycleSchema) GetResourceSchema() resourceSchema.Schema

type MavenFeedSchema added in v0.30.0

type MavenFeedSchema struct{}

func (MavenFeedSchema) GetDatasourceSchema added in v0.30.0

func (m MavenFeedSchema) GetDatasourceSchema() datasourceSchema.Schema

func (MavenFeedSchema) GetResourceSchema added in v0.30.0

func (m MavenFeedSchema) GetResourceSchema() resourceSchema.Schema

type MavenFeedTypeResourceModel

type MavenFeedTypeResourceModel struct {
	DownloadAttempts                  types.Int64  `tfsdk:"download_attempts"`
	DownloadRetryBackoffSeconds       types.Int64  `tfsdk:"download_retry_backoff_seconds"`
	FeedUri                           types.String `tfsdk:"feed_uri"`
	Name                              types.String `tfsdk:"name"`
	PackageAcquisitionLocationOptions types.List   `tfsdk:"package_acquisition_location_options"`
	Password                          types.String `tfsdk:"password"`
	SpaceID                           types.String `tfsdk:"space_id"`
	Username                          types.String `tfsdk:"username"`

	ResourceModel
}

type NugetFeedSchema added in v0.30.0

type NugetFeedSchema struct{}

func (NugetFeedSchema) GetDatasourceSchema added in v0.30.0

func (n NugetFeedSchema) GetDatasourceSchema() datasourceSchema.Schema

func (NugetFeedSchema) GetResourceSchema added in v0.30.0

func (n NugetFeedSchema) GetResourceSchema() resourceSchema.Schema

type NugetFeedTypeResourceModel

type NugetFeedTypeResourceModel struct {
	DownloadAttempts                  types.Int64  `tfsdk:"download_attempts"`
	DownloadRetryBackoffSeconds       types.Int64  `tfsdk:"download_retry_backoff_seconds"`
	FeedUri                           types.String `tfsdk:"feed_uri"`
	IsEnhancedMode                    types.Bool   `tfsdk:"is_enhanced_mode"`
	Name                              types.String `tfsdk:"name"`
	PackageAcquisitionLocationOptions types.List   `tfsdk:"package_acquisition_location_options"`
	Password                          types.String `tfsdk:"password"`
	SpaceID                           types.String `tfsdk:"space_id"`
	Username                          types.String `tfsdk:"username"`

	ResourceModel
}

type ProjectGroupSchema added in v0.30.0

type ProjectGroupSchema struct{}

func (ProjectGroupSchema) GetDatasourceSchema added in v0.30.0

func (p ProjectGroupSchema) GetDatasourceSchema() datasourceSchema.Schema

func (ProjectGroupSchema) GetResourceSchema added in v0.30.0

func (p ProjectGroupSchema) GetResourceSchema() resourceSchema.Schema

type ProjectGroupTypeResourceModel

type ProjectGroupTypeResourceModel struct {
	Name        types.String `tfsdk:"name"`
	SpaceID     types.String `tfsdk:"space_id"`
	Description types.String `tfsdk:"description"`

	ResourceModel
}

type ProjectSchema added in v0.30.0

type ProjectSchema struct{}

func (ProjectSchema) GetDatasourceSchema added in v0.30.0

func (p ProjectSchema) GetDatasourceSchema() datasourceSchema.Schema

func (ProjectSchema) GetResourceSchema added in v0.30.0

func (p ProjectSchema) GetResourceSchema() resourceSchema.Schema

type ResourceModel

type ResourceModel struct {
	ID types.String `tfsdk:"id"`

	IResourceModel `tfsdk:"-"` // Ignore resource model interface in object conversion
}

func (ResourceModel) GetID

func (r ResourceModel) GetID() string

type RunbookConnectivityPolicyModel

type RunbookConnectivityPolicyModel struct {
	AllowDeploymentsToNoTargets types.Bool   `tfsdk:"allow_deployments_to_no_targets"`
	ExcludeUnhealthyTargets     types.Bool   `tfsdk:"exclude_unhealthy_targets"`
	SkipMachineBehavior         types.String `tfsdk:"skip_machine_behaviour"`
	TargetRoles                 types.List   `tfsdk:"target_roles"`
}

type RunbookRetentionPeriodModel

type RunbookRetentionPeriodModel struct {
	QuantityToKeep    types.String `tfsdk:"quantity_to_keep"`
	ShouldKeepForever types.Bool   `tfsdk:"should_keep_forever"`
}

type RunbookSchema added in v0.30.0

type RunbookSchema struct{}

func (RunbookSchema) GetDatasourceSchema added in v0.30.0

func (r RunbookSchema) GetDatasourceSchema() datasourceSchema.Schema

func (RunbookSchema) GetResourceSchema added in v0.30.0

func (r RunbookSchema) GetResourceSchema() resourceSchema.Schema

type RunbookTypeResourceModel

type RunbookTypeResourceModel struct {
	Name                       types.String `tfsdk:"name"`
	ProjectID                  types.String `tfsdk:"project_id"`
	Description                types.String `tfsdk:"description"`
	RunbookProcessID           types.String `tfsdk:"runbook_process_id"`
	PublishedRunbookSnapshotID types.String `tfsdk:"published_runbook_snapshot_id"`
	SpaceID                    types.String `tfsdk:"space_id"`
	MultiTenancyMode           types.String `tfsdk:"multi_tenancy_mode"`
	ConnectivityPolicy         types.List   `tfsdk:"connectivity_policy"`
	EnvironmentScope           types.String `tfsdk:"environment_scope"`
	Environments               types.List   `tfsdk:"environments"`
	DefaultGuidedFailureMode   types.String `tfsdk:"default_guided_failure_mode"`
	RunRetentionPolicy         types.List   `tfsdk:"retention_policy"`
	ForcePackageDownload       types.Bool   `tfsdk:"force_package_download"`

	ResourceModel
}

func (*RunbookTypeResourceModel) RefreshFromApiResponse

func (data *RunbookTypeResourceModel) RefreshFromApiResponse(ctx context.Context, runbook *runbooks.Runbook) diag.Diagnostics

type ScriptModuleDataSourceModel

type ScriptModuleDataSourceModel struct {
	ID            types.String `tfsdk:"id"`
	SpaceID       types.String `tfsdk:"space_id"`
	IDs           types.List   `tfsdk:"ids"`
	PartialName   types.String `tfsdk:"partial_name"`
	Skip          types.Int64  `tfsdk:"skip"`
	Take          types.Int64  `tfsdk:"take"`
	ScriptModules types.List   `tfsdk:"script_modules"`
}

type ScriptModuleResourceModel

type ScriptModuleResourceModel struct {
	Description   types.String `tfsdk:"description"`
	Name          types.String `tfsdk:"name"`
	SpaceID       types.String `tfsdk:"space_id"`
	VariableSetId types.String `tfsdk:"variable_set_id"`
	Script        types.List   `tfsdk:"script"`

	ResourceModel
}

type ScriptModuleSchema added in v0.30.0

type ScriptModuleSchema struct{}

func (ScriptModuleSchema) GetDatasourceSchema added in v0.30.0

func (s ScriptModuleSchema) GetDatasourceSchema() datasourceSchema.Schema

func (ScriptModuleSchema) GetResourceSchema added in v0.30.0

func (s ScriptModuleSchema) GetResourceSchema() resourceSchema.Schema

type SpaceModel

type SpaceModel struct {
	Name                     types.String `tfsdk:"name"`
	Slug                     types.String `tfsdk:"slug"`
	Description              types.String `tfsdk:"description"`
	IsDefault                types.Bool   `tfsdk:"is_default"`
	SpaceManagersTeams       types.Set    `tfsdk:"space_managers_teams"`
	SpaceManagersTeamMembers types.Set    `tfsdk:"space_managers_team_members"`
	IsTaskQueueStopped       types.Bool   `tfsdk:"is_task_queue_stopped"`

	ResourceModel
}

type SpaceSchema added in v0.30.0

type SpaceSchema struct{}

func (SpaceSchema) GetDatasourceSchema added in v0.30.0

func (s SpaceSchema) GetDatasourceSchema() datasourceSchema.Schema

func (SpaceSchema) GetResourceSchema added in v0.30.0

func (s SpaceSchema) GetResourceSchema() resourceSchema.Schema

type SpacesSchema added in v0.30.0

type SpacesSchema struct{}

func (SpacesSchema) GetDatasourceSchema added in v0.30.0

func (s SpacesSchema) GetDatasourceSchema() datasourceSchema.Schema

func (SpacesSchema) GetResourceSchema added in v0.30.0

func (s SpacesSchema) GetResourceSchema() resourceSchema.Schema

type TagResourceModel

type TagResourceModel struct {
	CanonicalTagName types.String `tfsdk:"canonical_tag_name"`
	Color            types.String `tfsdk:"color"`
	Description      types.String `tfsdk:"description"`
	Name             types.String `tfsdk:"name"`
	SortOrder        types.Int64  `tfsdk:"sort_order"`
	TagSetId         types.String `tfsdk:"tag_set_id"`
	TagSetSpaceId    types.String `tfsdk:"tag_set_space_id"`
	ResourceModel
}

type TagSchema added in v0.30.0

type TagSchema struct{}

func (TagSchema) GetDatasourceSchema added in v0.30.0

func (t TagSchema) GetDatasourceSchema() datasourceSchema.Schema

func (TagSchema) GetResourceSchema added in v0.30.0

func (t TagSchema) GetResourceSchema() resourceSchema.Schema

type TagSetDataSourceModel

type TagSetDataSourceModel struct {
	ID          types.String `tfsdk:"id"`
	SpaceID     types.String `tfsdk:"space_id"`
	IDs         types.List   `tfsdk:"ids"`
	PartialName types.String `tfsdk:"partial_name"`
	Skip        types.Int64  `tfsdk:"skip"`
	Take        types.Int64  `tfsdk:"take"`
	TagSets     types.List   `tfsdk:"tag_sets"`
}

type TagSetResourceModel

type TagSetResourceModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	SortOrder   types.Int64  `tfsdk:"sort_order"`
	SpaceID     types.String `tfsdk:"space_id"`

	ResourceModel
}

type TagSetSchema added in v0.30.0

type TagSetSchema struct{}

func (TagSetSchema) GetDatasourceSchema added in v0.30.0

func (t TagSetSchema) GetDatasourceSchema() datasourceSchema.Schema

func (TagSetSchema) GetResourceSchema added in v0.30.0

func (t TagSetSchema) GetResourceSchema() resourceSchema.Schema

type TenantModel

type TenantModel struct {
	ClonedFromTenantId types.String `tfsdk:"cloned_from_tenant_id"`
	Description        types.String `tfsdk:"description"`
	Name               types.String `tfsdk:"name"`
	SpaceID            types.String `tfsdk:"space_id"`
	TenantTags         types.List   `tfsdk:"tenant_tags"`

	ResourceModel
}

type TenantProjectResourceModel added in v0.30.0

type TenantProjectResourceModel struct {
	SpaceID        types.String `tfsdk:"space_id"`
	TenantID       types.String `tfsdk:"tenant_id"`
	ProjectID      types.String `tfsdk:"project_id"`
	EnvironmentIDs types.List   `tfsdk:"environment_ids"`

	ResourceModel
}

type TenantProjectVariableSchema added in v0.30.0

type TenantProjectVariableSchema struct{}

func (TenantProjectVariableSchema) GetDatasourceSchema added in v0.30.0

func (t TenantProjectVariableSchema) GetDatasourceSchema() datasourceSchema.Schema

func (TenantProjectVariableSchema) GetResourceSchema added in v0.30.0

func (t TenantProjectVariableSchema) GetResourceSchema() schema.Schema

type TenantProjectsDataModel added in v0.30.0

type TenantProjectsDataModel struct {
	SpaceID        types.String `tfsdk:"space_id"`
	TenantIDs      types.List   `tfsdk:"tenant_ids"`
	ProjectIDs     types.List   `tfsdk:"project_ids"`
	EnvironmentIDs types.List   `tfsdk:"environment_ids"`
	TenantProjects types.List   `tfsdk:"tenant_projects"`
}

type TenantProjectsSchema added in v0.30.0

type TenantProjectsSchema struct{}

func (TenantProjectsSchema) GetDatasourceSchema added in v0.30.0

func (t TenantProjectsSchema) GetDatasourceSchema() datasourceSchema.Schema

func (TenantProjectsSchema) GetResourceSchema added in v0.30.0

func (t TenantProjectsSchema) GetResourceSchema() resourceSchema.Schema

type TenantSchema added in v0.30.0

type TenantSchema struct{}

func (TenantSchema) GetDatasourceSchema added in v0.30.0

func (t TenantSchema) GetDatasourceSchema() datasourceSchema.Schema

func (TenantSchema) GetResourceSchema added in v0.30.0

func (t TenantSchema) GetResourceSchema() resourceSchema.Schema

type TenantsModel

type TenantsModel struct {
	ClonedFromTenantId types.String `tfsdk:"cloned_from_tenant_id"`
	ID                 types.String `tfsdk:"id"`
	IDs                types.List   `tfsdk:"ids"`
	IsClone            types.Bool   `tfsdk:"is_clone"`
	Name               types.String `tfsdk:"name"`
	PartialName        types.String `tfsdk:"partial_name"`
	ProjectId          types.String `tfsdk:"project_id"`
	Skip               types.Int64  `tfsdk:"skip"`
	Tags               types.List   `tfsdk:"tags"`
	SpaceID            types.String `tfsdk:"space_id"`
	Tenants            types.List   `tfsdk:"tenants"`
	Take               types.Int64  `tfsdk:"take"`
}

type TentacleCertificateResourceModel

type TentacleCertificateResourceModel struct {
	ID           types.String `tfsdk:"id"`
	Base64       types.String `tfsdk:"base64"`
	Thumbprint   types.String `tfsdk:"thumbprint"`
	Dependencies types.Map    `tfsdk:"dependencies"`
}

type UsernamePasswordAccountResourceModel

type UsernamePasswordAccountResourceModel struct {
	SpaceID                         types.String `tfsdk:"space_id"`
	Name                            types.String `tfsdk:"name"`
	Description                     types.String `tfsdk:"description"`
	Environments                    types.List   `tfsdk:"environments"`
	Password                        types.String `tfsdk:"password"`
	TenantedDeploymentParticipation types.String `tfsdk:"tenanted_deployment_participation"`
	Tenants                         types.List   `tfsdk:"tenants"`
	TenantTags                      types.List   `tfsdk:"tenant_tags"`
	Username                        types.String `tfsdk:"username"`

	ResourceModel
}

type UsernamePasswordAccountSchema added in v0.30.0

type UsernamePasswordAccountSchema struct{}

func (UsernamePasswordAccountSchema) GetDatasourceSchema added in v0.30.0

func (u UsernamePasswordAccountSchema) GetDatasourceSchema() datasourceSchema.Schema

func (UsernamePasswordAccountSchema) GetResourceSchema added in v0.30.0

func (u UsernamePasswordAccountSchema) GetResourceSchema() schema.Schema

type VariableSchema added in v0.30.0

type VariableSchema struct{}

func (VariableSchema) GetDatasourceSchema added in v0.30.0

func (v VariableSchema) GetDatasourceSchema() datasourceSchema.Schema

func (VariableSchema) GetResourceSchema added in v0.30.0

func (v VariableSchema) GetResourceSchema() resourceSchema.Schema

type VariableTypeResourceModel

type VariableTypeResourceModel struct {
	Name           types.String `tfsdk:"name"`
	Description    types.String `tfsdk:"description"`
	OwnerID        types.String `tfsdk:"owner_id"`
	ProjectID      types.String `tfsdk:"project_id"`
	IsEditable     types.Bool   `tfsdk:"is_editable"`
	IsSensitive    types.Bool   `tfsdk:"is_sensitive"`
	Type           types.String `tfsdk:"type"`
	SensitiveValue types.String `tfsdk:"sensitive_value"`
	Value          types.String `tfsdk:"value"`
	Prompt         types.List   `tfsdk:"prompt"`
	Scope          types.List   `tfsdk:"scope"`
	SpaceID        types.String `tfsdk:"space_id"`

	ResourceModel
}

type VariablesDataSourceModel

type VariablesDataSourceModel struct {
	OwnerID        types.String `tfsdk:"owner_id"`
	Name           types.String `tfsdk:"name"`
	Scope          types.List   `tfsdk:"scope"`
	SpaceID        types.String `tfsdk:"space_id"`
	Description    types.String `tfsdk:"description"`
	IsEditable     types.Bool   `tfsdk:"is_editable"`
	IsSensitive    types.Bool   `tfsdk:"is_sensitive"`
	Prompt         types.List   `tfsdk:"prompt"`
	SensitiveValue types.String `tfsdk:"sensitive_value"`
	Type           types.String `tfsdk:"type"`
	Value          types.String `tfsdk:"value"`

	ResourceModel
}

Jump to

Keyboard shortcuts

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