![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.containerregistry.kotlin.ArchifeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerregistry.kotlin
import com.pulumi.azurenative.containerregistry.ArchifeArgs.builder
import com.pulumi.azurenative.containerregistry.kotlin.inputs.ArchivePackageSourcePropertiesArgs
import com.pulumi.azurenative.containerregistry.kotlin.inputs.ArchivePackageSourcePropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* An object that represents a archive for a container registry.
* Azure REST API version: 2023-06-01-preview.
* Other available API versions: 2023-08-01-preview, 2023-11-01-preview.
* ## Example Usage
* ### ArchiveCreate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var archife = new AzureNative.ContainerRegistry.Archife("archife", new()
* {
* ArchiveName = "myArchiveName",
* PackageSource = new AzureNative.ContainerRegistry.Inputs.ArchivePackageSourcePropertiesArgs
* {
* Type = AzureNative.ContainerRegistry.PackageSourceType.Remote,
* Url = "string",
* },
* PackageType = "rpm",
* PublishedVersion = "string",
* RegistryName = "myRegistry",
* RepositoryEndpointPrefix = "string",
* ResourceGroupName = "myResourceGroup",
* });
* });
* ```
* ```go
* package main
* import (
* containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := containerregistry.NewArchife(ctx, "archife", &containerregistry.ArchifeArgs{
* ArchiveName: pulumi.String("myArchiveName"),
* PackageSource: &containerregistry.ArchivePackageSourcePropertiesArgs{
* Type: pulumi.String(containerregistry.PackageSourceTypeRemote),
* Url: pulumi.String("string"),
* },
* PackageType: pulumi.String("rpm"),
* PublishedVersion: pulumi.String("string"),
* RegistryName: pulumi.String("myRegistry"),
* RepositoryEndpointPrefix: pulumi.String("string"),
* ResourceGroupName: pulumi.String("myResourceGroup"),
* })
* 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.azurenative.containerregistry.Archife;
* import com.pulumi.azurenative.containerregistry.ArchifeArgs;
* import com.pulumi.azurenative.containerregistry.inputs.ArchivePackageSourcePropertiesArgs;
* 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 archife = new Archife("archife", ArchifeArgs.builder()
* .archiveName("myArchiveName")
* .packageSource(ArchivePackageSourcePropertiesArgs.builder()
* .type("remote")
* .url("string")
* .build())
* .packageType("rpm")
* .publishedVersion("string")
* .registryName("myRegistry")
* .repositoryEndpointPrefix("string")
* .resourceGroupName("myResourceGroup")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:containerregistry:Archife myArchiveName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}
* ```
* @property archiveName The name of the archive resource.
* @property packageSource The package source of the archive.
* @property packageType The type of the package resource.
* @property publishedVersion The published version of the archive.
* @property registryName The name of the container registry.
* @property repositoryEndpointPrefix
* @property resourceGroupName The name of the resource group. The name is case insensitive.
*/
public data class ArchifeArgs(
public val archiveName: Output? = null,
public val packageSource: Output? = null,
public val packageType: Output? = null,
public val publishedVersion: Output? = null,
public val registryName: Output? = null,
public val repositoryEndpointPrefix: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.ArchifeArgs =
com.pulumi.azurenative.containerregistry.ArchifeArgs.builder()
.archiveName(archiveName?.applyValue({ args0 -> args0 }))
.packageSource(packageSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.packageType(packageType?.applyValue({ args0 -> args0 }))
.publishedVersion(publishedVersion?.applyValue({ args0 -> args0 }))
.registryName(registryName?.applyValue({ args0 -> args0 }))
.repositoryEndpointPrefix(repositoryEndpointPrefix?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ArchifeArgs].
*/
@PulumiTagMarker
public class ArchifeArgsBuilder internal constructor() {
private var archiveName: Output? = null
private var packageSource: Output? = null
private var packageType: Output? = null
private var publishedVersion: Output? = null
private var registryName: Output? = null
private var repositoryEndpointPrefix: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value The name of the archive resource.
*/
@JvmName("tgasiutbsgxlnhmf")
public suspend fun archiveName(`value`: Output) {
this.archiveName = value
}
/**
* @param value The package source of the archive.
*/
@JvmName("beivachrqmslhawp")
public suspend fun packageSource(`value`: Output) {
this.packageSource = value
}
/**
* @param value The type of the package resource.
*/
@JvmName("ogyyavfcpynfplhs")
public suspend fun packageType(`value`: Output) {
this.packageType = value
}
/**
* @param value The published version of the archive.
*/
@JvmName("bimhnxplksiggkmr")
public suspend fun publishedVersion(`value`: Output) {
this.publishedVersion = value
}
/**
* @param value The name of the container registry.
*/
@JvmName("mlansxwsytjxhjpp")
public suspend fun registryName(`value`: Output) {
this.registryName = value
}
/**
* @param value
*/
@JvmName("nsialilwriclgdbw")
public suspend fun repositoryEndpointPrefix(`value`: Output) {
this.repositoryEndpointPrefix = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("bccgusutedwnpapj")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the archive resource.
*/
@JvmName("mmpbgynhfmsyakxk")
public suspend fun archiveName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.archiveName = mapped
}
/**
* @param value The package source of the archive.
*/
@JvmName("wukkbbvjolxarvev")
public suspend fun packageSource(`value`: ArchivePackageSourcePropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.packageSource = mapped
}
/**
* @param argument The package source of the archive.
*/
@JvmName("jdjcrppfpkmibevd")
public suspend fun packageSource(argument: suspend ArchivePackageSourcePropertiesArgsBuilder.() -> Unit) {
val toBeMapped = ArchivePackageSourcePropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.packageSource = mapped
}
/**
* @param value The type of the package resource.
*/
@JvmName("bvoyfhjfntcwsxcm")
public suspend fun packageType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.packageType = mapped
}
/**
* @param value The published version of the archive.
*/
@JvmName("fcthejootaqtsrmn")
public suspend fun publishedVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publishedVersion = mapped
}
/**
* @param value The name of the container registry.
*/
@JvmName("dwqyscnbdcfcmbek")
public suspend fun registryName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.registryName = mapped
}
/**
* @param value
*/
@JvmName("fjgiyvmrjaquyqtl")
public suspend fun repositoryEndpointPrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repositoryEndpointPrefix = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("dedmrqemumkarktg")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): ArchifeArgs = ArchifeArgs(
archiveName = archiveName,
packageSource = packageSource,
packageType = packageType,
publishedVersion = publishedVersion,
registryName = registryName,
repositoryEndpointPrefix = repositoryEndpointPrefix,
resourceGroupName = resourceGroupName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy