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

com.pulumi.azurenative.automation.Python3Package 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.automation;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.automation.Python3PackageArgs;
import com.pulumi.azurenative.automation.outputs.ContentLinkResponse;
import com.pulumi.azurenative.automation.outputs.ModuleErrorInfoResponse;
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.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Definition of the module type.
 * Azure REST API version: 2022-08-08.
 * 
 * Other available API versions: 2023-05-15-preview, 2023-11-01.
 * 
 * ## Example Usage
 * ### Create or update a python 3 package
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.automation.Python3Package;
 * import com.pulumi.azurenative.automation.Python3PackageArgs;
 * import com.pulumi.azurenative.automation.inputs.ContentLinkArgs;
 * import com.pulumi.azurenative.automation.inputs.ContentHashArgs;
 * 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 python3Package = new Python3Package("python3Package", Python3PackageArgs.builder()
 *             .automationAccountName("myAutomationAccount33")
 *             .contentLink(ContentLinkArgs.builder()
 *                 .contentHash(ContentHashArgs.builder()
 *                     .algorithm("sha265")
 *                     .value("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A")
 *                     .build())
 *                 .uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip")
 *                 .version("1.0.0.0")
 *                 .build())
 *             .packageName("OmsCompositeResources")
 *             .resourceGroupName("rg")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:automation:Python3Package OmsCompositeResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} * ``` * */ @ResourceType(type="azure-native:automation:Python3Package") public class Python3Package extends com.pulumi.resources.CustomResource { /** * Gets or sets the activity count of the module. * */ @Export(name="activityCount", refs={Integer.class}, tree="[0]") private Output activityCount; /** * @return Gets or sets the activity count of the module. * */ public Output> activityCount() { return Codegen.optional(this.activityCount); } /** * Gets or sets the contentLink of the module. * */ @Export(name="contentLink", refs={ContentLinkResponse.class}, tree="[0]") private Output contentLink; /** * @return Gets or sets the contentLink of the module. * */ public Output> contentLink() { return Codegen.optional(this.contentLink); } /** * Gets or sets the creation time. * */ @Export(name="creationTime", refs={String.class}, tree="[0]") private Output creationTime; /** * @return Gets or sets the creation time. * */ public Output> creationTime() { return Codegen.optional(this.creationTime); } /** * Gets or sets the description. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Gets or sets the description. * */ public Output> description() { return Codegen.optional(this.description); } /** * Gets or sets the error info of the module. * */ @Export(name="error", refs={ModuleErrorInfoResponse.class}, tree="[0]") private Output error; /** * @return Gets or sets the error info of the module. * */ public Output> error() { return Codegen.optional(this.error); } /** * Gets or sets the etag of the resource. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return Gets or sets the etag of the resource. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * Gets or sets type of module, if its composite or not. * */ @Export(name="isComposite", refs={Boolean.class}, tree="[0]") private Output isComposite; /** * @return Gets or sets type of module, if its composite or not. * */ public Output> isComposite() { return Codegen.optional(this.isComposite); } /** * Gets or sets the isGlobal flag of the module. * */ @Export(name="isGlobal", refs={Boolean.class}, tree="[0]") private Output isGlobal; /** * @return Gets or sets the isGlobal flag of the module. * */ public Output> isGlobal() { return Codegen.optional(this.isGlobal); } /** * Gets or sets the last modified time. * */ @Export(name="lastModifiedTime", refs={String.class}, tree="[0]") private Output lastModifiedTime; /** * @return Gets or sets the last modified time. * */ public Output> lastModifiedTime() { return Codegen.optional(this.lastModifiedTime); } /** * The Azure Region where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The Azure Region where the resource lives * */ public Output> location() { return Codegen.optional(this.location); } /** * 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; } /** * Gets or sets the provisioning state of the module. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Gets or sets the provisioning state of the module. * */ public Output> provisioningState() { return Codegen.optional(this.provisioningState); } /** * Gets or sets the size in bytes of the module. * */ @Export(name="sizeInBytes", refs={Double.class}, tree="[0]") private Output sizeInBytes; /** * @return Gets or sets the size in bytes of the module. * */ public Output> sizeInBytes() { return Codegen.optional(this.sizeInBytes); } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. * */ public Output type() { return this.type; } /** * Gets or sets the version of the module. * */ @Export(name="version", refs={String.class}, tree="[0]") private Output version; /** * @return Gets or sets the version of the module. * */ public Output> version() { return Codegen.optional(this.version); } /** * * @param name The _unique_ name of the resulting resource. */ public Python3Package(java.lang.String name) { this(name, Python3PackageArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Python3Package(java.lang.String name, Python3PackageArgs 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 Python3Package(java.lang.String name, Python3PackageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:automation:Python3Package", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Python3Package(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:automation:Python3Package", name, null, makeResourceOptions(options, id), false); } private static Python3PackageArgs makeArgs(Python3PackageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? Python3PackageArgs.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:automation/v20220808:Python3Package").build()), Output.of(Alias.builder().type("azure-native:automation/v20230515preview:Python3Package").build()), Output.of(Alias.builder().type("azure-native:automation/v20231101:Python3Package").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 Python3Package get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Python3Package(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy