Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated beta models and request builders #1076

Merged
merged 1 commit into from
Nov 5, 2024
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 @@ -121,6 +121,7 @@
import com.microsoft.graph.beta.threatsubmission.ThreatSubmissionRequestBuilder;
import com.microsoft.graph.beta.trustframework.TrustFrameworkRequestBuilder;
import com.microsoft.graph.beta.users.UsersRequestBuilder;
import com.microsoft.graph.beta.userswithuserprincipalname.UsersWithUserPrincipalNameRequestBuilder;
import com.microsoft.graph.beta.workplace.WorkplaceRequestBuilder;
import com.microsoft.kiota.ApiClientBuilder;
import com.microsoft.kiota.BaseRequestBuilder;
Expand Down Expand Up @@ -1154,4 +1155,14 @@ public ServicePrincipalsWithAppIdRequestBuilder servicePrincipalsWithAppId(@jaka
Objects.requireNonNull(appId);
return new ServicePrincipalsWithAppIdRequestBuilder(pathParameters, requestAdapter, appId);
}
/**
* Provides operations to manage the collection of user entities.
* @param userPrincipalName Alternate key of user
* @return a {@link UsersWithUserPrincipalNameRequestBuilder}
*/
@jakarta.annotation.Nonnull
public UsersWithUserPrincipalNameRequestBuilder usersWithUserPrincipalName(@jakarta.annotation.Nonnull final String userPrincipalName) {
Objects.requireNonNull(userPrincipalName);
return new UsersWithUserPrincipalNameRequestBuilder(pathParameters, requestAdapter, userPrincipalName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Get entra from admin
* A container for Microsoft Entra resources. Read-only.
* @return a {@link Entra}
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
Expand All @@ -85,7 +85,7 @@ public Entra get() {
return get(null);
}
/**
* Get entra from admin
* 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 Entra}
* @throws ODataError When receiving a 4XX or 5XX status code
Expand Down Expand Up @@ -158,7 +158,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
return requestInfo;
}
/**
* Get entra from admin
* A container for Microsoft Entra resources. Read-only.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
Expand All @@ -169,7 +169,7 @@ public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Get entra from admin
* 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
Expand Down Expand Up @@ -233,7 +233,7 @@ public EntraRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Get entra from admin
* A container for Microsoft Entra resources. Read-only.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,26 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Get uxSetting from admin
* 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);
}
/**
* Get uxSetting from admin
* 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 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
Expand All @@ -89,26 +91,28 @@ public UxSetting get(@jakarta.annotation.Nullable final java.util.function.Consu
return this.requestAdapter.send(requestInfo, errorMapping, UxSetting::createFromDiscriminatorValue);
}
/**
* Update the navigation property uxSetting in admin
* Update the properties of a uxSetting object.
* @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);
}
/**
* Update the navigation property uxSetting in admin
* Update the properties of a uxSetting object.
* @param body The request 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
Expand Down Expand Up @@ -146,7 +150,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
return requestInfo;
}
/**
* Get uxSetting from admin
* Get the properties and relationships of a uxSetting object.
* @return a {@link RequestInformation}
* @deprecated
* as of 2023-11/PrivatePreview:BulkJobs
Expand All @@ -157,7 +161,7 @@ public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Get uxSetting from admin
* 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
Expand All @@ -172,7 +176,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
return requestInfo;
}
/**
* Update the navigation property uxSetting in admin
* Update the properties of a uxSetting object.
* @param body The request body
* @return a {@link RequestInformation}
* @deprecated
Expand All @@ -184,7 +188,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
return toPatchRequestInformation(body, null);
}
/**
* Update the navigation property uxSetting in admin
* Update the properties of a uxSetting object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
Expand Down Expand Up @@ -221,7 +225,7 @@ public UxSettingRequestBuilder withUrl(@jakarta.annotation.Nonnull final String
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Get uxSetting from admin
* Get the properties and relationships of a uxSetting object.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Read the properties and relationships of an operationalInsightsConnection object.
* Read the properties and relationships of a resourceConnection object.
* @return a {@link ResourceConnection}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ResourceConnection get() {
return get(null);
}
/**
* Read the properties and relationships of an operationalInsightsConnection object.
* Read the properties and relationships of a resourceConnection object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link ResourceConnection}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ResourceConnection get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
Expand Down Expand Up @@ -126,15 +126,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
return requestInfo;
}
/**
* Read the properties and relationships of an operationalInsightsConnection object.
* Read the properties and relationships of a resourceConnection object.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Read the properties and relationships of an operationalInsightsConnection object.
* Read the properties and relationships of a resourceConnection object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand Down Expand Up @@ -186,7 +186,7 @@ public ResourceConnectionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Read the properties and relationships of an operationalInsightsConnection object.
* Read the properties and relationships of a resourceConnection object.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ public UpdatableAssetItemRequestBuilder(@jakarta.annotation.Nonnull final String
super(requestAdapter, "{+baseurl}/admin/windows/updates/updatableAssets/{updatableAsset%2Did}{?%24expand,%24select}", rawUrl);
}
/**
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta">Find more info here</a>
*/
public void delete() {
delete(null);
}
/**
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta">Find more info here</a>
*/
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
Expand All @@ -93,21 +93,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Read the properties and relationships of an updatableAsset object.
* Read the properties and relationships of an updatableAssetGroup object.
* @return a {@link UpdatableAsset}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public UpdatableAsset get() {
return get(null);
}
/**
* Read the properties and relationships of an updatableAsset object.
* Read the properties and relationships of an updatableAssetGroup object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link UpdatableAsset}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public UpdatableAsset get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
Expand Down Expand Up @@ -142,15 +142,15 @@ public UpdatableAsset patch(@jakarta.annotation.Nonnull final UpdatableAsset bod
return this.requestAdapter.send(requestInfo, errorMapping, UpdatableAsset::createFromDiscriminatorValue);
}
/**
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
* Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand All @@ -162,15 +162,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
return requestInfo;
}
/**
* Read the properties and relationships of an updatableAsset object.
* Read the properties and relationships of an updatableAssetGroup object.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Read the properties and relationships of an updatableAsset object.
* Read the properties and relationships of an updatableAssetGroup object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand Down Expand Up @@ -222,7 +222,7 @@ public UpdatableAssetItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fina
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Read the properties and relationships of an updatableAsset object.
* Read the properties and relationships of an updatableAssetGroup object.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Loading
Loading