powerplatform

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPowerAppsDataSource

func NewPowerAppsDataSource() datasource.DataSource

Types

type PowerAppBapi

type PowerAppBapi struct {
	Name       string                 `json:"name"`
	Properties PowerAppPropertiesBapi `json:"properties"`
}

type PowerAppCreatedByDto

type PowerAppCreatedByDto struct {
	DisplayName       string `json:"displayName"`
	Id                string `json:"id"`
	UserPrincipalName string `json:"userPrincipalName"`
}

type PowerAppDtoArray

type PowerAppDtoArray struct {
	Value []PowerAppBapi `json:"value"`
}

type PowerAppEnvironmentDto

type PowerAppEnvironmentDto struct {
	Id       string `json:"id"`
	Location string `json:"location"`
	Name     string `json:"name"`
}

type PowerAppPropertiesBapi

type PowerAppPropertiesBapi struct {
	DisplayName      string                 `json:"displayName"`
	Owner            PowerAppCreatedByDto   `json:"owner"`
	CreatedBy        PowerAppCreatedByDto   `json:"createdBy"`
	LastModifiedBy   PowerAppCreatedByDto   `json:"lastModifiedBy"`
	LastPublishedBy  PowerAppCreatedByDto   `json:"lastPublishedBy"`
	CreatedTime      string                 `json:"createdTime"`
	LastModifiedTime string                 `json:"lastModifiedTime"`
	LastPublishTime  string                 `json:"lastPublishTime"`
	Environment      PowerAppEnvironmentDto `json:"environment"`
}

type PowerAppsDataSource

type PowerAppsDataSource struct {
	PowerAppssClient PowerAppssClient
	ProviderTypeName string
	TypeName         string
}

func (*PowerAppsDataSource) Configure

func (*PowerAppsDataSource) Metadata

func (*PowerAppsDataSource) Read

func (*PowerAppsDataSource) Schema

type PowerAppsDataSourceModel

type PowerAppsDataSourceModel struct {
	EnvironmentId types.String `tfsdk:"id"`
	DisplayName   types.String `tfsdk:"display_name"`
	Name          types.String `tfsdk:"name"`
	CreatedTime   types.String `tfsdk:"created_time"`
}

func ConvertFromPowerAppDto

func ConvertFromPowerAppDto(powerAppDto PowerAppBapi) PowerAppsDataSourceModel

type PowerAppsListDataSourceModel

type PowerAppsListDataSourceModel struct {
	Id        types.String               `tfsdk:"id"`
	PowerApps []PowerAppsDataSourceModel `tfsdk:"powerapps"`
}

type PowerAppssClient

type PowerAppssClient struct {
	Api *api.ApiClient
	// contains filtered or unexported fields
}

func NewPowerAppssClient

func NewPowerAppssClient(api *api.ApiClient) PowerAppssClient

func (*PowerAppssClient) GetPowerApps

func (client *PowerAppssClient) GetPowerApps(ctx context.Context, environmentId string) ([]PowerAppBapi, error)

Jump to

Keyboard shortcuts

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