Interface GitHubConnectors


public interface GitHubConnectors
Resource collection API of GitHubConnectors.
  • Method Details

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<GitHubConnector> listByResourceGroup(String resourceGroupName)
      The listByResourceGroup operation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<GitHubConnector> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      The listByResourceGroup operation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<GitHubConnector> getByResourceGroupWithResponse(String resourceGroupName, String gitHubConnectorName, com.azure.core.util.Context context)
      Returns a monitored GitHub Connector resource for a given ID.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      gitHubConnectorName - Name of the GitHub Connector.
      context - The context to associate with this operation.
      Returns:
      represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors 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.
    • getByResourceGroup

      GitHubConnector getByResourceGroup(String resourceGroupName, String gitHubConnectorName)
      Returns a monitored GitHub Connector resource for a given ID.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      gitHubConnectorName - Name of the GitHub Connector.
      Returns:
      represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.
      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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String gitHubConnectorName)
      Delete monitored GitHub Connector details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      gitHubConnectorName - Name of the GitHub Connector.
      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 gitHubConnectorName, com.azure.core.util.Context context)
      Delete monitored GitHub Connector details.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      gitHubConnectorName - Name of the GitHub Connector.
      context - The context to associate with this operation.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<GitHubConnector> list()
      Returns a list of monitored GitHub Connectors.
      Returns:
      the paginated response with PagedIterable.
      Throws:
      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.
    • list

      com.azure.core.http.rest.PagedIterable<GitHubConnector> list(com.azure.core.util.Context context)
      Returns a list of monitored GitHub Connectors.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the 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.
    • getById

      GitHubConnector getById(String id)
      Returns a monitored GitHub Connector resource for a given ID.
      Parameters:
      id - the resource ID.
      Returns:
      represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<GitHubConnector> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Returns a monitored GitHub Connector resource for a given ID.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors 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.
    • deleteById

      void deleteById(String id)
      Delete monitored GitHub Connector details.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete monitored GitHub Connector details.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      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.
    • define

      Begins definition for a new GitHubConnector resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new GitHubConnector definition.