Skip to content

Commit e4c0ddf

Browse files
authored
Merge pull request #127 from microsoftgraph/beta/pipelinebuild/52280
Generated beta models and request builders using Typewriter
2 parents 187c2c7 + d7f856c commit e4c0ddf

File tree

110 files changed

+2407
-507
lines changed

Some content is hidden

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

110 files changed

+2407
-507
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.19.0-SNAPSHOT'
22+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.20.0-SNAPSHOT'
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-beta</artifactId>
39-
<version>0.19.0-SNAPSHOT</version>
39+
<version>0.20.0-SNAPSHOT</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -159,3 +159,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
159159

160160

161161

162+

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

@@ -58,3 +58,4 @@ mavenCentralPublishingEnabled=false
5858

5959

6060

61+

src/main/java/com/microsoft/graph/externalconnectors/models/AclType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public enum AclType
2828
*/
2929
EVERYONE_EXCEPT_GUESTS,
3030
/**
31+
* external Group
32+
*/
33+
EXTERNAL_GROUP,
34+
/**
3135
* unknown Future Value
3236
*/
3337
UNKNOWN_FUTURE_VALUE,

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

2424

@@ -33,3 +33,4 @@ private Constants() {
3333

3434

3535

36+
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
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.AccessPackageAnswer;
13+
import com.microsoft.graph.models.AccessPackageQuestion;
14+
import com.microsoft.graph.models.RequestSchedule;
15+
16+
17+
import com.google.gson.JsonObject;
18+
import com.google.gson.annotations.SerializedName;
19+
import com.google.gson.annotations.Expose;
20+
import javax.annotation.Nullable;
21+
import javax.annotation.Nonnull;
22+
23+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
24+
25+
/**
26+
* The class for the Access Package Assignment Request Requirements.
27+
*/
28+
public class AccessPackageAssignmentRequestRequirements implements IJsonBackedObject {
29+
30+
/** the OData type of the object as returned by the service */
31+
@SerializedName("@odata.type")
32+
@Expose
33+
@Nullable
34+
public String oDataType;
35+
36+
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
37+
38+
@Override
39+
@Nonnull
40+
public final AdditionalDataManager additionalDataManager() {
41+
return additionalDataManager;
42+
}
43+
44+
/**
45+
* The Allow Custom Assignment Schedule.
46+
*
47+
*/
48+
@SerializedName(value = "allowCustomAssignmentSchedule", alternate = {"AllowCustomAssignmentSchedule"})
49+
@Expose
50+
@Nullable
51+
public Boolean allowCustomAssignmentSchedule;
52+
53+
/**
54+
* The Existing Answers.
55+
*
56+
*/
57+
@SerializedName(value = "existingAnswers", alternate = {"ExistingAnswers"})
58+
@Expose
59+
@Nullable
60+
public java.util.List<AccessPackageAnswer> existingAnswers;
61+
62+
/**
63+
* The Is Approval Required For Add.
64+
*
65+
*/
66+
@SerializedName(value = "isApprovalRequiredForAdd", alternate = {"IsApprovalRequiredForAdd"})
67+
@Expose
68+
@Nullable
69+
public Boolean isApprovalRequiredForAdd;
70+
71+
/**
72+
* The Is Approval Required For Update.
73+
*
74+
*/
75+
@SerializedName(value = "isApprovalRequiredForUpdate", alternate = {"IsApprovalRequiredForUpdate"})
76+
@Expose
77+
@Nullable
78+
public Boolean isApprovalRequiredForUpdate;
79+
80+
/**
81+
* The Policy Description.
82+
*
83+
*/
84+
@SerializedName(value = "policyDescription", alternate = {"PolicyDescription"})
85+
@Expose
86+
@Nullable
87+
public String policyDescription;
88+
89+
/**
90+
* The Policy Display Name.
91+
*
92+
*/
93+
@SerializedName(value = "policyDisplayName", alternate = {"PolicyDisplayName"})
94+
@Expose
95+
@Nullable
96+
public String policyDisplayName;
97+
98+
/**
99+
* The Policy Id.
100+
*
101+
*/
102+
@SerializedName(value = "policyId", alternate = {"PolicyId"})
103+
@Expose
104+
@Nullable
105+
public String policyId;
106+
107+
/**
108+
* The Questions.
109+
*
110+
*/
111+
@SerializedName(value = "questions", alternate = {"Questions"})
112+
@Expose
113+
@Nullable
114+
public java.util.List<AccessPackageQuestion> questions;
115+
116+
/**
117+
* The Schedule.
118+
*
119+
*/
120+
@SerializedName(value = "schedule", alternate = {"Schedule"})
121+
@Expose
122+
@Nullable
123+
public RequestSchedule schedule;
124+
125+
126+
/**
127+
* Sets the raw JSON object
128+
*
129+
* @param serializer the serializer
130+
* @param json the JSON object to set this object to
131+
*/
132+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
133+
134+
}
135+
}
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.AccessPackageAssignmentRequestRequirements;
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 Package Get Applicable Policy Requirements Parameter Set.
21+
*/
22+
public class AccessPackageGetApplicablePolicyRequirementsParameterSet {
23+
24+
/**
25+
* Instiaciates a new AccessPackageGetApplicablePolicyRequirementsParameterSet
26+
*/
27+
public AccessPackageGetApplicablePolicyRequirementsParameterSet() {}
28+
/**
29+
* Instiaciates a new AccessPackageGetApplicablePolicyRequirementsParameterSet
30+
* @param builder builder bearing the parameters to initialize from
31+
*/
32+
protected AccessPackageGetApplicablePolicyRequirementsParameterSet(@Nonnull final AccessPackageGetApplicablePolicyRequirementsParameterSetBuilder builder) {
33+
}
34+
/**
35+
* Gets a new builder for the body
36+
* @return a new builder
37+
*/
38+
@Nonnull
39+
public static AccessPackageGetApplicablePolicyRequirementsParameterSetBuilder newBuilder() {
40+
return new AccessPackageGetApplicablePolicyRequirementsParameterSetBuilder();
41+
}
42+
/**
43+
* Fluent builder for the AccessPackageGetApplicablePolicyRequirementsParameterSet
44+
*/
45+
public static final class AccessPackageGetApplicablePolicyRequirementsParameterSetBuilder {
46+
/**
47+
* Instanciates a new AccessPackageGetApplicablePolicyRequirementsParameterSetBuilder
48+
*/
49+
@Nullable
50+
protected AccessPackageGetApplicablePolicyRequirementsParameterSetBuilder(){}
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 AccessPackageGetApplicablePolicyRequirementsParameterSet build() {
57+
return new AccessPackageGetApplicablePolicyRequirementsParameterSet(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+
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class AccessReviewInstance extends Entity implements IJsonBackedObject {
3232

3333
/**
3434
* The End Date Time.
35-
* DateTime when review instance is scheduled to end.The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
35+
* DateTime when review instance is scheduled to end.The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only.
3636
*/
3737
@SerializedName(value = "endDateTime", alternate = {"EndDateTime"})
3838
@Expose
@@ -41,7 +41,7 @@ public class AccessReviewInstance extends Entity implements IJsonBackedObject {
4141

4242
/**
4343
* The Scope.
44-
* Created based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of users reviewed in a group. In the case of a single-group review, the scope defined at the accessReviewScheduleDefinition level applies to all instances. In the case of all groups review, scope may be different for each group. Read-only.
44+
* Created based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of users reviewed in a group. Supports $select and $filter (contains only). Read-only.
4545
*/
4646
@SerializedName(value = "scope", alternate = {"Scope"})
4747
@Expose
@@ -50,7 +50,7 @@ public class AccessReviewInstance extends Entity implements IJsonBackedObject {
5050

5151
/**
5252
* The Start Date Time.
53-
* DateTime when review instance is scheduled to start. May be in the future. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
53+
* DateTime when review instance is scheduled to start. May be in the future. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only.
5454
*/
5555
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
5656
@Expose
@@ -59,7 +59,7 @@ public class AccessReviewInstance extends Entity implements IJsonBackedObject {
5959

6060
/**
6161
* The Status.
62-
* Specifies the status of an accessReview. The typical states include Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Read-only.
62+
* Specifies the status of an accessReview. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $select, $orderby, and $filter (eq only). Read-only.
6363
*/
6464
@SerializedName(value = "status", alternate = {"Status"})
6565
@Expose
@@ -68,7 +68,7 @@ public class AccessReviewInstance extends Entity implements IJsonBackedObject {
6868

6969
/**
7070
* The Decisions.
71-
* Each user reviewed in an accessReviewInstance has a decision item representing if their access was approved, denied, or not yet reviewed.
71+
* Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed.
7272
*/
7373
@SerializedName(value = "decisions", alternate = {"Decisions"})
7474
@Expose

0 commit comments

Comments
 (0)