Package org.azd.wiki.attachments
Class WikiAttachmentsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.wiki.attachments.WikiAttachmentsRequestBuilder
Provides functionality to work with Wiki attachments Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the query parameters.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
ConstructorDescriptionWikiAttachmentsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String wikiIdentifier, Consumer<WikiAttachmentsRequestBuilder.RequestConfiguration> requestConfiguration, InputStream streamToUpload) Creates an attachment in the wiki.createAsync
(String wikiIdentifier, Consumer<WikiAttachmentsRequestBuilder.RequestConfiguration> requestConfiguration, InputStream streamToUpload) Creates an attachment in the wiki.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
WikiAttachmentsRequestBuilder
public WikiAttachmentsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) 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<WikiAttachment> createAsync(String wikiIdentifier, Consumer<WikiAttachmentsRequestBuilder.RequestConfiguration> requestConfiguration, InputStream streamToUpload) throws AzDException Creates an attachment in the wiki.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.requestConfiguration
- Represents the query parameters.streamToUpload
- Input stream contents to upload.- Returns:
- WikiAttachment Object
WikiAttachment
- Throws:
AzDException
- Default Api Exception handler.
-
create
public WikiAttachment create(String wikiIdentifier, Consumer<WikiAttachmentsRequestBuilder.RequestConfiguration> requestConfiguration, InputStream streamToUpload) throws AzDException Creates an attachment in the wiki.- Parameters:
wikiIdentifier
- Wiki ID or wiki name.requestConfiguration
- Represents the query parameters.streamToUpload
- Input stream contents to upload.- Returns:
- WikiAttachment Object
WikiAttachment
- Throws:
AzDException
- Default Api Exception handler.
-