Interface ServicePrincipalsClient
public interface ServicePrincipalsClient
An instance of this class provides access to all the operations defined in ServicePrincipalsClient.
-
Method Summary
Modifier and TypeMethodDescriptionaddKey(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body) Invoke action addKey.addKeyAsync(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body) Invoke action addKey.com.azure.core.http.rest.Response<MicrosoftGraphKeyCredentialInner>addKeyWithResponse(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body, com.azure.core.util.Context context) Invoke action addKey.Mono<com.azure.core.http.rest.Response<MicrosoftGraphKeyCredentialInner>>addKeyWithResponseAsync(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body) Invoke action addKey.addPassword(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body) Invoke action addPassword.addPasswordAsync(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body) Invoke action addPassword.com.azure.core.http.rest.Response<MicrosoftGraphPasswordCredentialInner>addPasswordWithResponse(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body, com.azure.core.util.Context context) Invoke action addPassword.Mono<com.azure.core.http.rest.Response<MicrosoftGraphPasswordCredentialInner>>addPasswordWithResponseAsync(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body) Invoke action addPassword.
-
Method Details
-
addKeyWithResponseAsync
Mono<com.azure.core.http.rest.Response<MicrosoftGraphKeyCredentialInner>> addKeyWithResponseAsync(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body) Invoke action addKey.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.- Returns:
- keyCredential along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
addKeyAsync
Mono<MicrosoftGraphKeyCredentialInner> addKeyAsync(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body) Invoke action addKey.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.- Returns:
- keyCredential on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
addKeyWithResponse
com.azure.core.http.rest.Response<MicrosoftGraphKeyCredentialInner> addKeyWithResponse(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body, com.azure.core.util.Context context) Invoke action addKey.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.context- The context to associate with this operation.- Returns:
- keyCredential along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
addKey
MicrosoftGraphKeyCredentialInner addKey(String servicePrincipalId, ServicePrincipalsAddKeyRequestBodyInner body) Invoke action addKey.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.- Returns:
- keyCredential.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
addPasswordWithResponseAsync
Mono<com.azure.core.http.rest.Response<MicrosoftGraphPasswordCredentialInner>> addPasswordWithResponseAsync(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body) Invoke action addPassword.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.- Returns:
- passwordCredential along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
addPasswordAsync
Mono<MicrosoftGraphPasswordCredentialInner> addPasswordAsync(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body) Invoke action addPassword.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.- Returns:
- passwordCredential on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
addPasswordWithResponse
com.azure.core.http.rest.Response<MicrosoftGraphPasswordCredentialInner> addPasswordWithResponse(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body, com.azure.core.util.Context context) Invoke action addPassword.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.context- The context to associate with this operation.- Returns:
- passwordCredential along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
addPassword
MicrosoftGraphPasswordCredentialInner addPassword(String servicePrincipalId, ServicePrincipalsAddPasswordRequestBodyInner body) Invoke action addPassword.- Parameters:
servicePrincipalId- key: id of servicePrincipal.body- Action parameters.- Returns:
- passwordCredential.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.OdataErrorMainException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-