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

com.pulumi.vsphere.Provider Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732775311
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.vsphere;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.vsphere.ProviderArgs;
import com.pulumi.vsphere.Utilities;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The provider type for the vsphere package. By default, resources use package-wide configuration
 * settings, however an explicit `Provider` instance may be created and passed during resource
 * construction to achieve fine-grained programmatic control over provider settings. See the
 * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
 * 
 */
@ResourceType(type="pulumi:providers:vsphere")
public class Provider extends com.pulumi.resources.ProviderResource {
    /**
     * govmomi debug path for debug
     * 
     */
    @Export(name="clientDebugPath", refs={String.class}, tree="[0]")
    private Output clientDebugPath;

    /**
     * @return govmomi debug path for debug
     * 
     */
    public Output> clientDebugPath() {
        return Codegen.optional(this.clientDebugPath);
    }
    /**
     * govmomi debug path for a single run
     * 
     */
    @Export(name="clientDebugPathRun", refs={String.class}, tree="[0]")
    private Output clientDebugPathRun;

    /**
     * @return govmomi debug path for a single run
     * 
     */
    public Output> clientDebugPathRun() {
        return Codegen.optional(this.clientDebugPathRun);
    }
    /**
     * The user password for vSphere API operations.
     * 
     */
    @Export(name="password", refs={String.class}, tree="[0]")
    private Output password;

    /**
     * @return The user password for vSphere API operations.
     * 
     */
    public Output password() {
        return this.password;
    }
    /**
     * The directory to save vSphere REST API sessions to
     * 
     */
    @Export(name="restSessionPath", refs={String.class}, tree="[0]")
    private Output restSessionPath;

    /**
     * @return The directory to save vSphere REST API sessions to
     * 
     */
    public Output> restSessionPath() {
        return Codegen.optional(this.restSessionPath);
    }
    /**
     * The user name for vSphere API operations.
     * 
     */
    @Export(name="user", refs={String.class}, tree="[0]")
    private Output user;

    /**
     * @return The user name for vSphere API operations.
     * 
     */
    public Output user() {
        return this.user;
    }
    /**
     * @deprecated
     * This field has been renamed to vsphere_server.
     * 
     */
    @Deprecated /* This field has been renamed to vsphere_server. */
    @Export(name="vcenterServer", refs={String.class}, tree="[0]")
    private Output vcenterServer;

    public Output> vcenterServer() {
        return Codegen.optional(this.vcenterServer);
    }
    /**
     * The directory to save vSphere SOAP API sessions to
     * 
     */
    @Export(name="vimSessionPath", refs={String.class}, tree="[0]")
    private Output vimSessionPath;

    /**
     * @return The directory to save vSphere SOAP API sessions to
     * 
     */
    public Output> vimSessionPath() {
        return Codegen.optional(this.vimSessionPath);
    }
    /**
     * The vSphere Server name for vSphere API operations.
     * 
     */
    @Export(name="vsphereServer", refs={String.class}, tree="[0]")
    private Output vsphereServer;

    /**
     * @return The vSphere Server name for vSphere API operations.
     * 
     */
    public Output> vsphereServer() {
        return Codegen.optional(this.vsphereServer);
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Provider(java.lang.String name) {
        this(name, ProviderArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Provider(java.lang.String name, ProviderArgs 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 Provider(java.lang.String name, ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("vsphere", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private static ProviderArgs makeArgs(ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? ProviderArgs.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())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy