Interface JobCredentialsClient


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

      • 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.
        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.
        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.
        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.
        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.
        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.
      • 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.
        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 - A stored credential that can be used by a job to connect to target databases.
        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.
      • 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 - A stored credential that can be used by a job to connect to target databases.
        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.
      • 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 - A stored credential that can be used by a job to connect to target databases.
        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.
      • 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 - A stored credential that can be used by a job to connect to target databases.
        context - The context to associate with this operation.
        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 completion.
        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:
        the completion.
        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.
      • 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.