![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devcenter.kotlin.ProjectCatalogArgs.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.devcenter.kotlin
import com.pulumi.azurenative.devcenter.ProjectCatalogArgs.builder
import com.pulumi.azurenative.devcenter.kotlin.enums.CatalogSyncType
import com.pulumi.azurenative.devcenter.kotlin.inputs.GitCatalogArgs
import com.pulumi.azurenative.devcenter.kotlin.inputs.GitCatalogArgsBuilder
import com.pulumi.core.Either
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Represents a catalog.
* Azure REST API version: 2024-02-01.
* Other available API versions: 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview.
* ## Example Usage
* ### ProjectCatalogs_CreateOrUpdateAdo
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var projectCatalog = new AzureNative.DevCenter.ProjectCatalog("projectCatalog", new()
* {
* AdoGit = new AzureNative.DevCenter.Inputs.GitCatalogArgs
* {
* Branch = "main",
* Path = "/templates",
* SecretIdentifier = "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
* Uri = "https://[email protected]/contoso/contosoOrg/_git/centralrepo-fakecontoso",
* },
* CatalogName = "CentralCatalog",
* ProjectName = "DevProject",
* ResourceGroupName = "rg1",
* });
* });
* ```
* ```go
* package main
* import (
* devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := devcenter.NewProjectCatalog(ctx, "projectCatalog", &devcenter.ProjectCatalogArgs{
* AdoGit: &devcenter.GitCatalogArgs{
* Branch: pulumi.String("main"),
* Path: pulumi.String("/templates"),
* SecretIdentifier: pulumi.String("https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
* Uri: pulumi.String("https://[email protected]/contoso/contosoOrg/_git/centralrepo-fakecontoso"),
* },
* CatalogName: pulumi.String("CentralCatalog"),
* ProjectName: pulumi.String("DevProject"),
* ResourceGroupName: pulumi.String("rg1"),
* })
* 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.devcenter.ProjectCatalog;
* import com.pulumi.azurenative.devcenter.ProjectCatalogArgs;
* import com.pulumi.azurenative.devcenter.inputs.GitCatalogArgs;
* 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 projectCatalog = new ProjectCatalog("projectCatalog", ProjectCatalogArgs.builder()
* .adoGit(GitCatalogArgs.builder()
* .branch("main")
* .path("/templates")
* .secretIdentifier("https://contosokv.vault.azure.net/secrets/CentralRepoPat")
* .uri("https://[email protected]/contoso/contosoOrg/_git/centralrepo-fakecontoso")
* .build())
* .catalogName("CentralCatalog")
* .projectName("DevProject")
* .resourceGroupName("rg1")
* .build());
* }
* }
* ```
* ### ProjectCatalogs_CreateOrUpdateGitHub
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var projectCatalog = new AzureNative.DevCenter.ProjectCatalog("projectCatalog", new()
* {
* CatalogName = "CentralCatalog",
* GitHub = new AzureNative.DevCenter.Inputs.GitCatalogArgs
* {
* Branch = "main",
* Path = "/templates",
* SecretIdentifier = "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
* Uri = "https://github.com/Contoso/centralrepo-fake.git",
* },
* ProjectName = "DevProject",
* ResourceGroupName = "rg1",
* });
* });
* ```
* ```go
* package main
* import (
* devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := devcenter.NewProjectCatalog(ctx, "projectCatalog", &devcenter.ProjectCatalogArgs{
* CatalogName: pulumi.String("CentralCatalog"),
* GitHub: &devcenter.GitCatalogArgs{
* Branch: pulumi.String("main"),
* Path: pulumi.String("/templates"),
* SecretIdentifier: pulumi.String("https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
* Uri: pulumi.String("https://github.com/Contoso/centralrepo-fake.git"),
* },
* ProjectName: pulumi.String("DevProject"),
* ResourceGroupName: pulumi.String("rg1"),
* })
* 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.devcenter.ProjectCatalog;
* import com.pulumi.azurenative.devcenter.ProjectCatalogArgs;
* import com.pulumi.azurenative.devcenter.inputs.GitCatalogArgs;
* 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 projectCatalog = new ProjectCatalog("projectCatalog", ProjectCatalogArgs.builder()
* .catalogName("CentralCatalog")
* .gitHub(GitCatalogArgs.builder()
* .branch("main")
* .path("/templates")
* .secretIdentifier("https://contosokv.vault.azure.net/secrets/CentralRepoPat")
* .uri("https://github.com/Contoso/centralrepo-fake.git")
* .build())
* .projectName("DevProject")
* .resourceGroupName("rg1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:devcenter:ProjectCatalog CentralCatalog /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}
* ```
* @property adoGit Properties for an Azure DevOps catalog type.
* @property catalogName The name of the Catalog.
* @property gitHub Properties for a GitHub catalog type.
* @property projectName The name of the project.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property syncType Indicates the type of sync that is configured for the catalog.
* @property tags Resource tags.
*/
public data class ProjectCatalogArgs(
public val adoGit: Output? = null,
public val catalogName: Output? = null,
public val gitHub: Output? = null,
public val projectName: Output? = null,
public val resourceGroupName: Output? = null,
public val syncType: Output>? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy