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

com.pulumi.azure.systemcenter.kotlin.SystemcenterFunctions.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.systemcenter.kotlin

import com.pulumi.azure.systemcenter.SystemcenterFunctions.getVirtualMachineManagerInventoryItemsPlain
import com.pulumi.azure.systemcenter.kotlin.inputs.GetVirtualMachineManagerInventoryItemsPlainArgs
import com.pulumi.azure.systemcenter.kotlin.inputs.GetVirtualMachineManagerInventoryItemsPlainArgsBuilder
import com.pulumi.azure.systemcenter.kotlin.outputs.GetVirtualMachineManagerInventoryItemsResult
import com.pulumi.azure.systemcenter.kotlin.outputs.GetVirtualMachineManagerInventoryItemsResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object SystemcenterFunctions {
    /**
     * Use this data source to access information about existing System Center Virtual Machine Manager Inventory Items.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.systemcenter.getVirtualMachineManagerInventoryItems({
     *     inventoryType: "Cloud",
     *     systemCenterVirtualMachineManagerServerId: exampleAzurermSystemCenterVirtualMachineManagerServer.id,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.systemcenter.get_virtual_machine_manager_inventory_items(inventory_type="Cloud",
     *     system_center_virtual_machine_manager_server_id=example_azurerm_system_center_virtual_machine_manager_server["id"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.SystemCenter.GetVirtualMachineManagerInventoryItems.Invoke(new()
     *     {
     *         InventoryType = "Cloud",
     *         SystemCenterVirtualMachineManagerServerId = exampleAzurermSystemCenterVirtualMachineManagerServer.Id,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/systemcenter"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := systemcenter.GetVirtualMachineManagerInventoryItems(ctx, &systemcenter.GetVirtualMachineManagerInventoryItemsArgs{
     * 			InventoryType: "Cloud",
     * 			SystemCenterVirtualMachineManagerServerId: exampleAzurermSystemCenterVirtualMachineManagerServer.Id,
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.systemcenter.SystemcenterFunctions;
     * import com.pulumi.azure.systemcenter.inputs.GetVirtualMachineManagerInventoryItemsArgs;
     * 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) {
     *         final var example = SystemcenterFunctions.getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs.builder()
     *             .inventoryType("Cloud")
     *             .systemCenterVirtualMachineManagerServerId(exampleAzurermSystemCenterVirtualMachineManagerServer.id())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:systemcenter:getVirtualMachineManagerInventoryItems
     *       Arguments:
     *         inventoryType: Cloud
     *         systemCenterVirtualMachineManagerServerId: ${exampleAzurermSystemCenterVirtualMachineManagerServer.id}
     * ```
     * 
     * @param argument A collection of arguments for invoking getVirtualMachineManagerInventoryItems.
     * @return A collection of values returned by getVirtualMachineManagerInventoryItems.
     */
    public suspend fun getVirtualMachineManagerInventoryItems(argument: GetVirtualMachineManagerInventoryItemsPlainArgs): GetVirtualMachineManagerInventoryItemsResult =
        toKotlin(getVirtualMachineManagerInventoryItemsPlain(argument.toJava()).await())

    /**
     * @see [getVirtualMachineManagerInventoryItems].
     * @param inventoryType The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are `Cloud`, `VirtualMachine`, `VirtualMachineTemplate` and `VirtualNetwork`.
     * @param systemCenterVirtualMachineManagerServerId The ID of the System Center Virtual Machine Manager Server.
     * @return A collection of values returned by getVirtualMachineManagerInventoryItems.
     */
    public suspend fun getVirtualMachineManagerInventoryItems(
        inventoryType: String,
        systemCenterVirtualMachineManagerServerId: String,
    ): GetVirtualMachineManagerInventoryItemsResult {
        val argument = GetVirtualMachineManagerInventoryItemsPlainArgs(
            inventoryType = inventoryType,
            systemCenterVirtualMachineManagerServerId = systemCenterVirtualMachineManagerServerId,
        )
        return toKotlin(getVirtualMachineManagerInventoryItemsPlain(argument.toJava()).await())
    }

    /**
     * @see [getVirtualMachineManagerInventoryItems].
     * @param argument Builder for [com.pulumi.azure.systemcenter.kotlin.inputs.GetVirtualMachineManagerInventoryItemsPlainArgs].
     * @return A collection of values returned by getVirtualMachineManagerInventoryItems.
     */
    public suspend fun getVirtualMachineManagerInventoryItems(argument: suspend GetVirtualMachineManagerInventoryItemsPlainArgsBuilder.() -> Unit): GetVirtualMachineManagerInventoryItemsResult {
        val builder = GetVirtualMachineManagerInventoryItemsPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getVirtualMachineManagerInventoryItemsPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy