Skip to content

Commit 99d9490

Browse files
authored
Merge pull request #1102 from microsoftgraph/beta/pipelinebuild/175190
Generated beta models and request builders
2 parents 7f85432 + 9356f54 commit 99d9490

File tree

297 files changed

+8694
-2938
lines changed

Some content is hidden

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

297 files changed

+8694
-2938
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
5757
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
5858
}
5959
/**
60-
* Read the properties and relationships of an operationalInsightsConnection object.
60+
* Read the properties and relationships of a resourceConnection object.
6161
* @return a {@link ResourceConnection}
6262
* @throws ODataError When receiving a 4XX or 5XX status code
63-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta">Find more info here</a>
63+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta">Find more info here</a>
6464
*/
6565
@jakarta.annotation.Nullable
6666
public ResourceConnection get() {
6767
return get(null);
6868
}
6969
/**
70-
* Read the properties and relationships of an operationalInsightsConnection object.
70+
* Read the properties and relationships of a resourceConnection object.
7171
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7272
* @return a {@link ResourceConnection}
7373
* @throws ODataError When receiving a 4XX or 5XX status code
74-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta">Find more info here</a>
74+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta">Find more info here</a>
7575
*/
7676
@jakarta.annotation.Nullable
7777
public ResourceConnection get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -126,15 +126,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
126126
return requestInfo;
127127
}
128128
/**
129-
* Read the properties and relationships of an operationalInsightsConnection object.
129+
* Read the properties and relationships of a resourceConnection object.
130130
* @return a {@link RequestInformation}
131131
*/
132132
@jakarta.annotation.Nonnull
133133
public RequestInformation toGetRequestInformation() {
134134
return toGetRequestInformation(null);
135135
}
136136
/**
137-
* Read the properties and relationships of an operationalInsightsConnection object.
137+
* Read the properties and relationships of a resourceConnection object.
138138
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
139139
* @return a {@link RequestInformation}
140140
*/
@@ -186,7 +186,7 @@ public ResourceConnectionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull
186186
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
187187
}
188188
/**
189-
* Read the properties and relationships of an operationalInsightsConnection object.
189+
* Read the properties and relationships of a resourceConnection object.
190190
*/
191191
@jakarta.annotation.Generated("com.microsoft.kiota")
192192
public class GetQueryParameters implements QueryParameters {

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 and relationships of an updatableAssetGroup 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-updatableassetgroup-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 and relationships of an updatableAssetGroup 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-updatableassetgroup-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 and relationships of an updatableAssetGroup 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 and relationships of an updatableAssetGroup 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 and relationships of an updatableAssetGroup object.
226226
*/
227227
@jakarta.annotation.Generated("com.microsoft.kiota")
228228
public class GetQueryParameters implements QueryParameters {
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
package com.microsoft.graph.beta.administrativeunits.item.restore;
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 RestorePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
15+
/**
16+
* Stores model information.
17+
*/
18+
@jakarta.annotation.Nonnull
19+
protected BackingStore backingStore;
20+
/**
21+
* Instantiates a new {@link RestorePostRequestBody} and sets the default values.
22+
*/
23+
public RestorePostRequestBody() {
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 RestorePostRequestBody}
31+
*/
32+
@jakarta.annotation.Nonnull
33+
public static RestorePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
34+
Objects.requireNonNull(parseNode);
35+
return new RestorePostRequestBody();
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("newUserPrincipalName", (n) -> { this.setNewUserPrincipalName(n.getStringValue()); });
66+
return deserializerMap;
67+
}
68+
/**
69+
* Gets the newUserPrincipalName property value. The newUserPrincipalName property
70+
* @return a {@link String}
71+
*/
72+
@jakarta.annotation.Nullable
73+
public String getNewUserPrincipalName() {
74+
return this.backingStore.get("newUserPrincipalName");
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.writeStringValue("newUserPrincipalName", this.getNewUserPrincipalName());
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 newUserPrincipalName property value. The newUserPrincipalName property
102+
* @param value Value to set for the newUserPrincipalName property.
103+
*/
104+
public void setNewUserPrincipalName(@jakarta.annotation.Nullable final String value) {
105+
this.backingStore.set("newUserPrincipalName", value);
106+
}
107+
}

0 commit comments

Comments
 (0)