Interface Links
public interface Links
Resource collection API of Links.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new LinkResourceFormat resource.void
Deletes a link in the hub.void
deleteById
(String id) Deletes a link in the hub.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a link in the hub.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String hubName, String linkName, com.azure.core.util.Context context) Deletes a link in the hub.Gets a link in the hub.Gets a link in the hub.com.azure.core.http.rest.Response<LinkResourceFormat>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a link in the hub.com.azure.core.http.rest.Response<LinkResourceFormat>
getWithResponse
(String resourceGroupName, String hubName, String linkName, com.azure.core.util.Context context) Gets a link in the hub.com.azure.core.http.rest.PagedIterable<LinkResourceFormat>
Gets all the links in the specified hub.com.azure.core.http.rest.PagedIterable<LinkResourceFormat>
Gets all the links in the specified hub.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<LinkResourceFormat> getWithResponse(String resourceGroupName, String hubName, String linkName, com.azure.core.util.Context context) Gets a link in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.linkName
- The name of the link.context
- The context to associate with this operation.- Returns:
- a link in the hub 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 link in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.linkName
- The name of the link.- Returns:
- a link in the hub.
- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String hubName, String linkName, com.azure.core.util.Context context) Deletes a link in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.linkName
- The name of the link.context
- The context to associate with this operation.- Returns:
- the
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.
-
delete
Deletes a link in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.linkName
- The name of the link.- 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.
-
listByHub
com.azure.core.http.rest.PagedIterable<LinkResourceFormat> listByHub(String resourceGroupName, String hubName) Gets all the links in the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.- Returns:
- all the links in the specified hub 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.
-
listByHub
com.azure.core.http.rest.PagedIterable<LinkResourceFormat> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context) Gets all the links in the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.context
- The context to associate with this operation.- Returns:
- all the links in the specified hub 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.
-
getById
Gets a link in the hub.- Parameters:
id
- the resource ID.- Returns:
- a link in the hub 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<LinkResourceFormat> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a link in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a link in the hub 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 link in the hub.- 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
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a link in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the
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.
-
define
Begins definition for a new LinkResourceFormat resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new LinkResourceFormat definition.
-