Package org.azd.wiki.wikis
Class WikisRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.wiki.wikis.WikisRequestBuilder
Provides functionality to work with Wiki wikis Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionWikisRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(WikiCreateParameters wikiCreateParameters) Creates the wiki resource.createAsync
(WikiCreateParameters wikiCreateParameters) Creates the wiki resource.Deletes the wiki corresponding to the wiki ID or wiki name provided.deleteAsync
(String wikiIdentifier) Deletes the wiki corresponding to the wiki ID or wiki name provided.Gets the wiki corresponding to the wiki ID or wiki name provided.Gets the wiki corresponding to the wiki ID or wiki name provided.list()
Gets all wikis in a project or collection.Gets all wikis in a project or collection.update
(String wikiIdentifier, WikiV2UpdateParameters wikiV2UpdateParameters) Updates the wiki corresponding to the wiki ID or wiki name provided using the update parameters.updateAsync
(String wikiIdentifier, WikiV2UpdateParameters wikiV2UpdateParameters) Updates the wiki corresponding to the wiki ID or wiki name provided using the update parameters.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
WikisRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
createAsync
public CompletableFuture<WikiV2> createAsync(WikiCreateParameters wikiCreateParameters) throws AzDException Creates the wiki resource.- Parameters:
wikiCreateParameters
-WikiCreateParameters
helps to create code wiki and project wiki. Use the constructor parameter to create respective wikis.- Returns:
- WikiV2 object
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-
deleteAsync
Deletes the wiki corresponding to the wiki ID or wiki name provided.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.- Returns:
- WikiV2
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Gets the wiki corresponding to the wiki ID or wiki name provided.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.- Returns:
- WikiV2
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Gets all wikis in a project or collection.- Returns:
- WikiV2s
WikiV2Pages
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<WikiV2> updateAsync(String wikiIdentifier, WikiV2UpdateParameters wikiV2UpdateParameters) throws AzDException Updates the wiki corresponding to the wiki ID or wiki name provided using the update parameters.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.wikiV2UpdateParameters
- Wiki update parameters object.- Returns:
- WikiV2
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-
create
Creates the wiki resource.- Parameters:
wikiCreateParameters
-WikiCreateParameters
helps to create code wiki and project wiki. Use the constructor parameter to create respective wikis.- Returns:
- WikiV2 object
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Deletes the wiki corresponding to the wiki ID or wiki name provided.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.- Returns:
- WikiV2
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-
get
Gets the wiki corresponding to the wiki ID or wiki name provided.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.- Returns:
- WikiV2
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-
list
Gets all wikis in a project or collection.- Returns:
- WikiV2s
WikiV2Pages
- Throws:
AzDException
- Default Api Exception handler.
-
update
public WikiV2 update(String wikiIdentifier, WikiV2UpdateParameters wikiV2UpdateParameters) throws AzDException Updates the wiki corresponding to the wiki ID or wiki name provided using the update parameters.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.wikiV2UpdateParameters
- Wiki update parameters object.- Returns:
- WikiV2
WikiV2
- Throws:
AzDException
- Default Api Exception handler.
-