// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securitydevops.generated;

import com.azure.resourcemanager.securitydevops.models.AutoDiscovery;
import com.azure.resourcemanager.securitydevops.models.AzureDevOpsProjectProperties;

/** Samples for AzureDevOpsProject CreateOrUpdate. */
public final class AzureDevOpsProjectCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectCreateOrUpdate.json
     */
    /**
     * Sample code: AzureDevOpsProject_CreateOrUpdate.
     *
     * @param manager Entry point to SecurityDevOpsManager.
     */
    public static void azureDevOpsProjectCreateOrUpdate(
        com.azure.resourcemanager.securitydevops.SecurityDevOpsManager manager) {
        manager
            .azureDevOpsProjects()
            .define("myProject")
            .withExistingOrg("westusrg", "testconnector", "myOrg")
            .withProperties(new AzureDevOpsProjectProperties().withAutoDiscovery(AutoDiscovery.DISABLED))
            .create();
    }
}
