Skip to content

Commit 7a55ff3

Browse files
authored
Merge pull request #487 from microsoftgraph/v1.0/pipelinebuild/3724497
Generated v1.0 models and request builders using Typewriter
2 parents 3114d52 + 7dd6643 commit 7a55ff3

File tree

74 files changed

+4169
-12
lines changed

Some content is hidden

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

74 files changed

+4169
-12
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,37 @@ public class AdministrativeUnit extends DirectoryObject implements IJsonBackedOb
3333

3434
/**
3535
* The Description.
36-
*
36+
* An optional description for the administrative unit.
3737
*/
3838
@SerializedName("description")
3939
@Expose
4040
public String description;
4141

4242
/**
4343
* The Display Name.
44-
*
44+
* Display name for the administrative unit.
4545
*/
4646
@SerializedName("displayName")
4747
@Expose
4848
public String displayName;
4949

5050
/**
5151
* The Visibility.
52-
*
52+
* Controls whether the adminstrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the adminstrative unit.
5353
*/
5454
@SerializedName("visibility")
5555
@Expose
5656
public String visibility;
5757

5858
/**
5959
* The Members.
60-
*
60+
* Users and groups that are members of this Adminsitrative Unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).
6161
*/
6262
public DirectoryObjectCollectionPage members;
6363

6464
/**
6565
* The Scoped Role Members.
66-
*
66+
* Scoped-role members of this Administrative Unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).
6767
*/
6868
@SerializedName("scopedRoleMembers")
6969
@Expose

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
226226

227227
/**
228228
* The Sign In Audience.
229-
* Specifies what Microsoft accounts are supported for the current application. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization’s Azure AD tenant (i.e. single tenant)AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization’s Azure AD tenant (i.e. multi-tenant) AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization’s Azure AD tenant
229+
* Specifies the Microsoft accounts that are supported for the current application. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization’s Azure AD tenant (single tenant)AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization’s Azure AD tenant (multi-tenant)AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization’s Azure AD tenant.
230230
*/
231231
@SerializedName("signInAudience")
232232
@Expose

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import java.util.Arrays;
1010
import java.util.EnumSet;
1111
import com.microsoft.graph.models.generated.ChangeType;
12+
import com.microsoft.graph.models.extensions.ChangeNotificationEncryptedContent;
13+
import com.microsoft.graph.models.generated.LifecycleEventType;
1214
import com.microsoft.graph.models.extensions.ResourceData;
1315

1416

@@ -50,6 +52,14 @@ public final AdditionalDataManager additionalDataManager() {
5052
@Expose
5153
public String clientState;
5254

55+
/**
56+
* The Encrypted Content.
57+
* (Preview) Encrypted content attached with the change notification. Only provided if encryptionCertificate and includeResourceData were defined during the subscription request and if the resource supports it. Optional.
58+
*/
59+
@SerializedName("encryptedContent")
60+
@Expose
61+
public ChangeNotificationEncryptedContent encryptedContent;
62+
5363
/**
5464
* The Id.
5565
* Unique ID for the notification. Optional.
@@ -58,6 +68,14 @@ public final AdditionalDataManager additionalDataManager() {
5868
@Expose
5969
public String id;
6070

71+
/**
72+
* The Lifecycle Event.
73+
*
74+
*/
75+
@SerializedName("lifecycleEvent")
76+
@Expose
77+
public LifecycleEventType lifecycleEvent;
78+
6179
/**
6280
* The Resource.
6381
* The URI of the resource that emitted the change notification relative to https://graph.microsoft.com. Required.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ public final AdditionalDataManager additionalDataManager() {
3333
return additionalDataManager;
3434
}
3535

36+
/**
37+
* The Validation Tokens.
38+
* Contains an array of JWT tokens generated by Microsoft Graph for the application to validate the origin of the notifications. Microsoft Graph generates a single token for each distinct app and tenant pair for an item if it exists in the value array. Keep in mind that notifications can contain a mix of items for various apps and tenants that subscribed using the same notification URL. Only provided for change notifications with resource data Optional.
39+
*/
40+
@SerializedName("validationTokens")
41+
@Expose
42+
public java.util.List<String> validationTokens;
43+
3644
/**
3745
* The Value.
3846
* The set of notifications being sent to the notification URL. Required.
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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.serializer.ISerializer;
7+
import com.microsoft.graph.serializer.IJsonBackedObject;
8+
import com.microsoft.graph.serializer.AdditionalDataManager;
9+
import java.util.Arrays;
10+
import java.util.EnumSet;
11+
12+
13+
import com.google.gson.JsonObject;
14+
import com.google.gson.annotations.SerializedName;
15+
import com.google.gson.annotations.Expose;
16+
17+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
18+
19+
/**
20+
* The class for the Change Notification Encrypted Content.
21+
*/
22+
public class ChangeNotificationEncryptedContent implements IJsonBackedObject {
23+
24+
@SerializedName("@odata.type")
25+
@Expose
26+
public String oDataType;
27+
28+
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
29+
30+
@Override
31+
public final AdditionalDataManager additionalDataManager() {
32+
return additionalDataManager;
33+
}
34+
35+
/**
36+
* The Data.
37+
* Base64-encoded encrypted data that produces a full resource respresented as JSON. The data has been encrypted with the provided dataKey using an AES/CBC/PKCS5PADDING cipher suite.
38+
*/
39+
@SerializedName("data")
40+
@Expose
41+
public String data;
42+
43+
/**
44+
* The Data Key.
45+
* Base64-encoded symmetric key generated by Microsoft Graph to encrypt the data value and to generate the data signature. This key is encrypted with the certificate public key that was provided during the subscription. It must be decrypted with the certificate private key before it can be used to decrypt the data or verify the signature. This key has been encrypted with the following cipher suite: RSA/ECB/OAEPWithSHA1AndMGF1Padding.
46+
*/
47+
@SerializedName("dataKey")
48+
@Expose
49+
public String dataKey;
50+
51+
/**
52+
* The Data Signature.
53+
* Base64-encoded HMAC-SHA256 hash of the data for validation purposes.
54+
*/
55+
@SerializedName("dataSignature")
56+
@Expose
57+
public String dataSignature;
58+
59+
/**
60+
* The Encryption Certificate Id.
61+
* ID of the certificate used to encrypt the dataKey.
62+
*/
63+
@SerializedName("encryptionCertificateId")
64+
@Expose
65+
public String encryptionCertificateId;
66+
67+
/**
68+
* The Encryption Certificate Thumbprint.
69+
* Hexadecimal representation of the thumbprint of the certificate used to encrypt the dataKey.
70+
*/
71+
@SerializedName("encryptionCertificateThumbprint")
72+
@Expose
73+
public String encryptionCertificateThumbprint;
74+
75+
76+
/**
77+
* The raw representation of this class
78+
*/
79+
private JsonObject rawObject;
80+
81+
/**
82+
* The serializer
83+
*/
84+
private ISerializer serializer;
85+
86+
/**
87+
* Gets the raw representation of this class
88+
*
89+
* @return the raw representation of this class
90+
*/
91+
public JsonObject getRawObject() {
92+
return rawObject;
93+
}
94+
95+
/**
96+
* Gets serializer
97+
*
98+
* @return the serializer
99+
*/
100+
protected ISerializer getSerializer() {
101+
return serializer;
102+
}
103+
104+
/**
105+
* Sets the raw JSON object
106+
*
107+
* @param serializer the serializer
108+
* @param json the JSON object to set this object to
109+
*/
110+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
111+
this.serializer = serializer;
112+
rawObject = json;
113+
114+
}
115+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.serializer.ISerializer;
7+
import com.microsoft.graph.serializer.IJsonBackedObject;
8+
import com.microsoft.graph.serializer.AdditionalDataManager;
9+
import java.util.Arrays;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.models.extensions.Entity;
12+
13+
14+
import com.google.gson.JsonObject;
15+
import com.google.gson.annotations.SerializedName;
16+
import com.google.gson.annotations.Expose;
17+
18+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
19+
20+
/**
21+
* The class for the Chat.
22+
*/
23+
public class Chat extends Entity implements IJsonBackedObject {
24+
25+
26+
27+
/**
28+
* The raw representation of this class
29+
*/
30+
private JsonObject rawObject;
31+
32+
/**
33+
* The serializer
34+
*/
35+
private ISerializer serializer;
36+
37+
/**
38+
* Gets the raw representation of this class
39+
*
40+
* @return the raw representation of this class
41+
*/
42+
public JsonObject getRawObject() {
43+
return rawObject;
44+
}
45+
46+
/**
47+
* Gets serializer
48+
*
49+
* @return the serializer
50+
*/
51+
protected ISerializer getSerializer() {
52+
return serializer;
53+
}
54+
55+
/**
56+
* Sets the raw JSON object
57+
*
58+
* @param serializer the serializer
59+
* @param json the JSON object to set this object to
60+
*/
61+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
62+
this.serializer = serializer;
63+
rawObject = json;
64+
65+
}
66+
}

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,17 @@ public class ChatMessage extends Entity implements IJsonBackedObject {
9393
@Expose
9494
public ChatMessageImportance importance;
9595

96+
/**
97+
* The Last Edited Date Time.
98+
* Read only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Microsoft Teams UI. If no edits are made the value is null.
99+
*/
100+
@SerializedName("lastEditedDateTime")
101+
@Expose
102+
public java.util.Calendar lastEditedDateTime;
103+
96104
/**
97105
* The Last Modified Date Time.
98-
* Read only. Timestamp of when the chat message is created or edited, including when a reply is made (if it's a root chat message in a channel) or a reaction is added or removed.
106+
* Read only. Timestamp when the chat message is created (initial setting) or edited, including when a reaction is added or removed.
99107
*/
100108
@SerializedName("lastModifiedDateTime")
101109
@Expose

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public class Event extends OutlookItem implements IJsonBackedObject {
302302

303303
/**
304304
* The Transaction Id.
305-
*
305+
* A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you cannot change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional.
306306
*/
307307
@SerializedName("transactionId")
308308
@Expose

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
import com.microsoft.graph.requests.extensions.IDataPolicyOperationRequestBuilder;
6868
import com.microsoft.graph.requests.extensions.ISubscriptionCollectionRequestBuilder;
6969
import com.microsoft.graph.requests.extensions.ISubscriptionRequestBuilder;
70+
import com.microsoft.graph.requests.extensions.IChatCollectionRequestBuilder;
71+
import com.microsoft.graph.requests.extensions.IChatRequestBuilder;
7072
import com.microsoft.graph.requests.extensions.ITeamCollectionRequestBuilder;
7173
import com.microsoft.graph.requests.extensions.ITeamRequestBuilder;
7274
import com.microsoft.graph.requests.extensions.ITeamsTemplateCollectionRequestBuilder;
@@ -546,6 +548,21 @@ public interface IBaseGraphServiceClient extends IBaseClient {
546548
*/
547549
ISubscriptionRequestBuilder subscriptions(final String id);
548550

551+
/**
552+
* Gets the collection of Chats objects
553+
*
554+
* @return the request builder for the collection of Chats objects
555+
*/
556+
IChatCollectionRequestBuilder chats();
557+
558+
/**
559+
* Gets a single Chats
560+
*
561+
* @param id the id of the Chats to retrieve
562+
* @return the request builder for the Chats object
563+
*/
564+
IChatRequestBuilder chats(final String id);
565+
549566
/**
550567
* Gets the collection of Teams objects
551568
*

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
import com.microsoft.graph.requests.extensions.IDataPolicyOperationRequestBuilder;
6868
import com.microsoft.graph.requests.extensions.ISubscriptionCollectionRequestBuilder;
6969
import com.microsoft.graph.requests.extensions.ISubscriptionRequestBuilder;
70+
import com.microsoft.graph.requests.extensions.IChatCollectionRequestBuilder;
71+
import com.microsoft.graph.requests.extensions.IChatRequestBuilder;
7072
import com.microsoft.graph.requests.extensions.ITeamCollectionRequestBuilder;
7173
import com.microsoft.graph.requests.extensions.ITeamRequestBuilder;
7274
import com.microsoft.graph.requests.extensions.ITeamsTemplateCollectionRequestBuilder;

0 commit comments

Comments
 (0)