
com.azure.resourcemanager.authorization.fluent.ServicePrincipalsClient Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphKeyCredentialInner;
import com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPasswordCredentialInner;
import com.azure.resourcemanager.authorization.fluent.models.ServicePrincipalsAddKeyRequestBodyInner;
import com.azure.resourcemanager.authorization.fluent.models.ServicePrincipalsAddPasswordRequestBodyInner;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in ServicePrincipalsClient.
*/
public interface ServicePrincipalsClient {
/**
* Invoke action addKey.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return keyCredential along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> addKeyWithResponseAsync(String servicePrincipalId,
ServicePrincipalsAddKeyRequestBodyInner body);
/**
* Invoke action addKey.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return keyCredential on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono addKeyAsync(String servicePrincipalId,
ServicePrincipalsAddKeyRequestBodyInner body);
/**
* Invoke action addKey.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return keyCredential along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response addKeyWithResponse(String servicePrincipalId,
ServicePrincipalsAddKeyRequestBodyInner body, Context context);
/**
* Invoke action addKey.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return keyCredential.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MicrosoftGraphKeyCredentialInner addKey(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body);
/**
* Invoke action addPassword.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return passwordCredential along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> addPasswordWithResponseAsync(String servicePrincipalId,
ServicePrincipalsAddPasswordRequestBodyInner body);
/**
* Invoke action addPassword.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return passwordCredential on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono addPasswordAsync(String servicePrincipalId,
ServicePrincipalsAddPasswordRequestBodyInner body);
/**
* Invoke action addPassword.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return passwordCredential along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response addPasswordWithResponse(String servicePrincipalId,
ServicePrincipalsAddPasswordRequestBodyInner body, Context context);
/**
* Invoke action addPassword.
*
* @param servicePrincipalId key: id of servicePrincipal.
* @param body Action parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.authorization.fluent.models.OdataErrorMainException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return passwordCredential.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MicrosoftGraphPasswordCredentialInner addPassword(String servicePrincipalId,
ServicePrincipalsAddPasswordRequestBodyInner body);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy