Skip to content

Commit 87dbec7

Browse files
authored
Merge pull request #92 from microsoftgraph/beta/pipelinebuild/47275
Generated beta models and request builders using Typewriter
2 parents 8573a7c + 3632ac3 commit 87dbec7

File tree

62 files changed

+2950
-1614
lines changed

Some content is hidden

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

62 files changed

+2950
-1614
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.10.0-SNAPSHOT'
22+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.11.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.10.0-SNAPSHOT</version>
34+
<version>0.11.0-SNAPSHOT</version>
3535
</dependency>
3636
```
3737

@@ -139,3 +139,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
139139

140140

141141

142+

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

@@ -49,3 +49,4 @@ mavenCentralPublishingEnabled=false
4949

5050

5151

52+

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ 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.10.0";
21+
public static final String VERSION_NAME = "0.11.0";
2222
}
2323

2424

2525

2626

27+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Template Source: Enum.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+
8+
9+
/**
10+
* The Enum Access Review History Decision Filter.
11+
*/
12+
public enum AccessReviewHistoryDecisionFilter
13+
{
14+
/**
15+
* approve
16+
*/
17+
APPROVE,
18+
/**
19+
* deny
20+
*/
21+
DENY,
22+
/**
23+
* not Reviewed
24+
*/
25+
NOT_REVIEWED,
26+
/**
27+
* dont Know
28+
*/
29+
DONT_KNOW,
30+
/**
31+
* not Notified
32+
*/
33+
NOT_NOTIFIED,
34+
/**
35+
* unknown Future Value
36+
*/
37+
UNKNOWN_FUTURE_VALUE,
38+
/**
39+
* For AccessReviewHistoryDecisionFilter values that were not expected from the service
40+
*/
41+
UNEXPECTED_VALUE
42+
}
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
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.UserIdentity;
13+
import com.microsoft.graph.models.AccessReviewHistoryDecisionFilter;
14+
import com.microsoft.graph.models.AccessReviewScope;
15+
import com.microsoft.graph.models.AccessReviewHistoryStatus;
16+
import com.microsoft.graph.models.Entity;
17+
18+
19+
import com.google.gson.JsonObject;
20+
import com.google.gson.annotations.SerializedName;
21+
import com.google.gson.annotations.Expose;
22+
import javax.annotation.Nullable;
23+
import javax.annotation.Nonnull;
24+
25+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
26+
27+
/**
28+
* The class for the Access Review History Definition.
29+
*/
30+
public class AccessReviewHistoryDefinition extends Entity implements IJsonBackedObject {
31+
32+
33+
/**
34+
* The Created By.
35+
*
36+
*/
37+
@SerializedName(value = "createdBy", alternate = {"CreatedBy"})
38+
@Expose
39+
@Nullable
40+
public UserIdentity createdBy;
41+
42+
/**
43+
* The Created Date Time.
44+
*
45+
*/
46+
@SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
47+
@Expose
48+
@Nullable
49+
public java.time.OffsetDateTime createdDateTime;
50+
51+
/**
52+
* The Decisions.
53+
*
54+
*/
55+
@SerializedName(value = "decisions", alternate = {"Decisions"})
56+
@Expose
57+
@Nullable
58+
public java.util.List<AccessReviewHistoryDecisionFilter> decisions;
59+
60+
/**
61+
* The Display Name.
62+
*
63+
*/
64+
@SerializedName(value = "displayName", alternate = {"DisplayName"})
65+
@Expose
66+
@Nullable
67+
public String displayName;
68+
69+
/**
70+
* The Download Uri.
71+
*
72+
*/
73+
@SerializedName(value = "downloadUri", alternate = {"DownloadUri"})
74+
@Expose
75+
@Nullable
76+
public String downloadUri;
77+
78+
/**
79+
* The Fulfilled Date Time.
80+
*
81+
*/
82+
@SerializedName(value = "fulfilledDateTime", alternate = {"FulfilledDateTime"})
83+
@Expose
84+
@Nullable
85+
public java.time.OffsetDateTime fulfilledDateTime;
86+
87+
/**
88+
* The Review History Period End Date Time.
89+
*
90+
*/
91+
@SerializedName(value = "reviewHistoryPeriodEndDateTime", alternate = {"ReviewHistoryPeriodEndDateTime"})
92+
@Expose
93+
@Nullable
94+
public java.time.OffsetDateTime reviewHistoryPeriodEndDateTime;
95+
96+
/**
97+
* The Review History Period Start Date Time.
98+
*
99+
*/
100+
@SerializedName(value = "reviewHistoryPeriodStartDateTime", alternate = {"ReviewHistoryPeriodStartDateTime"})
101+
@Expose
102+
@Nullable
103+
public java.time.OffsetDateTime reviewHistoryPeriodStartDateTime;
104+
105+
/**
106+
* The Scopes.
107+
*
108+
*/
109+
@SerializedName(value = "scopes", alternate = {"Scopes"})
110+
@Expose
111+
@Nullable
112+
public java.util.List<AccessReviewScope> scopes;
113+
114+
/**
115+
* The Status.
116+
*
117+
*/
118+
@SerializedName(value = "status", alternate = {"Status"})
119+
@Expose
120+
@Nullable
121+
public AccessReviewHistoryStatus status;
122+
123+
124+
/**
125+
* Sets the raw JSON object
126+
*
127+
* @param serializer the serializer
128+
* @param json the JSON object to set this object to
129+
*/
130+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
131+
132+
}
133+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Template Source: BaseMethodParameterSet.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+
8+
import com.microsoft.graph.models.AccessReviewHistoryDefinition;
9+
import com.google.gson.annotations.Expose;
10+
import com.google.gson.annotations.SerializedName;
11+
import javax.annotation.Nonnull;
12+
import javax.annotation.Nullable;
13+
import com.google.gson.JsonObject;
14+
import java.util.EnumSet;
15+
import java.util.ArrayList;
16+
17+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
18+
19+
/**
20+
* The class for the Access Review History Definition Generate Download Uri Parameter Set.
21+
*/
22+
public class AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet {
23+
24+
/**
25+
* Instiaciates a new AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet
26+
*/
27+
public AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet() {}
28+
/**
29+
* Instiaciates a new AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet
30+
* @param builder builder bearing the parameters to initialize from
31+
*/
32+
protected AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet(@Nonnull final AccessReviewHistoryDefinitionGenerateDownloadUriParameterSetBuilder builder) {
33+
}
34+
/**
35+
* Gets a new builder for the body
36+
* @return a new builder
37+
*/
38+
@Nonnull
39+
public static AccessReviewHistoryDefinitionGenerateDownloadUriParameterSetBuilder newBuilder() {
40+
return new AccessReviewHistoryDefinitionGenerateDownloadUriParameterSetBuilder();
41+
}
42+
/**
43+
* Fluent builder for the AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet
44+
*/
45+
public static final class AccessReviewHistoryDefinitionGenerateDownloadUriParameterSetBuilder {
46+
/**
47+
* Instanciates a new AccessReviewHistoryDefinitionGenerateDownloadUriParameterSetBuilder
48+
*/
49+
@Nullable
50+
protected AccessReviewHistoryDefinitionGenerateDownloadUriParameterSetBuilder(){}
51+
/**
52+
* Buils the resulting body object to be passed to the request
53+
* @return the body object to pass to the request
54+
*/
55+
@Nonnull
56+
public AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet build() {
57+
return new AccessReviewHistoryDefinitionGenerateDownloadUriParameterSet(this);
58+
}
59+
}
60+
/**
61+
* Gets the functions options from the properties that have been set
62+
* @return a list of function options for the request
63+
*/
64+
@Nonnull
65+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
66+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
67+
return result;
68+
}
69+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Template Source: Enum.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+
8+
9+
/**
10+
* The Enum Access Review History Status.
11+
*/
12+
public enum AccessReviewHistoryStatus
13+
{
14+
/**
15+
* done
16+
*/
17+
DONE,
18+
/**
19+
* inprogress
20+
*/
21+
INPROGRESS,
22+
/**
23+
* error
24+
*/
25+
ERROR,
26+
/**
27+
* requested
28+
*/
29+
REQUESTED,
30+
/**
31+
* unknown Future Value
32+
*/
33+
UNKNOWN_FUTURE_VALUE,
34+
/**
35+
* For AccessReviewHistoryStatus values that were not expected from the service
36+
*/
37+
UNEXPECTED_VALUE
38+
}

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import java.util.EnumSet;
1111
import com.microsoft.graph.http.BaseCollectionPage;
1212
import com.microsoft.graph.models.AccessReviewScheduleDefinition;
13+
import com.microsoft.graph.models.AccessReviewHistoryDefinition;
1314
import com.microsoft.graph.models.Entity;
1415
import com.microsoft.graph.requests.AccessReviewScheduleDefinitionCollectionPage;
16+
import com.microsoft.graph.requests.AccessReviewHistoryDefinitionCollectionPage;
1517

1618

1719
import com.google.gson.JsonObject;
@@ -37,6 +39,15 @@ public class AccessReviewSet extends Entity implements IJsonBackedObject {
3739
@Nullable
3840
public AccessReviewScheduleDefinitionCollectionPage definitions;
3941

42+
/**
43+
* The History Definitions.
44+
*
45+
*/
46+
@SerializedName(value = "historyDefinitions", alternate = {"HistoryDefinitions"})
47+
@Expose
48+
@Nullable
49+
public AccessReviewHistoryDefinitionCollectionPage historyDefinitions;
50+
4051

4152
/**
4253
* Sets the raw JSON object
@@ -50,5 +61,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J
5061
if (json.has("definitions")) {
5162
definitions = serializer.deserializeObject(json.get("definitions"), AccessReviewScheduleDefinitionCollectionPage.class);
5263
}
64+
65+
if (json.has("historyDefinitions")) {
66+
historyDefinitions = serializer.deserializeObject(json.get("historyDefinitions"), AccessReviewHistoryDefinitionCollectionPage.class);
67+
}
5368
}
5469
}

0 commit comments

Comments
 (0)