Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,23 @@ public class ExchangeRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
* @return a {@link MailboxesRequestBuilder}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
@jakarta.annotation.Nonnull
public MailboxesRequestBuilder mailboxes() {
return new MailboxesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the messageTraces property of the microsoft.graph.exchangeAdmin entity.
* @return a {@link MessageTracesRequestBuilder}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
@jakarta.annotation.Nonnull
public MessageTracesRequestBuilder messageTraces() {
return new MessageTracesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
* @return a {@link TracingRequestBuilder}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
@jakarta.annotation.Nonnull
public TracingRequestBuilder tracing() {
return new TracingRequestBuilder(pathParameters, requestAdapter);
Expand All @@ -75,21 +66,15 @@ public ExchangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @
/**
* Delete navigation property exchange for admin
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
public void delete() {
delete(null);
}
/**
* Delete navigation property exchange for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
Expand All @@ -100,11 +85,8 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
* A container for the Exchange admin functionality. Read-only.
* @return a {@link ExchangeAdmin}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public ExchangeAdmin get() {
return get(null);
}
Expand All @@ -113,11 +95,8 @@ public ExchangeAdmin get() {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link ExchangeAdmin}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public ExchangeAdmin get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
Expand All @@ -129,11 +108,8 @@ public ExchangeAdmin get(@jakarta.annotation.Nullable final java.util.function.C
* @param body The request body
* @return a {@link ExchangeAdmin}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public ExchangeAdmin patch(@jakarta.annotation.Nonnull final ExchangeAdmin body) {
return patch(body, null);
}
Expand All @@ -143,11 +119,8 @@ public ExchangeAdmin patch(@jakarta.annotation.Nonnull final ExchangeAdmin body)
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link ExchangeAdmin}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public ExchangeAdmin patch(@jakarta.annotation.Nonnull final ExchangeAdmin body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
Expand All @@ -158,23 +131,17 @@ public ExchangeAdmin patch(@jakarta.annotation.Nonnull final ExchangeAdmin body,
/**
* Delete navigation property exchange for admin
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Delete navigation property exchange for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
Expand All @@ -184,23 +151,17 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
/**
* A container for the Exchange admin functionality. Read-only.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* A container for the Exchange admin functionality. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
Expand All @@ -211,11 +172,8 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
* Update the navigation property exchange in admin
* @param body The request body
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ExchangeAdmin body) {
return toPatchRequestInformation(body, null);
}
Expand All @@ -224,11 +182,8 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ExchangeAdmin body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
Expand All @@ -241,11 +196,8 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link ExchangeRequestBuilder}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public ExchangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new ExchangeRequestBuilder(rawUrl, requestAdapter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ public class MailboxesRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to count the resources in the collection.
* @return a {@link CountRequestBuilder}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
@jakarta.annotation.Nonnull
public CountRequestBuilder count() {
return new CountRequestBuilder(pathParameters, requestAdapter);
Expand All @@ -38,11 +35,8 @@ public CountRequestBuilder count() {
* Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
* @param mailboxId The unique identifier of mailbox
* @return a {@link MailboxItemRequestBuilder}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public MailboxItemRequestBuilder byMailboxId(@jakarta.annotation.Nonnull final String mailboxId) {
Objects.requireNonNull(mailboxId);
final HashMap<String, Object> urlTplParams = new HashMap<String, Object>(this.pathParameters);
Expand All @@ -69,11 +63,8 @@ public MailboxesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl,
* Represents a user&apos;s mailboxes.
* @return a {@link MailboxCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public MailboxCollectionResponse get() {
return get(null);
}
Expand All @@ -82,11 +73,8 @@ public MailboxCollectionResponse get() {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link MailboxCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public MailboxCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
Expand All @@ -98,11 +86,8 @@ public MailboxCollectionResponse get(@jakarta.annotation.Nullable final java.uti
* @param body The request body
* @return a {@link Mailbox}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body) {
return post(body, null);
}
Expand All @@ -112,11 +97,8 @@ public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body) {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link Mailbox}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nullable
@Deprecated
public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
Expand All @@ -127,23 +109,17 @@ public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body, @jakarta.ann
/**
* Represents a user&apos;s mailboxes.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Represents a user&apos;s mailboxes.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
Expand All @@ -154,11 +130,8 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
* Create new navigation property to mailboxes for admin
* @param body The request body
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Mailbox body) {
return toPostRequestInformation(body, null);
}
Expand All @@ -167,11 +140,8 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Mailbox body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
Expand All @@ -184,11 +154,8 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link MailboxesRequestBuilder}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public MailboxesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new MailboxesRequestBuilder(rawUrl, requestAdapter);
Expand Down
Loading
Loading