
com.azure.resourcemanager.eventgrid.fluent.NamespacesClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventgrid Show documentation
Show all versions of azure-resourcemanager-eventgrid Show documentation
This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2021-10-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventgrid.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.eventgrid.fluent.models.CustomDomainOwnershipValidationResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.NamespaceInner;
import com.azure.resourcemanager.eventgrid.fluent.models.NamespaceSharedAccessKeysInner;
import com.azure.resourcemanager.eventgrid.models.NamespaceRegenerateKeyRequest;
import com.azure.resourcemanager.eventgrid.models.NamespaceUpdateParameters;
/**
* An instance of this class provides access to all the operations defined in NamespacesClient.
*/
public interface NamespacesClient {
/**
* Get a namespace.
*
* Get properties of a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return properties of a namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String namespaceName,
Context context);
/**
* Get a namespace.
*
* Get properties of a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return properties of a namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName);
/**
* Create or update a namespace.
*
* Asynchronously creates or updates a new namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceInfo Namespace information.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of namespace resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NamespaceInner> beginCreateOrUpdate(String resourceGroupName,
String namespaceName, NamespaceInner namespaceInfo);
/**
* Create or update a namespace.
*
* Asynchronously creates or updates a new namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceInfo Namespace information.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of namespace resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NamespaceInner> beginCreateOrUpdate(String resourceGroupName,
String namespaceName, NamespaceInner namespaceInfo, Context context);
/**
* Create or update a namespace.
*
* Asynchronously creates or updates a new namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceInfo Namespace information.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, NamespaceInner namespaceInfo);
/**
* Create or update a namespace.
*
* Asynchronously creates or updates a new namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceInfo Namespace information.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, NamespaceInner namespaceInfo,
Context context);
/**
* Delete a namespace.
*
* Delete existing namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName);
/**
* Delete a namespace.
*
* Delete existing namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName, Context context);
/**
* Delete a namespace.
*
* Delete existing namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String namespaceName);
/**
* Delete a namespace.
*
* Delete existing namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String namespaceName, Context context);
/**
* Update a namespace.
*
* Asynchronously updates a namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceUpdateParameters Namespace update information.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of namespace resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NamespaceInner> beginUpdate(String resourceGroupName, String namespaceName,
NamespaceUpdateParameters namespaceUpdateParameters);
/**
* Update a namespace.
*
* Asynchronously updates a namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceUpdateParameters Namespace update information.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of namespace resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NamespaceInner> beginUpdate(String resourceGroupName, String namespaceName,
NamespaceUpdateParameters namespaceUpdateParameters, Context context);
/**
* Update a namespace.
*
* Asynchronously updates a namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceUpdateParameters Namespace update information.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceInner update(String resourceGroupName, String namespaceName,
NamespaceUpdateParameters namespaceUpdateParameters);
/**
* Update a namespace.
*
* Asynchronously updates a namespace with the specified parameters.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param namespaceUpdateParameters Namespace update information.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceInner update(String resourceGroupName, String namespaceName,
NamespaceUpdateParameters namespaceUpdateParameters, Context context);
/**
* List namespaces under an Azure subscription.
*
* List all the namespaces under an Azure subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the List Namespaces operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List namespaces under an Azure subscription.
*
* List all the namespaces under an Azure subscription.
*
* @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the
* 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
* as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
* operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
* 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
* @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
* 100. If not specified, the default number of results to be returned is 20 items per page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the List Namespaces operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String filter, Integer top, Context context);
/**
* List namespaces under a resource group.
*
* List all the namespaces under a resource group.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the List Namespaces operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List namespaces under a resource group.
*
* List all the namespaces under a resource group.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the
* 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
* as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
* operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
* 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
* @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
* 100. If not specified, the default number of results to be returned is 20 items per page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the List Namespaces operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, String filter, Integer top,
Context context);
/**
* List keys for a namespace.
*
* List the two keys used to publish to a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return shared access keys of the Namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listSharedAccessKeysWithResponse(String resourceGroupName,
String namespaceName, Context context);
/**
* List keys for a namespace.
*
* List the two keys used to publish to a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the namespace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return shared access keys of the Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String namespaceName);
/**
* Regenerate key for a namespace.
*
* Regenerate a shared access key for a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @param regenerateKeyRequest Request body to regenerate key.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of shared access keys of the Namespace.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NamespaceSharedAccessKeysInner> beginRegenerateKey(
String resourceGroupName, String namespaceName, NamespaceRegenerateKeyRequest regenerateKeyRequest);
/**
* Regenerate key for a namespace.
*
* Regenerate a shared access key for a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @param regenerateKeyRequest Request body to regenerate key.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of shared access keys of the Namespace.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NamespaceSharedAccessKeysInner> beginRegenerateKey(
String resourceGroupName, String namespaceName, NamespaceRegenerateKeyRequest regenerateKeyRequest,
Context context);
/**
* Regenerate key for a namespace.
*
* Regenerate a shared access key for a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @param regenerateKeyRequest Request body to regenerate key.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return shared access keys of the Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceSharedAccessKeysInner regenerateKey(String resourceGroupName, String namespaceName,
NamespaceRegenerateKeyRequest regenerateKeyRequest);
/**
* Regenerate key for a namespace.
*
* Regenerate a shared access key for a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @param regenerateKeyRequest Request body to regenerate key.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return shared access keys of the Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NamespaceSharedAccessKeysInner regenerateKey(String resourceGroupName, String namespaceName,
NamespaceRegenerateKeyRequest regenerateKeyRequest, Context context);
/**
* Validate ownership for all custom domains in a namespace.
*
* Performs ownership validation via checking TXT records for all custom domains in a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of namespace custom domain ownership validation result.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CustomDomainOwnershipValidationResultInner>
beginValidateCustomDomainOwnership(String resourceGroupName, String namespaceName);
/**
* Validate ownership for all custom domains in a namespace.
*
* Performs ownership validation via checking TXT records for all custom domains in a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of namespace custom domain ownership validation result.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CustomDomainOwnershipValidationResultInner>
beginValidateCustomDomainOwnership(String resourceGroupName, String namespaceName, Context context);
/**
* Validate ownership for all custom domains in a namespace.
*
* Performs ownership validation via checking TXT records for all custom domains in a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return namespace custom domain ownership validation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CustomDomainOwnershipValidationResultInner validateCustomDomainOwnership(String resourceGroupName,
String namespaceName);
/**
* Validate ownership for all custom domains in a namespace.
*
* Performs ownership validation via checking TXT records for all custom domains in a namespace.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param namespaceName Name of the Namespace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return namespace custom domain ownership validation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CustomDomainOwnershipValidationResultInner validateCustomDomainOwnership(String resourceGroupName,
String namespaceName, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy