Skip to content

Commit

Permalink
feat(generation): update request builders and models
Browse files Browse the repository at this point in the history
Update generated files with build 172840
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Dec 3, 2024
1 parent e94bacb commit 3129de5
Show file tree
Hide file tree
Showing 304 changed files with 21,476 additions and 842 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.microsoft.graph.beta.approvalworkflowproviders.ApprovalWorkflowProvidersRequestBuilder;
import com.microsoft.graph.beta.auditlogs.AuditLogsRequestBuilder;
import com.microsoft.graph.beta.authenticationmethodconfigurations.AuthenticationMethodConfigurationsRequestBuilder;
import com.microsoft.graph.beta.authenticationmethoddevices.AuthenticationMethodDevicesRequestBuilder;
import com.microsoft.graph.beta.authenticationmethodspolicy.AuthenticationMethodsPolicyRequestBuilder;
import com.microsoft.graph.beta.bookingbusinesses.BookingBusinessesRequestBuilder;
import com.microsoft.graph.beta.bookingcurrencies.BookingCurrenciesRequestBuilder;
Expand Down Expand Up @@ -272,6 +273,14 @@ public AuditLogsRequestBuilder auditLogs() {
public AuthenticationMethodConfigurationsRequestBuilder authenticationMethodConfigurations() {
return new AuthenticationMethodConfigurationsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the collection of authenticationMethodDevice entities.
* @return a {@link AuthenticationMethodDevicesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public AuthenticationMethodDevicesRequestBuilder authenticationMethodDevices() {
return new AuthenticationMethodDevicesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the authenticationMethodsPolicy singleton.
* @return a {@link AuthenticationMethodsPolicyRequestBuilder}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ public class EntraRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to manage the uxSetting property of the microsoft.graph.entra entity.
* @return a {@link UxSettingRequestBuilder}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@Deprecated
@jakarta.annotation.Nonnull
public UxSettingRequestBuilder uxSetting() {
return new UxSettingRequestBuilder(pathParameters, requestAdapter);
Expand All @@ -51,21 +48,15 @@ public EntraRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak
/**
* Delete navigation property entra for admin
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@Deprecated
public void delete() {
delete(null);
}
/**
* Delete navigation property entra 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
* as of 2023-11/PrivatePreview:BulkJobs
*/
@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 @@ -76,11 +67,8 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
* A container for Microsoft Entra resources. Read-only.
* @return a {@link Entra}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nullable
@Deprecated
public Entra get() {
return get(null);
}
Expand All @@ -89,11 +77,8 @@ public Entra get() {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link Entra}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nullable
@Deprecated
public Entra 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 @@ -105,11 +90,8 @@ public Entra get(@jakarta.annotation.Nullable final java.util.function.Consumer<
* @param body The request body
* @return a {@link Entra}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nullable
@Deprecated
public Entra patch(@jakarta.annotation.Nonnull final Entra body) {
return patch(body, null);
}
Expand All @@ -119,11 +101,8 @@ public Entra patch(@jakarta.annotation.Nonnull final Entra body) {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link Entra}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nullable
@Deprecated
public Entra patch(@jakarta.annotation.Nonnull final Entra body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
Expand All @@ -134,23 +113,17 @@ public Entra patch(@jakarta.annotation.Nonnull final Entra body, @jakarta.annota
/**
* Delete navigation property entra for admin
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Delete navigation property entra for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@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 @@ -160,23 +133,17 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
/**
* A container for Microsoft Entra resources. Read-only.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* A container for Microsoft Entra resources. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@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 @@ -187,11 +154,8 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
* Update the navigation property entra in admin
* @param body The request body
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Entra body) {
return toPatchRequestInformation(body, null);
}
Expand All @@ -200,11 +164,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
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Entra 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 @@ -217,11 +178,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 EntraRequestBuilder}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public EntraRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new EntraRequestBuilder(rawUrl, requestAdapter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,15 @@ public UxSettingRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl,
/**
* Delete navigation property uxSetting for admin
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@Deprecated
public void delete() {
delete(null);
}
/**
* Delete navigation property uxSetting 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
* as of 2023-11/PrivatePreview:BulkJobs
*/
@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 @@ -64,12 +58,9 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
* Get the properties and relationships of a uxSetting object.
* @return a {@link UxSetting}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
* @see <a href="https://learn.microsoft.com/graph/api/uxsetting-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
@Deprecated
public UxSetting get() {
return get(null);
}
Expand All @@ -78,12 +69,9 @@ public UxSetting get() {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link UxSetting}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
* @see <a href="https://learn.microsoft.com/graph/api/uxsetting-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
@Deprecated
public UxSetting 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 @@ -95,12 +83,9 @@ public UxSetting get(@jakarta.annotation.Nullable final java.util.function.Consu
* @param body The request body
* @return a {@link UxSetting}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
* @see <a href="https://learn.microsoft.com/graph/api/uxsetting-update?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
@Deprecated
public UxSetting patch(@jakarta.annotation.Nonnull final UxSetting body) {
return patch(body, null);
}
Expand All @@ -110,12 +95,9 @@ public UxSetting patch(@jakarta.annotation.Nonnull final UxSetting body) {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link UxSetting}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
* @see <a href="https://learn.microsoft.com/graph/api/uxsetting-update?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
@Deprecated
public UxSetting patch(@jakarta.annotation.Nonnull final UxSetting body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
Expand All @@ -126,23 +108,17 @@ public UxSetting patch(@jakarta.annotation.Nonnull final UxSetting body, @jakart
/**
* Delete navigation property uxSetting for admin
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Delete navigation property uxSetting for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@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 @@ -152,23 +128,17 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
/**
* Get the properties and relationships of a uxSetting object.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Get the properties and relationships of a uxSetting object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@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 @@ -179,11 +149,8 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
* Update the properties of a uxSetting object.
* @param body The request body
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UxSetting body) {
return toPatchRequestInformation(body, null);
}
Expand All @@ -192,11 +159,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
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UxSetting 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 @@ -209,11 +173,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 UxSettingRequestBuilder}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
*/
@jakarta.annotation.Nonnull
@Deprecated
public UxSettingRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new UxSettingRequestBuilder(rawUrl, requestAdapter);
Expand Down
Loading

0 comments on commit 3129de5

Please sign in to comment.