provider

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MPL-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const ABX_API_VERSION = "2019-09-12"
View Source
const BLUEPRINT_API_VERSION = "2019-09-12"
View Source
const CATALOG_API_VERSION = "2020-08-25"
View Source
const EVENT_BROKER_API_VERSION = ""

TODO then ensure its used (check related TODOs). 7.6 ?? https://developer.vmware.com/apis/576/#api

View Source
const FORM_API_VERSION = "1.0"
View Source
const IAAS_API_VERSION = "2021-07-15"
View Source
const ICON_API_VERSION = ""

TODO then ensure its used (check related TODOs).

View Source
const IMMUTABLE = " (force recreation on change)"
View Source
const JSON_INSTEAD_OF_DYNAMIC_DISCLAIMER = "" +
	" (JSON encoded)\n" +
	"\n" +
	"We should have implemented this attribute as a dynamic type (and not JSON).\n" +
	"Unfortunately Terraform SDK returns this issue:\n" +
	"Dynamic types inside of collections are not currently supported in " +
	"terraform-plugin-framework.\n"
View Source
const ORCHESTRATOR_API_VERION = ""
View Source
const PLATFORM_API_VERSION = ""

TODO then ensure its used (check related TODOs).

View Source
const POLICY_API_VERSION = "2020-08-25"
View Source
const PROJECT_API_VERSION = "2019-01-15"

Variables

This section is empty.

Functions

func ABXActionSchema added in v0.4.1

func ABXActionSchema() schema.Schema

func ABXConstantSchema added in v0.4.1

func ABXConstantSchema() schema.Schema

func ABXSensitiveConstantSchema added in v0.4.1

func ABXSensitiveConstantSchema() schema.Schema

func CatalogItemIconSchema added in v0.6.0

func CatalogItemIconSchema() schema.Schema

func CatalogSourceConfigSchema added in v0.6.3

func CatalogSourceConfigSchema() schema.SingleNestedAttribute

The Configuration embedded inside a CatalogSourceSchema.

func CatalogSourceSchema added in v0.6.3

func CatalogSourceSchema() schema.Schema

func CatalogSourceWorkflowSchema added in v0.6.3

func CatalogSourceWorkflowSchema() schema.NestedAttributeObject

A Workflow declared inside a CatalogSourceConfigSchema.

func CatalogTypeDataSourceSchema added in v0.4.1

func CatalogTypeDataSourceSchema() schema.Schema

func CheckDeepEqual added in v0.2.3

func CheckDeepEqual(t *testing.T, actual interface{}, expected interface{})

func CheckDiagnostics added in v0.2.3

func CheckDiagnostics(
	t *testing.T,
	diags diag.Diagnostics,
	warningMessage string,
	errorMessage string,
)

func CheckEqual added in v0.2.3

func CheckEqual(t *testing.T, actual interface{}, expected interface{})

func CleanString added in v0.1.1

func CleanString(value string) string

func CloudTemplateResourceSchema added in v0.5.0

func CloudTemplateResourceSchema() schema.NestedAttributeObject

func CloudTemplateResourcesSchema added in v0.5.0

func CloudTemplateResourcesSchema() schema.MapNestedAttribute

func CloudTemplateV1Schema added in v0.5.0

func CloudTemplateV1Schema() schema.Schema

func ComputedDescriptionSchema added in v0.4.1

func ComputedDescriptionSchema() schema.StringAttribute

func ComputedIdentifierSchema added in v0.3.0

func ComputedIdentifierSchema(description string) schema.StringAttribute

func ComputedMutableIdentifierSchema added in v0.3.0

func ComputedMutableIdentifierSchema(description string) schema.StringAttribute

func ComputedOrchestratorConfigurationAttributeSchema added in v0.6.4

func ComputedOrchestratorConfigurationAttributeSchema() schema.NestedAttributeObject

An Attribute declared inside a OrchestratorConfigurationDataSourceSchema.

func ComputedOrchestratorConfigurationBooleanSchema added in v0.6.4

func ComputedOrchestratorConfigurationBooleanSchema() schema.SingleNestedAttribute

A Boolean embedded inside a Computed Orchestrator Configuration Value.

func ComputedOrchestratorConfigurationSecureStringSchema added in v0.6.4

func ComputedOrchestratorConfigurationSecureStringSchema() schema.SingleNestedAttribute

A Secure String embedded inside a Computed Orchestrator Configuration Value.

func ComputedOrchestratorConfigurationStringSchema added in v0.6.4

func ComputedOrchestratorConfigurationStringSchema() schema.SingleNestedAttribute

A String embedded inside a Computed Orchestrator Configuration Value.

func ComputedOrchestratorConfigurationValueSchema added in v0.6.4

func ComputedOrchestratorConfigurationValueSchema() schema.SingleNestedAttribute

The Value embedded inside a Computed Orchestrator Configuration Attribute.

func ComputedOrganizationIdSchema added in v0.3.0

func ComputedOrganizationIdSchema() schema.StringAttribute

func CustomFormSchema added in v0.3.1

func CustomFormSchema() schema.Schema

func CustomNamingProjectFilterSchema added in v0.6.3

func CustomNamingProjectFilterSchema() schema.NestedAttributeObject

A Project (Filter) declared inside a CustomNamingSchema.

func CustomNamingSchema added in v0.4.1

func CustomNamingSchema() schema.Schema

func CustomNamingTemplateSchema added in v0.6.3

func CustomNamingTemplateSchema() schema.NestedAttributeObject

A Template declared inside a CustomNamingSchema.

func CustomResourceSchema added in v0.4.1

func CustomResourceSchema() schema.Schema

func GetIdFromLocation

func GetIdFromLocation(response *resty.Response) (string, error)

func GetVersionFromPath added in v0.5.0

func GetVersionFromPath(path string) string

func IconDataSourceSchema added in v0.4.1

func IconDataSourceSchema() dataschema.Schema

func IconSchema added in v0.4.1

func IconSchema() schema.Schema

func IntegrationDataSourceSchema added in v0.6.3

func IntegrationDataSourceSchema() dataschema.Schema

func IntegrationSchema added in v0.6.3

func IntegrationSchema() schema.SingleNestedAttribute

The integration embedded inside a CatalogSourceWorkflowSchema.

func JSONNormalizedFromAny added in v0.5.0

func JSONNormalizedFromAny(name string, value any) (jsontypes.Normalized, diag.Diagnostics)

Convert raw value to JSON encoded attribute.

func JSONNormalizedToAny added in v0.5.0

func JSONNormalizedToAny(attribute jsontypes.Normalized) (any, diag.Diagnostics)

Convert JSON encoded attribute to raw value.

func NestedCustomFormSchema added in v0.5.4

func NestedCustomFormSchema() schema.SingleNestedAttribute

The optional CustomForm embedded inside a ResourceActionSchema.

func New

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

func NewABXActionResource added in v0.1.1

func NewABXActionResource() resource.Resource

func NewABXConstantResource

func NewABXConstantResource() resource.Resource

func NewABXSensitiveConstantResource added in v0.2.0

func NewABXSensitiveConstantResource() resource.Resource

func NewCatalogItemIconResource added in v0.6.0

func NewCatalogItemIconResource() resource.Resource

func NewCatalogSourceResource added in v0.6.3

func NewCatalogSourceResource() resource.Resource

func NewCatalogTypeDataSource added in v0.1.1

func NewCatalogTypeDataSource() datasource.DataSource

func NewCloudTemplateV1Resource added in v0.5.0

func NewCloudTemplateV1Resource() resource.Resource

func NewCustomFormResource added in v0.5.4

func NewCustomFormResource() resource.Resource

func NewCustomNamingResource added in v0.2.5

func NewCustomNamingResource() resource.Resource

func NewCustomResourceResource added in v0.2.3

func NewCustomResourceResource() resource.Resource

func NewIconDataSource

func NewIconDataSource() datasource.DataSource

func NewIconResource

func NewIconResource() resource.Resource

func NewIntegrationDataSource added in v0.6.3

func NewIntegrationDataSource() datasource.DataSource

func NewOrchestratorActionResource added in v0.5.5

func NewOrchestratorActionResource() resource.Resource

func NewOrchestratorCategoryResource added in v0.5.5

func NewOrchestratorCategoryResource() resource.Resource

func NewOrchestratorConfigurationDataSource added in v0.6.4

func NewOrchestratorConfigurationDataSource() datasource.DataSource

func NewOrchestratorConfigurationResource added in v0.6.3

func NewOrchestratorConfigurationResource() resource.Resource

func NewOrchestratorTaskResource added in v0.6.5

func NewOrchestratorTaskResource() resource.Resource

func NewOrchestratorWorkflowResource added in v0.6.2

func NewOrchestratorWorkflowResource() resource.Resource

func NewPolicyResource added in v0.6.3

func NewPolicyResource() resource.Resource

func NewProjectResource added in v0.5.0

func NewProjectResource() resource.Resource

func NewPropertyGroupResource added in v0.3.0

func NewPropertyGroupResource() resource.Resource

func NewResourceActionResource added in v0.2.3

func NewResourceActionResource() resource.Resource

func NewSecretDataSource added in v0.2.2

func NewSecretDataSource() datasource.DataSource

func NewSubscriptionResource added in v0.1.1

func NewSubscriptionResource() resource.Resource

func NewTagResource added in v0.6.4

func NewTagResource() resource.Resource

func OptionalImmutableProjectIdSchema added in v0.3.1

func OptionalImmutableProjectIdSchema() schema.StringAttribute

func OrchestratorActionSchema added in v0.5.5

func OrchestratorActionSchema() schema.Schema

func OrchestratorCategorySchema added in v0.5.5

func OrchestratorCategorySchema() schema.Schema

func OrchestratorConfigurationAttributeSchema added in v0.6.3

func OrchestratorConfigurationAttributeSchema() schema.NestedAttributeObject

An Attribute declared inside a OrchestratorConfigurationSchema.

func OrchestratorConfigurationBooleanSchema added in v0.6.3

func OrchestratorConfigurationBooleanSchema() schema.SingleNestedAttribute

A Boolean embedded inside an Orchestrator Configuration Value.

func OrchestratorConfigurationDataSourceSchema added in v0.6.4

func OrchestratorConfigurationDataSourceSchema() dataschema.Schema

func OrchestratorConfigurationSchema added in v0.6.3

func OrchestratorConfigurationSchema() schema.Schema

func OrchestratorConfigurationSecureStringSchema added in v0.6.4

func OrchestratorConfigurationSecureStringSchema() schema.SingleNestedAttribute

A Secure String embedded inside an Orchestrator Configuration Value.

func OrchestratorConfigurationStringSchema added in v0.6.3

func OrchestratorConfigurationStringSchema() schema.SingleNestedAttribute

A String embedded inside an Orchestrator Configuration Value.

func OrchestratorConfigurationValueSchema added in v0.6.3

func OrchestratorConfigurationValueSchema() schema.SingleNestedAttribute

The Value embedded inside an Orchestrator Configuration Attribute.

func OrchestratorTaskSchema added in v0.6.5

func OrchestratorTaskSchema() schema.Schema

func OrchestratorTaskWorkflowSchema added in v0.6.5

func OrchestratorTaskWorkflowSchema() schema.SingleNestedAttribute

The Workflow embedded inside an OrchestratorTaskSchema.

func OrchestratorWorkflowSchema added in v0.6.2

func OrchestratorWorkflowSchema() schema.Schema

func OrderedPropertiesSchema added in v0.3.0

func OrderedPropertiesSchema(description string) schema.ListNestedAttribute

func ParameterModelListFromAPI added in v0.6.2

func ParameterModelListFromAPI(
	ctx context.Context,
	parametersRaw []ParameterAPIModel,
) (types.List, diag.Diagnostics)

func ParameterSchema added in v0.6.2

func ParameterSchema() schema.NestedAttributeObject

func PolicySchema added in v0.6.3

func PolicySchema() schema.Schema

func PositionSchema added in v0.6.3

func PositionSchema() schema.SingleNestedAttribute

The Position embedded inside an Orchestrator Workflow.

func ProjectConstraintsSchema added in v0.5.0

func ProjectConstraintsSchema() schema.SingleNestedAttribute

func ProjectSchema added in v0.5.0

func ProjectSchema() schema.Schema

func PropertyGroupSchema added in v0.4.1

func PropertyGroupSchema() schema.Schema

func PropertyOneOfSchema added in v0.3.0

func PropertyOneOfSchema() schema.NestedAttributeObject

func PropertySchema added in v0.3.0

func PropertySchema() schema.NestedAttributeObject

func RequiredDescriptionSchema added in v0.4.1

func RequiredDescriptionSchema() schema.StringAttribute

func RequiredIdentifierSchema added in v0.3.0

func RequiredIdentifierSchema(description string) schema.StringAttribute

func RequiredImmutableIdentifierSchema added in v0.6.5

func RequiredImmutableIdentifierSchema(description string) schema.StringAttribute

func RequiredImmutableProjectIdSchema added in v0.4.1

func RequiredImmutableProjectIdSchema() schema.StringAttribute

func RequiredProjectIdSchema added in v0.4.1

func RequiredProjectIdSchema() schema.StringAttribute

func ResourceActionRunnableSchema added in v0.3.0

func ResourceActionRunnableSchema(description string) schema.SingleNestedAttribute

func ResourceActionSchema added in v0.4.1

func ResourceActionSchema() schema.Schema

func SecretDataSourceSchema added in v0.4.1

func SecretDataSourceSchema() schema.Schema

func SkipEmpty added in v0.1.1

func SkipEmpty(value []string) []string

func StringOrNullValue added in v0.1.1

func StringOrNullValue(value string) types.String

func SubscriptionSchema added in v0.4.1

func SubscriptionSchema() schema.Schema

func TagSchema added in v0.6.4

func TagSchema() schema.Schema

func UnorderedPropertiesSchema added in v0.3.0

func UnorderedPropertiesSchema(description string) schema.MapNestedAttribute

Types

type ABXActionAPIModel added in v0.1.1

type ABXActionAPIModel struct {
	Id           string `json:"id,omitempty"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	FAASProvider string `json:"provider"`
	Type         string `json:"actionType"`

	RuntimeName    string `json:"runtime"`
	RuntimeVersion string `json:"runtimeVersion"`

	CPUShares                int32 `json:"cpuShares"`
	MemoryInMB               int32 `json:"memoryInMB"`
	TimeoutSeconds           int32 `json:"timeoutSeconds"`
	DeploymentTimeoutSeconds int32 `json:"deploymentTimeoutSeconds"`

	Entrypoint   string            `json:"entrypoint"`
	Dependencies string            `json:"dependencies"`
	Inputs       map[string]string `json:"inputs"`

	Source string `json:"source"`

	Shared        bool `json:"shared"`
	System        bool `json:"system"`
	AsyncDeployed bool `json:"asyncDeployed"`

	ProjectId string `json:"projectId"`
	OrgId     string `json:"orgId"`
}

ABXActionAPIModel describes the resource API model.

type ABXActionModel added in v0.1.1

type ABXActionModel struct {
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	Description  types.String `tfsdk:"description"`
	FAASProvider types.String `tfsdk:"faas_provider"`
	Type         types.String `tfsdk:"type"`

	RuntimeName    types.String `tfsdk:"runtime_name"`
	RuntimeVersion types.String `tfsdk:"runtime_version"`

	CPUShares                types.Int32 `tfsdk:"cpu_shares"`
	MemoryInMB               types.Int32 `tfsdk:"memory_in_mb"`
	TimeoutSeconds           types.Int32 `tfsdk:"timeout_seconds"`
	DeploymentTimeoutSeconds types.Int32 `tfsdk:"deployment_timeout_seconds"`

	Entrypoint   types.String `tfsdk:"entrypoint"`
	Dependencies types.List   `tfsdk:"dependencies"`
	Constants    types.Set    `tfsdk:"constants"`
	Secrets      types.Set    `tfsdk:"secrets"`

	Source types.String `tfsdk:"source"`

	Shared        types.Bool `tfsdk:"shared"`
	System        types.Bool `tfsdk:"system"`
	AsyncDeployed types.Bool `tfsdk:"async_deployed"`

	ProjectId types.String `tfsdk:"project_id"`
	OrgId     types.String `tfsdk:"org_id"`
}

ABXActionModel describes the resource data model.

func (ABXActionModel) CreatePath added in v0.5.0

func (self ABXActionModel) CreatePath() string

func (ABXActionModel) DeletePath added in v0.5.0

func (self ABXActionModel) DeletePath() string

func (*ABXActionModel) FromAPI added in v0.1.1

func (self *ABXActionModel) FromAPI(
	ctx context.Context,
	raw ABXActionAPIModel,
) diag.Diagnostics

func (ABXActionModel) LockKey added in v0.5.0

func (self ABXActionModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of ABX actions. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (ABXActionModel) ReadPath added in v0.5.0

func (self ABXActionModel) ReadPath() string

func (ABXActionModel) String added in v0.2.3

func (self ABXActionModel) String() string

func (ABXActionModel) ToAPI added in v0.1.1

func (ABXActionModel) UpdatePath added in v0.5.0

func (self ABXActionModel) UpdatePath() string

type ABXActionResource added in v0.1.1

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

ABXActionResource defines the resource implementation.

func (*ABXActionResource) Configure added in v0.1.1

func (*ABXActionResource) Create added in v0.1.1

func (*ABXActionResource) Delete added in v0.1.1

func (*ABXActionResource) ImportState added in v0.1.1

func (*ABXActionResource) Metadata added in v0.1.1

func (*ABXActionResource) Read added in v0.1.1

func (*ABXActionResource) Schema added in v0.1.1

func (*ABXActionResource) Update added in v0.1.1

type ABXConstantAPIModel added in v0.1.1

type ABXConstantAPIModel struct {
	Id            string `json:"id,omitempty"`
	Name          string `json:"name"`
	Value         string `json:"value"`
	Encrypted     bool   `json:"encrypted"`
	OrgId         string `json:"orgId"`
	CreatedMillis uint64 `json:"createdMillis"`
}

ABXConstantAPIModel describes the resource API model.

type ABXConstantModel added in v0.1.1

type ABXConstantModel struct {
	Id        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Value     types.String `tfsdk:"value"`
	Encrypted types.Bool   `tfsdk:"encrypted"`
	OrgId     types.String `tfsdk:"org_id"`
}

ABXConstantModel describes the resource data model.

func (ABXConstantModel) CreatePath added in v0.5.0

func (self ABXConstantModel) CreatePath() string

func (ABXConstantModel) DeletePath added in v0.5.0

func (self ABXConstantModel) DeletePath() string

func (*ABXConstantModel) FromAPI added in v0.1.1

func (self *ABXConstantModel) FromAPI(raw ABXConstantAPIModel)

func (ABXConstantModel) LockKey added in v0.5.0

func (self ABXConstantModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of ABX constants. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (ABXConstantModel) ReadPath added in v0.5.0

func (self ABXConstantModel) ReadPath() string

func (ABXConstantModel) String added in v0.2.3

func (self ABXConstantModel) String() string

func (ABXConstantModel) ToAPI added in v0.1.1

func (ABXConstantModel) UpdatePath added in v0.5.0

func (self ABXConstantModel) UpdatePath() string

type ABXConstantResource

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

ABXConstantResource defines the resource implementation.

func (*ABXConstantResource) Configure

func (*ABXConstantResource) Create

func (*ABXConstantResource) Delete

func (*ABXConstantResource) ImportState

func (*ABXConstantResource) Metadata

func (*ABXConstantResource) Read

func (*ABXConstantResource) Schema

func (*ABXConstantResource) Update

type ABXSensitiveConstantAPIModel added in v0.2.0

type ABXSensitiveConstantAPIModel struct {
	Id            string `json:"id,omitempty"`
	Name          string `json:"name"`
	Value         string `json:"value"`
	Encrypted     bool   `json:"encrypted"`
	OrgId         string `json:"orgId"`
	CreatedMillis uint64 `json:"createdMillis"`
}

ABXSensitiveConstantAPIModel describes the resource API model.

type ABXSensitiveConstantModel added in v0.2.0

type ABXSensitiveConstantModel struct {
	Id        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Value     types.String `tfsdk:"value"`
	Encrypted types.Bool   `tfsdk:"encrypted"`
	OrgId     types.String `tfsdk:"org_id"`
}

ABXSensitiveConstantModel describes the resource data model.

func (ABXSensitiveConstantModel) CreatePath added in v0.5.0

func (self ABXSensitiveConstantModel) CreatePath() string

func (ABXSensitiveConstantModel) DeletePath added in v0.5.0

func (self ABXSensitiveConstantModel) DeletePath() string

func (*ABXSensitiveConstantModel) FromAPI added in v0.2.0

func (ABXSensitiveConstantModel) LockKey added in v0.5.0

func (self ABXSensitiveConstantModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of ABX constants. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (ABXSensitiveConstantModel) ReadPath added in v0.5.0

func (self ABXSensitiveConstantModel) ReadPath() string

func (ABXSensitiveConstantModel) String added in v0.2.3

func (self ABXSensitiveConstantModel) String() string

func (ABXSensitiveConstantModel) ToAPI added in v0.2.0

func (ABXSensitiveConstantModel) UpdatePath added in v0.5.0

func (self ABXSensitiveConstantModel) UpdatePath() string

type ABXSensitiveConstantResource added in v0.2.0

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

ABXSensitiveConstantResource defines the resource implementation.

func (*ABXSensitiveConstantResource) Configure added in v0.2.0

func (*ABXSensitiveConstantResource) Create added in v0.2.0

func (*ABXSensitiveConstantResource) Delete added in v0.2.0

func (*ABXSensitiveConstantResource) Metadata added in v0.2.0

func (*ABXSensitiveConstantResource) Read added in v0.2.0

func (*ABXSensitiveConstantResource) Schema added in v0.2.0

func (*ABXSensitiveConstantResource) Update added in v0.2.0

type APIModel added in v0.5.0

type APIModel interface{}

type AccessTokenResponse

type AccessTokenResponse struct {
	TokenType string `json:"tokenType"`
	Token     string `json:"token"`
}

type AriaClient added in v0.5.0

type AriaClient struct {

	// Host must be a the URL to the base of the API.
	Host string

	RefreshToken string `datapolicy:"token"`
	AccessToken  string `datapolicy:"token"`

	// Transport Layer.
	Insecure bool

	// UserAgent is an optional field that specifies the caller of this request.
	UserAgent string

	Context context.Context

	Client *resty.Client

	// Named read-write mutexes for managing resources
	Mutex *RWMutexKV
}

func (*AriaClient) CheckConfig added in v0.5.0

func (self *AriaClient) CheckConfig() diag.Diagnostics

func (AriaClient) DeleteIt added in v0.5.0

func (self AriaClient) DeleteIt(
	ctx context.Context,
	instance Model,
	conflictMaxAttemptsOptional ...int,
) diag.Diagnostics

func (*AriaClient) GetAccessToken added in v0.5.0

func (self *AriaClient) GetAccessToken() diag.Diagnostics

func (*AriaClient) Init added in v0.5.0

func (self *AriaClient) Init() diag.Diagnostics

func (AriaClient) ReadIt added in v0.5.0

func (self AriaClient) ReadIt(
	ctx context.Context,
	instance Model,
	instanceRaw APIModel,
	readPath ...string,
) (bool, *resty.Response, diag.Diagnostics)

type AriaProvider

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

AriaProvider defines the provider implementation.

func (*AriaProvider) Configure

func (self *AriaProvider) Configure(
	ctx context.Context,
	req provider.ConfigureRequest,
	resp *provider.ConfigureResponse,
)

func (*AriaProvider) DataSources

func (self *AriaProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*AriaProvider) Functions

func (self *AriaProvider) Functions(ctx context.Context) []func() function.Function

func (*AriaProvider) Metadata

func (self *AriaProvider) Metadata(
	ctx context.Context,
	req provider.MetadataRequest,
	resp *provider.MetadataResponse,
)

func (*AriaProvider) Resources

func (self *AriaProvider) Resources(ctx context.Context) []func() resource.Resource

func (*AriaProvider) Schema

func (self *AriaProvider) Schema(
	ctx context.Context,
	req provider.SchemaRequest,
	resp *provider.SchemaResponse,
)

type AriaProviderModel

type AriaProviderModel struct {
	Host         types.String `tfsdk:"host"`
	Insecure     types.Bool   `tfsdk:"insecure"`
	RefreshToken types.String `tfsdk:"refresh_token"`
	AccessToken  types.String `tfsdk:"access_token"`
}

AriaProviderModel describes the provider data model.

type CatalogItemIconAPIModel added in v0.6.0

type CatalogItemIconAPIModel struct {
	Id     string `json:"id"`
	IconId string `json:"iconId"`
}

CatalogItemIconAPIModel describes the resource API model.

type CatalogItemIconModel added in v0.6.0

type CatalogItemIconModel struct {
	Id     types.String `tfsdk:"item_id"`
	IconId types.String `tfsdk:"icon_id"`
}

CatalogItemIconModel describes the resource data model.

func (CatalogItemIconModel) CreatePath added in v0.6.0

func (self CatalogItemIconModel) CreatePath() string

func (CatalogItemIconModel) DeletePath added in v0.6.0

func (self CatalogItemIconModel) DeletePath() string

func (*CatalogItemIconModel) FromAPI added in v0.6.0

func (self *CatalogItemIconModel) FromAPI(raw CatalogItemIconAPIModel)

func (CatalogItemIconModel) LockKey added in v0.6.0

func (self CatalogItemIconModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of catalog items. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (CatalogItemIconModel) ReadPath added in v0.6.0

func (self CatalogItemIconModel) ReadPath() string

func (CatalogItemIconModel) String added in v0.6.0

func (self CatalogItemIconModel) String() string

func (CatalogItemIconModel) ToAPI added in v0.6.0

func (CatalogItemIconModel) UpdatePath added in v0.6.0

func (self CatalogItemIconModel) UpdatePath() string

type CatalogItemIconResource added in v0.6.0

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

CatalogItemIconResource defines the resource implementation.

func (*CatalogItemIconResource) Configure added in v0.6.0

func (*CatalogItemIconResource) Create added in v0.6.0

func (*CatalogItemIconResource) Delete added in v0.6.0

func (*CatalogItemIconResource) ImportState added in v0.6.0

func (*CatalogItemIconResource) Metadata added in v0.6.0

func (*CatalogItemIconResource) Read added in v0.6.0

func (*CatalogItemIconResource) Schema added in v0.6.0

func (*CatalogItemIconResource) Update added in v0.6.0

type CatalogSourceAPIModel added in v0.6.3

type CatalogSourceAPIModel struct {
	Id     string `json:"id,omitempty"`
	Name   string `json:"name"`
	TypeId string `json:"typeId"`
	Global bool   `json:"global,omitempty"`

	Config CatalogSourceConfigAPIModel `json:"config"`

	CreatedAt             string   `json:"createdAt,omitempty"`
	CreatedBy             string   `json:"createdBy,omitempty"`
	LastUpdatedAt         string   `json:"lastUpdatedAt,omitempty"`
	LastUpdatedBy         string   `json:"lastUpdatedBy,omitempty"`
	LastImportStartedAt   string   `json:"lastImportStartedAt,omitempty"`
	LastImportCompletedAt string   `json:"lastImportCompletedAt,omitempty"`
	LastImportErrors      []string `json:"lastImportErrors,omitempty"`

	ItemsImported int32 `json:"itemsImported,omitempty"`
	ItemsFound    int32 `json:"itemsFound,omitempty"`
}

CatalogSourceAPIModel describes the resource API model.

type CatalogSourceConfigAPIModel added in v0.6.3

type CatalogSourceConfigAPIModel struct {
	SourceProjectId string                          `json:"sourceProjectId,omitempty"`
	Workflows       []CatalogSourceWorkflowAPIModel `json:"workflows,omitempty"`
}

CatalogSourceConfigAPIModel describes the resource API model.

type CatalogSourceConfigModel added in v0.6.3

type CatalogSourceConfigModel struct {
	SourceProjectId types.String `tfsdk:"source_project_id"`
	Workflows       types.List   `tfsdk:"workflows"`
}

CatalogSourceConfigModel describes the resource data model.

func (*CatalogSourceConfigModel) FromAPI added in v0.6.3

func (CatalogSourceConfigModel) ToAPI added in v0.6.3

type CatalogSourceModel added in v0.6.3

type CatalogSourceModel struct {
	Id     types.String `tfsdk:"id"`
	Name   types.String `tfsdk:"name"`
	TypeId types.String `tfsdk:"type_id"`
	Global types.Bool   `tfsdk:"global"`

	Config CatalogSourceConfigModel `tfsdk:"config"`

	CreatedAt             timetypes.RFC3339 `tfsdk:"created_at"`
	CreatedBy             types.String      `tfsdk:"created_by"`
	LastUpdatedAt         timetypes.RFC3339 `tfsdk:"last_updated_at"`
	LastUpdatedBy         types.String      `tfsdk:"last_updated_by"`
	LastImportStartedAt   timetypes.RFC3339 `tfsdk:"last_import_started_at"`
	LastImportCompletedAt timetypes.RFC3339 `tfsdk:"last_import_completed_at"`
	LastImportErrors      types.List        `tfsdk:"last_import_errors"`

	ItemsImported types.Int32 `tfsdk:"items_imported"`
	ItemsFound    types.Int32 `tfsdk:"items_found"`

	WaitImported types.Bool `tfsdk:"wait_imported"`
}

CatalogSourceModel describes the resource data model.

func (CatalogSourceModel) CreatePath added in v0.6.3

func (self CatalogSourceModel) CreatePath() string

func (CatalogSourceModel) DeletePath added in v0.6.3

func (self CatalogSourceModel) DeletePath() string

func (*CatalogSourceModel) FromAPI added in v0.6.3

func (CatalogSourceModel) IsImporting added in v0.6.3

func (self CatalogSourceModel) IsImporting(ctx context.Context) bool

func (CatalogSourceModel) LockKey added in v0.6.3

func (self CatalogSourceModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of projects. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (CatalogSourceModel) QualifyErrors added in v0.6.5

func (self CatalogSourceModel) QualifyErrors(
	ctx context.Context,
) (bool, []string, diag.Diagnostics)

Return a tuple with waitAndSee, errors and diagnostics. If some errors may be fixed by the next integration's refresh process then waitAndSee is true.

func (CatalogSourceModel) ReadPath added in v0.6.3

func (self CatalogSourceModel) ReadPath() string

func (CatalogSourceModel) String added in v0.6.3

func (self CatalogSourceModel) String() string

func (CatalogSourceModel) ToAPI added in v0.6.3

func (CatalogSourceModel) UpdatePath added in v0.6.3

func (self CatalogSourceModel) UpdatePath() string

type CatalogSourceResource added in v0.6.3

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

CatalogSourceResource defines the resource implementation.

func (*CatalogSourceResource) Configure added in v0.6.3

func (*CatalogSourceResource) Create added in v0.6.3

func (*CatalogSourceResource) Delete added in v0.6.3

func (*CatalogSourceResource) Metadata added in v0.6.3

func (*CatalogSourceResource) Read added in v0.6.3

func (*CatalogSourceResource) Schema added in v0.6.3

func (*CatalogSourceResource) Update added in v0.6.3

func (*CatalogSourceResource) WaitImported added in v0.6.3

func (self *CatalogSourceResource) WaitImported(
	ctx context.Context,
	source *CatalogSourceModel,
) diag.Diagnostics

type CatalogSourceWorkflowAPIModel added in v0.6.3

type CatalogSourceWorkflowAPIModel struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Version     string `json:"version"`

	Integration IntegrationAPIModel `json:"integration,omitempty"`
}

CatalogSourceWorkflowAPIModel describes the resource API model.

type CatalogSourceWorkflowModel added in v0.6.3

type CatalogSourceWorkflowModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Version     types.String `tfsdk:"version"`

	// Of type IntegrationModel
	Integration types.Object `tfsdk:"integration"`
}

CatalogSourceWorkflowModel describes the resource data model.

func (*CatalogSourceWorkflowModel) FromAPI added in v0.6.3

func (*CatalogSourceWorkflowModel) String added in v0.6.3

func (self *CatalogSourceWorkflowModel) String() string

func (CatalogSourceWorkflowModel) ToAPI added in v0.6.3

type CatalogTypeAPIModel added in v0.1.1

type CatalogTypeAPIModel struct {
	Id        string `json:"id,omitempty"`
	Name      string `json:"name"`
	BaseURI   string `json:"baseUri"`
	CreatedAt string `json:"createdAt"`
	CreatedBy string `json:"createdBy"`
	IconId    string `json:"iconId"`
}

CatalogTypeAPIModel describes the catalog type API model.

type CatalogTypeDataSource added in v0.1.1

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

CatalogTypeDataSource defines the data source implementation.

func (*CatalogTypeDataSource) Configure added in v0.1.1

func (*CatalogTypeDataSource) Metadata added in v0.1.1

func (*CatalogTypeDataSource) Read added in v0.1.1

func (*CatalogTypeDataSource) Schema added in v0.1.1

type CatalogTypeModel added in v0.1.1

type CatalogTypeModel struct {
	Id        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	BaseURI   types.String `tfsdk:"base_uri"`
	CreatedAt types.String `tfsdk:"created_at"`
	CreatedBy types.String `tfsdk:"created_by"`
	IconId    types.String `tfsdk:"icon_id"`
}

CatalogTypeModel describes the catalog type model.

func (*CatalogTypeModel) FromAPI added in v0.1.1

func (self *CatalogTypeModel) FromAPI(raw CatalogTypeAPIModel)

func (CatalogTypeModel) ReadPath added in v0.6.4

func (self CatalogTypeModel) ReadPath() string

func (CatalogTypeModel) String added in v0.6.4

func (self CatalogTypeModel) String() string

type CloudTemplateResourceAPIModel added in v0.5.0

type CloudTemplateResourceAPIModel struct {
	Type string `yaml:"type"`

	AllocatePerInstance *bool `yaml:"allocatePerInstance,omitempty"`
}

CloudTemplateResourceAPIModel describes the resource API model.

type CloudTemplateResourceModel added in v0.5.0

type CloudTemplateResourceModel struct {
	Name types.String `tfsdk:"name"`
	Type types.String `tfsdk:"type"`

	AllocatePerInstance types.Bool `tfsdk:"allocate_per_instance"`
}

CustomResourcPropertyeModel describes the resource data model.

func (*CloudTemplateResourceModel) FromAPI added in v0.5.0

func (CloudTemplateResourceModel) String added in v0.5.0

func (self CloudTemplateResourceModel) String() string

func (CloudTemplateResourceModel) ToAPI added in v0.5.0

type CloudTemplateResourcesAPIModel added in v0.5.0

type CloudTemplateResourcesAPIModel map[string]CloudTemplateResourceAPIModel

CloudTemplateResourcesAPIModel describes the resource API model.

type CloudTemplateResourcesModel added in v0.5.0

type CloudTemplateResourcesModel map[string]CloudTemplateResourceModel

CloudTemplateResourcesModel describes the resource data model.

func (*CloudTemplateResourcesModel) FromAPI added in v0.5.0

func (CloudTemplateResourcesModel) ToAPI added in v0.5.0

type CloudTemplateV1APIModel added in v0.5.0

type CloudTemplateV1APIModel struct {
	Id              string `json:"id,omitempty"`
	Name            string `json:"name"`
	Description     string `json:"description"`
	RequestScopeOrg bool   `json:"requestScopeOrg"`
	Status          string `json:"status"`
	Content         string `json:"content"`

	Valid              bool                                       `json:"valid"`
	ValidationMessages []CloudTemplateV1ValidationMessageAPIModel `json:"ValidationMessages,omitempty"`

	ProjectId string `json:"projectId"`
	OrgId     string `json:"orgId,omitempty"`
}

CloudTemplateV1APIModel describes the resource API model.

type CloudTemplateV1ContentAPIModel added in v0.5.0

type CloudTemplateV1ContentAPIModel struct {
	/*FormatVersion string                         `json:"formatVersion"`*/
	Inputs    UnorderedPropertiesAPIModel    `yaml:"inputs"`
	Resources CloudTemplateResourcesAPIModel `yaml:"resources"`
}

CloudTemplateV1ContentAPIModel describes the resource API model.

type CloudTemplateV1Model added in v0.5.0

type CloudTemplateV1Model struct {
	Id              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	Description     types.String `tfsdk:"description"`
	RequestScopeOrg types.Bool   `tfsdk:"request_scope_org"`
	Status          types.String `tfsdk:"status"`

	Inputs    UnorderedPropertiesModel    `tfsdk:"inputs"`
	Resources CloudTemplateResourcesModel `tfsdk:"resources"`

	Valid              types.Bool `tfsdk:"valid"`
	ValidationMessages types.List `tfsdk:"validation_messages"`

	ProjectId types.String `tfsdk:"project_id"`
	OrgId     types.String `tfsdk:"org_id"`
}

CloudTemplateV1Model describes the resource data model.

func (CloudTemplateV1Model) CreatePath added in v0.5.0

func (self CloudTemplateV1Model) CreatePath() string

func (CloudTemplateV1Model) DeletePath added in v0.5.0

func (self CloudTemplateV1Model) DeletePath() string

func (*CloudTemplateV1Model) FromAPI added in v0.5.0

func (CloudTemplateV1Model) LockKey added in v0.5.0

func (self CloudTemplateV1Model) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of cloud templates. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (CloudTemplateV1Model) ReadPath added in v0.5.0

func (self CloudTemplateV1Model) ReadPath() string

func (CloudTemplateV1Model) String added in v0.5.0

func (self CloudTemplateV1Model) String() string

func (CloudTemplateV1Model) ToAPI added in v0.5.0

func (CloudTemplateV1Model) UpdatePath added in v0.5.0

func (self CloudTemplateV1Model) UpdatePath() string

type CloudTemplateV1Resource added in v0.5.0

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

CloudTemplateV1Resource defines the resource implementation.

func (*CloudTemplateV1Resource) Configure added in v0.5.0

func (*CloudTemplateV1Resource) Create added in v0.5.0

func (*CloudTemplateV1Resource) Delete added in v0.5.0

func (*CloudTemplateV1Resource) ImportState added in v0.5.0

func (*CloudTemplateV1Resource) Metadata added in v0.5.0

func (*CloudTemplateV1Resource) Read added in v0.5.0

func (*CloudTemplateV1Resource) Schema added in v0.5.0

func (*CloudTemplateV1Resource) Update added in v0.5.0

type CloudTemplateV1ValidationMessageAPIModel added in v0.5.0

type CloudTemplateV1ValidationMessageAPIModel struct {
	ResourceName string `json:"resourceName,omitempty"`
	Path         string `json:"path"`
	Message      string `json:"message"`
}

CloudTemplateV1ValidationMessageAPIModel describes the resource API model.

func CloudTemplateV1ValidationMessageAPIModelFromObject added in v0.5.0

func CloudTemplateV1ValidationMessageAPIModelFromObject(
	ctx context.Context,
	object types.Object,
) (*CloudTemplateV1ValidationMessageAPIModel, diag.Diagnostics)

Convert an object to a CloudTemplateV1ValidationMessageAPIModel.

func (*CloudTemplateV1ValidationMessageAPIModel) ToObject added in v0.5.0

Convert a CloudTemplateV1ValidationMessageAPIModel to an object.

type CloudTemplateV1ValidationMessageModel added in v0.5.0

type CloudTemplateV1ValidationMessageModel struct {
	ResourceName types.String `tfsdk:"resource_name"`
	Path         types.String `tfsdk:"path"`
	Message      types.String `tfsdk:"message"`
}

CloudTemplateV1ValidationMessageModel describes the resource data model.

func (CloudTemplateV1ValidationMessageModel) AttributeTypes added in v0.6.3

func (self CloudTemplateV1ValidationMessageModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*CloudTemplateV1ValidationMessageModel) FromAPI added in v0.5.0

func (CloudTemplateV1ValidationMessageModel) String added in v0.5.0

func (CloudTemplateV1ValidationMessageModel) ToAPI added in v0.5.0

type CustomFormAPIModel added in v0.2.3

type CustomFormAPIModel struct {
	Id         string `json:"id,omitempty"`
	Name       string `json:"name"`
	Type       string `json:"type,omitempty"`
	Form       string `json:"form,omitempty"` // TODO A struct to define this attribute
	FormFormat string `json:"formFormat,omitempty"`
	Styles     string `json:"styles,omitempty"`
	SourceId   string `json:"sourceId,omitempty"`
	SourceType string `json:"sourceType,omitempty"`
	Tenant     string `json:"tenant,omitempty"`
	Status     string `json:"status,omitempty"`
}

CustomFormAPIModel describes the resource API model.

func CustomFormAPIModelFromObject added in v0.3.1

func CustomFormAPIModelFromObject(
	ctx context.Context,
	object types.Object,
) (*CustomFormAPIModel, diag.Diagnostics)

Convert an object to a CustomFormAPIModel.

func (*CustomFormAPIModel) ToObject added in v0.3.1

Convert a CustomFormAPIModel to an object.

type CustomFormModel added in v0.2.3

type CustomFormModel struct {
	Id         types.String         `tfsdk:"id"`
	Name       types.String         `tfsdk:"name"`
	Type       types.String         `tfsdk:"type"`
	Form       jsontypes.Normalized `tfsdk:"form"` // TODO A struct to define this attribute
	FormFormat types.String         `tfsdk:"form_format"`
	Styles     types.String         `tfsdk:"styles"`
	SourceId   types.String         `tfsdk:"source_id"`
	SourceType types.String         `tfsdk:"source_type"`
	Tenant     types.String         `tfsdk:"tenant"`
	Status     types.String         `tfsdk:"status"`
}

CustomFormModel describes the resource data model.

func (CustomFormModel) AttributeTypes added in v0.6.3

func (self CustomFormModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (CustomFormModel) CreatePath added in v0.5.4

func (self CustomFormModel) CreatePath() string

func (CustomFormModel) DeletePath added in v0.5.4

func (self CustomFormModel) DeletePath() string

func (*CustomFormModel) FromAPI added in v0.2.3

func (self *CustomFormModel) FromAPI(raw CustomFormAPIModel)

func (*CustomFormModel) GenerateId added in v0.5.4

func (self *CustomFormModel) GenerateId()

func (CustomFormModel) LockKey added in v0.5.4

func (self CustomFormModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of custom forms. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (CustomFormModel) ReadPath added in v0.5.4

func (self CustomFormModel) ReadPath() string

func (*CustomFormModel) String added in v0.3.1

func (self *CustomFormModel) String() string

func (*CustomFormModel) ToAPI added in v0.2.3

func (self *CustomFormModel) ToAPI() CustomFormAPIModel

func (CustomFormModel) UpdatePath added in v0.5.4

func (self CustomFormModel) UpdatePath() string

type CustomFormResource added in v0.5.4

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

CustomFormResource defines the resource implementation.

func (*CustomFormResource) Configure added in v0.5.4

func (*CustomFormResource) Create added in v0.5.4

func (*CustomFormResource) Delete added in v0.5.4

func (*CustomFormResource) ImportState added in v0.5.4

func (*CustomFormResource) Metadata added in v0.5.4

func (*CustomFormResource) Read added in v0.5.4

func (*CustomFormResource) Schema added in v0.5.4

func (*CustomFormResource) Update added in v0.5.4

type CustomNamingAPIModel added in v0.2.5

type CustomNamingAPIModel struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name"`
	Description string `json:"description"`

	Projects  []CustomNamingProjectFilterAPIModel `json:"projects"`
	Templates []CustomNamingTemplateAPIModel      `json:"templates"`
}

CustomNamingAPIModel describes the resource API model.

type CustomNamingModel added in v0.2.5

type CustomNamingModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`

	Projects  []CustomNamingProjectFilterModel     `tfsdk:"projects"`
	Templates map[string]CustomNamingTemplateModel `tfsdk:"templates"`
}

CustomNamingModel describes the resource data model.

func (CustomNamingModel) CreatePath added in v0.5.0

func (self CustomNamingModel) CreatePath() string

func (CustomNamingModel) DeletePath added in v0.5.0

func (self CustomNamingModel) DeletePath() string

func (*CustomNamingModel) FromAPI added in v0.2.5

func (self *CustomNamingModel) FromAPI(raw CustomNamingAPIModel)

func (CustomNamingModel) LockKey added in v0.5.0

func (self CustomNamingModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of custom naming. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (CustomNamingModel) ReadPath added in v0.5.0

func (self CustomNamingModel) ReadPath() string

func (*CustomNamingModel) String added in v0.2.5

func (self *CustomNamingModel) String() string

func (*CustomNamingModel) ToAPI added in v0.2.5

func (CustomNamingModel) UpdatePath added in v0.5.0

func (self CustomNamingModel) UpdatePath() string

type CustomNamingProjectFilterAPIModel added in v0.2.5

type CustomNamingProjectFilterAPIModel struct {
	Id          string `json:"id,omitempty"`
	Active      bool   `json:"active"`
	OrgDefault  bool   `json:"defaultOrg"`
	OrgId       string `json:"orgId"`
	ProjectId   string `json:"projectId"`
	ProjectName string `json:"projectName"`
}

CustomNamingProjectFilterAPIModel describes the resource API model.

type CustomNamingProjectFilterModel added in v0.2.5

type CustomNamingProjectFilterModel struct {
	Id          types.String `tfsdk:"id"`
	Active      types.Bool   `tfsdk:"active"`
	OrgDefault  types.Bool   `tfsdk:"org_default"`
	OrgId       types.String `tfsdk:"org_id"`
	ProjectId   types.String `tfsdk:"project_id"`
	ProjectName types.String `tfsdk:"project_name"`
}

CustomNamingProjectFilterModel describes the resource data model.

func (*CustomNamingProjectFilterModel) FromAPI added in v0.2.5

func (CustomNamingProjectFilterModel) String added in v0.2.5

func (self CustomNamingProjectFilterModel) String() string

func (CustomNamingProjectFilterModel) ToAPI added in v0.2.5

type CustomNamingResource added in v0.2.5

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

CustomNamingResource defines the resource implementation.

func (*CustomNamingResource) Configure added in v0.2.5

func (*CustomNamingResource) Create added in v0.2.5

func (*CustomNamingResource) Delete added in v0.2.5

func (*CustomNamingResource) ImportState added in v0.2.5

func (*CustomNamingResource) Metadata added in v0.2.5

func (*CustomNamingResource) Read added in v0.2.5

func (*CustomNamingResource) Schema added in v0.2.5

func (*CustomNamingResource) Update added in v0.2.5

type CustomNamingTemplateAPIModel added in v0.2.5

type CustomNamingTemplateAPIModel struct {
	Id               string `json:"id,omitempty"`
	Name             string `json:"name,omitempty"`
	ResourceType     string `json:"resourceType"`
	ResourceTypeName string `json:"resourceTypeName"`
	ResourceDefault  bool   `json:"resourceDefault"`
	UniqueName       bool   `json:"uniqueName"`
	Pattern          string `json:"pattern"`
	StaticPattern    string `json:"staticPattern"`
	StartCounter     int32  `json:"startCounter"`
	IncrementStep    int32  `json:"incrementStep"`
}

CustomNamingTemplateAPIModel describes the resource API model.

type CustomNamingTemplateModel added in v0.2.5

type CustomNamingTemplateModel struct {
	Id               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	ResourceType     types.String `tfsdk:"resource_type"`
	ResourceTypeName types.String `tfsdk:"resource_type_name"`
	ResourceDefault  types.Bool   `tfsdk:"resource_default"`
	Pattern          types.String `tfsdk:"pattern"`
	StaticPattern    types.String `tfsdk:"static_pattern"`
	UniqueName       types.Bool   `tfsdk:"unique_name"`
	StartCounter     types.Int32  `tfsdk:"start_counter"`
	IncrementStep    types.Int32  `tfsdk:"increment_step"`
}

CustomNamingTemplateModel describes the resource data model.

func (*CustomNamingTemplateModel) FromAPI added in v0.2.5

func (CustomNamingTemplateModel) Key added in v0.2.5

func (self CustomNamingTemplateModel) Key() string

func (CustomNamingTemplateModel) String added in v0.2.5

func (self CustomNamingTemplateModel) String() string

func (CustomNamingTemplateModel) ToAPI added in v0.2.5

type CustomResourceAPIModel added in v0.2.3

type CustomResourceAPIModel struct {
	Id           string `json:"id,omitempty"`
	DisplayName  string `json:"displayName"`
	Description  string `json:"description"`
	ResourceType string `json:"resourceType"`
	SchemaType   string `json:"schemaType"`
	Status       string `json:"status"`

	Properties CustomResourcePropertiesAPIModel `json:"properties"`

	MainActions       map[string]ResourceActionRunnableAPIModel `json:"mainActions"`
	AdditionalActions []ResourceActionAPIModel                  `json:"additionalActions"`

	// Omit empty Project ID to prevent "projectId cannot be updated for type (...) on UPDATE"
	ProjectId string `json:"projectId,omitempty"`
	OrgId     string `json:"orgId,omitempty"`
}

CustomResourceAPIModel describes the resource API model.

type CustomResourceModel added in v0.2.3

type CustomResourceModel struct {
	Id           types.String `tfsdk:"id"`
	DisplayName  types.String `tfsdk:"display_name"`
	Description  types.String `tfsdk:"description"`
	ResourceType types.String `tfsdk:"resource_type"`
	SchemaType   types.String `tfsdk:"schema_type"`
	Status       types.String `tfsdk:"status"`

	Properties UnorderedPropertiesModel `tfsdk:"properties"`

	Create ResourceActionRunnableModel `tfsdk:"create"`
	Read   ResourceActionRunnableModel `tfsdk:"read"`
	Update ResourceActionRunnableModel `tfsdk:"update"`
	Delete ResourceActionRunnableModel `tfsdk:"delete"`

	AdditionalActions []ResourceActionModel `tfsdk:"-"`

	ProjectId types.String `tfsdk:"project_id"`
	OrgId     types.String `tfsdk:"org_id"`
}

CustomResourceModel describes the resource data model.

func (CustomResourceModel) CreatePath added in v0.5.0

func (self CustomResourceModel) CreatePath() string

func (CustomResourceModel) DeletePath added in v0.5.0

func (self CustomResourceModel) DeletePath() string

func (*CustomResourceModel) FromAPI added in v0.2.3

func (CustomResourceModel) LockKey added in v0.5.0

func (self CustomResourceModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of custom resources. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (CustomResourceModel) ReadPath added in v0.5.0

func (self CustomResourceModel) ReadPath() string

func (CustomResourceModel) String added in v0.2.3

func (self CustomResourceModel) String() string

func (CustomResourceModel) ToAPI added in v0.2.3

func (CustomResourceModel) UpdatePath added in v0.5.0

func (self CustomResourceModel) UpdatePath() string

type CustomResourcePropertiesAPIModel added in v0.2.3

type CustomResourcePropertiesAPIModel struct {
	Properties UnorderedPropertiesAPIModel `json:"properties"`
}

CustomResourcePropertiesAPIModel describes the resource API model.

type CustomResourceResource added in v0.2.3

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

CustomResourceResource defines the resource implementation.

func (*CustomResourceResource) Configure added in v0.2.3

func (*CustomResourceResource) Create added in v0.2.3

func (*CustomResourceResource) Delete added in v0.2.3

func (*CustomResourceResource) ImportState added in v0.2.3

func (*CustomResourceResource) Metadata added in v0.2.3

func (*CustomResourceResource) Read added in v0.2.3

func (*CustomResourceResource) Schema added in v0.2.3

func (*CustomResourceResource) Update added in v0.2.3

type IconDataSource

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

IconDataSource defines the data source implementation.

func (*IconDataSource) Configure

func (*IconDataSource) Metadata

func (*IconDataSource) Read

func (*IconDataSource) Schema

type IconDataSourceModel added in v0.6.0

type IconDataSourceModel struct {
	Id      types.String `tfsdk:"id"`
	Content types.String `tfsdk:"content"`
}

IconModel describes the resource data model.

func (IconDataSourceModel) ReadPath added in v0.6.0

func (self IconDataSourceModel) ReadPath() string

func (IconDataSourceModel) String added in v0.6.0

func (self IconDataSourceModel) String() string

type IconModel added in v0.1.1

type IconModel struct {
	Id            types.String `tfsdk:"id"`
	Path          types.String `tfsdk:"path"`
	Hash          types.String `tfsdk:"hash"`
	KeepOnDestroy types.Bool   `tfsdk:"keep_on_destroy"`
}

IconModel describes the resource data model.

func (IconModel) CreatePath added in v0.5.0

func (self IconModel) CreatePath() string

func (IconModel) DeletePath added in v0.5.0

func (self IconModel) DeletePath() string

func (IconModel) LockKey added in v0.5.0

func (self IconModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of icons. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (IconModel) ReadPath added in v0.5.0

func (self IconModel) ReadPath() string

func (IconModel) String added in v0.2.3

func (self IconModel) String() string

func (IconModel) UpdatePath added in v0.5.0

func (self IconModel) UpdatePath() string

type IconResource

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

IconResource defines the resource implementation.

func (*IconResource) Configure

func (self *IconResource) Configure(
	ctx context.Context,
	req resource.ConfigureRequest,
	resp *resource.ConfigureResponse,
)

func (*IconResource) Create

func (self *IconResource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

func (*IconResource) Delete

func (self *IconResource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

func (*IconResource) Metadata

func (self *IconResource) Metadata(
	ctx context.Context,
	req resource.MetadataRequest,
	resp *resource.MetadataResponse,
)

func (*IconResource) Read

func (self *IconResource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (*IconResource) Schema

func (self *IconResource) Schema(
	ctx context.Context,
	req resource.SchemaRequest,
	resp *resource.SchemaResponse,
)

func (*IconResource) Update

func (self *IconResource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

type IntegrationAPIModel added in v0.6.3

type IntegrationAPIModel struct {
	Name                      string `json:"name"`
	EndpointConfigurationLink string `json:"endpointConfigurationLink"`
	EndpointURI               string `json:"endpointUri"`
}

IntegrationAPIModel describes the resource API model.

type IntegrationDataSource added in v0.6.3

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

IntegrationDataSource defines the data source implementation.

func (*IntegrationDataSource) Configure added in v0.6.3

func (*IntegrationDataSource) Metadata added in v0.6.3

func (*IntegrationDataSource) Read added in v0.6.3

func (*IntegrationDataSource) Schema added in v0.6.3

type IntegrationDataSourceModel added in v0.6.3

type IntegrationDataSourceModel struct {
	TypeId types.String `tfsdk:"type_id"`
	IntegrationModel
}

IntegrationDataSourceModel describes the data source data model.

func (IntegrationDataSourceModel) ReadPath added in v0.6.3

func (self IntegrationDataSourceModel) ReadPath() string

type IntegrationModel added in v0.6.3

type IntegrationModel struct {
	Name                      types.String `tfsdk:"name"`
	EndpointConfigurationLink types.String `tfsdk:"endpoint_configuration_link"`
	EndpointURI               types.String `tfsdk:"endpoint_uri"`
}

IntegrationModel describes the resource data model.

func (IntegrationModel) AttributeTypes added in v0.6.3

func (self IntegrationModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*IntegrationModel) FromAPI added in v0.6.3

func (self *IntegrationModel) FromAPI(raw IntegrationAPIModel)

func (*IntegrationModel) String added in v0.6.3

func (self *IntegrationModel) String() string

func (*IntegrationModel) ToAPI added in v0.6.3

func (self *IntegrationModel) ToAPI() IntegrationAPIModel

type IntegrationResponseAPIodel added in v0.6.3

type IntegrationResponseAPIodel struct {
	Content []IntegrationResponseContentAPIModel `json:"content"`
}

IntegrationResponseAPIodel describes the resource API model.

type IntegrationResponseContentAPIModel added in v0.6.3

type IntegrationResponseContentAPIModel struct {
	Integration IntegrationAPIModel `json:"integration"`
}

IntegrationResponseContentAPIModel describes the resource API model.

type Model added in v0.5.0

type Model interface {
	String() string

	LockKey() string

	CreatePath() string
	ReadPath() string
	UpdatePath() string
	DeletePath() string
}

type OrchestratorActionAPIModel added in v0.5.5

type OrchestratorActionAPIModel struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name"`
	Module      string `json:"module"`
	FQN         string `json:"fqn"`
	Description string `json:"description"`
	Version     string `json:"version"`

	Runtime            string `json:"runtime,omitempty"`
	RuntimeMemoryLimit int64  `json:"runtimeMemoryLimit"`
	RuntimeTimeout     int32  `json:"runtimeTimeout"`

	Script string `json:"script"`

	InputParameters []ParameterAPIModel `json:"input-parameters,omitempty"`

	OutputType string `json:"output-type"`
}

OrchestratorActionAPIModel describes the resource API model.

type OrchestratorActionModel added in v0.5.5

type OrchestratorActionModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Module      types.String `tfsdk:"module"`
	FQN         types.String `tfsdk:"fqn"`
	Description types.String `tfsdk:"description"`
	Version     types.String `tfsdk:"version"`

	Runtime            types.String `tfsdk:"runtime"`
	RuntimeMemoryLimit types.Int64  `tfsdk:"runtime_memory_limit"`
	RuntimeTimeout     types.Int32  `tfsdk:"runtime_timeout"`

	Script types.String `tfsdk:"script"`

	InputParameters types.List `tfsdk:"input_parameters"`

	OutputType types.String `tfsdk:"output_type"`

	ForceDelete types.Bool `tfsdk:"force_delete"`
}

OrchestratorActionModel describes the resource data model.

func (OrchestratorActionModel) CreatePath added in v0.5.5

func (self OrchestratorActionModel) CreatePath() string

func (OrchestratorActionModel) DeletePath added in v0.5.5

func (self OrchestratorActionModel) DeletePath() string

func (*OrchestratorActionModel) FromAPI added in v0.5.5

func (OrchestratorActionModel) LockKey added in v0.5.5

func (self OrchestratorActionModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of vRO actions. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (OrchestratorActionModel) ReadPath added in v0.5.5

func (self OrchestratorActionModel) ReadPath() string

func (OrchestratorActionModel) String added in v0.5.5

func (self OrchestratorActionModel) String() string

func (OrchestratorActionModel) ToAPI added in v0.5.5

func (OrchestratorActionModel) UpdatePath added in v0.5.5

func (self OrchestratorActionModel) UpdatePath() string

type OrchestratorActionResource added in v0.5.5

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

OrchestratorActionResource defines the resource implementation.

func (*OrchestratorActionResource) Configure added in v0.5.5

func (*OrchestratorActionResource) Create added in v0.5.5

func (*OrchestratorActionResource) Delete added in v0.5.5

func (*OrchestratorActionResource) ImportState added in v0.5.5

func (*OrchestratorActionResource) Metadata added in v0.5.5

func (*OrchestratorActionResource) Read added in v0.5.5

func (*OrchestratorActionResource) Schema added in v0.5.5

func (*OrchestratorActionResource) Update added in v0.5.5

type OrchestratorCategoryAPIModel added in v0.5.5

type OrchestratorCategoryAPIModel struct {
	Id       string   `json:"id,omitempty"`
	Name     string   `json:"name"`
	Path     string   `json:"path,omitempty"`
	Type     string   `json:"type"`
	ParentId string   `json:"parent-category-id,omitempty"`
	PathIds  []string `json:"path-ids,omitempty"`
}

OrchestratorCategoryAPIModel describes the resource API model.

type OrchestratorCategoryModel added in v0.5.5

type OrchestratorCategoryModel struct {
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Path     types.String `tfsdk:"path"`
	Type     types.String `tfsdk:"type"`
	ParentId types.String `tfsdk:"parent_id"`
}

OrchestratorCategoryModel describes the resource data model.

func (OrchestratorCategoryModel) CreatePath added in v0.5.5

func (self OrchestratorCategoryModel) CreatePath() string

func (OrchestratorCategoryModel) DeletePath added in v0.5.5

func (self OrchestratorCategoryModel) DeletePath() string

func (*OrchestratorCategoryModel) FromAPI added in v0.5.5

func (OrchestratorCategoryModel) LockKey added in v0.5.5

func (self OrchestratorCategoryModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of vRO actions. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (OrchestratorCategoryModel) ReadPath added in v0.5.5

func (self OrchestratorCategoryModel) ReadPath() string

func (OrchestratorCategoryModel) String added in v0.5.5

func (self OrchestratorCategoryModel) String() string

func (OrchestratorCategoryModel) ToAPI added in v0.5.5

func (OrchestratorCategoryModel) UpdatePath added in v0.5.5

func (self OrchestratorCategoryModel) UpdatePath() string

type OrchestratorCategoryResource added in v0.5.5

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

OrchestratorCategoryResource defines the resource implementation.

func (*OrchestratorCategoryResource) Configure added in v0.5.5

func (*OrchestratorCategoryResource) Create added in v0.5.5

func (*OrchestratorCategoryResource) Delete added in v0.5.5

func (*OrchestratorCategoryResource) ImportState added in v0.5.5

func (*OrchestratorCategoryResource) Metadata added in v0.5.5

func (*OrchestratorCategoryResource) Read added in v0.5.5

func (*OrchestratorCategoryResource) Schema added in v0.5.5

func (*OrchestratorCategoryResource) Update added in v0.5.5

type OrchestratorConfigurationAPIModel added in v0.6.3

type OrchestratorConfigurationAPIModel struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name"`
	Description string `json:"description"`
	CategoryId  string `json:"category-id"`
	Version     string `json:"version"`

	Attributes []OrchestratorConfigurationAttributeAPIModel `json:"attributes"`
}

OrchestratorConfigurationAPIModel describes the resource API model.

type OrchestratorConfigurationAttributeAPIModel added in v0.6.3

type OrchestratorConfigurationAttributeAPIModel struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`

	Value OrchestratorConfigurationValueAPIModel `json:"value"`
}

OrchestratorConfigurationAttributeAPIModel describes the resource API model.

type OrchestratorConfigurationAttributeModel added in v0.6.3

type OrchestratorConfigurationAttributeModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`

	// Of type OrchestratorConfigurationValueModel
	Value types.Object `tfsdk:"value"`
}

OrchestratorConfigurationAttributeModel describes the resource data model.

func (*OrchestratorConfigurationAttributeModel) FromAPI added in v0.6.3

func (OrchestratorConfigurationAttributeModel) String added in v0.6.3

func (OrchestratorConfigurationAttributeModel) ToAPI added in v0.6.3

type OrchestratorConfigurationBooleanAPIModel added in v0.6.3

type OrchestratorConfigurationBooleanAPIModel struct {
	Value bool `json:"value"`
}

OrchestratorConfigurationBooleanAPIModel describes the resource API model.

type OrchestratorConfigurationBooleanModel added in v0.6.3

type OrchestratorConfigurationBooleanModel struct {
	Value types.Bool `tfsdk:"value"`
}

OrchestratorConfigurationBooleanModel describes the resource data model.

func (OrchestratorConfigurationBooleanModel) AttributeTypes added in v0.6.3

func (self OrchestratorConfigurationBooleanModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*OrchestratorConfigurationBooleanModel) FromAPI added in v0.6.3

func (OrchestratorConfigurationBooleanModel) ToAPI added in v0.6.3

type OrchestratorConfigurationDataSource added in v0.6.4

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

OrchestratorConfigurationDataSource defines the data source implementation.

func (*OrchestratorConfigurationDataSource) Configure added in v0.6.4

func (*OrchestratorConfigurationDataSource) Metadata added in v0.6.4

func (*OrchestratorConfigurationDataSource) Read added in v0.6.4

func (*OrchestratorConfigurationDataSource) Schema added in v0.6.4

type OrchestratorConfigurationDataSourceModel added in v0.6.4

type OrchestratorConfigurationDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	CategoryId  types.String `tfsdk:"category_id"`
	Version     types.String `tfsdk:"version"`
	VersionId   types.String `tfsdk:"version_id"`

	Attributes types.List `tfsdk:"attributes"`
}

OrchestratorConfigurationModel describes the resource data model.

func (*OrchestratorConfigurationDataSourceModel) FromAPI added in v0.6.4

func (OrchestratorConfigurationDataSourceModel) LockKey added in v0.6.4

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of vRO configurations. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (OrchestratorConfigurationDataSourceModel) ReadPath added in v0.6.4

func (OrchestratorConfigurationDataSourceModel) String added in v0.6.4

func (OrchestratorConfigurationDataSourceModel) ToAPI added in v0.6.4

type OrchestratorConfigurationModel added in v0.6.3

type OrchestratorConfigurationModel struct {
	OrchestratorConfigurationDataSourceModel

	ForceDelete types.Bool `tfsdk:"force_delete"`
}

OrchestratorConfigurationModel describes the resource data model.

func (OrchestratorConfigurationModel) CreatePath added in v0.6.3

func (self OrchestratorConfigurationModel) CreatePath() string

func (OrchestratorConfigurationModel) DeletePath added in v0.6.3

func (self OrchestratorConfigurationModel) DeletePath() string

func (OrchestratorConfigurationModel) UpdatePath added in v0.6.3

func (self OrchestratorConfigurationModel) UpdatePath() string

type OrchestratorConfigurationResource added in v0.6.3

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

OrchestratorConfigurationResource defines the resource implementation.

func (*OrchestratorConfigurationResource) Configure added in v0.6.3

func (*OrchestratorConfigurationResource) Create added in v0.6.3

func (*OrchestratorConfigurationResource) Delete added in v0.6.3

func (*OrchestratorConfigurationResource) ImportState added in v0.6.3

func (*OrchestratorConfigurationResource) Metadata added in v0.6.3

func (*OrchestratorConfigurationResource) Read added in v0.6.3

func (*OrchestratorConfigurationResource) Schema added in v0.6.3

func (*OrchestratorConfigurationResource) Update added in v0.6.3

type OrchestratorConfigurationSecureStringAPIModel added in v0.6.4

type OrchestratorConfigurationSecureStringAPIModel struct {
	Value       string `json:"value"`
	IsPlainText bool   `json:"isPlainText"`
}

OrchestratorConfigurationSecureStringAPIModel describes the resource API model.

type OrchestratorConfigurationSecureStringModel added in v0.6.4

type OrchestratorConfigurationSecureStringModel struct {
	Value       types.String `tfsdk:"value"`
	IsPlainText types.Bool   `tfsdk:"is_plain_text"`
}

OrchestratorConfigurationSecureStringModel describes the resource data model.

func (OrchestratorConfigurationSecureStringModel) AttributeTypes added in v0.6.4

func (self OrchestratorConfigurationSecureStringModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*OrchestratorConfigurationSecureStringModel) FromAPI added in v0.6.4

func (OrchestratorConfigurationSecureStringModel) ToAPI added in v0.6.4

type OrchestratorConfigurationStringAPIModel added in v0.6.3

type OrchestratorConfigurationStringAPIModel struct {
	Value string `json:"value"`
}

OrchestratorConfigurationStringAPIModel describes the resource API model.

type OrchestratorConfigurationStringModel added in v0.6.3

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

OrchestratorConfigurationStringModel describes the resource data model.

func (OrchestratorConfigurationStringModel) AttributeTypes added in v0.6.3

func (self OrchestratorConfigurationStringModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*OrchestratorConfigurationStringModel) FromAPI added in v0.6.3

func (OrchestratorConfigurationStringModel) ToAPI added in v0.6.3

type OrchestratorConfigurationValueAPIModel added in v0.6.3

type OrchestratorConfigurationValueAPIModel struct {
	Boolean      *OrchestratorConfigurationBooleanAPIModel      `json:"boolean,omitempty"`
	String       *OrchestratorConfigurationStringAPIModel       `json:"string,omitempty"`
	SecureString *OrchestratorConfigurationSecureStringAPIModel `json:"secure-string,omitempty"`
}

OrchestratorConfigurationValueAPIModel describes the resource API model.

type OrchestratorConfigurationValueModel added in v0.6.3

type OrchestratorConfigurationValueModel struct {
	Boolean      types.Object `tfsdk:"boolean"`       // Of type OrchestratorConfigurationBooleanModel
	String       types.Object `tfsdk:"string"`        // Of type OrchestratorConfigurationStringModel
	SecureString types.Object `tfsdk:"secure_string"` // Of type ...SecureStringModel
}

OrchestratorConfigurationValueModel describes the resource data model.

func (OrchestratorConfigurationValueModel) AttributeTypes added in v0.6.3

func (self OrchestratorConfigurationValueModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*OrchestratorConfigurationValueModel) FromAPI added in v0.6.3

func (OrchestratorConfigurationValueModel) ToAPI added in v0.6.3

type OrchestratorTaskAPIModel added in v0.6.5

type OrchestratorTaskAPIModel struct {
	Id                  string `json:"id,omitempty"`
	Name                string `json:"name"`
	Description         string `json:"description"`
	Href                string `json:"href,omitempty"`
	RecurrenceCycle     string `json:"recurrence-cycle"`
	RecurrencePattern   string `json:"recurrence-pattern"`
	RecurrenceStartDate string `json:"recurrence-start-date"`
	RecurrenceEndDate   string `json:"recurrence-end-date,omitempty"`
	RunningInstanceId   string `json:"running-instance-id,omitempty"`
	StartMode           string `json:"start-mode"`
	State               string `json:"state,omitempty"`
	User                string `json:"user,omitempty"`

	InputParameters []any                            `json:"input-parameters"`
	Workflow        OrchestratorTaskWorkflowAPIModel `json:"workflow"`
}

OrchestratorTaskAPIModel describes the resource API model.

type OrchestratorTaskModel added in v0.6.5

type OrchestratorTaskModel struct {
	Id                  types.String      `tfsdk:"id"`
	Name                types.String      `tfsdk:"name"`
	Description         types.String      `tfsdk:"description"`
	Href                types.String      `tfsdk:"href"`
	RecurrenceCycle     types.String      `tfsdk:"recurrence_cycle"`
	RecurrencePattern   types.String      `tfsdk:"recurrence_pattern"`
	RecurrenceStartDate timetypes.RFC3339 `tfsdk:"recurrence_start_date"`
	RecurrenceEndDate   timetypes.RFC3339 `tfsdk:"recurrence_end_date"`
	RunningInstanceId   types.String      `tfsdk:"running_instance_id"`
	StartMode           types.String      `tfsdk:"start_mode"`
	State               types.String      `tfsdk:"state"`
	User                types.String      `tfsdk:"user"`

	Workflow types.Object `tfsdk:"workflow"`
}

OrchestratorTaskModel describes the resource data model.

func (OrchestratorTaskModel) CreatePath added in v0.6.5

func (self OrchestratorTaskModel) CreatePath() string

func (OrchestratorTaskModel) DeletePath added in v0.6.5

func (self OrchestratorTaskModel) DeletePath() string

func (*OrchestratorTaskModel) FromAPI added in v0.6.5

func (OrchestratorTaskModel) LockKey added in v0.6.5

func (self OrchestratorTaskModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of tasks. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (OrchestratorTaskModel) ReadPath added in v0.6.5

func (self OrchestratorTaskModel) ReadPath() string

func (OrchestratorTaskModel) String added in v0.6.5

func (self OrchestratorTaskModel) String() string

func (OrchestratorTaskModel) ToAPI added in v0.6.5

func (OrchestratorTaskModel) UpdatePath added in v0.6.5

func (self OrchestratorTaskModel) UpdatePath() string

type OrchestratorTaskResource added in v0.6.5

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

OrchestratorTaskResource defines the resource implementation.

func (*OrchestratorTaskResource) Configure added in v0.6.5

func (*OrchestratorTaskResource) Create added in v0.6.5

func (*OrchestratorTaskResource) Delete added in v0.6.5

func (*OrchestratorTaskResource) ImportState added in v0.6.5

func (*OrchestratorTaskResource) Metadata added in v0.6.5

func (*OrchestratorTaskResource) Read added in v0.6.5

func (*OrchestratorTaskResource) Schema added in v0.6.5

func (*OrchestratorTaskResource) Update added in v0.6.5

type OrchestratorTaskWorkflowAPIModel added in v0.6.5

type OrchestratorTaskWorkflowAPIModel struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

OrchestratorTaskWorkflowAPIModel describes the resource API model.

type OrchestratorTaskWorkflowModel added in v0.6.5

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

OrchestratorTaskWorkflowModel describes the resource data model.

func (OrchestratorTaskWorkflowModel) AttributeTypes added in v0.6.5

func (self OrchestratorTaskWorkflowModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*OrchestratorTaskWorkflowModel) FromAPI added in v0.6.5

func (OrchestratorTaskWorkflowModel) ToAPI added in v0.6.5

type OrchestratorWorkflowContentAPIModel added in v0.6.2

type OrchestratorWorkflowContentAPIModel struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"display-name"`
	Description string `json:"description"`
	CategoryId  string `json:"category-id"`
	Version     string `json:"version"`

	AllowedOperations    string           `json:"allowed-operations"`
	Attrib               any              `json:"attrib"`
	ObjectName           string           `json:"object-name"`
	Position             PositionAPIModel `json:"position,omitempty"`
	Presentation         any              `json:"presentation,omitempty"`
	RestartMode          int32            `json:"restartMode"`
	ResumeFromFailedMode int32            `json:"resumeFromFailedMode"`
	RootName             string           `json:"root-name"`
	WorkflowItem         any              `json:"workflow-item,omitempty"`

	Input  OrchestratorWorkflowIOAPIModel `json:"input"`
	Output OrchestratorWorkflowIOAPIModel `json:"output"`

	ApiVersion    string `json:"api-version"`
	EditorVersion string `json:"editor-version"`
}

OrchestratorWorkflowContentAPIModel describes the version API model.

type OrchestratorWorkflowCreateAPIModel added in v0.6.2

type OrchestratorWorkflowCreateAPIModel struct {
	Id         string `json:"id,omitempty"`
	Name       string `json:"name"`
	CategoryId string `json:"category-id"`
}

OrchestratorWorkflowCreateAPIModel describes the resource create API model.

type OrchestratorWorkflowIOAPIModel added in v0.6.2

type OrchestratorWorkflowIOAPIModel struct {
	Param []ParameterAPIModel `json:"param"`
}

type OrchestratorWorkflowModel added in v0.6.2

type OrchestratorWorkflowModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	CategoryId  types.String `tfsdk:"category_id"`
	Version     types.String `tfsdk:"version"`
	VersionId   types.String `tfsdk:"version_id"`

	AllowedOperations    types.String         `tfsdk:"allowed_operations"`
	Attrib               jsontypes.Normalized `tfsdk:"attrib"`
	ObjectName           types.String         `tfsdk:"object_name"`
	Position             types.Object         `tfsdk:"position"` // Of type PositionModel
	Presentation         jsontypes.Normalized `tfsdk:"presentation"`
	RestartMode          types.Int32          `tfsdk:"restart_mode"`
	ResumeFromFailedMode types.Int32          `tfsdk:"resume_from_failed_mode"`
	RootName             types.String         `tfsdk:"root_name"`
	WorkflowItem         jsontypes.Normalized `tfsdk:"workflow_item"`

	InputParameters  types.List `tfsdk:"input_parameters"`
	OutputParameters types.List `tfsdk:"output_parameters"`

	InputForms jsontypes.Normalized `tfsdk:"input_forms"`

	ApiVersion    types.String `tfsdk:"api_version"`
	EditorVersion types.String `tfsdk:"editor_version"`

	ForceDelete types.Bool `tfsdk:"force_delete"`
}

OrchestratorWorkflowModel describes the resource data model.

func (OrchestratorWorkflowModel) CreatePath added in v0.6.2

func (self OrchestratorWorkflowModel) CreatePath() string

func (OrchestratorWorkflowModel) DeletePath added in v0.6.2

func (self OrchestratorWorkflowModel) DeletePath() string

func (*OrchestratorWorkflowModel) FromContentAPI added in v0.6.2

func (self *OrchestratorWorkflowModel) FromContentAPI(
	ctx context.Context,
	raw OrchestratorWorkflowContentAPIModel,
	response *resty.Response,
) diag.Diagnostics

Save response from content API endpoint.

func (*OrchestratorWorkflowModel) FromCreateAPI added in v0.6.2

Save response from create API endpoint.

func (*OrchestratorWorkflowModel) FromFormAPI added in v0.6.2

func (self *OrchestratorWorkflowModel) FromFormAPI(ctx context.Context, raw any) diag.Diagnostics

Save response from form API endpoint.

func (*OrchestratorWorkflowModel) FromVersionAPI added in v0.6.2

Save response from version API endpoint.

func (OrchestratorWorkflowModel) LockKey added in v0.6.2

func (self OrchestratorWorkflowModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of vRO workflows. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (OrchestratorWorkflowModel) ReadContentPath added in v0.6.2

func (self OrchestratorWorkflowModel) ReadContentPath() string

func (OrchestratorWorkflowModel) ReadFormPath added in v0.6.2

func (self OrchestratorWorkflowModel) ReadFormPath() string

func (OrchestratorWorkflowModel) ReadPath added in v0.6.2

func (self OrchestratorWorkflowModel) ReadPath() string

func (OrchestratorWorkflowModel) String added in v0.6.2

func (self OrchestratorWorkflowModel) String() string

func (OrchestratorWorkflowModel) ToContentAPI added in v0.6.2

Prepare data for calling the content API endpoint.

func (OrchestratorWorkflowModel) ToCreateAPI added in v0.6.2

Prepare data for calling the create API endpoint.

func (OrchestratorWorkflowModel) ToVersionAPI added in v0.6.2

Prepare data for calling the version API endpoint.

func (OrchestratorWorkflowModel) UpdatePath added in v0.6.2

func (self OrchestratorWorkflowModel) UpdatePath() string

type OrchestratorWorkflowResource added in v0.6.2

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

OrchestratorWorkflowResource defines the resource implementation.

func (*OrchestratorWorkflowResource) Configure added in v0.6.2

func (*OrchestratorWorkflowResource) Create added in v0.6.2

func (*OrchestratorWorkflowResource) Delete added in v0.6.2

func (*OrchestratorWorkflowResource) ImportState added in v0.6.2

func (*OrchestratorWorkflowResource) Metadata added in v0.6.2

func (*OrchestratorWorkflowResource) Read added in v0.6.2

func (*OrchestratorWorkflowResource) Schema added in v0.6.2

func (*OrchestratorWorkflowResource) Update added in v0.6.2

type OrchestratorWorkflowVersionAPIModel added in v0.6.2

type OrchestratorWorkflowVersionAPIModel struct {
	InputForms any                                 `json:"inputForms"`
	ParentId   string                              `json:"parentId"`
	Schema     OrchestratorWorkflowContentAPIModel `json:"workflowSchema"`
}

type OrchestratorWorkflowVersionResponseAPIModel added in v0.6.2

type OrchestratorWorkflowVersionResponseAPIModel struct {
	ObjectId string `json:"objectId"`
}

type OrderedPropertiesAPIModel added in v0.4.0

type OrderedPropertiesAPIModel struct {
	Names []string
	Data  map[string]PropertyAPIModel
}

OrderedPropertiesAPIModel describes the resource API model. Refers

JSON and Go        https://blog.golang.org/json-and-go
Go-Ordered-JSON    https://github.com/virtuald/go-ordered-json
Python OrderedDict https://github.com/python/cpython/blob/2.7/Lib/collections.py#L38
port OrderedDict   https://github.com/cevaris/ordered_map

func (OrderedPropertiesAPIModel) Get added in v0.4.0

Return a property matching given name, nil if not exists.

func (*OrderedPropertiesAPIModel) Init added in v0.4.0

func (self *OrderedPropertiesAPIModel) Init()

Reset the structure (prepare it for collecting new data).

func (OrderedPropertiesAPIModel) Items added in v0.4.0

Return a slice with given the name, property pair in insertion order.

func (OrderedPropertiesAPIModel) MarshalJSON added in v0.4.0

func (self OrderedPropertiesAPIModel) MarshalJSON() ([]byte, error)

Implement type json.Marshaler interface. Will be called when marshaling OrderedPropertiesAPIModel.

func (*OrderedPropertiesAPIModel) Pop added in v0.4.0

func (self *OrderedPropertiesAPIModel) Pop(
	name string,
) (PropertyAPIModel, bool)

Drop the property if present. Return the property (if found) and a flag indicating if the property was found.

func (*OrderedPropertiesAPIModel) Set added in v0.4.0

func (self *OrderedPropertiesAPIModel) Set(
	name string,
	property PropertyAPIModel,
) bool

Set the property by name, this will remember the order of insertion. The initial insertion order is kept even if the property is overwritten. Returns a boolean indicating if the value is newly inserted (not overwritten).

func (*OrderedPropertiesAPIModel) UnmarshalJSON added in v0.4.0

func (self *OrderedPropertiesAPIModel) UnmarshalJSON(data []byte) error

Implement type json.Unmarshaler interface. Will be called when unmarshaling OrderedPropertiesAPIModel.

type OrderedPropertiesAPIModelItem added in v0.4.0

type OrderedPropertiesAPIModelItem struct {
	Name     string
	Property PropertyAPIModel
}

type OrderedPropertiesModel added in v0.4.0

type OrderedPropertiesModel []PropertyModel

OrderedPropertiesModel describes the resource data model.

func (*OrderedPropertiesModel) FromAPI added in v0.4.0

func (OrderedPropertiesModel) ToAPI added in v0.4.0

type ParameterAPIModel added in v0.6.2

type ParameterAPIModel struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

ParameterAPIModel describes the resource API model.

func ParameterModelListToAPI added in v0.6.2

func ParameterModelListToAPI(
	ctx context.Context,
	parametersList types.List,
	name string,
) ([]ParameterAPIModel, diag.Diagnostics)

type ParameterModel added in v0.6.2

type ParameterModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`
}

ParameterModel describes the resource data model.

func (ParameterModel) AttributeTypes added in v0.6.3

func (self ParameterModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*ParameterModel) FromAPI added in v0.6.2

func (self *ParameterModel) FromAPI(raw ParameterAPIModel)

func (ParameterModel) String added in v0.6.2

func (self ParameterModel) String() string

func (ParameterModel) ToAPI added in v0.6.2

func (self ParameterModel) ToAPI() ParameterAPIModel

type PolicyAPIModel added in v0.6.3

type PolicyAPIModel struct {
	Id              string `json:"id,omitempty"`
	Name            string `json:"name"`
	Description     string `json:"description"`
	EnforcementType string `json:"enforcementType"`
	TypeId          string `json:"typeId"`

	Criteria      any `json:"criteria,omitempty"`
	ScopeCriteria any `json:"scopeCriteria,omitempty"`
	Definition    any `json:"definition"`

	CreatedAt     string `json:"createdAt,omitempty"`
	CreatedBy     string `json:"createdBy,omitempty"`
	LastUpdatedAt string `json:"lastUpdatedAt,omitempty"`
	LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`

	ProjectId string `json:"projectId,omitempty"`
	OrgId     string `json:"orgId,omitempty"`
}

PolicyAPIModel describes the resource API model.

type PolicyModel added in v0.6.3

type PolicyModel struct {
	Id              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	Description     types.String `tfsdk:"description"`
	EnforcementType types.String `tfsdk:"enforcement_type"`
	TypeId          types.String `tfsdk:"type_id"`

	Criteria      jsontypes.Normalized `tfsdk:"criteria"`
	ScopeCriteria jsontypes.Normalized `tfsdk:"scope_criteria"`
	Definition    jsontypes.Normalized `tfsdk:"definition"`

	CreatedAt     timetypes.RFC3339 `tfsdk:"created_at"`
	CreatedBy     types.String      `tfsdk:"created_by"`
	LastUpdatedAt timetypes.RFC3339 `tfsdk:"last_updated_at"`
	LastUpdatedBy types.String      `tfsdk:"last_updated_by"`

	ProjectId types.String `tfsdk:"project_id"`
	OrgId     types.String `tfsdk:"org_id"`
}

PolicyModel describes the resource data model.

func (PolicyModel) CreatePath added in v0.6.3

func (self PolicyModel) CreatePath() string

func (PolicyModel) DeletePath added in v0.6.3

func (self PolicyModel) DeletePath() string

func (*PolicyModel) FromAPI added in v0.6.3

func (self *PolicyModel) FromAPI(ctx context.Context, raw PolicyAPIModel) diag.Diagnostics

func (PolicyModel) GetType added in v0.6.3

func (self PolicyModel) GetType() string

Return policy type (e.g. Approval, Resource Quota, ...)

func (PolicyModel) LockKey added in v0.6.3

func (self PolicyModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of policies. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (PolicyModel) ReadPath added in v0.6.3

func (self PolicyModel) ReadPath() string

func (PolicyModel) String added in v0.6.3

func (self PolicyModel) String() string

func (PolicyModel) ToAPI added in v0.6.3

func (PolicyModel) UpdatePath added in v0.6.3

func (self PolicyModel) UpdatePath() string

type PolicyResource added in v0.6.3

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

PolicyResource defines the resource implementation.

func (*PolicyResource) Configure added in v0.6.3

func (*PolicyResource) Create added in v0.6.3

func (self *PolicyResource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

func (*PolicyResource) Delete added in v0.6.3

func (self *PolicyResource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

func (*PolicyResource) ImportState added in v0.6.3

func (*PolicyResource) Metadata added in v0.6.3

func (self *PolicyResource) Metadata(
	ctx context.Context,
	req resource.MetadataRequest,
	resp *resource.MetadataResponse,
)

func (*PolicyResource) Read added in v0.6.3

func (self *PolicyResource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (*PolicyResource) Schema added in v0.6.3

func (self *PolicyResource) Schema(
	ctx context.Context,
	req resource.SchemaRequest,
	resp *resource.SchemaResponse,
)

func (*PolicyResource) Update added in v0.6.3

func (self *PolicyResource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

type PositionAPIModel added in v0.6.2

type PositionAPIModel struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

PositionAPIModel describes the resource API model.

type PositionModel added in v0.6.2

type PositionModel struct {
	X types.Float64 `tfsdk:"x"`
	Y types.Float64 `tfsdk:"y"`
}

PositionModel describes the resource data model.

func (PositionModel) AttributeTypes added in v0.6.5

func (self PositionModel) AttributeTypes() map[string]attr.Type

Used to convert structure to a types.Object.

func (*PositionModel) FromAPI added in v0.6.2

func (self *PositionModel) FromAPI(raw PositionAPIModel)

func (PositionModel) ToAPI added in v0.6.2

func (self PositionModel) ToAPI() PositionAPIModel

type ProjectAPIModel added in v0.5.0

type ProjectAPIModel struct {
	Id               string `json:"id,omitempty"`
	Name             string `json:"name"`
	OperationTimeout int32  `json:"operationTimeout"`
	SharedResources  bool   `json:"sharedResources"`

	Constraints ProjectConstraintsAPIModel `json:"constraints"`
	Properties  map[string]string          `json:"properties"`

	OrgId string `json:"orgId,omitempty"`
}

ProjectAPIModel describes the resource API model.

type ProjectConstraintsAPIModel added in v0.5.0

type ProjectConstraintsAPIModel struct {
}

ProjectConstraintsAPIModel describes the resource API model.

type ProjectConstraintsModel added in v0.5.0

type ProjectConstraintsModel struct {
}

ProjectConstraintsModel describes the resource data model.

func (*ProjectConstraintsModel) FromAPI added in v0.5.0

func (ProjectConstraintsModel) String added in v0.5.0

func (self ProjectConstraintsModel) String() string

func (ProjectConstraintsModel) ToAPI added in v0.5.0

type ProjectMembershipAPIModel added in v0.5.0

type ProjectMembershipAPIModel struct {
	Email string `json:"email"`
	Type  string `json:"type"`
	Role  string `json:"role"`
}

ProjectMembershipAPIModel describes the resource API model.

type ProjectMembershipModel added in v0.5.0

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

ProjectMembershipModel describes the resource data model.

func (*ProjectMembershipModel) FromAPI added in v0.5.0

func (ProjectMembershipModel) String added in v0.5.0

func (self ProjectMembershipModel) String() string

func (ProjectMembershipModel) ToAPI added in v0.5.0

type ProjectModel added in v0.5.0

type ProjectModel struct {
	Id               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	OperationTimeout types.Int32  `tfsdk:"operation_timeout"`
	SharedResources  types.Bool   `tfsdk:"shared_resources"`

	Constraints ProjectConstraintsModel `tfsdk:"constraints"`
	Properties  types.Map               `tfsdk:"properties"`

	OrgId types.String `tfsdk:"org_id"`
}

ProjectModel describes the resource data model.

func (ProjectModel) CreatePath added in v0.5.0

func (self ProjectModel) CreatePath() string

func (ProjectModel) DeletePath added in v0.5.0

func (self ProjectModel) DeletePath() string

func (*ProjectModel) FromAPI added in v0.5.0

func (self *ProjectModel) FromAPI(
	ctx context.Context,
	raw ProjectAPIModel,
) diag.Diagnostics

func (ProjectModel) LockKey added in v0.5.0

func (self ProjectModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of projects. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (ProjectModel) ReadPath added in v0.5.0

func (self ProjectModel) ReadPath() string

func (ProjectModel) String added in v0.5.0

func (self ProjectModel) String() string

func (ProjectModel) ToAPI added in v0.5.0

func (ProjectModel) UpdatePath added in v0.5.0

func (self ProjectModel) UpdatePath() string

type ProjectResource added in v0.5.0

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

ProjectResource defines the resource implementation.

func (*ProjectResource) Configure added in v0.5.0

func (*ProjectResource) Create added in v0.5.0

func (self *ProjectResource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

func (*ProjectResource) Delete added in v0.5.0

func (self *ProjectResource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

func (*ProjectResource) ImportState added in v0.5.0

func (*ProjectResource) Metadata added in v0.5.0

func (*ProjectResource) Read added in v0.5.0

func (self *ProjectResource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (*ProjectResource) Schema added in v0.5.0

func (self *ProjectResource) Schema(
	ctx context.Context,
	req resource.SchemaRequest,
	resp *resource.SchemaResponse,
)

func (*ProjectResource) Update added in v0.5.0

func (self *ProjectResource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

type PropertyAPIModel added in v0.2.3

type PropertyAPIModel struct {
	Title            string `json:"title" yaml:"title"`
	Description      string `json:"description" yaml:"description"`
	Type             string `json:"type" yaml:"type"`
	Default          any    `json:"default,omitempty" yaml:"default"`
	Encrypted        bool   `json:"encrypted" yaml:"encrypted"`
	ReadOnly         bool   `json:"readOnly" yaml:"readOnly"`
	RecreateOnUpdate bool   `json:"recreateOnUpdate" yaml:"recreateOnUpdate"`

	// Specifications
	Minimum   *int64  `json:"minimum,omitempty" yaml:"minimum,omitempty"`
	Maximum   *int64  `json:"maximum,omitempty" yaml:"maximum,omitempty"`
	MinLength *int32  `json:"minLength,omitempty" yaml:"minLength,omitempty"`
	MaxLength *int32  `json:"maxLength,omitempty" yaml:"maxLength,omitempty"`
	Pattern   *string `json:"pattern,omitempty" yaml:"pattern,omitempty"`
	/*Items*/
	OneOf []PropertyOneOfAPIModel `json:"oneOf,omitempty" yaml:"oneOf,omitempty"`
}

PropertyAPIModel describes the resource API model.

type PropertyGroupAPIModel added in v0.3.0

type PropertyGroupAPIModel struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`

	Properties UnorderedPropertiesAPIModel `json:"properties"`

	ProjectId string `json:"projectId,omitempty"`
	OrgId     string `json:"orgId,omitempty"`
}

PropertyGroupAPIModel describes the resource API model.

type PropertyGroupModel added in v0.3.0

type PropertyGroupModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`

	Properties UnorderedPropertiesModel `tfsdk:"properties"`

	ProjectId types.String `tfsdk:"project_id"`
	OrgId     types.String `tfsdk:"org_id"`
}

PropertyGroupModel describes the resource data model.

func (PropertyGroupModel) CreatePath added in v0.5.0

func (self PropertyGroupModel) CreatePath() string

func (PropertyGroupModel) DeletePath added in v0.5.0

func (self PropertyGroupModel) DeletePath() string

func (*PropertyGroupModel) FromAPI added in v0.3.0

func (PropertyGroupModel) LockKey added in v0.5.0

func (self PropertyGroupModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of property groups. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (PropertyGroupModel) ReadPath added in v0.5.0

func (self PropertyGroupModel) ReadPath() string

func (PropertyGroupModel) String added in v0.3.0

func (self PropertyGroupModel) String() string

func (PropertyGroupModel) ToAPI added in v0.3.0

func (PropertyGroupModel) UpdatePath added in v0.5.0

func (self PropertyGroupModel) UpdatePath() string

type PropertyGroupResource added in v0.3.0

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

PropertyGroupResource defines the resource implementation.

func (*PropertyGroupResource) Configure added in v0.3.0

func (*PropertyGroupResource) Create added in v0.3.0

func (*PropertyGroupResource) Delete added in v0.3.0

func (*PropertyGroupResource) ImportState added in v0.3.0

func (*PropertyGroupResource) Metadata added in v0.3.0

func (*PropertyGroupResource) Read added in v0.3.0

func (*PropertyGroupResource) Schema added in v0.3.0

func (*PropertyGroupResource) Update added in v0.3.0

type PropertyModel added in v0.2.3

type PropertyModel struct {
	Name             types.String         `tfsdk:"name"`
	Title            types.String         `tfsdk:"title"`
	Description      types.String         `tfsdk:"description"`
	Type             types.String         `tfsdk:"type"`
	Default          jsontypes.Normalized `tfsdk:"default"`
	Encrypted        types.Bool           `tfsdk:"encrypted"`
	ReadOnly         types.Bool           `tfsdk:"read_only"`
	RecreateOnUpdate types.Bool           `tfsdk:"recreate_on_update"`

	// Specifications
	Minimum   types.Int64  `tfsdk:"minimum"`
	Maximum   types.Int64  `tfsdk:"maximum"`
	MinLength types.Int32  `tfsdk:"min_length"`
	MaxLength types.Int32  `tfsdk:"max_length"`
	Pattern   types.String `tfsdk:"pattern"`
	/*Items*/
	OneOf []PropertyOneOfModel `tfsdk:"one_of"`
}

CustomResourcPropertyeModel describes the resource data model.

func (*PropertyModel) FromAPI added in v0.2.3

func (self *PropertyModel) FromAPI(
	ctx context.Context,
	name string,
	raw PropertyAPIModel,
) diag.Diagnostics

func (PropertyModel) String added in v0.4.0

func (self PropertyModel) String() string

func (PropertyModel) ToAPI added in v0.2.3

type PropertyOneOfAPIModel added in v0.2.3

type PropertyOneOfAPIModel struct {
	Const     string `json:"const"`
	Title     string `json:"title"`
	Encrypted bool   `json:"encrypted"`
}

PropertyOneOfAPIModel describes the resource API model.

type PropertyOneOfModel added in v0.2.3

type PropertyOneOfModel struct {
	Const     types.String `tfsdk:"const"`
	Title     types.String `tfsdk:"title"`
	Encrypted types.Bool   `tfsdk:"encrypted"`
}

PropertyOneOfModel describes the resource data model.

func (*PropertyOneOfModel) FromAPI added in v0.2.3

func (self *PropertyOneOfModel) FromAPI(raw PropertyOneOfAPIModel)

func (PropertyOneOfModel) ToAPI added in v0.2.3

type RWMutexKV added in v0.5.0

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

RWMutexKV is a simple key/value store for arbitrary read-write mutexes.

It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on. The lock can be held by an arbitrary number of readers or a single writer. See https://pkg.go.dev/sync#RWMutex for further details.

func NewRWMutexKV added in v0.5.0

func NewRWMutexKV() *RWMutexKV

Returns a properly initialized RWMutexKV.

func (*RWMutexKV) Lock added in v0.5.0

func (self *RWMutexKV) Lock(ctx context.Context, key string)

Lock the named mutex for writing purposes (exclusive). If the lock is already locked for reading or writing, blocks until the lock is available.

func (*RWMutexKV) RLock added in v0.5.0

func (self *RWMutexKV) RLock(ctx context.Context, key string)

Lock the named mutex for reading purposes (concurrent friendly). If the lock is already locked for writing, blocks until the lock is available.

func (*RWMutexKV) RUnlock added in v0.5.0

func (self *RWMutexKV) RUnlock(ctx context.Context, key string)

Release a single lock for reading. It is a run-time error if the mutex is not locked for reading.

func (*RWMutexKV) Unlock added in v0.5.0

func (self *RWMutexKV) Unlock(ctx context.Context, key string)

Release a single lock for writing. It is a run-time error if the mutex is not locked for writing.

type ResourceActionAPIModel added in v0.2.3

type ResourceActionAPIModel struct {
	Id           string                         `json:"id,omitempty"`
	Name         string                         `json:"name"`
	DisplayName  string                         `json:"displayName"`
	Description  string                         `json:"description"`
	ProviderName string                         `json:"providerName"`
	ResourceType string                         `json:"resourceType"`
	RunnableItem ResourceActionRunnableAPIModel `json:"runnableItem"`
	Criteria     any                            `json:"criteria,omitempty"`
	Status       string                         `json:"status"`

	FormDefinition *CustomFormAPIModel `json:"formDefinition,omitempty"`

	ProjectId string `json:"projectId,omitempty"`
	OrgId     string `json:"orgId,omitempty"`
}

ResourceActionAPIModel describes the resource API model.

type ResourceActionModel added in v0.2.3

type ResourceActionModel struct {
	Id           types.String                `tfsdk:"id"`
	Name         types.String                `tfsdk:"name"`
	DisplayName  types.String                `tfsdk:"display_name"`
	Description  types.String                `tfsdk:"description"`
	ProviderName types.String                `tfsdk:"provider_name"`
	ResourceId   types.String                `tfsdk:"resource_id"`
	ResourceType types.String                `tfsdk:"resource_type"`
	RunnableItem ResourceActionRunnableModel `tfsdk:"runnable_item"`
	Criteria     jsontypes.Normalized        `tfsdk:"criteria"`
	Status       types.String                `tfsdk:"status"`

	// Of type CustomFormModel
	FormDefinition types.Object `tfsdk:"form_definition"`

	ProjectId types.String `tfsdk:"project_id"`
	OrgId     types.String `tfsdk:"org_id"`
}

ResourceActionModel describes the resource data model.

func (ResourceActionModel) CreatePath added in v0.5.0

func (self ResourceActionModel) CreatePath() string

func (ResourceActionModel) DeletePath added in v0.5.0

func (self ResourceActionModel) DeletePath() string

func (ResourceActionModel) ForCustom added in v0.5.0

func (self ResourceActionModel) ForCustom() bool

func (*ResourceActionModel) FromAPI added in v0.2.3

func (ResourceActionModel) LockKey added in v0.5.0

func (self ResourceActionModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of resource actions. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (ResourceActionModel) ReadPath added in v0.5.0

func (self ResourceActionModel) ReadPath() string

func (ResourceActionModel) String added in v0.2.3

func (self ResourceActionModel) String() string

func (ResourceActionModel) ToAPI added in v0.2.3

func (ResourceActionModel) UpdatePath added in v0.5.0

func (self ResourceActionModel) UpdatePath() string

type ResourceActionResource added in v0.2.3

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

ResourceActionResource defines the resource implementation.

func (*ResourceActionResource) Configure added in v0.2.3

func (*ResourceActionResource) Create added in v0.2.3

func (*ResourceActionResource) Delete added in v0.2.3

func (*ResourceActionResource) ImportState added in v0.2.3

func (*ResourceActionResource) ManageIt added in v0.5.0

Implement the magic behind the create, update and delete methods.

func (*ResourceActionResource) Metadata added in v0.2.3

func (*ResourceActionResource) Read added in v0.2.3

func (*ResourceActionResource) Schema added in v0.2.3

func (*ResourceActionResource) Update added in v0.2.3

type ResourceActionRunnableAPIModel added in v0.2.3

type ResourceActionRunnableAPIModel struct {
	Id               string              `json:"id,omitempty"`
	Name             string              `json:"name"`
	Type             string              `json:"type"`
	ProjectId        string              `json:"projectId"`
	InputParameters  []ParameterAPIModel `json:"inputParameters"`
	OutputParameters []ParameterAPIModel `json:"outputParameters"`
}

ResourceActionRunnableAPIModel describes the resource API model.

type ResourceActionRunnableModel added in v0.2.3

type ResourceActionRunnableModel struct {
	Id               types.String     `tfsdk:"id"`
	Name             types.String     `tfsdk:"name"`
	Type             types.String     `tfsdk:"type"`
	ProjectId        types.String     `tfsdk:"project_id"`
	InputParameters  []ParameterModel `tfsdk:"input_parameters"`
	OutputParameters []ParameterModel `tfsdk:"output_parameters"`
}

ResourceActionRunnableModel describes the resource data model.

func (*ResourceActionRunnableModel) FromAPI added in v0.2.3

func (*ResourceActionRunnableModel) String added in v0.5.0

func (self *ResourceActionRunnableModel) String() string

func (ResourceActionRunnableModel) ToAPI added in v0.2.3

type SecretAPIModel added in v0.2.2

type SecretAPIModel struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name"`
	// Value
	Description string   `json:"description"`
	OrgId       string   `json:"orgId"`
	OrgScoped   bool     `json:"orgScoped"`
	ProjectIds  []string `json:"projectIds"`
	CreatedAt   string   `json:"createdAt"`
	CreatedBy   string   `json:"createdBy"`
	UpdatedAt   string   `json:"updatedAt"`
	UpdatedBy   string   `json:"updatedBy"`
}

SecretAPIModel describes the secret API model.

type SecretDataSource added in v0.2.2

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

SecretDataSource defines the data source implementation.

func (*SecretDataSource) Configure added in v0.2.2

func (*SecretDataSource) Metadata added in v0.2.2

func (*SecretDataSource) Read added in v0.2.2

func (*SecretDataSource) Schema added in v0.2.2

type SecretModel added in v0.2.2

type SecretModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
	// Value
	Description types.String `tfsdk:"description"`
	OrgId       types.String `tfsdk:"org_id"`
	OrgScoped   types.Bool   `tfsdk:"org_scoped"`
	ProjectIds  types.Set    `tfsdk:"project_ids"`
	CreatedAt   types.String `tfsdk:"created_at"`
	CreatedBy   types.String `tfsdk:"created_by"`
	UpdatedAt   types.String `tfsdk:"updated_at"`
	UpdatedBy   types.String `tfsdk:"updated_by"`
}

SecretModel describes the secret model.

func (*SecretModel) FromAPI added in v0.2.2

func (self *SecretModel) FromAPI(
	ctx context.Context,
	raw SecretAPIModel,
) diag.Diagnostics

type SubscriptionAPIModel added in v0.1.1

type SubscriptionAPIModel struct {
	Id                  string `json:"id,omitempty"`
	Name                string `json:"name"`
	Description         string `json:"description"`
	Type                string `json:"type"`
	RunnableType        string `json:"runnableType"`
	RunnableId          string `json:"runnableId"`
	RecoverRunnableType string `json:"recoverRunnableType"`
	RecoverRunnableId   string `json:"recoverRunnableId"`
	EventTopicId        string `json:"eventTopicId"`

	Constraints map[string][]string `json:"constraints"`

	Blocking   bool   `json:"blocking"`
	Broadcast  bool   `json:"broadcast"`
	Contextual bool   `json:"contextual"`
	Criteria   string `json:"criteria"`
	Disabled   bool   `json:"disabled"`
	Priority   int64  `json:"priority"`
	System     bool   `json:"system"`
	Timeout    int64  `json:"timeout"`

	OrgId        string `json:"orgId"`
	OwnerId      string `json:"ownerId"`
	SubscriberId string `json:"subscriberId"`
}

SubscriptionAPIModel describes the resource API model.

type SubscriptionModel added in v0.1.1

type SubscriptionModel struct {
	Id                  types.String `tfsdk:"id"`
	Name                types.String `tfsdk:"name"`
	Description         types.String `tfsdk:"description"`
	Type                types.String `tfsdk:"type"`
	RunnableType        types.String `tfsdk:"runnable_type"`
	RunnableId          types.String `tfsdk:"runnable_id"`
	RecoverRunnableType types.String `tfsdk:"recover_runnable_type"`
	RecoverRunnableId   types.String `tfsdk:"recover_runnable_id"`
	EventTopicId        types.String `tfsdk:"event_topic_id"`

	ProjectIds types.Set `tfsdk:"project_ids"`

	Blocking   types.Bool   `tfsdk:"blocking"`
	Broadcast  types.Bool   `tfsdk:"broadcast"`
	Contextual types.Bool   `tfsdk:"contextual"`
	Criteria   types.String `tfsdk:"criteria"`
	Disabled   types.Bool   `tfsdk:"disabled"`
	Priority   types.Int64  `tfsdk:"priority"`
	System     types.Bool   `tfsdk:"system"`
	Timeout    types.Int64  `tfsdk:"timeout"`

	OrgId        types.String `tfsdk:"org_id"`
	OwnerId      types.String `tfsdk:"owner_id"`
	SubscriberId types.String `tfsdk:"subscriber_id"`
}

SubscriptionModel describes the resource data model.

func (SubscriptionModel) CreatePath added in v0.5.0

func (self SubscriptionModel) CreatePath() string

func (SubscriptionModel) DeletePath added in v0.5.0

func (self SubscriptionModel) DeletePath() string

func (*SubscriptionModel) FromAPI added in v0.1.1

func (*SubscriptionModel) GenerateId added in v0.1.1

func (self *SubscriptionModel) GenerateId()

func (SubscriptionModel) LockKey added in v0.5.0

func (self SubscriptionModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of subscriptions. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (SubscriptionModel) ReadPath added in v0.5.0

func (self SubscriptionModel) ReadPath() string

func (SubscriptionModel) String added in v0.2.3

func (self SubscriptionModel) String() string

func (SubscriptionModel) ToAPI added in v0.1.1

func (SubscriptionModel) UpdatePath added in v0.5.0

func (self SubscriptionModel) UpdatePath() string

type SubscriptionResource added in v0.1.1

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

SubscriptionResource defines the resource implementation.

func (*SubscriptionResource) Configure added in v0.1.1

func (*SubscriptionResource) Create added in v0.1.1

func (*SubscriptionResource) Delete added in v0.1.1

func (*SubscriptionResource) ImportState added in v0.1.1

func (*SubscriptionResource) Metadata added in v0.1.1

func (*SubscriptionResource) Read added in v0.1.1

func (*SubscriptionResource) Schema added in v0.1.1

func (*SubscriptionResource) Update added in v0.1.1

type TagAPIModel added in v0.6.4

type TagAPIModel struct {
	Id    string `json:"id,omitempty"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

TagAPIModel describes the resource API model.

type TagListAPIModel added in v0.6.4

type TagListAPIModel struct {
	Content          []TagAPIModel `json:"content"`
	TotalElements    int           `json:"totalElements"`
	NumberOfElements int           `json:"numberOfElements"`
}

type TagModel added in v0.6.4

type TagModel struct {
	Id    types.String `tfsdk:"id"`
	Key   types.String `tfsdk:"key"`
	Value types.String `tfsdk:"value"`

	ForceDelete   types.Bool `tfsdk:"force_delete"`
	KeepOnDestroy types.Bool `tfsdk:"keep_on_destroy"`
}

TagModel describes the resource data model.

func (TagModel) CreatePath added in v0.6.4

func (self TagModel) CreatePath() string

func (TagModel) DeletePath added in v0.6.4

func (self TagModel) DeletePath() string

func (*TagModel) FromAPI added in v0.6.4

func (self *TagModel) FromAPI(raw TagAPIModel)

func (TagModel) ListPath added in v0.6.4

func (self TagModel) ListPath() string

func (TagModel) LockKey added in v0.6.4

func (self TagModel) LockKey() string

Return an appropriate key that can be used for naming mutexes. Create: Identifier can be used to prevent concurrent creation of tags. Read Update Delete: Identifier can be used to prevent concurrent modifications on the instance.

func (TagModel) ReadPath added in v0.6.4

func (self TagModel) ReadPath() string

func (TagModel) String added in v0.6.4

func (self TagModel) String() string

func (TagModel) ToAPI added in v0.6.4

func (self TagModel) ToAPI() TagAPIModel

func (TagModel) UpdatePath added in v0.6.4

func (self TagModel) UpdatePath() string

type TagResource added in v0.6.4

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

TagResource defines the resource implementation.

func (*TagResource) Configure added in v0.6.4

func (self *TagResource) Configure(
	ctx context.Context,
	req resource.ConfigureRequest,
	resp *resource.ConfigureResponse,
)

func (*TagResource) Create added in v0.6.4

func (self *TagResource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

func (*TagResource) Delete added in v0.6.4

func (self *TagResource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

func (*TagResource) ImportState added in v0.6.4

func (self *TagResource) ImportState(
	ctx context.Context,
	req resource.ImportStateRequest,
	resp *resource.ImportStateResponse,
)

func (*TagResource) Metadata added in v0.6.4

func (self *TagResource) Metadata(
	ctx context.Context,
	req resource.MetadataRequest,
	resp *resource.MetadataResponse,
)

func (*TagResource) Read added in v0.6.4

func (self *TagResource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (*TagResource) Schema added in v0.6.4

func (self *TagResource) Schema(
	ctx context.Context,
	req resource.SchemaRequest,
	resp *resource.SchemaResponse,
)

func (*TagResource) Update added in v0.6.4

func (self *TagResource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

type UnorderedPropertiesAPIModel added in v0.4.0

type UnorderedPropertiesAPIModel map[string]PropertyAPIModel

UnorderedPropertiesAPIModel describes the resource API model.

type UnorderedPropertiesModel added in v0.4.0

type UnorderedPropertiesModel map[string]PropertyModel

UnorderedPropertiesModel describes the resource data model.

func (*UnorderedPropertiesModel) FromAPI added in v0.4.0

func (UnorderedPropertiesModel) ToAPI added in v0.4.0

Source Files

Jump to

Keyboard shortcuts

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