Interface EventSourcesClient
public interface EventSourcesClient
An instance of this class provides access to all the operations defined in EventSourcesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String environmentName, String eventSourceName, EventSourceCreateOrUpdateParameters parameters) Create or update an event source under the specified environment.com.azure.core.http.rest.Response<EventSourceResourceInner>
createOrUpdateWithResponse
(String resourceGroupName, String environmentName, String eventSourceName, EventSourceCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create or update an event source under the specified environment.void
Deletes the event source with the specified name in the specified subscription, resource group, and environment.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String environmentName, String eventSourceName, com.azure.core.util.Context context) Deletes the event source with the specified name in the specified subscription, resource group, and environment.Gets the event source with the specified name in the specified environment.com.azure.core.http.rest.Response<EventSourceResourceInner>
getWithResponse
(String resourceGroupName, String environmentName, String eventSourceName, com.azure.core.util.Context context) Gets the event source with the specified name in the specified environment.listByEnvironment
(String resourceGroupName, String environmentName) Lists all the available event sources associated with the subscription and within the specified resource group and environment.com.azure.core.http.rest.Response<EventSourceListResponseInner>
listByEnvironmentWithResponse
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Lists all the available event sources associated with the subscription and within the specified resource group and environment.update
(String resourceGroupName, String environmentName, String eventSourceName, EventSourceUpdateParameters eventSourceUpdateParameters) Updates the event source with the specified name in the specified subscription, resource group, and environment.com.azure.core.http.rest.Response<EventSourceResourceInner>
updateWithResponse
(String resourceGroupName, String environmentName, String eventSourceName, EventSourceUpdateParameters eventSourceUpdateParameters, com.azure.core.util.Context context) Updates the event source with the specified name in the specified subscription, resource group, and environment.
-
Method Details
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<EventSourceResourceInner> createOrUpdateWithResponse(String resourceGroupName, String environmentName, String eventSourceName, EventSourceCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create or update an event source under the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- Name of the event source.parameters
- Parameters for creating an event source resource.context
- The context to associate with this operation.- Returns:
- an environment receives data from one or more event sources 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.
-
createOrUpdate
EventSourceResourceInner createOrUpdate(String resourceGroupName, String environmentName, String eventSourceName, EventSourceCreateOrUpdateParameters parameters) Create or update an event source under the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- Name of the event source.parameters
- Parameters for creating an event source resource.- Returns:
- an environment receives data from one or more event sources.
- 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<EventSourceResourceInner> getWithResponse(String resourceGroupName, String environmentName, String eventSourceName, com.azure.core.util.Context context) Gets the event source with the specified name in the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- The name of the Time Series Insights event source associated with the specified environment.context
- The context to associate with this operation.- Returns:
- the event source with the specified name in the specified environment 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
EventSourceResourceInner get(String resourceGroupName, String environmentName, String eventSourceName) Gets the event source with the specified name in the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- The name of the Time Series Insights event source associated with the specified environment.- Returns:
- the event source with the specified name in the specified environment.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<EventSourceResourceInner> updateWithResponse(String resourceGroupName, String environmentName, String eventSourceName, EventSourceUpdateParameters eventSourceUpdateParameters, com.azure.core.util.Context context) Updates the event source with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- The name of the Time Series Insights event source associated with the specified environment.eventSourceUpdateParameters
- Request object that contains the updated information for the event source.context
- The context to associate with this operation.- Returns:
- an environment receives data from one or more event sources 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.
-
update
EventSourceResourceInner update(String resourceGroupName, String environmentName, String eventSourceName, EventSourceUpdateParameters eventSourceUpdateParameters) Updates the event source with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- The name of the Time Series Insights event source associated with the specified environment.eventSourceUpdateParameters
- Request object that contains the updated information for the event source.- Returns:
- an environment receives data from one or more event sources.
- 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 environmentName, String eventSourceName, com.azure.core.util.Context context) Deletes the event source with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- The name of the Time Series Insights event source associated with the specified environment.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 the event source with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.eventSourceName
- The name of the Time Series Insights event source associated with the specified environment.- 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.
-
listByEnvironmentWithResponse
com.azure.core.http.rest.Response<EventSourceListResponseInner> listByEnvironmentWithResponse(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Lists all the available event sources associated with the subscription and within the specified resource group and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.context
- The context to associate with this operation.- Returns:
- the response of the List EventSources operation 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.
-
listByEnvironment
Lists all the available event sources associated with the subscription and within the specified resource group and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.- Returns:
- the response of the List EventSources 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.
-