Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders #1579

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {

dependencies {
// Include the sdk as a dependency
implementation 'com.microsoft.graph:microsoft-graph:5.74.0'
implementation 'com.microsoft.graph:microsoft-graph:5.75.0'
// Uncomment the line below if you are building an android application
//implementation 'com.google.guava:guava:30.1.1-android'
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
Expand All @@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml
<!-- Include the sdk as a dependency -->
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph</artifactId>
<version>5.74.0</version>
<version>5.75.0</version>
</dependency>
<dependency>
<!-- This dependency is only needed if you are using the TokenCredentialAuthProvider -->
Expand Down Expand Up @@ -205,5 +205,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI






3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ org.gradle.caching=true
mavenGroupId = com.microsoft.graph
mavenArtifactId = microsoft-graph
mavenMajorVersion = 5
mavenMinorVersion = 74
mavenMinorVersion = 75
mavenPatchVersion = 0
mavenArtifactSuffix =

Expand Down Expand Up @@ -128,5 +128,6 @@ mavenCentralPublishingEnabled=false






Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public final AdditionalDataManager additionalDataManager() {

/**
* The Labels.
* Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional.
* Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl. You must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: iconUrl.
*/
@SerializedName(value = "labels", alternate = {"Labels"})
@Expose
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/microsoft/graph/info/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private Constants() {
/** The client secret to use for unit testing */
public static final String CLIENTSECRET = "clientsecret";
/** The SDK version */
public static final String VERSION_NAME = "5.74.0";
public static final String VERSION_NAME = "5.75.0";
}


Expand Down Expand Up @@ -105,5 +105,6 @@ private Constants() {






Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class AccessPackageTextInputQuestion extends AccessPackageQuestion implem

/**
* The Is Single Line Question.
* Indicates whether the answer will be in single or multiple line format.
* Indicates whether the answer is in single or multiple line format.
*/
@SerializedName(value = "isSingleLineQuestion", alternate = {"IsSingleLineQuestion"})
@Expose
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/microsoft/graph/models/Admin.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.microsoft.graph.models.Edge;
import com.microsoft.graph.models.Sharepoint;
import com.microsoft.graph.models.ServiceAnnouncement;
import com.microsoft.graph.models.PeopleAdminSettings;


import com.google.gson.JsonObject;
Expand Down Expand Up @@ -67,6 +68,15 @@ public final AdditionalDataManager additionalDataManager() {
@Nullable
public ServiceAnnouncement serviceAnnouncement;

/**
* The People.
*
*/
@SerializedName(value = "people", alternate = {"People"})
@Expose
@Nullable
public PeopleAdminSettings people;


/**
* Sets the raw JSON object
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/microsoft/graph/models/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {

/**
* The App Id.
* The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only. Supports $filter (eq).
* The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only. Alternate key. Supports $filter (eq).
*/
@SerializedName(value = "appId", alternate = {"AppId"})
@Expose
Expand Down
53 changes: 53 additions & 0 deletions src/main/java/com/microsoft/graph/models/PeopleAdminSettings.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.http.BaseCollectionPage;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.requests.ProfileCardPropertyCollectionPage;


import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

/**
* The class for the People Admin Settings.
*/
public class PeopleAdminSettings extends Entity implements IJsonBackedObject {


/**
* The Profile Card Properties.
*
*/
@SerializedName(value = "profileCardProperties", alternate = {"ProfileCardProperties"})
@Expose
@Nullable
public com.microsoft.graph.requests.ProfileCardPropertyCollectionPage profileCardProperties;


/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {


if (json.has("profileCardProperties")) {
profileCardProperties = serializer.deserializeObject(json.get("profileCardProperties"), com.microsoft.graph.requests.ProfileCardPropertyCollectionPage.class);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class PrivilegedAccessGroup extends Entity implements IJsonBackedObject {

/**
* The Assignment Schedule Instances.
*
* The instances of assignment schedules to activate a just-in-time access.
*/
@SerializedName(value = "assignmentScheduleInstances", alternate = {"AssignmentScheduleInstances"})
@Expose
Expand All @@ -53,7 +53,7 @@ public class PrivilegedAccessGroup extends Entity implements IJsonBackedObject {

/**
* The Assignment Schedule Requests.
*
* The schedule requests for operations to create, update, delete, extend, and renew an assignment.
*/
@SerializedName(value = "assignmentScheduleRequests", alternate = {"AssignmentScheduleRequests"})
@Expose
Expand All @@ -62,7 +62,7 @@ public class PrivilegedAccessGroup extends Entity implements IJsonBackedObject {

/**
* The Assignment Schedules.
*
* The assignment schedules to activate a just-in-time access.
*/
@SerializedName(value = "assignmentSchedules", alternate = {"AssignmentSchedules"})
@Expose
Expand All @@ -71,7 +71,7 @@ public class PrivilegedAccessGroup extends Entity implements IJsonBackedObject {

/**
* The Eligibility Schedule Instances.
*
* The instances of eligibility schedules to activate a just-in-time access.
*/
@SerializedName(value = "eligibilityScheduleInstances", alternate = {"EligibilityScheduleInstances"})
@Expose
Expand All @@ -80,7 +80,7 @@ public class PrivilegedAccessGroup extends Entity implements IJsonBackedObject {

/**
* The Eligibility Schedule Requests.
*
* The schedule requests for operations to create, update, delete, extend, and renew an eligibility.
*/
@SerializedName(value = "eligibilityScheduleRequests", alternate = {"EligibilityScheduleRequests"})
@Expose
Expand All @@ -89,7 +89,7 @@ public class PrivilegedAccessGroup extends Entity implements IJsonBackedObject {

/**
* The Eligibility Schedules.
*
* The eligibility schedules to activate a just-in-time access.
*/
@SerializedName(value = "eligibilitySchedules", alternate = {"EligibilitySchedules"})
@Expose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Access Id.
*
* The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq).
*/
@SerializedName(value = "accessId", alternate = {"AccessId"})
@Expose
Expand All @@ -42,7 +42,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Assignment Type.
*
* Indicates whether the membership or ownership assignment for the principal is granted through activation or direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq).
*/
@SerializedName(value = "assignmentType", alternate = {"AssignmentType"})
@Expose
Expand All @@ -51,7 +51,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Group Id.
*
* The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Required. Supports $filter (eq).
*/
@SerializedName(value = "groupId", alternate = {"GroupId"})
@Expose
Expand All @@ -60,7 +60,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Member Type.
*
* Indicates whether the assignment is derived from a direct group assignment or through a transitive assignment. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq).
*/
@SerializedName(value = "memberType", alternate = {"MemberType"})
@Expose
Expand All @@ -69,7 +69,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Principal Id.
*
* The identifier of the principal whose membership or ownership assignment is granted through PIM for groups. Required. Supports $filter (eq).
*/
@SerializedName(value = "principalId", alternate = {"PrincipalId"})
@Expose
Expand All @@ -78,7 +78,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Activated Using.
*
* When the request activates an ownership or membership assignment in PIM for groups, this object represents the eligibility relationship. Otherwise, it is null. Supports $expand.
*/
@SerializedName(value = "activatedUsing", alternate = {"ActivatedUsing"})
@Expose
Expand All @@ -87,7 +87,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Group.
*
* References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand.
*/
@SerializedName(value = "group", alternate = {"Group"})
@Expose
Expand All @@ -96,7 +96,7 @@ public class PrivilegedAccessGroupAssignmentSchedule extends PrivilegedAccessSch

/**
* The Principal.
*
* References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand.
*/
@SerializedName(value = "principal", alternate = {"Principal"})
@Expose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Access Id.
*
* The identifier of the membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq).
*/
@SerializedName(value = "accessId", alternate = {"AccessId"})
@Expose
Expand All @@ -42,7 +42,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Assignment Schedule Id.
*
* The identifier of the privilegedAccessGroupAssignmentSchedule from which this instance was created. Required. Supports $filter (eq, ne).
*/
@SerializedName(value = "assignmentScheduleId", alternate = {"AssignmentScheduleId"})
@Expose
Expand All @@ -51,7 +51,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Assignment Type.
*
* Indicates whether the membership or ownership assignment is granted through activation of an eligibility or through direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq).
*/
@SerializedName(value = "assignmentType", alternate = {"AssignmentType"})
@Expose
Expand All @@ -60,7 +60,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Group Id.
*
* The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Optional. Supports $filter (eq).
*/
@SerializedName(value = "groupId", alternate = {"GroupId"})
@Expose
Expand All @@ -69,7 +69,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Member Type.
*
* Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq).
*/
@SerializedName(value = "memberType", alternate = {"MemberType"})
@Expose
Expand All @@ -78,7 +78,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Principal Id.
*
* The identifier of the principal whose membership or ownership assignment to the group is managed through PIM for groups. Required. Supports $filter (eq).
*/
@SerializedName(value = "principalId", alternate = {"PrincipalId"})
@Expose
Expand All @@ -87,7 +87,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Activated Using.
*
* When the request activates a membership or ownership in PIM for groups, this object represents the eligibility request for the group. Otherwise, it is null.
*/
@SerializedName(value = "activatedUsing", alternate = {"ActivatedUsing"})
@Expose
Expand All @@ -96,7 +96,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Group.
*
* References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand.
*/
@SerializedName(value = "group", alternate = {"Group"})
@Expose
Expand All @@ -105,7 +105,7 @@ public class PrivilegedAccessGroupAssignmentScheduleInstance extends PrivilegedA

/**
* The Principal.
*
* References the principal that's in the scope of the membership or ownership assignment request through the group that's governed by PIM. Supports $expand.
*/
@SerializedName(value = "principal", alternate = {"Principal"})
@Expose
Expand Down
Loading
Loading