Interface Galleries
public interface Galleries
Resource collection API of Galleries.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Gallery resource.void
Deletes a gallery resource.void
delete
(String resourceGroupName, String devCenterName, String galleryName, com.azure.core.util.Context context) Deletes a gallery resource.void
deleteById
(String id) Deletes a gallery resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a gallery resource.Gets a gallery.Gets a gallery.com.azure.core.http.rest.Response<Gallery>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a gallery.com.azure.core.http.rest.Response<Gallery>
getWithResponse
(String resourceGroupName, String devCenterName, String galleryName, com.azure.core.util.Context context) Gets a gallery.com.azure.core.http.rest.PagedIterable<Gallery>
listByDevCenter
(String resourceGroupName, String devCenterName) Lists galleries for a devcenter.com.azure.core.http.rest.PagedIterable<Gallery>
listByDevCenter
(String resourceGroupName, String devCenterName, Integer top, com.azure.core.util.Context context) Lists galleries for a devcenter.
-
Method Details
-
listByDevCenter
com.azure.core.http.rest.PagedIterable<Gallery> listByDevCenter(String resourceGroupName, String devCenterName) Lists galleries 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 gallery 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<Gallery> listByDevCenter(String resourceGroupName, String devCenterName, Integer top, com.azure.core.util.Context context) Lists galleries 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 gallery 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<Gallery> getWithResponse(String resourceGroupName, String devCenterName, String galleryName, com.azure.core.util.Context context) Gets a gallery.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.galleryName
- The name of the gallery.context
- The context to associate with this operation.- Returns:
- a gallery 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 gallery.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.galleryName
- The name of the gallery.- Returns:
- a gallery.
- 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 gallery resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.galleryName
- The name of the gallery.- 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 galleryName, com.azure.core.util.Context context) Deletes a gallery resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.devCenterName
- The name of the devcenter.galleryName
- The name of the gallery.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 gallery.- Parameters:
id
- the resource ID.- Returns:
- a gallery 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<Gallery> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a gallery.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a gallery 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 gallery 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 gallery 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 Gallery resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Gallery definition.
-