Interface CredentialOperationsClient
public interface CredentialOperationsClient
An instance of this class provides access to all the operations defined in CredentialOperationsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String factoryName, String credentialName, ManagedIdentityCredentialResourceInner credential) Creates or updates a credential.com.azure.core.http.rest.Response<ManagedIdentityCredentialResourceInner>createOrUpdateWithResponse(String resourceGroupName, String factoryName, String credentialName, ManagedIdentityCredentialResourceInner credential, String ifMatch, com.azure.core.util.Context context) Creates or updates a credential.voidDeletes a credential.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String factoryName, String credentialName, com.azure.core.util.Context context) Deletes a credential.Gets a credential.com.azure.core.http.rest.Response<ManagedIdentityCredentialResourceInner>getWithResponse(String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, com.azure.core.util.Context context) Gets a credential.com.azure.core.http.rest.PagedIterable<ManagedIdentityCredentialResourceInner>listByFactory(String resourceGroupName, String factoryName) List credentials.com.azure.core.http.rest.PagedIterable<ManagedIdentityCredentialResourceInner>listByFactory(String resourceGroupName, String factoryName, com.azure.core.util.Context context) List credentials.
-
Method Details
-
listByFactory
com.azure.core.http.rest.PagedIterable<ManagedIdentityCredentialResourceInner> listByFactory(String resourceGroupName, String factoryName) List credentials.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.- Returns:
- a list of credential resources as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByFactory
com.azure.core.http.rest.PagedIterable<ManagedIdentityCredentialResourceInner> listByFactory(String resourceGroupName, String factoryName, com.azure.core.util.Context context) List credentials.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.context- The context to associate with this operation.- Returns:
- a list of credential resources as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ManagedIdentityCredentialResourceInner> createOrUpdateWithResponse(String resourceGroupName, String factoryName, String credentialName, ManagedIdentityCredentialResourceInner credential, String ifMatch, com.azure.core.util.Context context) Creates or updates a credential.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.credentialName- Credential name.credential- Credential resource definition.ifMatch- ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.context- The context to associate with this operation.- Returns:
- credential resource type along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ManagedIdentityCredentialResourceInner createOrUpdate(String resourceGroupName, String factoryName, String credentialName, ManagedIdentityCredentialResourceInner credential) Creates or updates a credential.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.credentialName- Credential name.credential- Credential resource definition.- Returns:
- credential resource type.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ManagedIdentityCredentialResourceInner> getWithResponse(String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, com.azure.core.util.Context context) Gets a credential.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.credentialName- Credential name.ifNoneMatch- ETag of the credential entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.context- The context to associate with this operation.- Returns:
- a credential along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
ManagedIdentityCredentialResourceInner get(String resourceGroupName, String factoryName, String credentialName) Gets a credential.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.credentialName- Credential name.- Returns:
- a credential.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String factoryName, String credentialName, com.azure.core.util.Context context) Deletes a credential.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.credentialName- Credential name.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a credential.- Parameters:
resourceGroupName- The resource group name.factoryName- The factory name.credentialName- Credential name.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-