Documentation ¶
Index ¶
- func NewSolutionResource() resource.Resource
- func NewSolutionsDataSource() datasource.DataSource
- type AsyncSolutionPullResponseDto
- type EnvironmentIdDto
- type EnvironmentIdPropertiesDto
- type ImportSolutionConnectionReferencesDto
- type ImportSolutionDto
- type ImportSolutionEnvironmentVariablesDto
- type ImportSolutionResponseDto
- type ImportSolutionSolutionParametersDto
- type LinkedEnvironmentIdMetadataDto
- type SolutionClient
- func (client *SolutionClient) CreateSolution(ctx context.Context, environmentId string, solutionToCreate ImportSolutionDto, ...) (*SolutionDto, error)
- func (client *SolutionClient) DeleteSolution(ctx context.Context, environmentId string, solutionName string) error
- func (client *SolutionClient) GetEnvironmentUrlById(ctx context.Context, environmentId string) (string, error)
- func (client *SolutionClient) GetSolution(ctx context.Context, environmentId string, solutionName string) (*SolutionDto, error)
- func (client *SolutionClient) GetSolutions(ctx context.Context, environmentId string) ([]SolutionDto, error)
- func (client *SolutionClient) GetTableData(ctx context.Context, environmentId, tableName, odataQuery string, ...) error
- type SolutionDto
- type SolutionDtoArray
- type SolutionListDataSourceModel
- type SolutionResource
- func (r *SolutionResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SolutionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SolutionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SolutionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SolutionResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SolutionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SolutionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SolutionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SolutionResourceModel
- type SolutionSettings
- type SolutionSettingsConnectionReferences
- type SolutionSettingsEnvironmentVariable
- type SolutionsDataSource
- func (d *SolutionsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *SolutionsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *SolutionsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SolutionsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type SolutionsDataSourceModel
- type StageSolutionImportDto
- type StageSolutionImportResponseDto
- type StageSolutionImportResultResponseDto
- type StageSolutionSolutionDetailsDto
- type ValidateSolutionImportResponseDto
- type ValidateSolutionImportResponseSolutionOperationResultDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSolutionResource ¶
func NewSolutionsDataSource ¶
func NewSolutionsDataSource() datasource.DataSource
Types ¶
type EnvironmentIdDto ¶
type EnvironmentIdDto struct { Id string `json:"id"` Name string `json:"name"` Properties EnvironmentIdPropertiesDto `json:"properties"` }
type EnvironmentIdPropertiesDto ¶
type EnvironmentIdPropertiesDto struct {
LinkedEnvironmentMetadata LinkedEnvironmentIdMetadataDto `json:"linkedEnvironmentMetadata"`
}
type ImportSolutionConnectionReferencesDto ¶
type ImportSolutionConnectionReferencesDto struct { Type string `json:"@odata.type"` ConnectionReferenceDisplayName string `json:"connectionreferencedisplayname"` ConnectionReferenceLogicalName string `json:"connectionreferencelogicalname"` Description string `json:"description"` ConnectorId string `json:"connectorid"` ConnectionId string `json:"connectionid"` }
type ImportSolutionDto ¶
type ImportSolutionDto struct { PublishWorkflows bool `json:"PublishWorkflows"` OverwriteUnmanagedCustomizations bool `json:"OverwriteUnmanagedCustomizations"` ComponentParameters []interface{} `json:"ComponentParameters"` SolutionParameters ImportSolutionSolutionParametersDto `json:"SolutionParameters"` }
type ImportSolutionSolutionParametersDto ¶
type ImportSolutionSolutionParametersDto struct {
StageSolutionUploadId string `json:"StageSolutionUploadId"`
}
type LinkedEnvironmentIdMetadataDto ¶
type LinkedEnvironmentIdMetadataDto struct {
InstanceURL string
}
type SolutionClient ¶
type SolutionClient struct {
// contains filtered or unexported fields
}
func NewSolutionClient ¶
func NewSolutionClient(bapi *api.BapiClientApi, dv *api.DataverseClientApi) SolutionClient
func (*SolutionClient) CreateSolution ¶
func (client *SolutionClient) CreateSolution(ctx context.Context, environmentId string, solutionToCreate ImportSolutionDto, content []byte, settings []byte) (*SolutionDto, error)
func (*SolutionClient) DeleteSolution ¶
func (*SolutionClient) GetEnvironmentUrlById ¶
func (*SolutionClient) GetSolution ¶
func (client *SolutionClient) GetSolution(ctx context.Context, environmentId string, solutionName string) (*SolutionDto, error)
func (*SolutionClient) GetSolutions ¶
func (client *SolutionClient) GetSolutions(ctx context.Context, environmentId string) ([]SolutionDto, error)
func (*SolutionClient) GetTableData ¶
func (client *SolutionClient) GetTableData(ctx context.Context, environmentId, tableName, odataQuery string, responseObj interface{}) error
type SolutionDto ¶
type SolutionDto struct { Id string `json:"solutionid"` EnvironmentId string `json:"environment_id"` Name string `json:"uniquename"` DisplayName string `json:"friendlyname"` IsManaged bool `json:"ismanaged"` CreatedTime string `json:"createdon"` Version string `json:"version"` ModifiedTime string `json:"modifiedon"` InstallTime string `json:"installedon"` }
type SolutionDtoArray ¶
type SolutionDtoArray struct {
Value []SolutionDto `json:"value"`
}
type SolutionListDataSourceModel ¶
type SolutionListDataSourceModel struct { Id types.String `tfsdk:"id"` EnvironmentId types.String `tfsdk:"environment_id"` Solutions []SolutionsDataSourceModel `tfsdk:"solutions"` }
type SolutionResource ¶
type SolutionResource struct { SolutionClient SolutionClient ProviderTypeName string TypeName string }
func (*SolutionResource) Configure ¶
func (r *SolutionResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SolutionResource) Create ¶
func (r *SolutionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SolutionResource) Delete ¶
func (r *SolutionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SolutionResource) ImportState ¶
func (r *SolutionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SolutionResource) Metadata ¶
func (r *SolutionResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SolutionResource) Read ¶
func (r *SolutionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SolutionResource) Schema ¶
func (r *SolutionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SolutionResource) Update ¶
func (r *SolutionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SolutionResourceModel ¶
type SolutionResourceModel struct { Id types.String `tfsdk:"id"` SolutionFileChecksum types.String `tfsdk:"solution_file_checksum"` SettingsFileChecksum types.String `tfsdk:"settings_file_checksum"` EnvironmentId types.String `tfsdk:"environment_id"` SolutionName types.String `tfsdk:"solution_name"` SolutionVersion types.String `tfsdk:"solution_version"` SolutionFile types.String `tfsdk:"solution_file"` SettingsFile types.String `tfsdk:"settings_file"` IsManaged types.Bool `tfsdk:"is_managed"` DisplayName types.String `tfsdk:"display_name"` }
type SolutionSettings ¶
type SolutionSettings struct { EnvironmentVariables []SolutionSettingsEnvironmentVariable `json:"environmentvariables"` ConnectionReferences []SolutionSettingsConnectionReferences `json:"connectionreferences"` }
type SolutionsDataSource ¶
type SolutionsDataSource struct { SolutionClient SolutionClient ProviderTypeName string TypeName string }
func (*SolutionsDataSource) Configure ¶
func (d *SolutionsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SolutionsDataSource) Metadata ¶
func (d *SolutionsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SolutionsDataSource) Read ¶
func (d *SolutionsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SolutionsDataSource) Schema ¶
func (d *SolutionsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SolutionsDataSourceModel ¶
type SolutionsDataSourceModel struct { EnvironmentId types.String `tfsdk:"environment_id"` DisplayName types.String `tfsdk:"display_name"` Name types.String `tfsdk:"name"` CreatedTime types.String `tfsdk:"created_time"` Id types.String `tfsdk:"id"` ModifiedTime types.String `tfsdk:"modified_time"` InstallTime types.String `tfsdk:"install_time"` Version types.String `tfsdk:"version"` IsManaged types.Bool `tfsdk:"is_managed"` }
func ConvertFromSolutionDto ¶
func ConvertFromSolutionDto(solutionDto SolutionDto) SolutionsDataSourceModel
type StageSolutionImportDto ¶
type StageSolutionImportDto struct {
CustomizationFile string `json:"CustomizationFile"`
}
type StageSolutionImportResponseDto ¶
type StageSolutionImportResponseDto struct {
StageSolutionResults StageSolutionImportResultResponseDto `json:"StageSolutionResults"`
}
type StageSolutionImportResultResponseDto ¶
type StageSolutionImportResultResponseDto struct { StageSolutionUploadId string `json:"StageSolutionUploadId"` StageSolutionStatus string `json:"StageSolutionStatus"` SolutionValidationResults []string `json:"SolutionValidationResults"` MissingDependencies []string `json:"MissingDependencies"` SolutionDetails StageSolutionSolutionDetailsDto `json:"SolutionDetails"` }
type ValidateSolutionImportResponseDto ¶
type ValidateSolutionImportResponseDto struct {
SolutionOperationResult ValidateSolutionImportResponseSolutionOperationResultDto `json:"SolutionOperationResult"`
}
type ValidateSolutionImportResponseSolutionOperationResultDto ¶
type ValidateSolutionImportResponseSolutionOperationResultDto struct { Status string `json:"Status"` WarningMessages []interface{} `json:"WarningMessages"` ErrorMessages []interface{} `json:"ErrorMessages"` }
Click to show internal directories.
Click to hide internal directories.