33// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
44// ------------------------------------------------------------------------------
55
6- package com .microsoft .graph .windowsupdates . models ;
6+ package com .microsoft .graph .models ;
77import com .microsoft .graph .serializer .ISerializer ;
88import com .microsoft .graph .serializer .IJsonBackedObject ;
99import com .microsoft .graph .serializer .AdditionalDataManager ;
1010import java .util .EnumSet ;
1111import com .microsoft .graph .http .BaseCollectionPage ;
1212import com .microsoft .graph .windowsupdates .models .Catalog ;
1313import com .microsoft .graph .models .Entity ;
14+ import com .microsoft .graph .windowsupdates .requests .DeploymentAudienceCollectionPage ;
1415import com .microsoft .graph .windowsupdates .requests .DeploymentCollectionPage ;
1516import com .microsoft .graph .windowsupdates .requests .ResourceConnectionCollectionPage ;
1617import com .microsoft .graph .windowsupdates .requests .UpdatableAssetCollectionPage ;
18+ import com .microsoft .graph .windowsupdates .requests .UpdatePolicyCollectionPage ;
1719
1820
1921import com .google .gson .JsonObject ;
2527// **NOTE** This file was generated by a tool and any changes will be overwritten.
2628
2729/**
28- * The class for the Updates.
30+ * The class for the Admin Windows Updates.
2931 */
30- public class Updates extends Entity implements IJsonBackedObject {
32+ public class AdminWindowsUpdates extends Entity implements IJsonBackedObject {
3133
3234
3335 /**
@@ -39,9 +41,18 @@ public class Updates extends Entity implements IJsonBackedObject {
3941 @ Nullable
4042 public Catalog catalog ;
4143
44+ /**
45+ * The Deployment Audiences.
46+ * The set of updatableAsset resources to which a deployment can apply.
47+ */
48+ @ SerializedName (value = "deploymentAudiences" , alternate = {"DeploymentAudiences" })
49+ @ Expose
50+ @ Nullable
51+ public com .microsoft .graph .windowsupdates .requests .DeploymentAudienceCollectionPage deploymentAudiences ;
52+
4253 /**
4354 * The Deployments.
44- * Deployments created using the deployment service. Read-only.
55+ * Deployments created using the deployment service.
4556 */
4657 @ SerializedName (value = "deployments" , alternate = {"Deployments" })
4758 @ Expose
@@ -59,13 +70,22 @@ public class Updates extends Entity implements IJsonBackedObject {
5970
6071 /**
6172 * The Updatable Assets.
62- * Assets registered with the deployment service that can receive updates. Read-only.
73+ * Assets registered with the deployment service that can receive updates.
6374 */
6475 @ SerializedName (value = "updatableAssets" , alternate = {"UpdatableAssets" })
6576 @ Expose
6677 @ Nullable
6778 public com .microsoft .graph .windowsupdates .requests .UpdatableAssetCollectionPage updatableAssets ;
6879
80+ /**
81+ * The Update Policies.
82+ * A collection of policies for approving the deployment of different content to an audience over time.
83+ */
84+ @ SerializedName (value = "updatePolicies" , alternate = {"UpdatePolicies" })
85+ @ Expose
86+ @ Nullable
87+ public com .microsoft .graph .windowsupdates .requests .UpdatePolicyCollectionPage updatePolicies ;
88+
6989
7090 /**
7191 * Sets the raw JSON object
@@ -76,6 +96,10 @@ public class Updates extends Entity implements IJsonBackedObject {
7696 public void setRawObject (@ Nonnull final ISerializer serializer , @ Nonnull final JsonObject json ) {
7797
7898
99+ if (json .has ("deploymentAudiences" )) {
100+ deploymentAudiences = serializer .deserializeObject (json .get ("deploymentAudiences" ), com .microsoft .graph .windowsupdates .requests .DeploymentAudienceCollectionPage .class );
101+ }
102+
79103 if (json .has ("deployments" )) {
80104 deployments = serializer .deserializeObject (json .get ("deployments" ), com .microsoft .graph .windowsupdates .requests .DeploymentCollectionPage .class );
81105 }
@@ -87,5 +111,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J
87111 if (json .has ("updatableAssets" )) {
88112 updatableAssets = serializer .deserializeObject (json .get ("updatableAssets" ), com .microsoft .graph .windowsupdates .requests .UpdatableAssetCollectionPage .class );
89113 }
114+
115+ if (json .has ("updatePolicies" )) {
116+ updatePolicies = serializer .deserializeObject (json .get ("updatePolicies" ), com .microsoft .graph .windowsupdates .requests .UpdatePolicyCollectionPage .class );
117+ }
90118 }
91119}
0 commit comments