Skip to content

Commit 905749a

Browse files
Merge pull request #240 from microsoftgraph/beta/pipelinebuild/64725
Generated beta models and request builders using Typewriter
2 parents 038e6d2 + 6014c0f commit 905749a

File tree

75 files changed

+3097
-75
lines changed

Some content is hidden

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

75 files changed

+3097
-75
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14+
## [0.39.0] - 2022-01-27
15+
16+
### Added
17+
18+
- Models and Requests related, but not limited, to AccessReviewHistoryInstance, CrossTenantAccessPolicy, X509Certificate, & AccessReviewHistory.
19+
20+
### Changed
21+
22+
- Updated beta models and request builders generated using Typewriter, based on latest Beta-Metadata.
23+
1424
## [0.38.0] - 2022-01-20
1525

1626
### Added
1727

18-
- Models and Requests related, but not limited to, CloudPc, ManagedDevice, SkypeUser/SkypeBusinessConversationMember, and DomainFederation/Federated behavior.
28+
- Models and Requests related, but not limited, to CloudPc, ManagedDevice, SkypeUser/SkypeBusinessConversationMember, and DomainFederation/Federated behavior.
1929

2030
### Changed
2131

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repositories {
2020
2121
dependencies {
2222
// Include the sdk as a dependency
23-
implementation 'com.microsoft.graph:microsoft-graph-beta:0.38.0-SNAPSHOT'
23+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.39.0-SNAPSHOT'
2424
// Uncomment the line below if you are building an android application
2525
//implementation 'com.google.guava:guava:30.1.1-android'
2626
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
@@ -37,7 +37,7 @@ Add the dependency in `dependencies` in pom.xml
3737
<!-- Include the sdk as a dependency -->
3838
<groupId>com.microsoft.graph</groupId>
3939
<artifactId>microsoft-graph-beta</artifactId>
40-
<version>0.38.0-SNAPSHOT</version>
40+
<version>0.39.0-SNAPSHOT</version>
4141
</dependency>
4242
<dependency>
4343
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -176,5 +176,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
176176

177177

178178

179+
179180

180181

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 = 38
29+
mavenMinorVersion = 39
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -75,5 +75,6 @@ mavenCentralPublishingEnabled=false
7575

7676

7777

78+
7879

7980

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 = "0.38.0";
21+
public static final String VERSION_NAME = "0.39.0";
2222
}
2323

2424

@@ -50,5 +50,6 @@ private Constants() {
5050

5151

5252

53+
5354

5455

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

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
import com.microsoft.graph.http.BaseCollectionPage;
1212
import com.microsoft.graph.models.UserIdentity;
1313
import com.microsoft.graph.models.AccessReviewHistoryDecisionFilter;
14+
import com.microsoft.graph.models.AccessReviewHistoryScheduleSettings;
1415
import com.microsoft.graph.models.AccessReviewScope;
1516
import com.microsoft.graph.models.AccessReviewHistoryStatus;
17+
import com.microsoft.graph.models.AccessReviewHistoryInstance;
1618
import com.microsoft.graph.models.Entity;
19+
import com.microsoft.graph.requests.AccessReviewHistoryInstanceCollectionPage;
1720

1821

1922
import com.google.gson.JsonObject;
@@ -68,17 +71,21 @@ public class AccessReviewHistoryDefinition extends Entity implements IJsonBacked
6871

6972
/**
7073
* The Download Uri.
71-
* Uri which can be used to retrieve review history data. This URI will be active for 24 hours after being generated.
72-
*/
74+
* Uri which can be used to retrieve review history data. This URI will be active for 24 hours after being generated.
75+
* @deprecated This property is being deprecated. Use the downloadUri value in the individual report instance instead
76+
*/
77+
@Deprecated
7378
@SerializedName(value = "downloadUri", alternate = {"DownloadUri"})
7479
@Expose
7580
@Nullable
7681
public String downloadUri;
7782

7883
/**
7984
* The Fulfilled Date Time.
80-
* Timestamp when all of the available data for this definition was collected. This will be set after this definition's status is set to done.
81-
*/
85+
* Timestamp when all of the available data for this definition was collected. This will be set after this definition's status is set to done.
86+
* @deprecated This property is being deprecated. Use the fulfilledDateTime value in the individual report instance instead
87+
*/
88+
@Deprecated
8289
@SerializedName(value = "fulfilledDateTime", alternate = {"FulfilledDateTime"})
8390
@Expose
8491
@Nullable
@@ -102,6 +109,15 @@ public class AccessReviewHistoryDefinition extends Entity implements IJsonBacked
102109
@Nullable
103110
public java.time.OffsetDateTime reviewHistoryPeriodStartDateTime;
104111

112+
/**
113+
* The Schedule Settings.
114+
*
115+
*/
116+
@SerializedName(value = "scheduleSettings", alternate = {"ScheduleSettings"})
117+
@Expose
118+
@Nullable
119+
public AccessReviewHistoryScheduleSettings scheduleSettings;
120+
105121
/**
106122
* The Scopes.
107123
* Used to scope what reviews are included in the fetched history data. Fetches reviews whose scope matches with this provided scope. Required.
@@ -120,6 +136,15 @@ public class AccessReviewHistoryDefinition extends Entity implements IJsonBacked
120136
@Nullable
121137
public AccessReviewHistoryStatus status;
122138

139+
/**
140+
* The Instances.
141+
*
142+
*/
143+
@SerializedName(value = "instances", alternate = {"Instances"})
144+
@Expose
145+
@Nullable
146+
public AccessReviewHistoryInstanceCollectionPage instances;
147+
123148

124149
/**
125150
* Sets the raw JSON object
@@ -129,5 +154,9 @@ public class AccessReviewHistoryDefinition extends Entity implements IJsonBacked
129154
*/
130155
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
131156

157+
158+
if (json.has("instances")) {
159+
instances = serializer.deserializeObject(json.get("instances"), AccessReviewHistoryInstanceCollectionPage.class);
160+
}
132161
}
133162
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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.models.AccessReviewHistoryStatus;
12+
import com.microsoft.graph.models.Entity;
13+
14+
15+
import com.google.gson.JsonObject;
16+
import com.google.gson.annotations.SerializedName;
17+
import com.google.gson.annotations.Expose;
18+
import javax.annotation.Nullable;
19+
import javax.annotation.Nonnull;
20+
21+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
22+
23+
/**
24+
* The class for the Access Review History Instance.
25+
*/
26+
public class AccessReviewHistoryInstance extends Entity implements IJsonBackedObject {
27+
28+
29+
/**
30+
* The Download Uri.
31+
*
32+
*/
33+
@SerializedName(value = "downloadUri", alternate = {"DownloadUri"})
34+
@Expose
35+
@Nullable
36+
public String downloadUri;
37+
38+
/**
39+
* The Expiration Date Time.
40+
*
41+
*/
42+
@SerializedName(value = "expirationDateTime", alternate = {"ExpirationDateTime"})
43+
@Expose
44+
@Nullable
45+
public java.time.OffsetDateTime expirationDateTime;
46+
47+
/**
48+
* The Fulfilled Date Time.
49+
*
50+
*/
51+
@SerializedName(value = "fulfilledDateTime", alternate = {"FulfilledDateTime"})
52+
@Expose
53+
@Nullable
54+
public java.time.OffsetDateTime fulfilledDateTime;
55+
56+
/**
57+
* The Review History Period End Date Time.
58+
*
59+
*/
60+
@SerializedName(value = "reviewHistoryPeriodEndDateTime", alternate = {"ReviewHistoryPeriodEndDateTime"})
61+
@Expose
62+
@Nullable
63+
public java.time.OffsetDateTime reviewHistoryPeriodEndDateTime;
64+
65+
/**
66+
* The Review History Period Start Date Time.
67+
*
68+
*/
69+
@SerializedName(value = "reviewHistoryPeriodStartDateTime", alternate = {"ReviewHistoryPeriodStartDateTime"})
70+
@Expose
71+
@Nullable
72+
public java.time.OffsetDateTime reviewHistoryPeriodStartDateTime;
73+
74+
/**
75+
* The Run Date Time.
76+
*
77+
*/
78+
@SerializedName(value = "runDateTime", alternate = {"RunDateTime"})
79+
@Expose
80+
@Nullable
81+
public java.time.OffsetDateTime runDateTime;
82+
83+
/**
84+
* The Status.
85+
*
86+
*/
87+
@SerializedName(value = "status", alternate = {"Status"})
88+
@Expose
89+
@Nullable
90+
public AccessReviewHistoryStatus status;
91+
92+
93+
/**
94+
* Sets the raw JSON object
95+
*
96+
* @param serializer the serializer
97+
* @param json the JSON object to set this object to
98+
*/
99+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
100+
101+
}
102+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.models.PatternedRecurrence;
12+
13+
14+
import com.google.gson.JsonObject;
15+
import com.google.gson.annotations.SerializedName;
16+
import com.google.gson.annotations.Expose;
17+
import javax.annotation.Nullable;
18+
import javax.annotation.Nonnull;
19+
20+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
21+
22+
/**
23+
* The class for the Access Review History Schedule Settings.
24+
*/
25+
public class AccessReviewHistoryScheduleSettings implements IJsonBackedObject {
26+
27+
/** the OData type of the object as returned by the service */
28+
@SerializedName("@odata.type")
29+
@Expose
30+
@Nullable
31+
public String oDataType;
32+
33+
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
34+
35+
@Override
36+
@Nonnull
37+
public final AdditionalDataManager additionalDataManager() {
38+
return additionalDataManager;
39+
}
40+
41+
/**
42+
* The Recurrence.
43+
*
44+
*/
45+
@SerializedName(value = "recurrence", alternate = {"Recurrence"})
46+
@Expose
47+
@Nullable
48+
public PatternedRecurrence recurrence;
49+
50+
/**
51+
* The Report Range.
52+
*
53+
*/
54+
@SerializedName(value = "reportRange", alternate = {"ReportRange"})
55+
@Expose
56+
@Nullable
57+
public String reportRange;
58+
59+
60+
/**
61+
* Sets the raw JSON object
62+
*
63+
* @param serializer the serializer
64+
* @param json the JSON object to set this object to
65+
*/
66+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
67+
68+
}
69+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public class AccessReviewInstanceDecisionItem extends Entity implements IJsonBac
161161

162162
/**
163163
* The Insights.
164-
*
164+
* Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem.
165165
*/
166166
@SerializedName(value = "insights", alternate = {"Insights"})
167167
@Expose

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResour
2727

2828
/**
2929
* The Access Package Display Name.
30-
*
30+
* Display name of the access package to which access has been granted.
3131
*/
3232
@SerializedName(value = "accessPackageDisplayName", alternate = {"AccessPackageDisplayName"})
3333
@Expose
@@ -36,7 +36,7 @@ public class AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResour
3636

3737
/**
3838
* The Access Package Id.
39-
*
39+
* Identifier of the access package to which access has been granted.
4040
*/
4141
@SerializedName(value = "accessPackageId", alternate = {"AccessPackageId"})
4242
@Expose

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class AccessReviewInstanceDecisionItemAzureRoleResource extends AccessRev
2727

2828
/**
2929
* The Scope.
30-
*
30+
* Details of the scope this role is associated with.
3131
*/
3232
@SerializedName(value = "scope", alternate = {"Scope"})
3333
@Expose

0 commit comments

Comments
 (0)