Skip to content

Commit 6449419

Browse files
Merge pull request #1697 from microsoftgraph/v1.0/pipelinebuild/130446
Generated models and request builders
2 parents 3df0df8 + 903039f commit 6449419

Some content is hidden

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

42 files changed

+1605
-57
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [5.78.0] - 2023-12-14
15+
16+
### Added
17+
18+
- DeltaParticipants model and derived requests.
19+
- ListItemCreateLinkParameterSet model and derived requests.
20+
- PronounsSettings model and derived requests.
21+
- RemovedState model.
22+
- VirtualEndpoint model and derived requests.
23+
24+
### Changed
25+
26+
- AppliedConditionalAccessPolicyResult model.
27+
- DeviceManagement model and request builder.
28+
- DriveItemCreateLinkParameterSet model and builder.
29+
- Participant model.
30+
- PeopleAdminSettings model and request builder.
31+
- ListItem request builder.
32+
1433
## [5.77.0] - 2023-11-17
1534

1635
### Added

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919
2020
dependencies {
2121
// Include the sdk as a dependency
22-
implementation 'com.microsoft.graph:microsoft-graph:5.77.0'
22+
implementation 'com.microsoft.graph:microsoft-graph:5.78.0'
2323
// Uncomment the line below if you are building an android application
2424
//implementation 'com.google.guava:guava:30.1.1-android'
2525
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
@@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml
3636
<!-- Include the sdk as a dependency -->
3737
<groupId>com.microsoft.graph</groupId>
3838
<artifactId>microsoft-graph</artifactId>
39-
<version>5.77.0</version>
39+
<version>5.78.0</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCredentialAuthProvider -->
@@ -208,5 +208,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
208208

209209

210210

211+
211212

212213

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ org.gradle.caching=true
2626
mavenGroupId = com.microsoft.graph
2727
mavenArtifactId = microsoft-graph
2828
mavenMajorVersion = 5
29-
mavenMinorVersion = 77
29+
mavenMinorVersion = 78
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -131,5 +131,6 @@ mavenCentralPublishingEnabled=false
131131

132132

133133

134+
134135

135136

src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public final AdditionalDataManager additionalDataManager() {
4444

4545
/**
4646
* The Category.
47-
* The category of the workflow. The possible values are: joiner, leaver, unknownFutureValue.
47+
* The category of the workflow. The possible values are: joiner, leaver, mover, unknownFutureValue.
4848
*/
4949
@SerializedName(value = "category", alternate = {"Category"})
5050
@Expose

src/main/java/com/microsoft/graph/info/Constants.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private Constants() {
1818
/** The client secret to use for unit testing */
1919
public static final String CLIENTSECRET = "clientsecret";
2020
/** The SDK version */
21-
public static final String VERSION_NAME = "5.77.0";
21+
public static final String VERSION_NAME = "5.78.0";
2222
}
2323

2424

@@ -108,5 +108,6 @@ private Constants() {
108108

109109

110110

111+
111112

112113

src/main/java/com/microsoft/graph/models/AppliedConditionalAccessPolicyResult.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ public enum AppliedConditionalAccessPolicyResult
3636
*/
3737
UNKNOWN_FUTURE_VALUE,
3838
/**
39+
* report Only Success
40+
*/
41+
REPORT_ONLY_SUCCESS,
42+
/**
43+
* report Only Failure
44+
*/
45+
REPORT_ONLY_FAILURE,
46+
/**
47+
* report Only Not Applied
48+
*/
49+
REPORT_ONLY_NOT_APPLIED,
50+
/**
51+
* report Only Interrupted
52+
*/
53+
REPORT_ONLY_INTERRUPTED,
54+
/**
3955
* For AppliedConditionalAccessPolicyResult values that were not expected from the service
4056
*/
4157
UNEXPECTED_VALUE

src/main/java/com/microsoft/graph/models/ConnectedOrganization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class ConnectedOrganization extends Entity implements IJsonBackedObject {
5757

5858
/**
5959
* The Identity Sources.
60-
* The identity sources in this connected organization, one of azureActiveDirectoryTenant, domainIdentitySource, externalDomainFederation or crossCloudAzureActiveDirectoryTenant. Nullable.
60+
* The identity sources in this connected organization, one of azureActiveDirectoryTenant, crossCloudAzureActiveDirectoryTenant, domainIdentitySource, externalDomainFederation, or socialIdentitySource. Nullable.
6161
*/
6262
@SerializedName(value = "identitySources", alternate = {"IdentitySources"})
6363
@Expose
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Template Source: BaseEntity.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.models;
7+
import com.microsoft.graph.serializer.ISerializer;
8+
import com.microsoft.graph.serializer.IJsonBackedObject;
9+
import com.microsoft.graph.serializer.AdditionalDataManager;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.http.BaseCollectionPage;
12+
import com.microsoft.graph.models.Entity;
13+
import com.microsoft.graph.requests.ParticipantCollectionPage;
14+
15+
16+
import com.google.gson.JsonObject;
17+
import com.google.gson.annotations.SerializedName;
18+
import com.google.gson.annotations.Expose;
19+
import javax.annotation.Nullable;
20+
import javax.annotation.Nonnull;
21+
22+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
23+
24+
/**
25+
* The class for the Delta Participants.
26+
*/
27+
public class DeltaParticipants extends Entity implements IJsonBackedObject {
28+
29+
30+
/**
31+
* The Sequence Number.
32+
*
33+
*/
34+
@SerializedName(value = "sequenceNumber", alternate = {"SequenceNumber"})
35+
@Expose
36+
@Nullable
37+
public Long sequenceNumber;
38+
39+
/**
40+
* The Participants.
41+
*
42+
*/
43+
@SerializedName(value = "participants", alternate = {"Participants"})
44+
@Expose
45+
@Nullable
46+
public com.microsoft.graph.requests.ParticipantCollectionPage participants;
47+
48+
49+
/**
50+
* Sets the raw JSON object
51+
*
52+
* @param serializer the serializer
53+
* @param json the JSON object to set this object to
54+
*/
55+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
56+
57+
58+
if (json.has("participants")) {
59+
participants = serializer.deserializeObject(json.get("participants"), com.microsoft.graph.requests.ParticipantCollectionPage.class);
60+
}
61+
}
62+
}

src/main/java/com/microsoft/graph/models/DeviceManagement.java

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.microsoft.graph.models.DeviceManagementSubscriptionState;
1616
import com.microsoft.graph.models.UserExperienceAnalyticsSettings;
1717
import com.microsoft.graph.models.WindowsMalwareOverview;
18+
import com.microsoft.graph.models.VirtualEndpoint;
1819
import com.microsoft.graph.models.DeviceCompliancePolicyDeviceStateSummary;
1920
import com.microsoft.graph.models.DeviceConfigurationDeviceStateSummary;
2021
import com.microsoft.graph.models.SoftwareUpdateStatusSummary;
@@ -26,8 +27,8 @@
2627
import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric;
2728
import com.microsoft.graph.models.DeviceManagementReports;
2829
import com.microsoft.graph.models.Entity;
29-
import com.microsoft.graph.requests.TermsAndConditionsCollectionPage;
3030
import com.microsoft.graph.requests.AuditEventCollectionPage;
31+
import com.microsoft.graph.requests.TermsAndConditionsCollectionPage;
3132
import com.microsoft.graph.requests.DeviceCompliancePolicyCollectionPage;
3233
import com.microsoft.graph.requests.DeviceCompliancePolicySettingStateSummaryCollectionPage;
3334
import com.microsoft.graph.requests.DeviceConfigurationCollectionPage;
@@ -152,22 +153,31 @@ public class DeviceManagement extends Entity implements IJsonBackedObject {
152153
public WindowsMalwareOverview windowsMalwareOverview;
153154

154155
/**
155-
* The Terms And Conditions.
156-
* The terms and conditions associated with device management of the company.
156+
* The Audit Events.
157+
* The Audit Events
157158
*/
158-
@SerializedName(value = "termsAndConditions", alternate = {"TermsAndConditions"})
159+
@SerializedName(value = "auditEvents", alternate = {"AuditEvents"})
159160
@Expose
160161
@Nullable
161-
public com.microsoft.graph.requests.TermsAndConditionsCollectionPage termsAndConditions;
162+
public com.microsoft.graph.requests.AuditEventCollectionPage auditEvents;
162163

163164
/**
164-
* The Audit Events.
165-
* The Audit Events
165+
* The Virtual Endpoint.
166+
*
166167
*/
167-
@SerializedName(value = "auditEvents", alternate = {"AuditEvents"})
168+
@SerializedName(value = "virtualEndpoint", alternate = {"VirtualEndpoint"})
168169
@Expose
169170
@Nullable
170-
public com.microsoft.graph.requests.AuditEventCollectionPage auditEvents;
171+
public VirtualEndpoint virtualEndpoint;
172+
173+
/**
174+
* The Terms And Conditions.
175+
* The terms and conditions associated with device management of the company.
176+
*/
177+
@SerializedName(value = "termsAndConditions", alternate = {"TermsAndConditions"})
178+
@Expose
179+
@Nullable
180+
public com.microsoft.graph.requests.TermsAndConditionsCollectionPage termsAndConditions;
171181

172182
/**
173183
* The Device Compliance Policies.
@@ -674,14 +684,14 @@ public class DeviceManagement extends Entity implements IJsonBackedObject {
674684
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
675685

676686

677-
if (json.has("termsAndConditions")) {
678-
termsAndConditions = serializer.deserializeObject(json.get("termsAndConditions"), com.microsoft.graph.requests.TermsAndConditionsCollectionPage.class);
679-
}
680-
681687
if (json.has("auditEvents")) {
682688
auditEvents = serializer.deserializeObject(json.get("auditEvents"), com.microsoft.graph.requests.AuditEventCollectionPage.class);
683689
}
684690

691+
if (json.has("termsAndConditions")) {
692+
termsAndConditions = serializer.deserializeObject(json.get("termsAndConditions"), com.microsoft.graph.requests.TermsAndConditionsCollectionPage.class);
693+
}
694+
685695
if (json.has("deviceCompliancePolicies")) {
686696
deviceCompliancePolicies = serializer.deserializeObject(json.get("deviceCompliancePolicies"), com.microsoft.graph.requests.DeviceCompliancePolicyCollectionPage.class);
687697
}

src/main/java/com/microsoft/graph/models/DriveItemCreateLinkParameterSet.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package com.microsoft.graph.models;
77

8+
import com.microsoft.graph.models.DriveRecipient;
89
import com.microsoft.graph.models.Permission;
910
import com.google.gson.annotations.Expose;
1011
import com.google.gson.annotations.SerializedName;
@@ -65,6 +66,15 @@ public class DriveItemCreateLinkParameterSet {
6566
@Nullable
6667
public String message;
6768

69+
/**
70+
* The recipients.
71+
*
72+
*/
73+
@SerializedName(value = "recipients", alternate = {"Recipients"})
74+
@Expose
75+
@Nullable
76+
public java.util.List<DriveRecipient> recipients;
77+
6878
/**
6979
* The retain Inherited Permissions.
7080
*
@@ -74,6 +84,15 @@ public class DriveItemCreateLinkParameterSet {
7484
@Nullable
7585
public Boolean retainInheritedPermissions;
7686

87+
/**
88+
* The send Notification.
89+
*
90+
*/
91+
@SerializedName(value = "sendNotification", alternate = {"SendNotification"})
92+
@Expose
93+
@Nullable
94+
public Boolean sendNotification;
95+
7796

7897
/**
7998
* Instiaciates a new DriveItemCreateLinkParameterSet
@@ -89,7 +108,9 @@ protected DriveItemCreateLinkParameterSet(@Nonnull final DriveItemCreateLinkPara
89108
this.expirationDateTime = builder.expirationDateTime;
90109
this.password = builder.password;
91110
this.message = builder.message;
111+
this.recipients = builder.recipients;
92112
this.retainInheritedPermissions = builder.retainInheritedPermissions;
113+
this.sendNotification = builder.sendNotification;
93114
}
94115
/**
95116
* Gets a new builder for the body
@@ -178,6 +199,21 @@ public DriveItemCreateLinkParameterSetBuilder withMessage(@Nullable final String
178199
this.message = val;
179200
return this;
180201
}
202+
/**
203+
* The recipients parameter value
204+
*/
205+
@Nullable
206+
protected java.util.List<DriveRecipient> recipients;
207+
/**
208+
* Sets the Recipients
209+
* @param val the value to set it to
210+
* @return the current builder object
211+
*/
212+
@Nonnull
213+
public DriveItemCreateLinkParameterSetBuilder withRecipients(@Nullable final java.util.List<DriveRecipient> val) {
214+
this.recipients = val;
215+
return this;
216+
}
181217
/**
182218
* The retainInheritedPermissions parameter value
183219
*/
@@ -193,6 +229,21 @@ public DriveItemCreateLinkParameterSetBuilder withRetainInheritedPermissions(@Nu
193229
this.retainInheritedPermissions = val;
194230
return this;
195231
}
232+
/**
233+
* The sendNotification parameter value
234+
*/
235+
@Nullable
236+
protected Boolean sendNotification;
237+
/**
238+
* Sets the SendNotification
239+
* @param val the value to set it to
240+
* @return the current builder object
241+
*/
242+
@Nonnull
243+
public DriveItemCreateLinkParameterSetBuilder withSendNotification(@Nullable final Boolean val) {
244+
this.sendNotification = val;
245+
return this;
246+
}
196247
/**
197248
* Instanciates a new DriveItemCreateLinkParameterSetBuilder
198249
*/
@@ -229,9 +280,15 @@ public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOpt
229280
if(this.message != null) {
230281
result.add(new com.microsoft.graph.options.FunctionOption("message", message));
231282
}
283+
if(this.recipients != null) {
284+
result.add(new com.microsoft.graph.options.FunctionOption("recipients", recipients));
285+
}
232286
if(this.retainInheritedPermissions != null) {
233287
result.add(new com.microsoft.graph.options.FunctionOption("retainInheritedPermissions", retainInheritedPermissions));
234288
}
289+
if(this.sendNotification != null) {
290+
result.add(new com.microsoft.graph.options.FunctionOption("sendNotification", sendNotification));
291+
}
235292
return result;
236293
}
237294
}

0 commit comments

Comments
 (0)