Documentation
¶
Index ¶
- Constants
- func ABXActionSchema() schema.Schema
- func ABXConstantSchema() schema.Schema
- func ABXSensitiveConstantSchema() schema.Schema
- func CatalogTypeDataSourceSchema() schema.Schema
- func CheckDeepEqual(t *testing.T, actual interface{}, expected interface{})
- func CheckDiagnostics(t *testing.T, diags diag.Diagnostics, warningMessage string, ...)
- func CheckEqual(t *testing.T, actual interface{}, expected interface{})
- func CleanString(value string) string
- func CloudTemplateResourceSchema() schema.NestedAttributeObject
- func CloudTemplateResourcesSchema() schema.MapNestedAttribute
- func CloudTemplateV1Schema() schema.Schema
- func CloudTemplateV1ValidationMessageAttributeTypes() map[string]attr.Type
- func ComputedDescriptionSchema() schema.StringAttribute
- func ComputedIdentifierSchema(description string) schema.StringAttribute
- func ComputedMutableIdentifierSchema() schema.StringAttribute
- func ComputedOrganizationIdSchema() schema.StringAttribute
- func CustomFormModelAttributeTypes() map[string]attr.Type
- func CustomFormSchema() schema.SingleNestedAttribute
- func CustomNamingSchema() schema.Schema
- func CustomResourceSchema() schema.Schema
- func GetIdFromLocation(response *resty.Response) (string, error)
- func GetVersionFromPath(path string) string
- func IconDataSourceSchema() dataschema.Schema
- func IconSchema() schema.Schema
- func JSONNormalizedFromAny(name string, value any) (jsontypes.Normalized, diag.Diagnostics)
- func JSONNormalizedToAny(attribute jsontypes.Normalized) (any, diag.Diagnostics)
- func New(version string) func() provider.Provider
- func NewABXActionResource() resource.Resource
- func NewABXConstantResource() resource.Resource
- func NewABXSensitiveConstantResource() resource.Resource
- func NewCatalogTypeDataSource() datasource.DataSource
- func NewCloudTemplateV1Resource() resource.Resource
- func NewCustomNamingResource() resource.Resource
- func NewCustomResourceResource() resource.Resource
- func NewExampleFunction() function.Function
- func NewIconDataSource() datasource.DataSource
- func NewIconResource() resource.Resource
- func NewProjectResource() resource.Resource
- func NewPropertyGroupResource() resource.Resource
- func NewResourceActionResource() resource.Resource
- func NewSecretDataSource() datasource.DataSource
- func NewSubscriptionResource() resource.Resource
- func OptionalImmutableProjectIdSchema() schema.StringAttribute
- func OrderedPropertiesSchema(description string) schema.ListNestedAttribute
- func ProjectConstraintsSchema() schema.SingleNestedAttribute
- func ProjectSchema() schema.Schema
- func PropertyGroupSchema() schema.Schema
- func PropertyOneOfSchema() schema.ListNestedAttribute
- func PropertySchema() schema.NestedAttributeObject
- func RequiredDescriptionSchema() schema.StringAttribute
- func RequiredIdentifierSchema() schema.StringAttribute
- func RequiredImmutableProjectIdSchema() schema.StringAttribute
- func RequiredProjectIdSchema() schema.StringAttribute
- func ResourceActionRunnableSchema(description string) schema.SingleNestedAttribute
- func ResourceActionSchema() schema.Schema
- func SecretDataSourceSchema() schema.Schema
- func SkipEmpty(value []string) []string
- func StringOrNullValue(value string) types.String
- func SubscriptionSchema() schema.Schema
- func UnorderedPropertiesSchema(description string) schema.MapNestedAttribute
- type ABXActionAPIModel
- type ABXActionModel
- func (self ABXActionModel) CreatePath() string
- func (self ABXActionModel) DeletePath() string
- func (self *ABXActionModel) FromAPI(ctx context.Context, raw ABXActionAPIModel) diag.Diagnostics
- func (self ABXActionModel) LockKey() string
- func (self ABXActionModel) ReadPath() string
- func (self ABXActionModel) String() string
- func (self ABXActionModel) ToAPI(ctx context.Context) (ABXActionAPIModel, diag.Diagnostics)
- func (self ABXActionModel) UpdatePath() string
- type ABXActionResource
- func (self *ABXActionResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *ABXActionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *ABXActionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *ABXActionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *ABXActionResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *ABXActionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *ABXActionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *ABXActionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ABXConstantAPIModel
- type ABXConstantModel
- func (self ABXConstantModel) CreatePath() string
- func (self ABXConstantModel) DeletePath() string
- func (self *ABXConstantModel) FromAPI(ctx context.Context, raw ABXConstantAPIModel) diag.Diagnostics
- func (self ABXConstantModel) LockKey() string
- func (self ABXConstantModel) ReadPath() string
- func (self ABXConstantModel) String() string
- func (self ABXConstantModel) ToAPI() ABXConstantAPIModel
- func (self ABXConstantModel) UpdatePath() string
- type ABXConstantResource
- func (self *ABXConstantResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *ABXConstantResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *ABXConstantResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *ABXConstantResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *ABXConstantResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *ABXConstantResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *ABXConstantResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *ABXConstantResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ABXSensitiveConstantAPIModel
- type ABXSensitiveConstantModel
- func (self ABXSensitiveConstantModel) CreatePath() string
- func (self ABXSensitiveConstantModel) DeletePath() string
- func (self *ABXSensitiveConstantModel) FromAPI(ctx context.Context, raw ABXSensitiveConstantAPIModel) diag.Diagnostics
- func (self ABXSensitiveConstantModel) LockKey() string
- func (self ABXSensitiveConstantModel) ReadPath() string
- func (self ABXSensitiveConstantModel) String() string
- func (self ABXSensitiveConstantModel) ToAPI() ABXSensitiveConstantAPIModel
- func (self ABXSensitiveConstantModel) UpdatePath() string
- type ABXSensitiveConstantResource
- func (self *ABXSensitiveConstantResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *ABXSensitiveConstantResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *ABXSensitiveConstantResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *ABXSensitiveConstantResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *ABXSensitiveConstantResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *ABXSensitiveConstantResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *ABXSensitiveConstantResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type APIModel
- type AccessTokenResponse
- type ActionParameterAPIModel
- type ActionParameterModel
- type AriaClient
- func (self *AriaClient) CheckConfig() diag.Diagnostics
- func (self AriaClient) DeleteIt(ctx context.Context, instance Model) diag.Diagnostics
- func (self *AriaClient) GetAccessToken() diag.Diagnostics
- func (self *AriaClient) Init() diag.Diagnostics
- func (self AriaClient) ReadIt(ctx context.Context, instance Model, instanceRaw APIModel) (bool, diag.Diagnostics)
- type AriaProvider
- func (self *AriaProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (self *AriaProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (self *AriaProvider) Functions(ctx context.Context) []func() function.Function
- func (self *AriaProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (self *AriaProvider) Resources(ctx context.Context) []func() resource.Resource
- func (self *AriaProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type AriaProviderModel
- type CatalogTypeAPIModel
- type CatalogTypeDataSource
- func (self *CatalogTypeDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (self *CatalogTypeDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (self *CatalogTypeDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (self *CatalogTypeDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type CatalogTypeModel
- type CloudTemplateResourceAPIModel
- type CloudTemplateResourceModel
- func (self *CloudTemplateResourceModel) FromAPI(ctx context.Context, name string, raw CloudTemplateResourceAPIModel) diag.Diagnostics
- func (self CloudTemplateResourceModel) String() string
- func (self CloudTemplateResourceModel) ToAPI(ctx context.Context) (string, CloudTemplateResourceAPIModel, diag.Diagnostics)
- type CloudTemplateResourcesAPIModel
- type CloudTemplateResourcesModel
- type CloudTemplateV1APIModel
- type CloudTemplateV1ContentAPIModel
- type CloudTemplateV1Model
- func (self CloudTemplateV1Model) CreatePath() string
- func (self CloudTemplateV1Model) DeletePath() string
- func (self *CloudTemplateV1Model) FromAPI(ctx context.Context, raw CloudTemplateV1APIModel) diag.Diagnostics
- func (self CloudTemplateV1Model) LockKey() string
- func (self CloudTemplateV1Model) ReadPath() string
- func (self CloudTemplateV1Model) String() string
- func (self CloudTemplateV1Model) ToAPI(ctx context.Context) (CloudTemplateV1APIModel, diag.Diagnostics)
- func (self CloudTemplateV1Model) UpdatePath() string
- type CloudTemplateV1Resource
- func (self *CloudTemplateV1Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *CloudTemplateV1Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *CloudTemplateV1Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *CloudTemplateV1Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *CloudTemplateV1Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *CloudTemplateV1Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *CloudTemplateV1Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *CloudTemplateV1Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type CloudTemplateV1ValidationMessageAPIModel
- type CloudTemplateV1ValidationMessageModel
- func (self *CloudTemplateV1ValidationMessageModel) FromAPI(ctx context.Context, raw CloudTemplateV1ValidationMessageAPIModel) diag.Diagnostics
- func (self CloudTemplateV1ValidationMessageModel) String() string
- func (self CloudTemplateV1ValidationMessageModel) ToAPI(ctx context.Context) (CloudTemplateV1ValidationMessageAPIModel, diag.Diagnostics)
- type CustomFormAPIModel
- type CustomFormModel
- type CustomNamingAPIModel
- type CustomNamingModel
- func (self CustomNamingModel) CreatePath() string
- func (self CustomNamingModel) DeletePath() string
- func (self *CustomNamingModel) FromAPI(ctx context.Context, raw CustomNamingAPIModel) diag.Diagnostics
- func (self CustomNamingModel) LockKey() string
- func (self CustomNamingModel) ReadPath() string
- func (self *CustomNamingModel) String() string
- func (self *CustomNamingModel) ToAPI(ctx context.Context, state CustomNamingModel) (CustomNamingAPIModel, diag.Diagnostics)
- func (self CustomNamingModel) UpdatePath() string
- type CustomNamingProjectFilterAPIModel
- type CustomNamingProjectFilterModel
- func (self *CustomNamingProjectFilterModel) FromAPI(ctx context.Context, raw CustomNamingProjectFilterAPIModel) diag.Diagnostics
- func (self CustomNamingProjectFilterModel) String() string
- func (self CustomNamingProjectFilterModel) ToAPI(ctx context.Context) (CustomNamingProjectFilterAPIModel, diag.Diagnostics)
- type CustomNamingResource
- func (self *CustomNamingResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *CustomNamingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *CustomNamingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *CustomNamingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *CustomNamingResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *CustomNamingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *CustomNamingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *CustomNamingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type CustomNamingTemplateAPIModel
- type CustomNamingTemplateModel
- func (self *CustomNamingTemplateModel) FromAPI(ctx context.Context, raw CustomNamingTemplateAPIModel) diag.Diagnostics
- func (self CustomNamingTemplateModel) Key() string
- func (self CustomNamingTemplateModel) String() string
- func (self CustomNamingTemplateModel) ToAPI(ctx context.Context, state CustomNamingTemplateModel) (CustomNamingTemplateAPIModel, diag.Diagnostics)
- type CustomResourceAPIModel
- type CustomResourceModel
- func (self CustomResourceModel) CreatePath() string
- func (self CustomResourceModel) DeletePath() string
- func (self *CustomResourceModel) FromAPI(ctx context.Context, raw CustomResourceAPIModel) diag.Diagnostics
- func (self CustomResourceModel) LockKey() string
- func (self CustomResourceModel) ReadPath() string
- func (self CustomResourceModel) String() string
- func (self CustomResourceModel) ToAPI(ctx context.Context) (CustomResourceAPIModel, diag.Diagnostics)
- func (self CustomResourceModel) UpdatePath() string
- type CustomResourcePropertiesAPIModel
- type CustomResourceResource
- func (self *CustomResourceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *CustomResourceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *CustomResourceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *CustomResourceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *CustomResourceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *CustomResourceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *CustomResourceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *CustomResourceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ExampleFunction
- type IconDataSource
- func (self *IconDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (self *IconDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (self *IconDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (self *IconDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type IconModel
- type IconResource
- func (self *IconResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *IconResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *IconResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *IconResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *IconResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *IconResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *IconResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *IconResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type Model
- type OrderedPropertiesAPIModel
- func (self OrderedPropertiesAPIModel) Get(name string) PropertyAPIModel
- func (self *OrderedPropertiesAPIModel) Init()
- func (self OrderedPropertiesAPIModel) Items() []OrderedPropertiesAPIModelItem
- func (self OrderedPropertiesAPIModel) MarshalJSON() ([]byte, error)
- func (self *OrderedPropertiesAPIModel) Pop(name string) (PropertyAPIModel, bool)
- func (self *OrderedPropertiesAPIModel) Set(name string, property PropertyAPIModel) bool
- func (self *OrderedPropertiesAPIModel) UnmarshalJSON(data []byte) error
- type OrderedPropertiesAPIModelItem
- type OrderedPropertiesModel
- type ProjectAPIModel
- type ProjectConstraintsAPIModel
- type ProjectConstraintsModel
- type ProjectMembershipAPIModel
- type ProjectMembershipModel
- type ProjectModel
- func (self ProjectModel) CreatePath() string
- func (self ProjectModel) DeletePath() string
- func (self *ProjectModel) FromAPI(ctx context.Context, raw ProjectAPIModel) diag.Diagnostics
- func (self ProjectModel) LockKey() string
- func (self ProjectModel) ReadPath() string
- func (self ProjectModel) String() string
- func (self ProjectModel) ToAPI(ctx context.Context) (ProjectAPIModel, diag.Diagnostics)
- func (self ProjectModel) UpdatePath() string
- type ProjectResource
- func (self *ProjectResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *ProjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *ProjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *ProjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *ProjectResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *ProjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *ProjectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *ProjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PropertyAPIModel
- type PropertyGroupAPIModel
- type PropertyGroupModel
- func (self PropertyGroupModel) CreatePath() string
- func (self PropertyGroupModel) DeletePath() string
- func (self *PropertyGroupModel) FromAPI(ctx context.Context, raw PropertyGroupAPIModel) diag.Diagnostics
- func (self PropertyGroupModel) LockKey() string
- func (self PropertyGroupModel) ReadPath() string
- func (self PropertyGroupModel) String() string
- func (self PropertyGroupModel) ToAPI(ctx context.Context) (PropertyGroupAPIModel, diag.Diagnostics)
- func (self PropertyGroupModel) UpdatePath() string
- type PropertyGroupResource
- func (self *PropertyGroupResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *PropertyGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *PropertyGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *PropertyGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *PropertyGroupResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *PropertyGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *PropertyGroupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *PropertyGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PropertyModel
- type PropertyOneOfAPIModel
- type PropertyOneOfModel
- type RWMutexKV
- type ResourceActionAPIModel
- type ResourceActionModel
- func (self ResourceActionModel) CreatePath() string
- func (self ResourceActionModel) DeletePath() string
- func (self ResourceActionModel) ForCustom() bool
- func (self *ResourceActionModel) FromAPI(ctx context.Context, raw ResourceActionAPIModel) diag.Diagnostics
- func (self ResourceActionModel) LockKey() string
- func (self ResourceActionModel) ReadPath() string
- func (self ResourceActionModel) String() string
- func (self ResourceActionModel) ToAPI(ctx context.Context) (ResourceActionAPIModel, diag.Diagnostics)
- func (self ResourceActionModel) UpdatePath() string
- type ResourceActionResource
- func (self *ResourceActionResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *ResourceActionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *ResourceActionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *ResourceActionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *ResourceActionResource) ManageIt(ctx context.Context, action *ResourceActionModel, method string) (ResourceActionAPIModel, diag.Diagnostics)
- func (self *ResourceActionResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *ResourceActionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *ResourceActionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *ResourceActionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ResourceActionRunnableAPIModel
- type ResourceActionRunnableModel
- type SecretAPIModel
- type SecretDataSource
- func (self *SecretDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (self *SecretDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (self *SecretDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (self *SecretDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type SecretModel
- type SubscriptionAPIModel
- type SubscriptionModel
- func (self SubscriptionModel) CreatePath() string
- func (self SubscriptionModel) DeletePath() string
- func (self *SubscriptionModel) FromAPI(ctx context.Context, raw SubscriptionAPIModel) diag.Diagnostics
- func (self *SubscriptionModel) GenerateId()
- func (self SubscriptionModel) LockKey() string
- func (self SubscriptionModel) ReadPath() string
- func (self SubscriptionModel) String() string
- func (self SubscriptionModel) ToAPI(ctx context.Context) (SubscriptionAPIModel, diag.Diagnostics)
- func (self SubscriptionModel) UpdatePath() string
- type SubscriptionResource
- func (self *SubscriptionResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (self *SubscriptionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (self *SubscriptionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (self *SubscriptionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (self *SubscriptionResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (self *SubscriptionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (self *SubscriptionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (self *SubscriptionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type UnorderedPropertiesAPIModel
- type UnorderedPropertiesModel
Constants ¶
const ABX_API_VERSION = "2019-09-12"
const BLUEPRINT_API_VERSION = "2019-09-12"
const CATALOG_API_VERSION = "2020-08-25"
const EVENT_BROKER_API_VERSION = ""
TODO then ensure its used (check related TODOs). 7.6 ?? https://developer.vmware.com/apis/576/#api
const FORM_API_VERSION = "1.0"
const IAAS_API_VERSION = "2021-07-15"
const ICON_API_VERSION = ""
TODO then ensure its used (check related TODOs).
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"
const PLATFORM_API_VERSION = ""
TODO then ensure its used (check related TODOs).
const POLICY_API_VERSION = "2020-08-25"
const PROJECT_API_VERSION = "2019-01-15"
Variables ¶
This section is empty.
Functions ¶
func ABXActionSchema ¶ added in v0.4.1
func ABXConstantSchema ¶ added in v0.4.1
func ABXSensitiveConstantSchema ¶ added in v0.4.1
func CatalogTypeDataSourceSchema ¶ added in v0.4.1
func CheckDeepEqual ¶ added in v0.2.3
func CheckDiagnostics ¶ added in v0.2.3
func CheckEqual ¶ added in v0.2.3
func CleanString ¶ added in v0.1.1
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 CloudTemplateV1ValidationMessageAttributeTypes ¶ added in v0.5.0
Used to convert structure to a types.Object.
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() schema.StringAttribute
func ComputedOrganizationIdSchema ¶ added in v0.3.0
func ComputedOrganizationIdSchema() schema.StringAttribute
func CustomFormModelAttributeTypes ¶ added in v0.3.1
Used to convert structure to a types.Object.
func CustomFormSchema ¶ added in v0.3.1
func CustomFormSchema() schema.SingleNestedAttribute
Optional, only used by the ResourceActionSchema (as of current version).
func CustomNamingSchema ¶ added in v0.4.1
func CustomResourceSchema ¶ added in v0.4.1
func GetIdFromLocation ¶
func GetVersionFromPath ¶ added in v0.5.0
func IconDataSourceSchema ¶ added in v0.4.1
func IconDataSourceSchema() dataschema.Schema
func IconSchema ¶ added in v0.4.1
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 NewABXActionResource ¶ added in v0.1.1
func NewABXConstantResource ¶
func NewABXSensitiveConstantResource ¶ added in v0.2.0
func NewCatalogTypeDataSource ¶ added in v0.1.1
func NewCatalogTypeDataSource() datasource.DataSource
func NewCloudTemplateV1Resource ¶ added in v0.5.0
func NewCustomNamingResource ¶ added in v0.2.5
func NewCustomResourceResource ¶ added in v0.2.3
func NewExampleFunction ¶
func NewIconDataSource ¶
func NewIconDataSource() datasource.DataSource
func NewIconResource ¶
func NewProjectResource ¶ added in v0.5.0
func NewPropertyGroupResource ¶ added in v0.3.0
func NewResourceActionResource ¶ added in v0.2.3
func NewSecretDataSource ¶ added in v0.2.2
func NewSecretDataSource() datasource.DataSource
func NewSubscriptionResource ¶ added in v0.1.1
func OptionalImmutableProjectIdSchema ¶ added in v0.3.1
func OptionalImmutableProjectIdSchema() schema.StringAttribute
func OrderedPropertiesSchema ¶ added in v0.3.0
func OrderedPropertiesSchema(description string) schema.ListNestedAttribute
func ProjectConstraintsSchema ¶ added in v0.5.0
func ProjectConstraintsSchema() schema.SingleNestedAttribute
func ProjectSchema ¶ added in v0.5.0
func PropertyGroupSchema ¶ added in v0.4.1
func PropertyOneOfSchema ¶ added in v0.3.0
func PropertyOneOfSchema() schema.ListNestedAttribute
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() 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 SecretDataSourceSchema ¶ added in v0.4.1
func StringOrNullValue ¶ added in v0.1.1
func SubscriptionSchema ¶ added in v0.4.1
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"` 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"` 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"` 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"` 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 (self ABXActionModel) ToAPI( ctx context.Context, ) (ABXActionAPIModel, diag.Diagnostics)
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 (self *ABXActionResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*ABXActionResource) Create ¶ added in v0.1.1
func (self *ABXActionResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ABXActionResource) Delete ¶ added in v0.1.1
func (self *ABXActionResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*ABXActionResource) ImportState ¶ added in v0.1.1
func (self *ABXActionResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*ABXActionResource) Metadata ¶ added in v0.1.1
func (self *ABXActionResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*ABXActionResource) Read ¶ added in v0.1.1
func (self *ABXActionResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*ABXActionResource) Schema ¶ added in v0.1.1
func (self *ABXActionResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*ABXActionResource) Update ¶ added in v0.1.1
func (self *ABXActionResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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( ctx context.Context, raw ABXConstantAPIModel, ) diag.Diagnostics
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 (self ABXConstantModel) ToAPI() ABXConstantAPIModel
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 (self *ABXConstantResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*ABXConstantResource) Create ¶
func (self *ABXConstantResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ABXConstantResource) Delete ¶
func (self *ABXConstantResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*ABXConstantResource) ImportState ¶
func (self *ABXConstantResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*ABXConstantResource) Metadata ¶
func (self *ABXConstantResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*ABXConstantResource) Read ¶
func (self *ABXConstantResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*ABXConstantResource) Schema ¶
func (self *ABXConstantResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*ABXConstantResource) Update ¶
func (self *ABXConstantResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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 (self *ABXSensitiveConstantModel) FromAPI( ctx context.Context, raw ABXSensitiveConstantAPIModel, ) diag.Diagnostics
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 (self ABXSensitiveConstantModel) ToAPI() ABXSensitiveConstantAPIModel
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 (self *ABXSensitiveConstantResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*ABXSensitiveConstantResource) Create ¶ added in v0.2.0
func (self *ABXSensitiveConstantResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ABXSensitiveConstantResource) Delete ¶ added in v0.2.0
func (self *ABXSensitiveConstantResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*ABXSensitiveConstantResource) Metadata ¶ added in v0.2.0
func (self *ABXSensitiveConstantResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*ABXSensitiveConstantResource) Read ¶ added in v0.2.0
func (self *ABXSensitiveConstantResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*ABXSensitiveConstantResource) Schema ¶ added in v0.2.0
func (self *ABXSensitiveConstantResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*ABXSensitiveConstantResource) Update ¶ added in v0.2.0
func (self *ABXSensitiveConstantResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type AccessTokenResponse ¶
type ActionParameterAPIModel ¶ added in v0.2.3
type ActionParameterAPIModel struct { Type string `json:"type"` Name string `json:"name"` Description string `json:"description"` }
ActionParameterAPIModel describes the resource API model.
type ActionParameterModel ¶ added in v0.2.3
type ActionParameterModel struct { Type types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` }
ActionParameterModel describes the resource data model.
func (*ActionParameterModel) FromAPI ¶ added in v0.2.3
func (self *ActionParameterModel) FromAPI( ctx context.Context, raw ActionParameterAPIModel, ) diag.Diagnostics
func (ActionParameterModel) ToAPI ¶ added in v0.2.3
func (self ActionParameterModel) ToAPI( ctx context.Context, ) (ActionParameterAPIModel, diag.Diagnostics)
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 GetDataSourceClient ¶
func GetDataSourceClient( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, ) *AriaClient
func GetResourceClient ¶
func GetResourceClient( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, ) *AriaClient
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, ) 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, ) (bool, 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 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 (self *CatalogTypeDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*CatalogTypeDataSource) Metadata ¶ added in v0.1.1
func (self *CatalogTypeDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*CatalogTypeDataSource) Read ¶ added in v0.1.1
func (self *CatalogTypeDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*CatalogTypeDataSource) Schema ¶ added in v0.1.1
func (self *CatalogTypeDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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( ctx context.Context, raw CatalogTypeAPIModel, ) diag.Diagnostics
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 (self *CloudTemplateResourceModel) FromAPI( ctx context.Context, name string, raw CloudTemplateResourceAPIModel, ) diag.Diagnostics
func (CloudTemplateResourceModel) String ¶ added in v0.5.0
func (self CloudTemplateResourceModel) String() string
func (CloudTemplateResourceModel) ToAPI ¶ added in v0.5.0
func (self CloudTemplateResourceModel) ToAPI( ctx context.Context, ) (string, CloudTemplateResourceAPIModel, diag.Diagnostics)
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 (self *CloudTemplateResourcesModel) FromAPI( ctx context.Context, raw CloudTemplateResourcesAPIModel, ) diag.Diagnostics
func (CloudTemplateResourcesModel) ToAPI ¶ added in v0.5.0
func (self CloudTemplateResourcesModel) ToAPI( ctx context.Context, ) (CloudTemplateResourcesAPIModel, diag.Diagnostics)
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 (self *CloudTemplateV1Model) FromAPI( ctx context.Context, raw CloudTemplateV1APIModel, ) diag.Diagnostics
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 (self CloudTemplateV1Model) ToAPI( ctx context.Context, ) (CloudTemplateV1APIModel, diag.Diagnostics)
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 (self *CloudTemplateV1Resource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*CloudTemplateV1Resource) Create ¶ added in v0.5.0
func (self *CloudTemplateV1Resource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*CloudTemplateV1Resource) Delete ¶ added in v0.5.0
func (self *CloudTemplateV1Resource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*CloudTemplateV1Resource) ImportState ¶ added in v0.5.0
func (self *CloudTemplateV1Resource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*CloudTemplateV1Resource) Metadata ¶ added in v0.5.0
func (self *CloudTemplateV1Resource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*CloudTemplateV1Resource) Read ¶ added in v0.5.0
func (self *CloudTemplateV1Resource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*CloudTemplateV1Resource) Schema ¶ added in v0.5.0
func (self *CloudTemplateV1Resource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*CloudTemplateV1Resource) Update ¶ added in v0.5.0
func (self *CloudTemplateV1Resource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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
func (self *CloudTemplateV1ValidationMessageAPIModel) ToObject( ctx context.Context, ) (types.Object, diag.Diagnostics)
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) FromAPI ¶ added in v0.5.0
func (self *CloudTemplateV1ValidationMessageModel) FromAPI( ctx context.Context, raw CloudTemplateV1ValidationMessageAPIModel, ) diag.Diagnostics
func (CloudTemplateV1ValidationMessageModel) String ¶ added in v0.5.0
func (self CloudTemplateV1ValidationMessageModel) String() string
func (CloudTemplateV1ValidationMessageModel) ToAPI ¶ added in v0.5.0
func (self CloudTemplateV1ValidationMessageModel) ToAPI( ctx context.Context, ) (CloudTemplateV1ValidationMessageAPIModel, diag.Diagnostics)
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
func (self *CustomFormAPIModel) ToObject( ctx context.Context, ) (types.Object, diag.Diagnostics)
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) FromAPI ¶ added in v0.2.3
func (self *CustomFormModel) FromAPI( ctx context.Context, raw CustomFormAPIModel, ) diag.Diagnostics
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( ctx context.Context, ) (CustomFormAPIModel, diag.Diagnostics)
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( ctx context.Context, raw CustomNamingAPIModel, ) diag.Diagnostics
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 (self *CustomNamingModel) ToAPI( ctx context.Context, state CustomNamingModel, ) (CustomNamingAPIModel, diag.Diagnostics)
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 (self *CustomNamingProjectFilterModel) FromAPI( ctx context.Context, raw CustomNamingProjectFilterAPIModel, ) diag.Diagnostics
func (CustomNamingProjectFilterModel) String ¶ added in v0.2.5
func (self CustomNamingProjectFilterModel) String() string
func (CustomNamingProjectFilterModel) ToAPI ¶ added in v0.2.5
func (self CustomNamingProjectFilterModel) ToAPI( ctx context.Context, ) (CustomNamingProjectFilterAPIModel, diag.Diagnostics)
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 (self *CustomNamingResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*CustomNamingResource) Create ¶ added in v0.2.5
func (self *CustomNamingResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*CustomNamingResource) Delete ¶ added in v0.2.5
func (self *CustomNamingResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*CustomNamingResource) ImportState ¶ added in v0.2.5
func (self *CustomNamingResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*CustomNamingResource) Metadata ¶ added in v0.2.5
func (self *CustomNamingResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*CustomNamingResource) Read ¶ added in v0.2.5
func (self *CustomNamingResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*CustomNamingResource) Schema ¶ added in v0.2.5
func (self *CustomNamingResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*CustomNamingResource) Update ¶ added in v0.2.5
func (self *CustomNamingResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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 (self *CustomNamingTemplateModel) FromAPI( ctx context.Context, raw CustomNamingTemplateAPIModel, ) diag.Diagnostics
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
func (self CustomNamingTemplateModel) ToAPI( ctx context.Context, state CustomNamingTemplateModel, ) (CustomNamingTemplateAPIModel, diag.Diagnostics)
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"` ProjectId string `json:"projectId"` OrgId string `json:"orgId"` }
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 (self *CustomResourceModel) FromAPI( ctx context.Context, raw CustomResourceAPIModel, ) diag.Diagnostics
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 (self CustomResourceModel) ToAPI( ctx context.Context, ) (CustomResourceAPIModel, diag.Diagnostics)
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 (self *CustomResourceResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*CustomResourceResource) Create ¶ added in v0.2.3
func (self *CustomResourceResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*CustomResourceResource) Delete ¶ added in v0.2.3
func (self *CustomResourceResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*CustomResourceResource) ImportState ¶ added in v0.2.3
func (self *CustomResourceResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*CustomResourceResource) Metadata ¶ added in v0.2.3
func (self *CustomResourceResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*CustomResourceResource) Read ¶ added in v0.2.3
func (self *CustomResourceResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*CustomResourceResource) Schema ¶ added in v0.2.3
func (self *CustomResourceResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*CustomResourceResource) Update ¶ added in v0.2.3
func (self *CustomResourceResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type ExampleFunction ¶
type ExampleFunction struct{}
func (ExampleFunction) Definition ¶
func (r ExampleFunction) Definition( _ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse, )
func (ExampleFunction) Metadata ¶
func (r ExampleFunction) Metadata( _ context.Context, req function.MetadataRequest, resp *function.MetadataResponse, )
func (ExampleFunction) Run ¶
func (r ExampleFunction) Run( ctx context.Context, req function.RunRequest, resp *function.RunResponse, )
type IconDataSource ¶
type IconDataSource struct {
// contains filtered or unexported fields
}
IconDataSource defines the data source implementation.
func (*IconDataSource) Configure ¶
func (self *IconDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*IconDataSource) Metadata ¶
func (self *IconDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*IconDataSource) Read ¶
func (self *IconDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*IconDataSource) Schema ¶
func (self *IconDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type IconModel ¶ added in v0.1.1
IconModel describes the resource data model.
func (IconModel) CreatePath ¶ added in v0.5.0
func (IconModel) DeletePath ¶ added in v0.5.0
func (IconModel) LockKey ¶ added in v0.5.0
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) UpdatePath ¶ added in v0.5.0
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) ImportState ¶
func (self *IconResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
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 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
func (self OrderedPropertiesAPIModel) Get( name string, ) PropertyAPIModel
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
func (self OrderedPropertiesAPIModel) Items() []OrderedPropertiesAPIModelItem
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 (self *OrderedPropertiesModel) FromAPI( ctx context.Context, raw OrderedPropertiesAPIModel, ) diag.Diagnostics
func (OrderedPropertiesModel) ToAPI ¶ added in v0.4.0
func (self OrderedPropertiesModel) ToAPI( ctx context.Context, ) (OrderedPropertiesAPIModel, diag.Diagnostics)
type ProjectAPIModel ¶ added in v0.5.0
type ProjectAPIModel struct { Id string `json:"id,omitempty"` Name string `json:"name"` OperationTimeout int32 `json:"operationTimeout"` 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 (self *ProjectConstraintsModel) FromAPI( ctx context.Context, raw ProjectConstraintsAPIModel, ) diag.Diagnostics
func (ProjectConstraintsModel) String ¶ added in v0.5.0
func (self ProjectConstraintsModel) String() string
func (ProjectConstraintsModel) ToAPI ¶ added in v0.5.0
func (self ProjectConstraintsModel) ToAPI( ctx context.Context, ) (ProjectConstraintsAPIModel, diag.Diagnostics)
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 (self *ProjectMembershipModel) FromAPI( ctx context.Context, raw ProjectMembershipAPIModel, ) diag.Diagnostics
func (ProjectMembershipModel) String ¶ added in v0.5.0
func (self ProjectMembershipModel) String() string
func (ProjectMembershipModel) ToAPI ¶ added in v0.5.0
func (self ProjectMembershipModel) ToAPI( ctx context.Context, ) (ProjectMembershipAPIModel, diag.Diagnostics)
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"` 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 (self ProjectModel) ToAPI( ctx context.Context, ) (ProjectAPIModel, diag.Diagnostics)
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 (self *ProjectResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
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 (self *ProjectResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*ProjectResource) Metadata ¶ added in v0.5.0
func (self *ProjectResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
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 (self *PropertyGroupModel) FromAPI( ctx context.Context, raw PropertyGroupAPIModel, ) diag.Diagnostics
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 (self PropertyGroupModel) ToAPI( ctx context.Context, ) (PropertyGroupAPIModel, diag.Diagnostics)
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 (self *PropertyGroupResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*PropertyGroupResource) Create ¶ added in v0.3.0
func (self *PropertyGroupResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*PropertyGroupResource) Delete ¶ added in v0.3.0
func (self *PropertyGroupResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*PropertyGroupResource) ImportState ¶ added in v0.3.0
func (self *PropertyGroupResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*PropertyGroupResource) Metadata ¶ added in v0.3.0
func (self *PropertyGroupResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*PropertyGroupResource) Read ¶ added in v0.3.0
func (self *PropertyGroupResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*PropertyGroupResource) Schema ¶ added in v0.3.0
func (self *PropertyGroupResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*PropertyGroupResource) Update ¶ added in v0.3.0
func (self *PropertyGroupResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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
func (self PropertyModel) ToAPI( ctx context.Context, ) (string, PropertyAPIModel, diag.Diagnostics)
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( ctx context.Context, raw PropertyOneOfAPIModel, ) diag.Diagnostics
func (PropertyOneOfModel) ToAPI ¶ added in v0.2.3
func (self PropertyOneOfModel) ToAPI( ctx context.Context, ) (PropertyOneOfAPIModel, diag.Diagnostics)
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
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
Lock the named mutex for reading purposes (concurrent friendly). If the lock is already locked for writing, blocks until the lock is available.
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 (self *ResourceActionModel) FromAPI( ctx context.Context, raw ResourceActionAPIModel, ) diag.Diagnostics
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 (self ResourceActionModel) ToAPI( ctx context.Context, ) (ResourceActionAPIModel, diag.Diagnostics)
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 (self *ResourceActionResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*ResourceActionResource) Create ¶ added in v0.2.3
func (self *ResourceActionResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ResourceActionResource) Delete ¶ added in v0.2.3
func (self *ResourceActionResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*ResourceActionResource) ImportState ¶ added in v0.2.3
func (self *ResourceActionResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*ResourceActionResource) ManageIt ¶ added in v0.5.0
func (self *ResourceActionResource) ManageIt( ctx context.Context, action *ResourceActionModel, method string, ) (ResourceActionAPIModel, diag.Diagnostics)
Implement the magic behind the create, update and delete methods.
func (*ResourceActionResource) Metadata ¶ added in v0.2.3
func (self *ResourceActionResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*ResourceActionResource) Read ¶ added in v0.2.3
func (self *ResourceActionResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*ResourceActionResource) Schema ¶ added in v0.2.3
func (self *ResourceActionResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*ResourceActionResource) Update ¶ added in v0.2.3
func (self *ResourceActionResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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 []ActionParameterAPIModel `json:"inputParameters"` OutputParameters []ActionParameterAPIModel `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 []ActionParameterModel `tfsdk:"input_parameters"` OutputParameters []ActionParameterModel `tfsdk:"output_parameters"` }
ResourceActionRunnableModel describes the resource data model.
func (*ResourceActionRunnableModel) FromAPI ¶ added in v0.2.3
func (self *ResourceActionRunnableModel) FromAPI( ctx context.Context, raw ResourceActionRunnableAPIModel, ) diag.Diagnostics
func (*ResourceActionRunnableModel) String ¶ added in v0.5.0
func (self *ResourceActionRunnableModel) String() string
func (ResourceActionRunnableModel) ToAPI ¶ added in v0.2.3
func (self ResourceActionRunnableModel) ToAPI( ctx context.Context, ) (ResourceActionRunnableAPIModel, diag.Diagnostics)
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 (self *SecretDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*SecretDataSource) Metadata ¶ added in v0.2.2
func (self *SecretDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*SecretDataSource) Read ¶ added in v0.2.2
func (self *SecretDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*SecretDataSource) Schema ¶ added in v0.2.2
func (self *SecretDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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 (self *SubscriptionModel) FromAPI( ctx context.Context, raw SubscriptionAPIModel, ) diag.Diagnostics
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 (self SubscriptionModel) ToAPI( ctx context.Context, ) (SubscriptionAPIModel, diag.Diagnostics)
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 (self *SubscriptionResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*SubscriptionResource) Create ¶ added in v0.1.1
func (self *SubscriptionResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*SubscriptionResource) Delete ¶ added in v0.1.1
func (self *SubscriptionResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*SubscriptionResource) ImportState ¶ added in v0.1.1
func (self *SubscriptionResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*SubscriptionResource) Metadata ¶ added in v0.1.1
func (self *SubscriptionResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*SubscriptionResource) Read ¶ added in v0.1.1
func (self *SubscriptionResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*SubscriptionResource) Schema ¶ added in v0.1.1
func (self *SubscriptionResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*SubscriptionResource) Update ¶ added in v0.1.1
func (self *SubscriptionResource) 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 (self *UnorderedPropertiesModel) FromAPI( ctx context.Context, raw UnorderedPropertiesAPIModel, ) diag.Diagnostics
func (UnorderedPropertiesModel) ToAPI ¶ added in v0.4.0
func (self UnorderedPropertiesModel) ToAPI( ctx context.Context, ) (UnorderedPropertiesAPIModel, diag.Diagnostics)
Source Files
¶
- abx_action_model.go
- abx_action_resource.go
- abx_action_schema.go
- abx_constant_model.go
- abx_constant_resource.go
- abx_constant_schema.go
- abx_sensitive_constant_model.go
- abx_sensitive_constant_resource.go
- abx_sensitive_constant_schema.go
- action_parameter_model.go
- catalog_type_data_source.go
- catalog_type_model.go
- catalog_type_schema.go
- client.go
- cloud_template_resource_model.go
- cloud_template_resource_schema.go
- cloud_template_resources_model.go
- cloud_template_resources_schema.go
- cloud_template_v1_content_model.go
- cloud_template_v1_model.go
- cloud_template_v1_resource.go
- cloud_template_v1_schema.go
- cloud_template_v1_validation_message_model.go
- constants.go
- custom_form_model.go
- custom_form_schema.go
- custom_naming_model.go
- custom_naming_project_filter_model.go
- custom_naming_resource.go
- custom_naming_schema.go
- custom_naming_template_model.go
- custom_resource_model.go
- custom_resource_properties_model.go
- custom_resource_resource.go
- custom_resource_schema.go
- example_function.go
- icon_data_source.go
- icon_model.go
- icon_resource.go
- icon_schema.go
- project_constraints_model.go
- project_constraints_schema.go
- project_cost_schema.go
- project_membership_model.go
- project_membership_schema.go
- project_model.go
- project_resource.go
- project_schema.go
- properties_model_ordered.go
- properties_model_unordered.go
- properties_schema.go
- property_group_model.go
- property_group_resource.go
- property_group_schema.go
- property_model.go
- property_one_of_model.go
- property_one_of_schema.go
- property_schema.go
- provider.go
- resource_action_model.go
- resource_action_resource.go
- resource_action_runnable_model.go
- resource_action_runnable_schema.go
- resource_action_schema.go
- secret_data_source.go
- secret_model.go
- secret_schema.go
- subscription_model.go
- subscription_resource.go
- subscription_schema.go
- test_utils.go
- utils.go
- utils_models.go
- utils_resources.go
- utils_schemas.go
- utils_sync.go