Interface Catalogs
public interface Catalogs
Resource collection API of Catalogs.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Catalog resource.void
Deletes a catalog resource.void
delete
(String resourceGroupName, String devCenterName, String catalogName, com.azure.core.util.Context context) Deletes a catalog resource.void
deleteById
(String id) Deletes a catalog resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a catalog resource.Gets a catalog.Gets a catalog.com.azure.core.http.rest.Response<Catalog>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a catalog.com.azure.core.http.rest.Response<Catalog>
getWithResponse
(String resourceGroupName, String devCenterName, String catalogName, com.azure.core.util.Context context) Gets a catalog.com.azure.core.http.rest.PagedIterable<Catalog>
listByDevCenter
(String resourceGroupName, String devCenterName) Lists catalogs for a devcenter.com.azure.core.http.rest.PagedIterable<Catalog>
listByDevCenter
(String resourceGroupName, String devCenterName, Integer top, com.azure.core.util.Context context) Lists catalogs for a devcenter.void
Syncs templates for a template source.void
sync
(String resourceGroupName, String devCenterName, String catalogName, com.azure.core.util.Context context) Syncs templates for a template source.
-
Method Details
-
listByDevCenter
com.azure.core.http.rest.PagedIterable<Catalog> listByDevCenter(String resourceGroupName, String devCenterName) Lists catalogs for a devcenter.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.- Returns:
- results of the catalog list operation 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.
-
listByDevCenter
com.azure.core.http.rest.PagedIterable<Catalog> listByDevCenter(String resourceGroupName, String devCenterName, Integer top, com.azure.core.util.Context context) Lists catalogs for a devcenter.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- results of the catalog list operation 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.
-
getWithResponse
com.azure.core.http.rest.Response<Catalog> getWithResponse(String resourceGroupName, String devCenterName, String catalogName, com.azure.core.util.Context context) Gets a catalog.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.catalogName
- The name of the Catalog.context
- The context to associate with this operation.- Returns:
- a catalog 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
Gets a catalog.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.catalogName
- The name of the Catalog.- Returns:
- a catalog.
- 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 catalog resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.catalogName
- The name of the Catalog.- 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 devCenterName, String catalogName, com.azure.core.util.Context context) Deletes a catalog resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.catalogName
- The name of the Catalog.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.
-
sync
Syncs templates for a template source.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.catalogName
- The name of the Catalog.- 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.
-
sync
void sync(String resourceGroupName, String devCenterName, String catalogName, com.azure.core.util.Context context) Syncs templates for a template source.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.catalogName
- The name of the Catalog.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.
-
getById
Gets a catalog.- Parameters:
id
- the resource ID.- Returns:
- a catalog 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<Catalog> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a catalog.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a catalog 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
Deletes a catalog resource.- 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
Deletes a catalog resource.- 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 Catalog resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Catalog definition.
-