Interface GalleriesClient
public interface GalleriesClient
An instance of this class provides access to all the operations defined in GalleriesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>,
GalleryInner> beginCreateOrUpdate
(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body) Creates or updates a gallery.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>,
GalleryInner> beginCreateOrUpdate
(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body, com.azure.core.util.Context context) Creates or updates a gallery.beginDelete
(String resourceGroupName, String devCenterName, String galleryName) Deletes a gallery resource.beginDelete
(String resourceGroupName, String devCenterName, String galleryName, com.azure.core.util.Context context) Deletes a gallery resource.createOrUpdate
(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body) Creates or updates a gallery.createOrUpdate
(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body, com.azure.core.util.Context context) Creates or updates a gallery.void
Deletes a gallery resource.void
delete
(String resourceGroupName, String devCenterName, String galleryName, com.azure.core.util.Context context) Deletes a gallery resource.Gets a gallery.com.azure.core.http.rest.Response<GalleryInner>
getWithResponse
(String resourceGroupName, String devCenterName, String galleryName, com.azure.core.util.Context context) Gets a gallery.com.azure.core.http.rest.PagedIterable<GalleryInner>
listByDevCenter
(String resourceGroupName, String devCenterName) Lists galleries for a devcenter.com.azure.core.http.rest.PagedIterable<GalleryInner>
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<GalleryInner> 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<GalleryInner> 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<GalleryInner> 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>,GalleryInner> beginCreateOrUpdate(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body) Creates or updates 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.body
- Represents a gallery.- Returns:
- the
SyncPoller
for polling of represents 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>,GalleryInner> beginCreateOrUpdate(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body, com.azure.core.util.Context context) Creates or updates 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.body
- Represents a gallery.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of represents 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.
-
createOrUpdate
GalleryInner createOrUpdate(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body) Creates or updates 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.body
- Represents a gallery.- Returns:
- represents 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.
-
createOrUpdate
GalleryInner createOrUpdate(String resourceGroupName, String devCenterName, String galleryName, GalleryInner body, com.azure.core.util.Context context) Creates or updates 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.body
- Represents a gallery.context
- The context to associate with this operation.- Returns:
- represents 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String devCenterName, String galleryName) 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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
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.
-