Interface MetadataSchemas
public interface MetadataSchemas
Resource collection API of MetadataSchemas.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new MetadataSchema resource.void
Deletes specified metadata schema.void
deleteById
(String id) Deletes specified metadata schema.com.azure.core.http.rest.Response
<Void> deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes specified metadata schema.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String serviceName, String metadataSchemaName, com.azure.core.util.Context context) Deletes specified metadata schema.Returns details of the metadata schema.Returns details of the metadata schema.com.azure.core.http.rest.Response
<MetadataSchema> getByIdWithResponse
(String id, com.azure.core.util.Context context) Returns details of the metadata schema.com.azure.core.http.rest.Response
<MetadataSchema> getWithResponse
(String resourceGroupName, String serviceName, String metadataSchemaName, com.azure.core.util.Context context) Returns details of the metadata schema.void
Checks if specified metadata schema exists.com.azure.core.http.rest.Response
<Void> headWithResponse
(String resourceGroupName, String serviceName, String metadataSchemaName, com.azure.core.util.Context context) Checks if specified metadata schema exists.com.azure.core.http.rest.PagedIterable
<MetadataSchema> Returns a collection of metadata schemas.com.azure.core.http.rest.PagedIterable
<MetadataSchema> list
(String resourceGroupName, String serviceName, String filter, com.azure.core.util.Context context) Returns a collection of metadata schemas.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<MetadataSchema> list(String resourceGroupName, String serviceName) Returns a collection of metadata schemas.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.- Returns:
- the response of a MetadataSchema 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.
-
list
com.azure.core.http.rest.PagedIterable<MetadataSchema> list(String resourceGroupName, String serviceName, String filter, com.azure.core.util.Context context) Returns a collection of metadata schemas.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.filter
- OData filter parameter.context
- The context to associate with this operation.- Returns:
- the response of a MetadataSchema 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<MetadataSchema> getWithResponse(String resourceGroupName, String serviceName, String metadataSchemaName, com.azure.core.util.Context context) Returns details of the metadata schema.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.metadataSchemaName
- The name of the metadata schema.context
- The context to associate with this operation.- Returns:
- metadata schema entity.
- 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
Returns details of the metadata schema.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.metadataSchemaName
- The name of the metadata schema.- Returns:
- metadata schema entity.
- 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 serviceName, String metadataSchemaName, com.azure.core.util.Context context) Deletes specified metadata schema.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.metadataSchemaName
- The name of the metadata schema.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 specified metadata schema.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.metadataSchemaName
- The name of the metadata schema.- 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.
-
headWithResponse
com.azure.core.http.rest.Response<Void> headWithResponse(String resourceGroupName, String serviceName, String metadataSchemaName, com.azure.core.util.Context context) Checks if specified metadata schema exists.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.metadataSchemaName
- The name of the metadata schema.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.
-
head
Checks if specified metadata schema exists.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.metadataSchemaName
- The name of the metadata schema.- 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
Returns details of the metadata schema.- Parameters:
id
- the resource ID.- Returns:
- metadata schema entity.
- 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<MetadataSchema> getByIdWithResponse(String id, com.azure.core.util.Context context) Returns details of the metadata schema.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- metadata schema entity.
- 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 specified metadata schema.- 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 specified metadata schema.- 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 MetadataSchema resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new MetadataSchema definition.
-