Skip to content

Commit adb46fb

Browse files
Merge pull request #1214 from microsoftgraph/v1.0/pipelinebuild/88471
Generated v1.0 models and request builders using Typewriter
2 parents e44919e + 663204d commit adb46fb

File tree

131 files changed

+8414
-33
lines changed

Some content is hidden

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

131 files changed

+8414
-33
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14+
## [5.38.0] - 2022-10-12
15+
16+
### Added
17+
18+
- AssignedTrainingInfo model.
19+
- AttackSimulationRepeatOffender model.
20+
- AttackSimulationSimulationUserCoverage model.
21+
- AttackSimulationTrainingUserCoverage model.
22+
- AttackSimulationUser model.
23+
- EmailIdentity model.
24+
- PayloadDeliveryPlatform model.
25+
- RecommendedAction model.
26+
- TrainingEventsContent model.
27+
- TrainingStatus model.
28+
- AccessPackageAssignmentAdditionalAccess models and related requests.
29+
- AttackSimulationRoot model and related requests.
30+
- AuthenticationContextClassReference model and related requests.
31+
- ReportRootGetM365App models and related requests.
32+
- SecurityReportsRoot models and related requests.
33+
- Simulation models and related requests.
34+
- TeamworkSendActivityNotificationToRecipients models and related requests.
35+
36+
### Changed
37+
38+
- Generated v1.0 models and request builders using Typewriter.
39+
- Classes related to the removed and added models/requests have been updated to reflect the addition and removal of these models/requests.
40+
1441
## [5.37.0] - 2022-09-28
1542

1643
### 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.37.0'
22+
implementation 'com.microsoft.graph:microsoft-graph:5.38.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.37.0</version>
39+
<version>5.38.0</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -168,5 +168,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
168168

169169

170170

171+
171172

172173

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

@@ -91,5 +91,6 @@ mavenCentralPublishingEnabled=false
9191

9292

9393

94+
9495

9596

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

2424

@@ -68,5 +68,6 @@ private Constants() {
6868

6969

7070

71+
7172

7273

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.microsoft.graph.models.AccessPackageCatalog;
1313
import com.microsoft.graph.models.Entity;
1414
import com.microsoft.graph.requests.AccessPackageAssignmentPolicyCollectionPage;
15+
import com.microsoft.graph.requests.GroupCollectionPage;
1516

1617

1718
import com.google.gson.JsonObject;
@@ -73,6 +74,13 @@ public class AccessPackage extends Entity implements IJsonBackedObject {
7374
@Nullable
7475
public java.time.OffsetDateTime modifiedDateTime;
7576

77+
/**
78+
* The Access Packages Incompatible With.
79+
* The access packages that are incompatible with this package. Read-only.
80+
*/
81+
@Nullable
82+
public com.microsoft.graph.requests.AccessPackageCollectionPage accessPackagesIncompatibleWith;
83+
7684
/**
7785
* The Assignment Policies.
7886
*
@@ -91,6 +99,22 @@ public class AccessPackage extends Entity implements IJsonBackedObject {
9199
@Nullable
92100
public AccessPackageCatalog catalog;
93101

102+
/**
103+
* The Incompatible Access Packages.
104+
* The access packages whose assigned users are ineligible to be assigned this access package.
105+
*/
106+
@Nullable
107+
public com.microsoft.graph.requests.AccessPackageCollectionPage incompatibleAccessPackages;
108+
109+
/**
110+
* The Incompatible Groups.
111+
* The groups whose members are ineligible to be assigned this access package.
112+
*/
113+
@SerializedName(value = "incompatibleGroups", alternate = {"IncompatibleGroups"})
114+
@Expose
115+
@Nullable
116+
public com.microsoft.graph.requests.GroupCollectionPage incompatibleGroups;
117+
94118

95119
/**
96120
* Sets the raw JSON object
@@ -101,8 +125,20 @@ public class AccessPackage extends Entity implements IJsonBackedObject {
101125
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
102126

103127

128+
if (json.has("accessPackagesIncompatibleWith")) {
129+
accessPackagesIncompatibleWith = serializer.deserializeObject(json.get("accessPackagesIncompatibleWith"), com.microsoft.graph.requests.AccessPackageCollectionPage.class);
130+
}
131+
104132
if (json.has("assignmentPolicies")) {
105133
assignmentPolicies = serializer.deserializeObject(json.get("assignmentPolicies"), com.microsoft.graph.requests.AccessPackageAssignmentPolicyCollectionPage.class);
106134
}
135+
136+
if (json.has("incompatibleAccessPackages")) {
137+
incompatibleAccessPackages = serializer.deserializeObject(json.get("incompatibleAccessPackages"), com.microsoft.graph.requests.AccessPackageCollectionPage.class);
138+
}
139+
140+
if (json.has("incompatibleGroups")) {
141+
incompatibleGroups = serializer.deserializeObject(json.get("incompatibleGroups"), com.microsoft.graph.requests.GroupCollectionPage.class);
142+
}
107143
}
108144
}
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
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.AccessPackageAssignment;
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 Assignment Additional Access Parameter Set.
21+
*/
22+
public class AccessPackageAssignmentAdditionalAccessParameterSet {
23+
/**
24+
* The access Package Id.
25+
*
26+
*/
27+
@SerializedName(value = "accessPackageId", alternate = {"AccessPackageId"})
28+
@Expose
29+
@Nullable
30+
public String accessPackageId;
31+
32+
/**
33+
* The incompatible Access Package Id.
34+
*
35+
*/
36+
@SerializedName(value = "incompatibleAccessPackageId", alternate = {"IncompatibleAccessPackageId"})
37+
@Expose
38+
@Nullable
39+
public String incompatibleAccessPackageId;
40+
41+
42+
/**
43+
* Instiaciates a new AccessPackageAssignmentAdditionalAccessParameterSet
44+
*/
45+
public AccessPackageAssignmentAdditionalAccessParameterSet() {}
46+
/**
47+
* Instiaciates a new AccessPackageAssignmentAdditionalAccessParameterSet
48+
* @param builder builder bearing the parameters to initialize from
49+
*/
50+
protected AccessPackageAssignmentAdditionalAccessParameterSet(@Nonnull final AccessPackageAssignmentAdditionalAccessParameterSetBuilder builder) {
51+
this.accessPackageId = builder.accessPackageId;
52+
this.incompatibleAccessPackageId = builder.incompatibleAccessPackageId;
53+
}
54+
/**
55+
* Gets a new builder for the body
56+
* @return a new builder
57+
*/
58+
@Nonnull
59+
public static AccessPackageAssignmentAdditionalAccessParameterSetBuilder newBuilder() {
60+
return new AccessPackageAssignmentAdditionalAccessParameterSetBuilder();
61+
}
62+
/**
63+
* Fluent builder for the AccessPackageAssignmentAdditionalAccessParameterSet
64+
*/
65+
public static final class AccessPackageAssignmentAdditionalAccessParameterSetBuilder {
66+
/**
67+
* The accessPackageId parameter value
68+
*/
69+
@Nullable
70+
protected String accessPackageId;
71+
/**
72+
* Sets the AccessPackageId
73+
* @param val the value to set it to
74+
* @return the current builder object
75+
*/
76+
@Nonnull
77+
public AccessPackageAssignmentAdditionalAccessParameterSetBuilder withAccessPackageId(@Nullable final String val) {
78+
this.accessPackageId = val;
79+
return this;
80+
}
81+
/**
82+
* The incompatibleAccessPackageId parameter value
83+
*/
84+
@Nullable
85+
protected String incompatibleAccessPackageId;
86+
/**
87+
* Sets the IncompatibleAccessPackageId
88+
* @param val the value to set it to
89+
* @return the current builder object
90+
*/
91+
@Nonnull
92+
public AccessPackageAssignmentAdditionalAccessParameterSetBuilder withIncompatibleAccessPackageId(@Nullable final String val) {
93+
this.incompatibleAccessPackageId = val;
94+
return this;
95+
}
96+
/**
97+
* Instanciates a new AccessPackageAssignmentAdditionalAccessParameterSetBuilder
98+
*/
99+
@Nullable
100+
protected AccessPackageAssignmentAdditionalAccessParameterSetBuilder(){}
101+
/**
102+
* Buils the resulting body object to be passed to the request
103+
* @return the body object to pass to the request
104+
*/
105+
@Nonnull
106+
public AccessPackageAssignmentAdditionalAccessParameterSet build() {
107+
return new AccessPackageAssignmentAdditionalAccessParameterSet(this);
108+
}
109+
}
110+
/**
111+
* Gets the functions options from the properties that have been set
112+
* @return a list of function options for the request
113+
*/
114+
@Nonnull
115+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
116+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
117+
if(this.accessPackageId != null) {
118+
result.add(new com.microsoft.graph.options.FunctionOption("accessPackageId", accessPackageId));
119+
}
120+
if(this.incompatibleAccessPackageId != null) {
121+
result.add(new com.microsoft.graph.options.FunctionOption("incompatibleAccessPackageId", incompatibleAccessPackageId));
122+
}
123+
return result;
124+
}
125+
}

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,60 @@ public final AdditionalDataManager additionalDataManager() {
127127
@Nullable
128128
public Boolean v5_1;
129129

130+
/**
131+
* The V6_0.
132+
* Version 6.0 or later.
133+
*/
134+
@SerializedName(value = "v6_0", alternate = {"V6_0"})
135+
@Expose
136+
@Nullable
137+
public Boolean v6_0;
138+
139+
/**
140+
* The V7_0.
141+
* Version 7.0 or later.
142+
*/
143+
@SerializedName(value = "v7_0", alternate = {"V7_0"})
144+
@Expose
145+
@Nullable
146+
public Boolean v7_0;
147+
148+
/**
149+
* The V7_1.
150+
* Version 7.1 or later.
151+
*/
152+
@SerializedName(value = "v7_1", alternate = {"V7_1"})
153+
@Expose
154+
@Nullable
155+
public Boolean v7_1;
156+
157+
/**
158+
* The V8_0.
159+
* Version 8.0 or later.
160+
*/
161+
@SerializedName(value = "v8_0", alternate = {"V8_0"})
162+
@Expose
163+
@Nullable
164+
public Boolean v8_0;
165+
166+
/**
167+
* The V8_1.
168+
* Version 8.1 or later.
169+
*/
170+
@SerializedName(value = "v8_1", alternate = {"V8_1"})
171+
@Expose
172+
@Nullable
173+
public Boolean v8_1;
174+
175+
/**
176+
* The V9_0.
177+
* Version 9.0 or later.
178+
*/
179+
@SerializedName(value = "v9_0", alternate = {"V9_0"})
180+
@Expose
181+
@Nullable
182+
public Boolean v9_0;
183+
130184

131185
/**
132186
* Sets the raw JSON object

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ public class ApplePushNotificationCertificate extends Entity implements IJsonBac
5252
@Nullable
5353
public String certificateSerialNumber;
5454

55+
/**
56+
* The Certificate Upload Failure Reason.
57+
* The reason the certificate upload failed.
58+
*/
59+
@SerializedName(value = "certificateUploadFailureReason", alternate = {"CertificateUploadFailureReason"})
60+
@Expose
61+
@Nullable
62+
public String certificateUploadFailureReason;
63+
64+
/**
65+
* The Certificate Upload Status.
66+
* The certificate upload status.
67+
*/
68+
@SerializedName(value = "certificateUploadStatus", alternate = {"CertificateUploadStatus"})
69+
@Expose
70+
@Nullable
71+
public String certificateUploadStatus;
72+
5573
/**
5674
* The Expiration Date Time.
5775
* The expiration date and time for Apple push notification certificate.

0 commit comments

Comments
 (0)