Documentation
¶
Overview ¶
REF: https://learn.microsoft.com/en-us/graph/api/resources/intune-apps-wingetapp?view=graph-rest-beta
Index ¶
- func DownloadImage(url string) ([]byte, error)
- func FetchStoreAppDetails(packageIdentifier string) (string, string, string, string, error)
- func MapRemoteStateToTerraform(ctx context.Context, data *WinGetAppResourceModel, ...)
- func NewWinGetAppResource() resource.Resource
- type MimeContentModel
- type WinGetAppInstallExperienceModel
- type WinGetAppResource
- func (r *WinGetAppResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *WinGetAppResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *WinGetAppResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *WinGetAppResource) GetTypeName() string
- func (r *WinGetAppResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *WinGetAppResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *WinGetAppResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *WinGetAppResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *WinGetAppResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type WinGetAppResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadImage ¶
DownloadImage downloads an image from a given URL and returns it as a byte slice
func FetchStoreAppDetails ¶
FetchStoreAppDetails fetches and parses details from the Microsoft Store webpage based on the packageIdentifier It also extracts the icon URL, app description, and publisher
func MapRemoteStateToTerraform ¶
func MapRemoteStateToTerraform(ctx context.Context, data *WinGetAppResourceModel, remoteResource models.WinGetAppable)
func NewWinGetAppResource ¶
Types ¶
type MimeContentModel ¶
type MimeContentModel struct { Type types.String `tfsdk:"type"` Value types.String `tfsdk:"value"` }
MimeContentModel represents the MIME content structure
type WinGetAppInstallExperienceModel ¶
WinGetAppInstallExperienceModel represents the install experience structure
type WinGetAppResource ¶
type WinGetAppResource struct { ProviderTypeName string TypeName string ReadPermissions []string WritePermissions []string // contains filtered or unexported fields }
func (*WinGetAppResource) Configure ¶
func (r *WinGetAppResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure sets the client for the resource.
func (*WinGetAppResource) Create ¶
func (r *WinGetAppResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create handles the Create operation.
func (*WinGetAppResource) Delete ¶
func (r *WinGetAppResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete handles the Delete operation.
func (*WinGetAppResource) GetTypeName ¶
func (r *WinGetAppResource) GetTypeName() string
GetTypeName returns the type name of the resource from the state model.
func (*WinGetAppResource) ImportState ¶
func (r *WinGetAppResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource state.
func (*WinGetAppResource) Metadata ¶
func (r *WinGetAppResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*WinGetAppResource) Read ¶
func (r *WinGetAppResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read handles the Read operation.
func (*WinGetAppResource) Schema ¶
func (r *WinGetAppResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*WinGetAppResource) Update ¶
func (r *WinGetAppResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update handles the Update operation.
type WinGetAppResourceModel ¶
type WinGetAppResourceModel struct { ID types.String `tfsdk:"id"` DisplayName types.String `tfsdk:"display_name"` Description types.String `tfsdk:"description"` Publisher types.String `tfsdk:"publisher"` LargeIcon types.Object `tfsdk:"large_icon"` CreatedDateTime types.String `tfsdk:"created_date_time"` LastModifiedDateTime types.String `tfsdk:"last_modified_date_time"` IsFeatured types.Bool `tfsdk:"is_featured"` PrivacyInformationUrl types.String `tfsdk:"privacy_information_url"` InformationUrl types.String `tfsdk:"information_url"` Owner types.String `tfsdk:"owner"` Developer types.String `tfsdk:"developer"` Notes types.String `tfsdk:"notes"` UploadState types.Int64 `tfsdk:"upload_state"` PublishingState types.String `tfsdk:"publishing_state"` IsAssigned types.Bool `tfsdk:"is_assigned"` RoleScopeTagIds []types.String `tfsdk:"role_scope_tag_ids"` DependentAppCount types.Int64 `tfsdk:"dependent_app_count"` SupersedingAppCount types.Int64 `tfsdk:"superseding_app_count"` SupersededAppCount types.Int64 `tfsdk:"superseded_app_count"` ManifestHash types.String `tfsdk:"manifest_hash"` PackageIdentifier types.String `tfsdk:"package_identifier"` InstallExperience *WinGetAppInstallExperienceModel `tfsdk:"install_experience"` Timeouts timeouts.Value `tfsdk:"timeouts"` Assignments []graphBetaMobileAppAssignment.MobileAppAssignmentResourceModel `tfsdk:"assignments"` }
WinGetAppResourceModel represents the Terraform resource model for a WinGetApp
func (*WinGetAppResourceModel) GetID ¶
func (s *WinGetAppResourceModel) GetID() string
GetID returns the ID of a resource from the state model.