Skip to content

Commit aa35def

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 192501
1 parent c2f2d9f commit aa35def

File tree

144 files changed

+12673
-497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+12673
-497
lines changed

src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/resourceconnections/item/ResourceConnectionItemRequestBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ public ResourceConnectionItemRequestBuilder(@jakarta.annotation.Nonnull final St
3737
super(requestAdapter, "{+baseurl}/admin/windows/updates/resourceConnections/{resourceConnection%2Did}{?%24expand,%24select}", rawUrl);
3838
}
3939
/**
40-
* Delete a resourceConnection object.
40+
* Delete an operationalInsightsConnection object.
4141
* @throws ODataError When receiving a 4XX or 5XX status code
42-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-beta">Find more info here</a>
42+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-beta">Find more info here</a>
4343
*/
4444
public void delete() {
4545
delete(null);
4646
}
4747
/**
48-
* Delete a resourceConnection object.
48+
* Delete an operationalInsightsConnection object.
4949
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5050
* @throws ODataError When receiving a 4XX or 5XX status code
51-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-beta">Find more info here</a>
51+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-beta">Find more info here</a>
5252
*/
5353
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
5454
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
@@ -106,15 +106,15 @@ public ResourceConnection patch(@jakarta.annotation.Nonnull final ResourceConnec
106106
return this.requestAdapter.send(requestInfo, errorMapping, ResourceConnection::createFromDiscriminatorValue);
107107
}
108108
/**
109-
* Delete a resourceConnection object.
109+
* Delete an operationalInsightsConnection object.
110110
* @return a {@link RequestInformation}
111111
*/
112112
@jakarta.annotation.Nonnull
113113
public RequestInformation toDeleteRequestInformation() {
114114
return toDeleteRequestInformation(null);
115115
}
116116
/**
117-
* Delete a resourceConnection object.
117+
* Delete an operationalInsightsConnection object.
118118
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
119119
* @return a {@link RequestInformation}
120120
*/

src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatableassets/item/UpdatableAssetItemRequestBuilder.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ public UpdatableAssetItemRequestBuilder(@jakarta.annotation.Nonnull final String
7373
super(requestAdapter, "{+baseurl}/admin/windows/updates/updatableAssets/{updatableAsset%2Did}{?%24expand,%24select}", rawUrl);
7474
}
7575
/**
76-
* Delete an updatableAsset object.
76+
* 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.
7777
* @throws ODataError When receiving a 4XX or 5XX status code
78-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-beta">Find more info here</a>
78+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta">Find more info here</a>
7979
*/
8080
public void delete() {
8181
delete(null);
8282
}
8383
/**
84-
* Delete an updatableAsset object.
84+
* 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.
8585
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8686
* @throws ODataError When receiving a 4XX or 5XX status code
87-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-beta">Find more info here</a>
87+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta">Find more info here</a>
8888
*/
8989
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
9090
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
@@ -93,21 +93,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
9393
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
9494
}
9595
/**
96-
* Read the properties and relationships of an updatableAsset object.
96+
* Read the properties of an azureADDevice object.
9797
* @return a {@link UpdatableAsset}
9898
* @throws ODataError When receiving a 4XX or 5XX status code
99-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta">Find more info here</a>
99+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta">Find more info here</a>
100100
*/
101101
@jakarta.annotation.Nullable
102102
public UpdatableAsset get() {
103103
return get(null);
104104
}
105105
/**
106-
* Read the properties and relationships of an updatableAsset object.
106+
* Read the properties of an azureADDevice object.
107107
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
108108
* @return a {@link UpdatableAsset}
109109
* @throws ODataError When receiving a 4XX or 5XX status code
110-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta">Find more info here</a>
110+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta">Find more info here</a>
111111
*/
112112
@jakarta.annotation.Nullable
113113
public UpdatableAsset get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -142,15 +142,15 @@ public UpdatableAsset patch(@jakarta.annotation.Nonnull final UpdatableAsset bod
142142
return this.requestAdapter.send(requestInfo, errorMapping, UpdatableAsset::createFromDiscriminatorValue);
143143
}
144144
/**
145-
* Delete an updatableAsset object.
145+
* 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.
146146
* @return a {@link RequestInformation}
147147
*/
148148
@jakarta.annotation.Nonnull
149149
public RequestInformation toDeleteRequestInformation() {
150150
return toDeleteRequestInformation(null);
151151
}
152152
/**
153-
* Delete an updatableAsset object.
153+
* 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.
154154
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
155155
* @return a {@link RequestInformation}
156156
*/
@@ -162,15 +162,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
162162
return requestInfo;
163163
}
164164
/**
165-
* Read the properties and relationships of an updatableAsset object.
165+
* Read the properties of an azureADDevice object.
166166
* @return a {@link RequestInformation}
167167
*/
168168
@jakarta.annotation.Nonnull
169169
public RequestInformation toGetRequestInformation() {
170170
return toGetRequestInformation(null);
171171
}
172172
/**
173-
* Read the properties and relationships of an updatableAsset object.
173+
* Read the properties of an azureADDevice object.
174174
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
175175
* @return a {@link RequestInformation}
176176
*/
@@ -222,7 +222,7 @@ public UpdatableAssetItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fina
222222
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
223223
}
224224
/**
225-
* Read the properties and relationships of an updatableAsset object.
225+
* Read the properties of an azureADDevice object.
226226
*/
227227
@jakarta.annotation.Generated("com.microsoft.kiota")
228228
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatepolicies/item/compliancechanges/item/ComplianceChangeItemRequestBuilder.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ public ComplianceChangeItemRequestBuilder(@jakarta.annotation.Nonnull final Stri
4646
super(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}{?%24expand,%24select}", rawUrl);
4747
}
4848
/**
49-
* Delete a complianceChange object.
49+
* Delete a contentApproval object.
5050
* @throws ODataError When receiving a 4XX or 5XX status code
51-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta">Find more info here</a>
51+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta">Find more info here</a>
5252
*/
5353
public void delete() {
5454
delete(null);
5555
}
5656
/**
57-
* Delete a complianceChange object.
57+
* Delete a contentApproval object.
5858
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5959
* @throws ODataError When receiving a 4XX or 5XX status code
60-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta">Find more info here</a>
60+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta">Find more info here</a>
6161
*/
6262
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
6363
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
@@ -90,23 +90,23 @@ public ComplianceChange get(@jakarta.annotation.Nullable final java.util.functio
9090
return this.requestAdapter.send(requestInfo, errorMapping, ComplianceChange::createFromDiscriminatorValue);
9191
}
9292
/**
93-
* Update the properties of a complianceChange object.
93+
* Update the properties of a contentApproval object.
9494
* @param body The request body
9595
* @return a {@link ComplianceChange}
9696
* @throws ODataError When receiving a 4XX or 5XX status code
97-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta">Find more info here</a>
97+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta">Find more info here</a>
9898
*/
9999
@jakarta.annotation.Nullable
100100
public ComplianceChange patch(@jakarta.annotation.Nonnull final ComplianceChange body) {
101101
return patch(body, null);
102102
}
103103
/**
104-
* Update the properties of a complianceChange object.
104+
* Update the properties of a contentApproval object.
105105
* @param body The request body
106106
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
107107
* @return a {@link ComplianceChange}
108108
* @throws ODataError When receiving a 4XX or 5XX status code
109-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta">Find more info here</a>
109+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta">Find more info here</a>
110110
*/
111111
@jakarta.annotation.Nullable
112112
public ComplianceChange patch(@jakarta.annotation.Nonnull final ComplianceChange body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
@@ -117,15 +117,15 @@ public ComplianceChange patch(@jakarta.annotation.Nonnull final ComplianceChange
117117
return this.requestAdapter.send(requestInfo, errorMapping, ComplianceChange::createFromDiscriminatorValue);
118118
}
119119
/**
120-
* Delete a complianceChange object.
120+
* Delete a contentApproval object.
121121
* @return a {@link RequestInformation}
122122
*/
123123
@jakarta.annotation.Nonnull
124124
public RequestInformation toDeleteRequestInformation() {
125125
return toDeleteRequestInformation(null);
126126
}
127127
/**
128-
* Delete a complianceChange object.
128+
* Delete a contentApproval object.
129129
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
130130
* @return a {@link RequestInformation}
131131
*/
@@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
157157
return requestInfo;
158158
}
159159
/**
160-
* Update the properties of a complianceChange object.
160+
* Update the properties of a contentApproval object.
161161
* @param body The request body
162162
* @return a {@link RequestInformation}
163163
*/
@@ -166,7 +166,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
166166
return toPatchRequestInformation(body, null);
167167
}
168168
/**
169-
* Update the properties of a complianceChange object.
169+
* Update the properties of a contentApproval object.
170170
* @param body The request body
171171
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
172172
* @return a {@link RequestInformation}

src/main/java/com/microsoft/graph/beta/generated/auditlogs/signins/SignInsRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.microsoft.graph.beta.auditlogs.signins.confirmcompromised.ConfirmCompromisedRequestBuilder;
44
import com.microsoft.graph.beta.auditlogs.signins.confirmsafe.ConfirmSafeRequestBuilder;
55
import com.microsoft.graph.beta.auditlogs.signins.count.CountRequestBuilder;
6+
import com.microsoft.graph.beta.auditlogs.signins.dismiss.DismissRequestBuilder;
67
import com.microsoft.graph.beta.auditlogs.signins.item.SignInItemRequestBuilder;
78
import com.microsoft.graph.beta.models.odataerrors.ODataError;
89
import com.microsoft.graph.beta.models.SignIn;
@@ -49,6 +50,14 @@ public ConfirmSafeRequestBuilder confirmSafe() {
4950
public CountRequestBuilder count() {
5051
return new CountRequestBuilder(pathParameters, requestAdapter);
5152
}
53+
/**
54+
* Provides operations to call the dismiss method.
55+
* @return a {@link DismissRequestBuilder}
56+
*/
57+
@jakarta.annotation.Nonnull
58+
public DismissRequestBuilder dismiss() {
59+
return new DismissRequestBuilder(pathParameters, requestAdapter);
60+
}
5261
/**
5362
* Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity.
5463
* @param signInId The unique identifier of signIn
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
package com.microsoft.graph.beta.auditlogs.signins.dismiss;
2+
3+
import com.microsoft.kiota.serialization.AdditionalDataHolder;
4+
import com.microsoft.kiota.serialization.Parsable;
5+
import com.microsoft.kiota.serialization.ParseNode;
6+
import com.microsoft.kiota.serialization.SerializationWriter;
7+
import com.microsoft.kiota.store.BackedModel;
8+
import com.microsoft.kiota.store.BackingStore;
9+
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
10+
import java.util.HashMap;
11+
import java.util.Map;
12+
import java.util.Objects;
13+
@jakarta.annotation.Generated("com.microsoft.kiota")
14+
public class DismissPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
15+
/**
16+
* Stores model information.
17+
*/
18+
@jakarta.annotation.Nonnull
19+
protected BackingStore backingStore;
20+
/**
21+
* Instantiates a new {@link DismissPostRequestBody} and sets the default values.
22+
*/
23+
public DismissPostRequestBody() {
24+
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
25+
this.setAdditionalData(new HashMap<>());
26+
}
27+
/**
28+
* Creates a new instance of the appropriate class based on discriminator value
29+
* @param parseNode The parse node to use to read the discriminator value and create the object
30+
* @return a {@link DismissPostRequestBody}
31+
*/
32+
@jakarta.annotation.Nonnull
33+
public static DismissPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
34+
Objects.requireNonNull(parseNode);
35+
return new DismissPostRequestBody();
36+
}
37+
/**
38+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
39+
* @return a {@link Map<String, Object>}
40+
*/
41+
@jakarta.annotation.Nonnull
42+
public Map<String, Object> getAdditionalData() {
43+
Map<String, Object> value = this.backingStore.get("additionalData");
44+
if(value == null) {
45+
value = new HashMap<>();
46+
this.setAdditionalData(value);
47+
}
48+
return value;
49+
}
50+
/**
51+
* Gets the backingStore property value. Stores model information.
52+
* @return a {@link BackingStore}
53+
*/
54+
@jakarta.annotation.Nonnull
55+
public BackingStore getBackingStore() {
56+
return this.backingStore;
57+
}
58+
/**
59+
* The deserialization information for the current model
60+
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
61+
*/
62+
@jakarta.annotation.Nonnull
63+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
64+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(1);
65+
deserializerMap.put("requestIds", (n) -> { this.setRequestIds(n.getCollectionOfPrimitiveValues(String.class)); });
66+
return deserializerMap;
67+
}
68+
/**
69+
* Gets the requestIds property value. The requestIds property
70+
* @return a {@link java.util.List<String>}
71+
*/
72+
@jakarta.annotation.Nullable
73+
public java.util.List<String> getRequestIds() {
74+
return this.backingStore.get("requestIds");
75+
}
76+
/**
77+
* Serializes information the current object
78+
* @param writer Serialization writer to use to serialize this model
79+
*/
80+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
81+
Objects.requireNonNull(writer);
82+
writer.writeCollectionOfPrimitiveValues("requestIds", this.getRequestIds());
83+
writer.writeAdditionalData(this.getAdditionalData());
84+
}
85+
/**
86+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
87+
* @param value Value to set for the AdditionalData property.
88+
*/
89+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
90+
this.backingStore.set("additionalData", value);
91+
}
92+
/**
93+
* Sets the backingStore property value. Stores model information.
94+
* @param value Value to set for the backingStore property.
95+
*/
96+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
97+
Objects.requireNonNull(value);
98+
this.backingStore = value;
99+
}
100+
/**
101+
* Sets the requestIds property value. The requestIds property
102+
* @param value Value to set for the requestIds property.
103+
*/
104+
public void setRequestIds(@jakarta.annotation.Nullable final java.util.List<String> value) {
105+
this.backingStore.set("requestIds", value);
106+
}
107+
}

0 commit comments

Comments
 (0)