Interface SpacecraftsClient
public interface SpacecraftsClient
An instance of this class provides access to all the operations defined in SpacecraftsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SpacecraftInner>,
SpacecraftInner> beginCreateOrUpdate
(String resourceGroupName, String spacecraftName, SpacecraftInner parameters) Creates or updates a spacecraft resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SpacecraftInner>,
SpacecraftInner> beginCreateOrUpdate
(String resourceGroupName, String spacecraftName, SpacecraftInner parameters, com.azure.core.util.Context context) Creates or updates a spacecraft resource.beginDelete
(String resourceGroupName, String spacecraftName) Deletes a specified spacecraft resource.beginDelete
(String resourceGroupName, String spacecraftName, com.azure.core.util.Context context) Deletes a specified spacecraft resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SpacecraftInner>,
SpacecraftInner> beginUpdateTags
(String resourceGroupName, String spacecraftName, TagsObject parameters) Updates the specified spacecraft tags.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SpacecraftInner>,
SpacecraftInner> beginUpdateTags
(String resourceGroupName, String spacecraftName, TagsObject parameters, com.azure.core.util.Context context) Updates the specified spacecraft tags.createOrUpdate
(String resourceGroupName, String spacecraftName, SpacecraftInner parameters) Creates or updates a spacecraft resource.createOrUpdate
(String resourceGroupName, String spacecraftName, SpacecraftInner parameters, com.azure.core.util.Context context) Creates or updates a spacecraft resource.void
Deletes a specified spacecraft resource.void
Deletes a specified spacecraft resource.getByResourceGroup
(String resourceGroupName, String spacecraftName) Gets the specified spacecraft in a specified resource group.com.azure.core.http.rest.Response<SpacecraftInner>
getByResourceGroupWithResponse
(String resourceGroupName, String spacecraftName, com.azure.core.util.Context context) Gets the specified spacecraft in a specified resource group.com.azure.core.http.rest.PagedIterable<SpacecraftInner>
list()
Returns list of spacecrafts by subscription.com.azure.core.http.rest.PagedIterable<SpacecraftInner>
Returns list of spacecrafts by subscription.com.azure.core.http.rest.PagedIterable<AvailableContactsInner>
listAvailableContacts
(String resourceGroupName, String spacecraftName, ContactParameters parameters) Returns list of available contacts.com.azure.core.http.rest.PagedIterable<AvailableContactsInner>
listAvailableContacts
(String resourceGroupName, String spacecraftName, ContactParameters parameters, com.azure.core.util.Context context) Returns list of available contacts.com.azure.core.http.rest.PagedIterable<SpacecraftInner>
listByResourceGroup
(String resourceGroupName) Returns list of spacecrafts by resource group.com.azure.core.http.rest.PagedIterable<SpacecraftInner>
listByResourceGroup
(String resourceGroupName, String skiptoken, com.azure.core.util.Context context) Returns list of spacecrafts by resource group.updateTags
(String resourceGroupName, String spacecraftName, TagsObject parameters) Updates the specified spacecraft tags.updateTags
(String resourceGroupName, String spacecraftName, TagsObject parameters, com.azure.core.util.Context context) Updates the specified spacecraft tags.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SpacecraftInner> list()Returns list of spacecrafts by subscription.- Returns:
- response for the ListSpacecrafts API service call as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<SpacecraftInner> list(String skiptoken, com.azure.core.util.Context context) Returns list of spacecrafts by subscription.- Parameters:
skiptoken
- An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.context
- The context to associate with this operation.- Returns:
- response for the ListSpacecrafts API service call 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<SpacecraftInner> listByResourceGroup(String resourceGroupName) Returns list of spacecrafts by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- response for the ListSpacecrafts API service call 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<SpacecraftInner> listByResourceGroup(String resourceGroupName, String skiptoken, com.azure.core.util.Context context) Returns list of spacecrafts by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.skiptoken
- An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.context
- The context to associate with this operation.- Returns:
- response for the ListSpacecrafts API service call 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.
-
getByResourceGroup
Gets the specified spacecraft in a specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.- Returns:
- the specified spacecraft in a specified resource group.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<SpacecraftInner> getByResourceGroupWithResponse(String resourceGroupName, String spacecraftName, com.azure.core.util.Context context) Gets the specified spacecraft in a specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.context
- The context to associate with this operation.- Returns:
- the specified spacecraft in a specified resource group 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SpacecraftInner>,SpacecraftInner> beginCreateOrUpdate(String resourceGroupName, String spacecraftName, SpacecraftInner parameters) Creates or updates a spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- The parameters to provide for the created spacecraft.- Returns:
- the
SyncPoller
for polling of customer creates a spacecraft resource to schedule a contact. - 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<SpacecraftInner>,SpacecraftInner> beginCreateOrUpdate(String resourceGroupName, String spacecraftName, SpacecraftInner parameters, com.azure.core.util.Context context) Creates or updates a spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- The parameters to provide for the created spacecraft.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of customer creates a spacecraft resource to schedule a contact. - 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
SpacecraftInner createOrUpdate(String resourceGroupName, String spacecraftName, SpacecraftInner parameters) Creates or updates a spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- The parameters to provide for the created spacecraft.- Returns:
- customer creates a spacecraft resource to schedule a contact.
- 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
SpacecraftInner createOrUpdate(String resourceGroupName, String spacecraftName, SpacecraftInner parameters, com.azure.core.util.Context context) Creates or updates a spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- The parameters to provide for the created spacecraft.context
- The context to associate with this operation.- Returns:
- customer creates a spacecraft resource to schedule a contact.
- 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 spacecraftName) Deletes a specified spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.- 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 spacecraftName, com.azure.core.util.Context context) Deletes a specified spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.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 specified spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft 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.
-
delete
Deletes a specified spacecraft resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft 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.
-
beginUpdateTags
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SpacecraftInner>,SpacecraftInner> beginUpdateTags(String resourceGroupName, String spacecraftName, TagsObject parameters) Updates the specified spacecraft tags.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- Parameters supplied to update spacecraft tags.- Returns:
- the
SyncPoller
for polling of customer creates a spacecraft resource to schedule a contact. - 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.
-
beginUpdateTags
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SpacecraftInner>,SpacecraftInner> beginUpdateTags(String resourceGroupName, String spacecraftName, TagsObject parameters, com.azure.core.util.Context context) Updates the specified spacecraft tags.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- Parameters supplied to update spacecraft tags.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of customer creates a spacecraft resource to schedule a contact. - 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.
-
updateTags
Updates the specified spacecraft tags.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- Parameters supplied to update spacecraft tags.- Returns:
- customer creates a spacecraft resource to schedule a contact.
- 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.
-
updateTags
SpacecraftInner updateTags(String resourceGroupName, String spacecraftName, TagsObject parameters, com.azure.core.util.Context context) Updates the specified spacecraft tags.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- Parameters supplied to update spacecraft tags.context
- The context to associate with this operation.- Returns:
- customer creates a spacecraft resource to schedule a contact.
- 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.
-
listAvailableContacts
com.azure.core.http.rest.PagedIterable<AvailableContactsInner> listAvailableContacts(String resourceGroupName, String spacecraftName, ContactParameters parameters) Returns list of available contacts. A contact is available if the spacecraft is visible from the ground station for more than the minimum viable contact duration provided in the contact profile.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- The parameters to provide for the contacts.- Returns:
- response for the ListAvailableContacts API service call 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.
-
listAvailableContacts
com.azure.core.http.rest.PagedIterable<AvailableContactsInner> listAvailableContacts(String resourceGroupName, String spacecraftName, ContactParameters parameters, com.azure.core.util.Context context) Returns list of available contacts. A contact is available if the spacecraft is visible from the ground station for more than the minimum viable contact duration provided in the contact profile.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.parameters
- The parameters to provide for the contacts.context
- The context to associate with this operation.- Returns:
- response for the ListAvailableContacts API service call 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.
-