Skip to content

Commit 07b591b

Browse files
authored
Merge pull request #70 from microsoftgraph/beta/pipelinebuild/40752
Generated beta models and request builders using Typewriter
2 parents df95689 + de47ecd commit 07b591b

File tree

470 files changed

+126032
-90934
lines changed

Some content is hidden

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

470 files changed

+126032
-90934
lines changed

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-beta:0.4.0-SNAPSHOT'
22+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.5.0-SNAPSHOT'
2323
}
2424
```
2525

@@ -31,7 +31,7 @@ Add the dependency in `dependencies` in pom.xml
3131
<dependency>
3232
<groupId>com.microsoft.graph</groupId>
3333
<artifactId>microsoft-graph-beta</artifactId>
34-
<version>0.4.0-SNAPSHOT</version>
34+
<version>0.5.0-SNAPSHOT</version>
3535
</dependency>
3636
```
3737

@@ -131,3 +131,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
131131
[Third-party notices](THIRD%20PARTY%20NOTICES)
132132

133133

134+

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-beta
2828
mavenMajorVersion = 0
29-
mavenMinorVersion = 4
29+
mavenMinorVersion = 5
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -44,3 +44,4 @@ mavenCentralPublishingEnabled=false
4444

4545

4646

47+

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ private Constants() {
3030
public static final String PASSWORD = "password";
3131
public static final String TENANTID = "tenantid";
3232
public static final String CLIENTSECRET = "clientsecret";
33-
public static final String VERSION_NAME = "0.4.0";
33+
public static final String VERSION_NAME = "0.5.0";
3434
}
3535

3636

3737

38+

src/main/java/com/microsoft/graph/models/extensions/ActivityHistoryItem.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,71 +27,71 @@ public class ActivityHistoryItem extends Entity implements IJsonBackedObject {
2727

2828
/**
2929
* The Active Duration Seconds.
30-
*
30+
* Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.
3131
*/
3232
@SerializedName(value = "activeDurationSeconds", alternate = {"ActiveDurationSeconds"})
3333
@Expose
3434
public Integer activeDurationSeconds;
3535

3636
/**
3737
* The Created Date Time.
38-
*
38+
* Set by the server. DateTime in UTC when the object was created on the server.
3939
*/
4040
@SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
4141
@Expose
4242
public java.util.Calendar createdDateTime;
4343

4444
/**
4545
* The Expiration Date Time.
46-
*
46+
* Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.
4747
*/
4848
@SerializedName(value = "expirationDateTime", alternate = {"ExpirationDateTime"})
4949
@Expose
5050
public java.util.Calendar expirationDateTime;
5151

5252
/**
5353
* The Last Active Date Time.
54-
*
54+
* Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.
5555
*/
5656
@SerializedName(value = "lastActiveDateTime", alternate = {"LastActiveDateTime"})
5757
@Expose
5858
public java.util.Calendar lastActiveDateTime;
5959

6060
/**
6161
* The Last Modified Date Time.
62-
*
62+
* Set by the server. DateTime in UTC when the object was modified on the server.
6363
*/
6464
@SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"})
6565
@Expose
6666
public java.util.Calendar lastModifiedDateTime;
6767

6868
/**
6969
* The Started Date Time.
70-
*
70+
* Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.
7171
*/
7272
@SerializedName(value = "startedDateTime", alternate = {"StartedDateTime"})
7373
@Expose
7474
public java.util.Calendar startedDateTime;
7575

7676
/**
7777
* The Status.
78-
*
78+
* Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.
7979
*/
8080
@SerializedName(value = "status", alternate = {"Status"})
8181
@Expose
8282
public Status status;
8383

8484
/**
8585
* The User Timezone.
86-
*
86+
* Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation.
8787
*/
8888
@SerializedName(value = "userTimezone", alternate = {"UserTimezone"})
8989
@Expose
9090
public String userTimezone;
9191

9292
/**
9393
* The Activity.
94-
*
94+
* Optional. NavigationProperty/Containment; navigation property to the associated activity.
9595
*/
9696
@SerializedName(value = "activity", alternate = {"Activity"})
9797
@Expose

src/main/java/com/microsoft/graph/models/extensions/AppliedConditionalAccessPolicy.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,39 +52,39 @@ public final AdditionalDataManager additionalDataManager() {
5252

5353
/**
5454
* The Display Name.
55-
*
55+
* Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce').
5656
*/
5757
@SerializedName(value = "displayName", alternate = {"DisplayName"})
5858
@Expose
5959
public String displayName;
6060

6161
/**
6262
* The Enforced Grant Controls.
63-
*
63+
* Refers to the grant controls enforced by the conditional access policy (example: 'Require multi-factor authentication').
6464
*/
6565
@SerializedName(value = "enforcedGrantControls", alternate = {"EnforcedGrantControls"})
6666
@Expose
6767
public java.util.List<String> enforcedGrantControls;
6868

6969
/**
7070
* The Enforced Session Controls.
71-
*
71+
* Refers to the session controls enforced by the conditional access policy (example: 'Require app enforced controls').
7272
*/
7373
@SerializedName(value = "enforcedSessionControls", alternate = {"EnforcedSessionControls"})
7474
@Expose
7575
public java.util.List<String> enforcedSessionControls;
7676

7777
/**
7878
* The Id.
79-
*
79+
* Unique GUID of the conditional access policy.
8080
*/
8181
@SerializedName(value = "id", alternate = {"Id"})
8282
@Expose
8383
public String id;
8484

8585
/**
8686
* The Result.
87-
*
87+
* Indicates the result of the CA policy that was triggered. Possible values are:successfailurenotApplied - Policy isn't applied because policy conditions were not met.notEnabled - This is due to the policy in disabled state.
8888
*/
8989
@SerializedName(value = "result", alternate = {"Result"})
9090
@Expose

src/main/java/com/microsoft/graph/models/extensions/AuditLogRoot.java

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.microsoft.graph.models.extensions.ProvisioningObjectSummary;
1313
import com.microsoft.graph.models.extensions.RestrictedSignIn;
1414
import com.microsoft.graph.models.extensions.SignIn;
15+
import com.microsoft.graph.models.extensions.Entity;
1516
import com.microsoft.graph.requests.extensions.DirectoryAuditCollectionPage;
1617
import com.microsoft.graph.requests.extensions.ProvisioningObjectSummaryCollectionPage;
1718
import com.microsoft.graph.requests.extensions.RestrictedSignInCollectionPage;
@@ -27,22 +28,12 @@
2728
/**
2829
* The class for the Audit Log Root.
2930
*/
30-
public class AuditLogRoot implements IJsonBackedObject {
31+
public class AuditLogRoot extends Entity implements IJsonBackedObject {
3132

32-
@SerializedName("@odata.type")
33-
@Expose
34-
public String oDataType;
35-
36-
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
37-
38-
@Override
39-
public final AdditionalDataManager additionalDataManager() {
40-
return additionalDataManager;
41-
}
4233

4334
/**
4435
* The Directory Audits.
45-
*
36+
* Read-only. Nullable.
4637
*/
4738
@SerializedName(value = "directoryAudits", alternate = {"DirectoryAudits"})
4839
@Expose
@@ -74,7 +65,7 @@ public final AdditionalDataManager additionalDataManager() {
7465

7566
/**
7667
* The Sign Ins.
77-
*
68+
* Read-only. Nullable.
7869
*/
7970
@SerializedName(value = "signIns", alternate = {"SignIns"})
8071
@Expose

src/main/java/com/microsoft/graph/models/extensions/Authentication.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,22 @@
1111
import com.microsoft.graph.models.extensions.EmailAuthenticationMethod;
1212
import com.microsoft.graph.models.extensions.Fido2AuthenticationMethod;
1313
import com.microsoft.graph.models.extensions.AuthenticationMethod;
14+
import com.microsoft.graph.models.extensions.MicrosoftAuthenticatorAuthenticationMethod;
1415
import com.microsoft.graph.models.extensions.LongRunningOperation;
1516
import com.microsoft.graph.models.extensions.PasswordlessMicrosoftAuthenticatorAuthenticationMethod;
1617
import com.microsoft.graph.models.extensions.PasswordAuthenticationMethod;
1718
import com.microsoft.graph.models.extensions.PhoneAuthenticationMethod;
19+
import com.microsoft.graph.models.extensions.WindowsHelloForBusinessAuthenticationMethod;
1820
import com.microsoft.graph.models.extensions.Entity;
1921
import com.microsoft.graph.requests.extensions.EmailAuthenticationMethodCollectionPage;
2022
import com.microsoft.graph.requests.extensions.Fido2AuthenticationMethodCollectionPage;
2123
import com.microsoft.graph.requests.extensions.AuthenticationMethodCollectionPage;
24+
import com.microsoft.graph.requests.extensions.MicrosoftAuthenticatorAuthenticationMethodCollectionPage;
2225
import com.microsoft.graph.requests.extensions.LongRunningOperationCollectionPage;
2326
import com.microsoft.graph.requests.extensions.PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionPage;
2427
import com.microsoft.graph.requests.extensions.PasswordAuthenticationMethodCollectionPage;
2528
import com.microsoft.graph.requests.extensions.PhoneAuthenticationMethodCollectionPage;
29+
import com.microsoft.graph.requests.extensions.WindowsHelloForBusinessAuthenticationMethodCollectionPage;
2630

2731

2832
import com.google.gson.JsonObject;
@@ -61,6 +65,14 @@ public class Authentication extends Entity implements IJsonBackedObject {
6165
@Expose
6266
public AuthenticationMethodCollectionPage methods;
6367

68+
/**
69+
* The Microsoft Authenticator Methods.
70+
*
71+
*/
72+
@SerializedName(value = "microsoftAuthenticatorMethods", alternate = {"MicrosoftAuthenticatorMethods"})
73+
@Expose
74+
public MicrosoftAuthenticatorAuthenticationMethodCollectionPage microsoftAuthenticatorMethods;
75+
6476
/**
6577
* The Operations.
6678
*
@@ -93,6 +105,14 @@ public class Authentication extends Entity implements IJsonBackedObject {
93105
@Expose
94106
public PhoneAuthenticationMethodCollectionPage phoneMethods;
95107

108+
/**
109+
* The Windows Hello For Business Methods.
110+
*
111+
*/
112+
@SerializedName(value = "windowsHelloForBusinessMethods", alternate = {"WindowsHelloForBusinessMethods"})
113+
@Expose
114+
public WindowsHelloForBusinessAuthenticationMethodCollectionPage windowsHelloForBusinessMethods;
115+
96116

97117
/**
98118
* The raw representation of this class
@@ -145,6 +165,10 @@ public void setRawObject(final ISerializer serializer, final JsonObject json) {
145165
methods = serializer.deserializeObject(json.get("methods").toString(), AuthenticationMethodCollectionPage.class);
146166
}
147167

168+
if (json.has("microsoftAuthenticatorMethods")) {
169+
microsoftAuthenticatorMethods = serializer.deserializeObject(json.get("microsoftAuthenticatorMethods").toString(), MicrosoftAuthenticatorAuthenticationMethodCollectionPage.class);
170+
}
171+
148172
if (json.has("operations")) {
149173
operations = serializer.deserializeObject(json.get("operations").toString(), LongRunningOperationCollectionPage.class);
150174
}
@@ -160,5 +184,9 @@ public void setRawObject(final ISerializer serializer, final JsonObject json) {
160184
if (json.has("phoneMethods")) {
161185
phoneMethods = serializer.deserializeObject(json.get("phoneMethods").toString(), PhoneAuthenticationMethodCollectionPage.class);
162186
}
187+
188+
if (json.has("windowsHelloForBusinessMethods")) {
189+
windowsHelloForBusinessMethods = serializer.deserializeObject(json.get("windowsHelloForBusinessMethods").toString(), WindowsHelloForBusinessAuthenticationMethodCollectionPage.class);
190+
}
163191
}
164192
}

src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public final AdditionalDataManager additionalDataManager() {
3434

3535
/**
3636
* The Average Score.
37-
*
37+
* Average score within specified basis.
3838
*/
3939
@SerializedName(value = "averageScore", alternate = {"AverageScore"})
4040
@Expose
4141
public Double averageScore;
4242

4343
/**
4444
* The Basis.
45-
*
45+
* Scope type. The possible values are: AllTenants, TotalSeats, IndustryTypes.
4646
*/
4747
@SerializedName(value = "basis", alternate = {"Basis"})
4848
@Expose

src/main/java/com/microsoft/graph/models/extensions/BaseItem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class BaseItem extends Entity implements IJsonBackedObject {
4444

4545
/**
4646
* The Description.
47-
*
47+
* Provides a user-visible description of the item. Optional.
4848
*/
4949
@SerializedName(value = "description", alternate = {"Description"})
5050
@Expose
@@ -100,15 +100,15 @@ public class BaseItem extends Entity implements IJsonBackedObject {
100100

101101
/**
102102
* The Created By User.
103-
*
103+
* Identity of the user who created the item. Read-only.
104104
*/
105105
@SerializedName(value = "createdByUser", alternate = {"CreatedByUser"})
106106
@Expose
107107
public User createdByUser;
108108

109109
/**
110110
* The Last Modified By User.
111-
*
111+
* Identity of the user who last modified the item. Read-only.
112112
*/
113113
@SerializedName(value = "lastModifiedByUser", alternate = {"LastModifiedByUser"})
114114
@Expose

src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public final AdditionalDataManager additionalDataManager() {
3434

3535
/**
3636
* The Name.
37-
*
37+
* Certification control name
3838
*/
3939
@SerializedName(value = "name", alternate = {"Name"})
4040
@Expose
4141
public String name;
4242

4343
/**
4444
* The Url.
45-
*
45+
* URL for the Microsoft Service Trust Portal
4646
*/
4747
@SerializedName(value = "url", alternate = {"Url"})
4848
@Expose

0 commit comments

Comments
 (0)