powerplatform

package
v0.4.0-preview Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSolutionResource

func NewSolutionResource() resource.Resource

func NewSolutionsDataSource

func NewSolutionsDataSource() datasource.DataSource

Types

type AsyncSolutionPullResponseDto

type AsyncSolutionPullResponseDto struct {
	AsyncOperationId string `json:"AsyncOperationId"`
	CreatedOn        string `json:"createdon"`
	CompletedOn      string `json:"completedon"`
}

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 ImportSolutionEnvironmentVariablesDto

type ImportSolutionEnvironmentVariablesDto struct {
	Type       string `json:"@odata.type"`
	SchemaName string `json:"schemaname"`
	Value      string `json:"value"`
}

type ImportSolutionResponseDto

type ImportSolutionResponseDto struct {
	ImportJobKey     string `json:"ImportJobKey"`
	AsyncOperationId string `json:"AsyncOperationId"`
}

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 (client *SolutionClient) DeleteSolution(ctx context.Context, environmentId string, solutionName string) error

func (*SolutionClient) GetEnvironmentUrlById

func (client *SolutionClient) GetEnvironmentUrlById(ctx context.Context, environmentId string) (string, error)

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 (*SolutionResource) Create

func (*SolutionResource) Delete

func (*SolutionResource) ImportState

func (*SolutionResource) Metadata

func (*SolutionResource) Read

func (*SolutionResource) Schema

func (*SolutionResource) Update

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 SolutionSettingsConnectionReferences

type SolutionSettingsConnectionReferences struct {
	LogicalName  string `json:"logicalname"`
	ConnectionId string `json:"connectionid"`
	ConnectorId  string `json:"connectorid"`
}

type SolutionSettingsEnvironmentVariable

type SolutionSettingsEnvironmentVariable struct {
	SchemaName string `json:"schemaname"`
	Value      string `json:"value"`
}

type SolutionsDataSource

type SolutionsDataSource struct {
	SolutionClient   SolutionClient
	ProviderTypeName string
	TypeName         string
}

func (*SolutionsDataSource) Configure

func (*SolutionsDataSource) Metadata

func (*SolutionsDataSource) Read

func (*SolutionsDataSource) Schema

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 StageSolutionSolutionDetailsDto

type StageSolutionSolutionDetailsDto struct {
	SolutionUniqueName   string `json:"SolutionUniqueName"`
	SolutionFriendlyName string `json:"SolutionFriendlyName"`
	IsManaged            bool   `json:"IsManaged"`
	SolutionVersion      string `json:"SolutionVersion"`
}

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"`
}

Jump to

Keyboard shortcuts

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