Interface JobCredentialsClient


public interface JobCredentialsClient
An instance of this class provides access to all the operations defined in JobCredentialsClient.
  • Method Details

    • listByAgentAsync

      com.azure.core.http.rest.PagedFlux<JobCredentialInner> listByAgentAsync(String resourceGroupName, String serverName, String jobAgentName)
      Gets a list of jobs credentials.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      Returns:
      a list of jobs credentials as paginated response with PagedFlux.
      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.
    • listByAgent

      com.azure.core.http.rest.PagedIterable<JobCredentialInner> listByAgent(String resourceGroupName, String serverName, String jobAgentName)
      Gets a list of jobs credentials.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      Returns:
      a list of jobs credentials 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.
    • listByAgent

      com.azure.core.http.rest.PagedIterable<JobCredentialInner> listByAgent(String resourceGroupName, String serverName, String jobAgentName, com.azure.core.util.Context context)
      Gets a list of jobs credentials.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      context - The context to associate with this operation.
      Returns:
      a list of jobs credentials 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<JobCredentialInner>> getWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName)
      Gets a jobs credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      Returns:
      a jobs credential along with Response on successful completion of Mono.
      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.
    • getAsync

      Mono<JobCredentialInner> getAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName)
      Gets a jobs credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      Returns:
      a jobs credential on successful completion of Mono.
      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<JobCredentialInner> getWithResponse(String resourceGroupName, String serverName, String jobAgentName, String credentialName, com.azure.core.util.Context context)
      Gets a jobs credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      context - The context to associate with this operation.
      Returns:
      a jobs 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

      JobCredentialInner get(String resourceGroupName, String serverName, String jobAgentName, String credentialName)
      Gets a jobs credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      Returns:
      a jobs 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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<JobCredentialInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName, JobCredentialInner parameters)
      Creates or updates a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      parameters - The requested job credential state.
      Returns:
      a stored credential that can be used by a job to connect to target databases along with Response on successful completion of Mono.
      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.
    • createOrUpdateAsync

      Mono<JobCredentialInner> createOrUpdateAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName, JobCredentialInner parameters)
      Creates or updates a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      parameters - The requested job credential state.
      Returns:
      a stored credential that can be used by a job to connect to target databases on successful completion of Mono.
      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<JobCredentialInner> createOrUpdateWithResponse(String resourceGroupName, String serverName, String jobAgentName, String credentialName, JobCredentialInner parameters, com.azure.core.util.Context context)
      Creates or updates a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      parameters - The requested job credential state.
      context - The context to associate with this operation.
      Returns:
      a stored credential that can be used by a job to connect to target databases 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

      JobCredentialInner createOrUpdate(String resourceGroupName, String serverName, String jobAgentName, String credentialName, JobCredentialInner parameters)
      Creates or updates a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      parameters - The requested job credential state.
      Returns:
      a stored credential that can be used by a job to connect to target databases.
      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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName)
      Deletes a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      Returns:
      the Response on successful completion of Mono.
      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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String serverName, String jobAgentName, String credentialName)
      Deletes a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      Returns:
      A Mono that completes when a successful response is received.
      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 serverName, String jobAgentName, String credentialName, com.azure.core.util.Context context)
      Deletes a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the credential.
      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

      void delete(String resourceGroupName, String serverName, String jobAgentName, String credentialName)
      Deletes a job credential.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      credentialName - The name of the 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.