Share via


ProjectConnections Interface

public interface ProjectConnections

Resource collection API of ProjectConnections.

Method Summary

Modifier and Type Method and Description
abstract ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String projectName, String connectionName)

Create or update Cognitive Services project connection under the specified project.

abstract Response<ConnectionPropertiesV2BasicResource> createWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, ConnectionPropertiesV2BasicResourceInner body, Context context)

Create or update Cognitive Services project connection under the specified project.

abstract void delete(String resourceGroupName, String accountName, String projectName, String connectionName)

Delete Cognitive Services project connection by name.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, Context context)

Delete Cognitive Services project connection by name.

abstract ConnectionPropertiesV2BasicResource get(String resourceGroupName, String accountName, String projectName, String connectionName)

Lists Cognitive Services project connection by name.

abstract Response<ConnectionPropertiesV2BasicResource> getWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, Context context)

Lists Cognitive Services project connection by name.

abstract PagedIterable<ConnectionPropertiesV2BasicResource> list(String resourceGroupName, String accountName, String projectName)

Lists all the available Cognitive Services project connections under the specified project.

abstract PagedIterable<ConnectionPropertiesV2BasicResource> list(String resourceGroupName, String accountName, String projectName, String target, String category, Boolean includeAll, Context context)

Lists all the available Cognitive Services project connections under the specified project.

abstract ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String projectName, String connectionName)

Update Cognitive Services project connection under the specified project.

abstract Response<ConnectionPropertiesV2BasicResource> updateWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, ConnectionUpdateContent body, Context context)

Update Cognitive Services project connection under the specified project.

Method Details

create

public abstract ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String projectName, String connectionName)

Create or update Cognitive Services project connection under the specified project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.

Returns:

connection base resource schema.

createWithResponse

public abstract Response<ConnectionPropertiesV2BasicResource> createWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, ConnectionPropertiesV2BasicResourceInner body, Context context)

Create or update Cognitive Services project connection under the specified project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.
body - The object for creating or updating a new account connection.
context - The context to associate with this operation.

Returns:

connection base resource schema along with Response<T>.

delete

public abstract void delete(String resourceGroupName, String accountName, String projectName, String connectionName)

Delete Cognitive Services project connection by name.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, Context context)

Delete Cognitive Services project connection by name.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.
context - The context to associate with this operation.

Returns:

get

public abstract ConnectionPropertiesV2BasicResource get(String resourceGroupName, String accountName, String projectName, String connectionName)

Lists Cognitive Services project connection by name.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.

Returns:

connection base resource schema.

getWithResponse

public abstract Response<ConnectionPropertiesV2BasicResource> getWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, Context context)

Lists Cognitive Services project connection by name.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.
context - The context to associate with this operation.

Returns:

connection base resource schema along with Response<T>.

list

public abstract PagedIterable<ConnectionPropertiesV2BasicResource> list(String resourceGroupName, String accountName, String projectName)

Lists all the available Cognitive Services project connections under the specified project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.

Returns:

the paginated response with PagedIterable<T>.

list

public abstract PagedIterable<ConnectionPropertiesV2BasicResource> list(String resourceGroupName, String accountName, String projectName, String target, String category, Boolean includeAll, Context context)

Lists all the available Cognitive Services project connections under the specified project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
target - Target of the connection.
category - Category of the connection.
includeAll - query parameter that indicates if get connection call should return both connections and datastores.
context - The context to associate with this operation.

Returns:

the paginated response with PagedIterable<T>.

update

public abstract ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String projectName, String connectionName)

Update Cognitive Services project connection under the specified project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.

Returns:

connection base resource schema.

updateWithResponse

public abstract Response<ConnectionPropertiesV2BasicResource> updateWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, ConnectionUpdateContent body, Context context)

Update Cognitive Services project connection under the specified project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - The name of Cognitive Services account.
projectName - The name of Cognitive Services account's project.
connectionName - Friendly name of the connection.
body - Parameters for account connection update.
context - The context to associate with this operation.

Returns:

connection base resource schema along with Response<T>.

Applies to