schemas

package
v0.30.0-beta6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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
	EncryptedValue  string
	KeyFingerprint  string
	PgpKey          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",
	EncryptedValue:  "encrypted_value",
	KeyFingerprint:  "key_fingerprint",
	PgpKey:          "pgp_key",
}
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 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() map[string]resourceSchema.Attribute

func GetArtifactoryGenericFeedResourceSchema

func GetArtifactoryGenericFeedResourceSchema() map[string]resourceSchema.Attribute

func GetAwsElasticContainerRegistryFeedResourceSchema

func GetAwsElasticContainerRegistryFeedResourceSchema() map[string]resourceSchema.Attribute

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 GetDatasourceLifecycleSchema

func GetDatasourceLifecycleSchema() datasourceSchema.Schema

func GetDatasourceScriptModuleSchema

func GetDatasourceScriptModuleSchema() datasourceSchema.Schema

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 GetDockerContainerRegistryFeedResourceSchema

func GetDockerContainerRegistryFeedResourceSchema() map[string]resourceSchema.Attribute

func GetEnvironmentDatasourceSchema

func GetEnvironmentDatasourceSchema() map[string]datasourceSchema.Attribute

func GetEnvironmentResourceSchema

func GetEnvironmentResourceSchema() resourceSchema.Schema

func GetFeedDataSourceSchema

func GetFeedDataSourceSchema() map[string]datasourceSchema.Attribute

func GetFeedsDataSourceSchema

func GetFeedsDataSourceSchema() map[string]datasourceSchema.Attribute

func GetGitCredentialDataSourceSchema

func GetGitCredentialDataSourceSchema() datasourceSchema.Schema

func GetGitCredentialDatasourceAttributes

func GetGitCredentialDatasourceAttributes() map[string]datasourceSchema.Attribute

func GetGitCredentialResourceSchema

func GetGitCredentialResourceSchema() resourceSchema.Schema

func GetGitHubRepositoryFeedResourceSchema

func GetGitHubRepositoryFeedResourceSchema() map[string]resourceSchema.Attribute

func GetHelmFeedResourceSchema

func GetHelmFeedResourceSchema() map[string]resourceSchema.Attribute

func GetIdDatasourceSchema

func GetIdDatasourceSchema(isReadOnly bool) datasourceSchema.Attribute

func GetIdResourceSchema

func GetIdResourceSchema() resourceSchema.Attribute

func GetIds

func GetIds(ids types.List) []string

func GetLibraryVariableSetDataSourceSchema

func GetLibraryVariableSetDataSourceSchema() datasourceSchema.Schema

func GetLibraryVariableSetObjectDatasourceSchema

func GetLibraryVariableSetObjectDatasourceSchema() map[string]datasourceSchema.Attribute

func GetLibraryVariableSetObjectType

func GetLibraryVariableSetObjectType() map[string]attr.Type

func GetLibraryVariableSetResourceSchema

func GetLibraryVariableSetResourceSchema() resourceSchema.Schema

func GetMavenFeedResourceSchema

func GetMavenFeedResourceSchema() map[string]resourceSchema.Attribute

func GetNameDatasourceSchema

func GetNameDatasourceSchema(isRequired bool) datasourceSchema.Attribute

func GetNameDatasourceWithMaxLengthSchema

func GetNameDatasourceWithMaxLengthSchema(isRequired bool, maxLength int) datasourceSchema.Attribute

func GetNameResourceSchema

func GetNameResourceSchema(isRequired bool) resourceSchema.Attribute

func GetNugetFeedResourceSchema

func GetNugetFeedResourceSchema() map[string]resourceSchema.Attribute

func GetNumber

func GetNumber(val types.Int64) int

func GetProjectDataSourceSchema

func GetProjectDataSourceSchema() datasourceSchema.Schema

func GetProjectGroupDatasourceSchema

func GetProjectGroupDatasourceSchema() map[string]datasourceSchema.Attribute

func GetProjectGroupResourceSchema

func GetProjectGroupResourceSchema() map[string]resourceSchema.Attribute

func GetProjectResourceSchema

func GetProjectResourceSchema() resourceSchema.Schema

func GetQueryIDsDatasourceSchema

func GetQueryIDsDatasourceSchema() 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 GetResourceLifecycleSchema

func GetResourceLifecycleSchema() resourceSchema.Schema

func GetRunbookResourceSchema

func GetRunbookResourceSchema() resourceSchema.Schema

func GetRunbookRetentionPeriodObjectType

func GetRunbookRetentionPeriodObjectType() map[string]attr.Type

func GetScriptModuleDatasourceSchema

func GetScriptModuleDatasourceSchema() map[string]datasourceSchema.Attribute

func GetScriptModuleResourceSchema

func GetScriptModuleResourceSchema() map[string]resourceSchema.Attribute

func GetScriptModuleSchemaBlock

func GetScriptModuleSchemaBlock() map[string]resourceSchema.Block

func GetSlugDatasourceSchema

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

func GetSlugResourceSchema

func GetSlugResourceSchema(resourceDescription string) resourceSchema.Attribute

func GetSpaceDatasourceSchema

func GetSpaceDatasourceSchema() map[string]datasourceSchema.Attribute

func GetSpaceIdDatasourceSchema

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

func GetSpaceIdResourceSchema

func GetSpaceIdResourceSchema(resourceDescription string) resourceSchema.Attribute

func GetSpaceResourceSchema

func GetSpaceResourceSchema() map[string]resourceSchema.Attribute

func GetSpaceTypeAttributes

func GetSpaceTypeAttributes() attr.Type

func GetSpacesDatasourceSchema

func GetSpacesDatasourceSchema() map[string]datasourceSchema.Attribute

func GetTagResourceSchema

func GetTagResourceSchema() resourceSchema.Schema

func GetTagSetAttrTypes

func GetTagSetAttrTypes() map[string]attr.Type

func GetTagSetDataSourceSchema

func GetTagSetDataSourceSchema() datasourceSchema.Schema

func GetTagSetResourceSchema

func GetTagSetResourceSchema() resourceSchema.Schema

func GetTenantCommonVariableResourceSchema

func GetTenantCommonVariableResourceSchema() schema.Schema

func GetTenantDataSourceSchema

func GetTenantDataSourceSchema() map[string]datasourceSchema.Attribute

func GetTenantProjectVariableResourceSchema

func GetTenantProjectVariableResourceSchema() schema.Schema

func GetTenantResourceSchema

func GetTenantResourceSchema() map[string]resourceSchema.Attribute

func GetTenantsDataSourceSchema

func GetTenantsDataSourceSchema() map[string]datasourceSchema.Attribute

func GetTentacleCertificateSchema

func GetTentacleCertificateSchema() resourceSchema.Schema

func GetUsernamePasswordAccountResourceSchema

func GetUsernamePasswordAccountResourceSchema() schema.Schema

func GetVariableDatasourceSchema

func GetVariableDatasourceSchema() datasourceSchema.Schema

func GetVariableResourceSchema

func GetVariableResourceSchema() resourceSchema.Schema

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

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

	ResourceModel
}

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 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 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 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 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 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 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 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"`
	PgpKey         types.String `tfsdk:"pgp_key"`
	KeyFingerprint types.String `tfsdk:"key_fingerprint"`
	EncryptedValue types.String `tfsdk:"encrypted_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