Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
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
16 changes: 2 additions & 14 deletions 16 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:4.2.0'
implementation 'com.microsoft.graph:microsoft-graph:5.0.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>4.2.0</version>
<version>5.0.0</version>
</dependency>
<dependency>
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
Expand Down Expand Up @@ -135,15 +135,3 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
## 9. Third-party notices

[Third-party notices](THIRD%20PARTY%20NOTICES)












15 changes: 15 additions & 0 deletions 15 docs/upgrade-to-v4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Microsoft Graph Java SDK v4 changelog and upgrade guide

Welcome to the Microsoft Graph Java SDK migration guide to v4. The purpose of this document is to list out any breaking change and migration work SDK users might run into while upgrading to the latest version of the SDK.

## Upgrade guide for breaking changes

### IdentitySet replaced by specialized types for Microsoft Teams APIs

The `IdentitySet` type has been replaced by specialized types inheriting from it and exposing more information for the Microsoft Teams APIs.

- The `ChatMessage.from` property is now of type `ChatMessageFromIdentitySet`
- The `ChatMessageMention.mentioned` property is now of type `ChatMessageMentionedIdentitySet`
- The `ChatMessageReaction.user` property is now of type `ChatMessageReactionIdentitySet`

If your application is reading/assigning the above-mentioned properties, you need to update the code to reference these new types instead. If your application was using the `additionalData` property to read any property that is now available on the new types, update the code to use these new properties instead.
11 changes: 11 additions & 0 deletions 11 docs/upgrade-to-v5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft Graph Java SDK v5 changelog and upgrade guide

Welcome to the Microsoft Graph Java SDK migration guide to v5. The purpose of this document is to list out any breaking change and migration work SDK users might run into while upgrading to the latest version of the SDK.

## Upgrade guide for breaking changes

### ManagedAppProtection replaced by TargetedManagedAppProtection for some Security APIs

The `ManagedAppProtection` type used for the `targetApps` action as a parameter has been replaced by a new `TargetedManagedAppProtection` type that inherits from it and exposes new properties.

If your application is using the above-mentioned type, you need to update the code to reference the new type instead. If your application was using the `additionalData` property to read any property that is now available on the new type, update the code to use these new properties instead.
5 changes: 3 additions & 2 deletions 5 gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ org.gradle.caching=true

mavenGroupId = com.microsoft.graph
mavenArtifactId = microsoft-graph
mavenMajorVersion = 4
mavenMinorVersion = 2
mavenMajorVersion = 5
mavenMinorVersion = 0
mavenPatchVersion = 0
mavenArtifactSuffix =

Expand Down Expand Up @@ -56,3 +56,4 @@ mavenCentralPublishingEnabled=false




4 changes: 2 additions & 2 deletions 4 pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
as the dependency graph is not compatible with gradle https://docs.github.com/en/free-pro-team@latest/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems
build.gradle is the source of truth
-->
<modelVersion>4.0.0</modelVersion>
<modelVersion>5.0.0</modelVersion>

<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph</artifactId>
Expand Down Expand Up @@ -50,4 +50,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
import com.microsoft.graph.http.BaseCollectionPage;
import com.microsoft.graph.externalconnectors.models.Configuration;
import com.microsoft.graph.externalconnectors.models.ConnectionState;
import com.microsoft.graph.externalconnectors.models.ExternalGroup;
import com.microsoft.graph.externalconnectors.models.ExternalItem;
import com.microsoft.graph.externalconnectors.models.ConnectionOperation;
import com.microsoft.graph.externalconnectors.models.Schema;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionPage;
import com.microsoft.graph.externalconnectors.requests.ExternalItemCollectionPage;
import com.microsoft.graph.externalconnectors.requests.ConnectionOperationCollectionPage;

Expand Down Expand Up @@ -69,6 +71,15 @@ public class ExternalConnection extends Entity implements IJsonBackedObject {
@Nullable
public ConnectionState state;

/**
* The Groups.
*
*/
@SerializedName(value = "groups", alternate = {"Groups"})
@Expose
@Nullable
public ExternalGroupCollectionPage groups;

/**
* The Items.
* Read-only. Nullable.
Expand Down Expand Up @@ -106,6 +117,10 @@ public class ExternalConnection extends Entity implements IJsonBackedObject {
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {


if (json.has("groups")) {
groups = serializer.deserializeObject(json.get("groups"), ExternalGroupCollectionPage.class);
}

if (json.has("items")) {
items = serializer.deserializeObject(json.get("items"), ExternalItemCollectionPage.class);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// 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.externalconnectors.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.externalconnectors.models.Identity;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.externalconnectors.requests.IdentityCollectionPage;


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 External Group.
*/
public class ExternalGroup extends Entity implements IJsonBackedObject {


/**
* The Description.
* The description of the external group. Optional.
*/
@SerializedName(value = "description", alternate = {"Description"})
@Expose
@Nullable
public String description;

/**
* The Display Name.
* The friendly name of the external group. Optional.
*/
@SerializedName(value = "displayName", alternate = {"DisplayName"})
@Expose
@Nullable
public String displayName;

/**
* The Members.
* A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or other externalGroups as members.
*/
@SerializedName(value = "members", alternate = {"Members"})
@Expose
@Nullable
public IdentityCollectionPage members;


/**
* 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("members")) {
members = serializer.deserializeObject(json.get("members"), IdentityCollectionPage.class);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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.externalconnectors.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.externalconnectors.models.IdentityType;
import com.microsoft.graph.models.Entity;


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 Identity.
*/
public class Identity extends Entity implements IJsonBackedObject {


/**
* The Type.
*
*/
@SerializedName(value = "type", alternate = {"Type"})
@Expose
@Nullable
public IdentityType type;


/**
* 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) {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Template Source: Enum.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.externalconnectors.models;


/**
* The Enum Identity Type.
*/
public enum IdentityType
{
/**
* user
*/
USER,
/**
* group
*/
GROUP,
/**
* external Group
*/
EXTERNAL_GROUP,
/**
* unknown Future Value
*/
UNKNOWN_FUTURE_VALUE,
/**
* For IdentityType values that were not expected from the service
*/
UNEXPECTED_VALUE
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.externalconnectors.models.ExternalConnection;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ExternalItemCollectionRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ExternalItemRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ConnectionOperationCollectionRequestBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.externalconnectors.models.ExternalConnection;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ExternalItemCollectionRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ExternalItemRequestBuilder;
import com.microsoft.graph.externalconnectors.requests.ConnectionOperationCollectionRequestBuilder;
Expand Down Expand Up @@ -61,6 +63,26 @@ public ExternalConnectionRequest buildRequest(@Nonnull final java.util.List<? ex
}


/**
* Gets a request builder for the ExternalGroup collection
*
* @return the collection request builder
*/
@Nonnull
public ExternalGroupCollectionRequestBuilder groups() {
return new ExternalGroupCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("groups"), getClient(), null);
}

/**
* Gets a request builder for the ExternalGroup item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public ExternalGroupRequestBuilder groups(@Nonnull final String id) {
return new ExternalGroupRequestBuilder(getRequestUrlWithAdditionalSegment("groups") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the ExternalItem collection
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Template Source: BaseEntityCollectionPage.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.externalconnectors.requests;
import com.microsoft.graph.externalconnectors.models.ExternalGroup;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionRequestBuilder;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionResponse;
import com.microsoft.graph.http.BaseCollectionPage;

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

/**
* The class for the External Group Collection Page.
*/
public class ExternalGroupCollectionPage extends BaseCollectionPage<ExternalGroup, ExternalGroupCollectionRequestBuilder> {

/**
* A collection page for ExternalGroup
*
* @param response the serialized ExternalGroupCollectionResponse from the service
* @param builder the request builder for the next collection page
*/
public ExternalGroupCollectionPage(@Nonnull final ExternalGroupCollectionResponse response, @Nonnull final ExternalGroupCollectionRequestBuilder builder) {
super(response, builder);
}

/**
* Creates the collection page for ExternalGroup
*
* @param pageContents the contents of this page
* @param nextRequestBuilder the request builder for the next page
*/
public ExternalGroupCollectionPage(@Nonnull final java.util.List<ExternalGroup> pageContents, @Nullable final ExternalGroupCollectionRequestBuilder nextRequestBuilder) {
super(pageContents, nextRequestBuilder);
}
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.