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

com.azure.resourcemanager.keyvault.models.Secrets Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Key Vault Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.resourcemanager.keyvault.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing;
import reactor.core.publisher.Mono;

/** Entry point for Key Vault secrets API. */
@Fluent
public interface Secrets
    extends SupportsCreating,
        SupportsDeletingById,
        SupportsGettingById,
        SupportsGettingByName,
        SupportsListing {
    /**
     * Gets a Key Vault secret when the secret is enabled.
     *
     * @param name the name of the secret
     * @param version the version of the secret
     * @return the secret
     */
    Secret getByNameAndVersion(String name, String version);

    /**
     * Gets a Key Vault secret when the secret is enabled.
     *
     * @param name the name of the secret
     * @param version the version of the secret
     * @return the secret
     */
    Mono getByNameAndVersionAsync(String name, String version);

    /**
     * Enables a secret.
     *
     * @param name the name of the secret
     * @param version the version of the secret
     * @return the secret
     */
    Secret enableByNameAndVersion(String name, String version);

    /**
     * Enables a secret.
     *
     * @param name the name of the secret
     * @param version the version of the secret
     * @return the secret
     */
    Mono enableByNameAndVersionAsync(String name, String version);

    /**
     * Disables a secret.
     *
     * @param name the name of the secret
     * @param version the version of the secret
     */
    void disableByNameAndVersion(String name, String version);

    /**
     * Disables a secret.
     *
     * @param name the name of the secret
     * @param version the version of the secret
     * @return completion
     */
    Mono disableByNameAndVersionAsync(String name, String version);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy