All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.desktopvirtualization.MSIXPackage Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.desktopvirtualization;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.desktopvirtualization.MSIXPackageArgs;
import com.pulumi.azurenative.desktopvirtualization.outputs.MsixPackageApplicationsResponse;
import com.pulumi.azurenative.desktopvirtualization.outputs.MsixPackageDependenciesResponse;
import com.pulumi.azurenative.desktopvirtualization.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Schema for MSIX Package properties.
 * Azure REST API version: 2022-09-09. Prior API version in Azure Native 1.x: 2021-02-01-preview.
 * 
 * Other available API versions: 2022-10-14-preview, 2023-07-07-preview, 2023-09-05, 2023-10-04-preview, 2023-11-01-preview, 2024-01-16-preview, 2024-03-06-preview, 2024-04-03, 2024-04-08-preview, 2024-08-08-preview.
 * 
 * ## Example Usage
 * ### MSIXPackage_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.desktopvirtualization.MSIXPackage;
 * import com.pulumi.azurenative.desktopvirtualization.MSIXPackageArgs;
 * import com.pulumi.azurenative.desktopvirtualization.inputs.MsixPackageApplicationsArgs;
 * import com.pulumi.azurenative.desktopvirtualization.inputs.MsixPackageDependenciesArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var msixPackage = new MSIXPackage("msixPackage", MSIXPackageArgs.builder()
 *             .displayName("displayname")
 *             .hostPoolName("hostpool1")
 *             .imagePath("imagepath")
 *             .isActive(false)
 *             .isRegularRegistration(false)
 *             .lastUpdated("2008-09-22T14:01:54.9571247Z")
 *             .msixPackageFullName("msixpackagefullname")
 *             .packageApplications(MsixPackageApplicationsArgs.builder()
 *                 .appId("ApplicationId")
 *                 .appUserModelID("AppUserModelId")
 *                 .description("application-desc")
 *                 .friendlyName("friendlyname")
 *                 .iconImageName("Apptile")
 *                 .rawIcon("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo")
 *                 .rawPng("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo")
 *                 .build())
 *             .packageDependencies(MsixPackageDependenciesArgs.builder()
 *                 .dependencyName("MsixTest_Dependency_Name")
 *                 .minVersion("version")
 *                 .publisher("PublishedName")
 *                 .build())
 *             .packageFamilyName("MsixPackage_FamilyName")
 *             .packageName("MsixPackage_name")
 *             .packageRelativePath("packagerelativepath")
 *             .resourceGroupName("resourceGroup1")
 *             .version("version")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:desktopvirtualization:MSIXPackage hostpool1/MsixPackageFullName /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName} * ``` * */ @ResourceType(type="azure-native:desktopvirtualization:MSIXPackage") public class MSIXPackage extends com.pulumi.resources.CustomResource { /** * User friendly Name to be displayed in the portal. * */ @Export(name="displayName", refs={String.class}, tree="[0]") private Output displayName; /** * @return User friendly Name to be displayed in the portal. * */ public Output> displayName() { return Codegen.optional(this.displayName); } /** * VHD/CIM image path on Network Share. * */ @Export(name="imagePath", refs={String.class}, tree="[0]") private Output imagePath; /** * @return VHD/CIM image path on Network Share. * */ public Output> imagePath() { return Codegen.optional(this.imagePath); } /** * Make this version of the package the active one across the hostpool. * */ @Export(name="isActive", refs={Boolean.class}, tree="[0]") private Output isActive; /** * @return Make this version of the package the active one across the hostpool. * */ public Output> isActive() { return Codegen.optional(this.isActive); } /** * Specifies how to register Package in feed. * */ @Export(name="isRegularRegistration", refs={Boolean.class}, tree="[0]") private Output isRegularRegistration; /** * @return Specifies how to register Package in feed. * */ public Output> isRegularRegistration() { return Codegen.optional(this.isRegularRegistration); } /** * Date Package was last updated, found in the appxmanifest.xml. * */ @Export(name="lastUpdated", refs={String.class}, tree="[0]") private Output lastUpdated; /** * @return Date Package was last updated, found in the appxmanifest.xml. * */ public Output> lastUpdated() { return Codegen.optional(this.lastUpdated); } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * List of package applications. * */ @Export(name="packageApplications", refs={List.class,MsixPackageApplicationsResponse.class}, tree="[0,1]") private Output> packageApplications; /** * @return List of package applications. * */ public Output>> packageApplications() { return Codegen.optional(this.packageApplications); } /** * List of package dependencies. * */ @Export(name="packageDependencies", refs={List.class,MsixPackageDependenciesResponse.class}, tree="[0,1]") private Output> packageDependencies; /** * @return List of package dependencies. * */ public Output>> packageDependencies() { return Codegen.optional(this.packageDependencies); } /** * Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. * */ @Export(name="packageFamilyName", refs={String.class}, tree="[0]") private Output packageFamilyName; /** * @return Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. * */ public Output> packageFamilyName() { return Codegen.optional(this.packageFamilyName); } /** * Package Name from appxmanifest.xml. * */ @Export(name="packageName", refs={String.class}, tree="[0]") private Output packageName; /** * @return Package Name from appxmanifest.xml. * */ public Output> packageName() { return Codegen.optional(this.packageName); } /** * Relative Path to the package inside the image. * */ @Export(name="packageRelativePath", refs={String.class}, tree="[0]") private Output packageRelativePath; /** * @return Relative Path to the package inside the image. * */ public Output> packageRelativePath() { return Codegen.optional(this.packageRelativePath); } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ public Output systemData() { return this.systemData; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * Package Version found in the appxmanifest.xml. * */ @Export(name="version", refs={String.class}, tree="[0]") private Output version; /** * @return Package Version found in the appxmanifest.xml. * */ public Output> version() { return Codegen.optional(this.version); } /** * * @param name The _unique_ name of the resulting resource. */ public MSIXPackage(java.lang.String name) { this(name, MSIXPackageArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public MSIXPackage(java.lang.String name, MSIXPackageArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public MSIXPackage(java.lang.String name, MSIXPackageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:desktopvirtualization:MSIXPackage", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private MSIXPackage(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:desktopvirtualization:MSIXPackage", name, null, makeResourceOptions(options, id), false); } private static MSIXPackageArgs makeArgs(MSIXPackageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? MSIXPackageArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20200921preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201019preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201102preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201110preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210114preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210201preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210309preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210401preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210712:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210903preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220210preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220401preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220909:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20221014preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20230707preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20230905:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20231004preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20231101preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240116preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240306preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240403:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240408preview:MSIXPackage").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240808preview:MSIXPackage").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static MSIXPackage get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MSIXPackage(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy