Skip to content

Commit 103e3e1

Browse files
Generated v1.0 models and request builders using Typewriter (#402)
* Update generated v1.0 Java models and requests with build 3368476 * Added reviewers and path spec * Version update info
1 parent 14dad55 commit 103e3e1

File tree

223 files changed

+10354
-115
lines changed

Some content is hidden

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

223 files changed

+10354
-115
lines changed

.github/workflows/create-v1.0-pull-request.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
push:
1414
branches:
1515
- "v1.0/pipelinebuild/*"
16+
paths:
17+
- 'src/**/*.java'
1618

1719
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1820
jobs:
@@ -35,8 +37,8 @@ jobs:
3537
env:
3638
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3739
MESSAGE_TITLE: Generated v1.0 models and request builders using Typewriter
38-
MESSAGE_BODY: "This pull request was automatically created by the GitHub Action, **${{github.workflow}}**. \n\n The commit hash is _${{github.sha}}_. \n\n **Important** Check for unexpected deletions or changes in this PR. \n\n cc: @darrelmiller"
39-
REVIEWERS: peombwa,ddyett
40+
MESSAGE_BODY: "This pull request was automatically created by the GitHub Action, **${{github.workflow}}**. \n\n The commit hash is _${{github.sha}}_. \n\n **Important** Check for unexpected deletions or changes in this PR. \n\n - [ ] update version in gradle.properties and Constants.java. \n\n cc: @darrelmiller"
41+
REVIEWERS: peombwa,ddyett,zengin,nikithauc,ramsessanchez
4042
ASSIGNEDTO: MIchaelMainer
4143
LABELS: generated
4244
BASE: dev

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mavenBintraySnapshotUrl = http://oss.jfrog.org/artifactory/oss-snapshot-local
2626
mavenGroupId = com.microsoft.graph
2727
mavenArtifactId = microsoft-graph
2828
mavenMajorVersion = 1
29-
mavenMinorVersion = 8
29+
mavenMinorVersion = 9
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232
nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ private Constants() {
2828
public static final String APPID = "app-id";
2929
public static final String USERNAME = "[email protected]";
3030
public static final String PASSWORD = "password";
31-
public static final String VERSION_NAME = "1.7.1";
31+
public static final String VERSION_NAME = "1.9.0";
3232
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
package com.microsoft.graph.models.extensions;
6+
import com.microsoft.graph.concurrency.*;
7+
import com.microsoft.graph.core.*;
8+
import com.microsoft.graph.http.*;
9+
import com.microsoft.graph.options.*;
10+
import com.microsoft.graph.serializer.*;
11+
import java.util.Arrays;
12+
import java.util.EnumSet;
13+
import com.microsoft.graph.models.extensions.User;
14+
import com.microsoft.graph.models.extensions.ConversationMember;
15+
16+
17+
import com.google.gson.JsonObject;
18+
import com.google.gson.JsonElement;
19+
import com.google.gson.annotations.*;
20+
import java.util.HashMap;
21+
import java.util.Map;
22+
23+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
24+
25+
/**
26+
* The class for the Aad User Conversation Member.
27+
*/
28+
public class AadUserConversationMember extends ConversationMember implements IJsonBackedObject {
29+
30+
31+
/**
32+
* The User Id.
33+
*
34+
*/
35+
@SerializedName("userId")
36+
@Expose
37+
public String userId;
38+
39+
/**
40+
* The Email.
41+
*
42+
*/
43+
@SerializedName("email")
44+
@Expose
45+
public String email;
46+
47+
/**
48+
* The User.
49+
*
50+
*/
51+
@SerializedName("user")
52+
@Expose
53+
public User user;
54+
55+
56+
/**
57+
* The raw representation of this class
58+
*/
59+
private JsonObject rawObject;
60+
61+
/**
62+
* The serializer
63+
*/
64+
private ISerializer serializer;
65+
66+
/**
67+
* Gets the raw representation of this class
68+
*
69+
* @return the raw representation of this class
70+
*/
71+
public JsonObject getRawObject() {
72+
return rawObject;
73+
}
74+
75+
/**
76+
* Gets serializer
77+
*
78+
* @return the serializer
79+
*/
80+
protected ISerializer getSerializer() {
81+
return serializer;
82+
}
83+
84+
/**
85+
* Sets the raw JSON object
86+
*
87+
* @param serializer the serializer
88+
* @param json the JSON object to set this object to
89+
*/
90+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
91+
this.serializer = serializer;
92+
rawObject = json;
93+
94+
}
95+
}

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
import com.microsoft.graph.models.extensions.WebApplication;
2424
import com.microsoft.graph.models.extensions.ExtensionProperty;
2525
import com.microsoft.graph.models.extensions.DirectoryObject;
26+
import com.microsoft.graph.models.extensions.HomeRealmDiscoveryPolicy;
2627
import com.microsoft.graph.models.extensions.TokenLifetimePolicy;
2728
import com.microsoft.graph.models.extensions.TokenIssuancePolicy;
2829
import com.microsoft.graph.requests.extensions.ExtensionPropertyCollectionResponse;
2930
import com.microsoft.graph.requests.extensions.ExtensionPropertyCollectionPage;
31+
import com.microsoft.graph.requests.extensions.HomeRealmDiscoveryPolicyCollectionResponse;
32+
import com.microsoft.graph.requests.extensions.HomeRealmDiscoveryPolicyCollectionPage;
3033
import com.microsoft.graph.requests.extensions.DirectoryObjectCollectionResponse;
3134
import com.microsoft.graph.requests.extensions.DirectoryObjectCollectionPage;
3235
import com.microsoft.graph.requests.extensions.TokenLifetimePolicyCollectionResponse;
@@ -51,7 +54,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
5154

5255
/**
5356
* The Add Ins.
54-
* Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Office 365 call the application in the context of a document the user is working on.
57+
* Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on.
5558
*/
5659
@SerializedName("addIns")
5760
@Expose
@@ -255,6 +258,12 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
255258
@Expose
256259
public DirectoryObject createdOnBehalfOf;
257260

261+
/**
262+
* The Home Realm Discovery Policies.
263+
*
264+
*/
265+
public HomeRealmDiscoveryPolicyCollectionPage homeRealmDiscoveryPolicies;
266+
258267
/**
259268
* The Owners.
260269
* Directory objects that are owners of the application. The owners are a set of non-admin users who are allowed to modify this object. Requires version 2013-11-08 or newer. Read-only. Nullable.
@@ -329,6 +338,22 @@ public void setRawObject(final ISerializer serializer, final JsonObject json) {
329338
extensionProperties = new ExtensionPropertyCollectionPage(response, null);
330339
}
331340

341+
if (json.has("homeRealmDiscoveryPolicies")) {
342+
final HomeRealmDiscoveryPolicyCollectionResponse response = new HomeRealmDiscoveryPolicyCollectionResponse();
343+
if (json.has("[email protected]")) {
344+
response.nextLink = json.get("[email protected]").getAsString();
345+
}
346+
347+
final JsonObject[] sourceArray = serializer.deserializeObject(json.get("homeRealmDiscoveryPolicies").toString(), JsonObject[].class);
348+
final HomeRealmDiscoveryPolicy[] array = new HomeRealmDiscoveryPolicy[sourceArray.length];
349+
for (int i = 0; i < sourceArray.length; i++) {
350+
array[i] = serializer.deserializeObject(sourceArray[i].toString(), HomeRealmDiscoveryPolicy.class);
351+
array[i].setRawObject(serializer, sourceArray[i]);
352+
}
353+
response.value = Arrays.asList(array);
354+
homeRealmDiscoveryPolicies = new HomeRealmDiscoveryPolicyCollectionPage(response, null);
355+
}
356+
332357
if (json.has("owners")) {
333358
final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse();
334359
if (json.has("[email protected]")) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() {
3939

4040
/**
4141
* The Id.
42-
* Unique GUID of the conditional access polic.y
42+
* Unique GUID of the conditional access policy.
4343
*/
4444
@SerializedName("id")
4545
@Expose

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

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

3939
/**
4040
* The Label Id.
41-
*
41+
* The unique identifier of the label.
4242
*/
4343
@SerializedName("labelId")
4444
@Expose
4545
public String labelId;
4646

4747
/**
4848
* The Display Name.
49-
*
49+
* The display name of the label. Read-only.
5050
*/
5151
@SerializedName("displayName")
5252
@Expose

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class Attendee extends AttendeeBase implements IJsonBackedObject {
3939

4040
/**
4141
* The Proposed New Time.
42-
*
42+
* An alternate date/time proposed by the attendee for a meeting request to start and end. If the attendee hasn't proposed another time, then this property is not included in a response of a GET event.
4343
*/
4444
@SerializedName("proposedNewTime")
4545
@Expose
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
package com.microsoft.graph.models.extensions;
6+
import com.microsoft.graph.concurrency.*;
7+
import com.microsoft.graph.core.*;
8+
import com.microsoft.graph.http.*;
9+
import com.microsoft.graph.options.*;
10+
import com.microsoft.graph.serializer.*;
11+
import java.util.Arrays;
12+
import java.util.EnumSet;
13+
import com.microsoft.graph.models.generated.ChangeType;
14+
import com.microsoft.graph.models.extensions.ResourceData;
15+
16+
17+
import com.google.gson.JsonObject;
18+
import com.google.gson.JsonElement;
19+
import com.google.gson.annotations.*;
20+
import java.util.HashMap;
21+
import java.util.Map;
22+
23+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
24+
25+
/**
26+
* The class for the Change Notification.
27+
*/
28+
public class ChangeNotification implements IJsonBackedObject {
29+
30+
@SerializedName("@odata.type")
31+
@Expose
32+
public String oDataType;
33+
34+
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
35+
36+
@Override
37+
public final AdditionalDataManager additionalDataManager() {
38+
return additionalDataManager;
39+
}
40+
41+
/**
42+
* The Id.
43+
* Unique ID for the notification. Optional.
44+
*/
45+
@SerializedName("id")
46+
@Expose
47+
public String id;
48+
49+
/**
50+
* The Subscription Id.
51+
* The unique identifier of the subscription that generated the notification.
52+
*/
53+
@SerializedName("subscriptionId")
54+
@Expose
55+
public java.util.UUID subscriptionId;
56+
57+
/**
58+
* The Subscription Expiration Date Time.
59+
* The expiration time for the subscription. Required.
60+
*/
61+
@SerializedName("subscriptionExpirationDateTime")
62+
@Expose
63+
public java.util.Calendar subscriptionExpirationDateTime;
64+
65+
/**
66+
* The Client State.
67+
* Value of the clientState property sent in the subscription request (if any). The maximum length is 255 characters. The client can check whether the change notification came from the service by comparing the values of the clientState property. The value of the clientState property sent with the subscription is compared with the value of the clientState property received with each change notification. Optional.
68+
*/
69+
@SerializedName("clientState")
70+
@Expose
71+
public String clientState;
72+
73+
/**
74+
* The Change Type.
75+
* Indicates the type of change that will raise the change notification. The supported values are: created, updated, deleted. Required.
76+
*/
77+
@SerializedName("changeType")
78+
@Expose
79+
public ChangeType changeType;
80+
81+
/**
82+
* The Resource.
83+
* The URI of the resource that emitted the change notification relative to https://graph.microsoft.com. Required.
84+
*/
85+
@SerializedName("resource")
86+
@Expose
87+
public String resource;
88+
89+
/**
90+
* The Tenant Id.
91+
* The unique identifier of the tenant from which the change notification originated.
92+
*/
93+
@SerializedName("tenantId")
94+
@Expose
95+
public java.util.UUID tenantId;
96+
97+
/**
98+
* The Resource Data.
99+
* The content of this property depends on the type of resource being subscribed to. Required.
100+
*/
101+
@SerializedName("resourceData")
102+
@Expose
103+
public ResourceData resourceData;
104+
105+
106+
/**
107+
* The raw representation of this class
108+
*/
109+
private JsonObject rawObject;
110+
111+
/**
112+
* The serializer
113+
*/
114+
private ISerializer serializer;
115+
116+
/**
117+
* Gets the raw representation of this class
118+
*
119+
* @return the raw representation of this class
120+
*/
121+
public JsonObject getRawObject() {
122+
return rawObject;
123+
}
124+
125+
/**
126+
* Gets serializer
127+
*
128+
* @return the serializer
129+
*/
130+
protected ISerializer getSerializer() {
131+
return serializer;
132+
}
133+
134+
/**
135+
* Sets the raw JSON object
136+
*
137+
* @param serializer the serializer
138+
* @param json the JSON object to set this object to
139+
*/
140+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
141+
this.serializer = serializer;
142+
rawObject = json;
143+
144+
}
145+
}

0 commit comments

Comments
 (0)