Skip to content

Commit 78ea292

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Update generated files with build 114661
1 parent ac9c75c commit 78ea292

File tree

52 files changed

+2176
-101
lines changed

Some content is hidden

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

52 files changed

+2176
-101
lines changed

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.57.0'
22+
implementation 'com.microsoft.graph:microsoft-graph:5.58.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.57.0</version>
39+
<version>5.58.0</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCredentialAuthProvider -->
@@ -188,5 +188,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
188188

189189

190190

191+
191192

192193

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

@@ -111,5 +111,6 @@ mavenCentralPublishingEnabled=false
111111

112112

113113

114+
114115

115116

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Template Source: BaseEntity.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.externalconnectors.models;
7+
import com.microsoft.graph.serializer.ISerializer;
8+
import com.microsoft.graph.serializer.IJsonBackedObject;
9+
import com.microsoft.graph.serializer.AdditionalDataManager;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.externalconnectors.models.ExternalActivityType;
12+
import com.microsoft.graph.externalconnectors.models.Identity;
13+
import com.microsoft.graph.models.Entity;
14+
15+
16+
import com.google.gson.JsonObject;
17+
import com.google.gson.annotations.SerializedName;
18+
import com.google.gson.annotations.Expose;
19+
import javax.annotation.Nullable;
20+
import javax.annotation.Nonnull;
21+
22+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
23+
24+
/**
25+
* The class for the External Activity.
26+
*/
27+
public class ExternalActivity extends Entity implements IJsonBackedObject {
28+
29+
30+
/**
31+
* The Start Date Time.
32+
* The date and time when the particular activity occurred. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
33+
*/
34+
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
35+
@Expose
36+
@Nullable
37+
public java.time.OffsetDateTime startDateTime;
38+
39+
/**
40+
* The Type.
41+
* The type of activity performed. The possible values are: viewed, modified, created, commented, unknownFutureValue.
42+
*/
43+
@SerializedName(value = "type", alternate = {"Type"})
44+
@Expose
45+
@Nullable
46+
public ExternalActivityType type;
47+
48+
/**
49+
* The Performed By.
50+
* Represents an identity used to identify who is responsible for the activity.
51+
*/
52+
@SerializedName(value = "performedBy", alternate = {"PerformedBy"})
53+
@Expose
54+
@Nullable
55+
public Identity performedBy;
56+
57+
58+
/**
59+
* Sets the raw JSON object
60+
*
61+
* @param serializer the serializer
62+
* @param json the JSON object to set this object to
63+
*/
64+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
65+
66+
}
67+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Template Source: BaseEntity.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.externalconnectors.models;
7+
import com.microsoft.graph.serializer.ISerializer;
8+
import com.microsoft.graph.serializer.IJsonBackedObject;
9+
import com.microsoft.graph.serializer.AdditionalDataManager;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.models.PublicError;
12+
import com.microsoft.graph.externalconnectors.models.ExternalActivity;
13+
14+
15+
import com.google.gson.JsonObject;
16+
import com.google.gson.annotations.SerializedName;
17+
import com.google.gson.annotations.Expose;
18+
import javax.annotation.Nullable;
19+
import javax.annotation.Nonnull;
20+
21+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
22+
23+
/**
24+
* The class for the External Activity Result.
25+
*/
26+
public class ExternalActivityResult extends ExternalActivity implements IJsonBackedObject {
27+
28+
29+
/**
30+
* The Error.
31+
* Error information that explains the failure to process an external activity.
32+
*/
33+
@SerializedName(value = "error", alternate = {"Error"})
34+
@Expose
35+
@Nullable
36+
public PublicError error;
37+
38+
39+
/**
40+
* Sets the raw JSON object
41+
*
42+
* @param serializer the serializer
43+
* @param json the JSON object to set this object to
44+
*/
45+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
46+
47+
}
48+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Template Source: Enum.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.externalconnectors.models;
7+
8+
9+
/**
10+
* The Enum External Activity Type.
11+
*/
12+
public enum ExternalActivityType
13+
{
14+
/**
15+
* viewed
16+
*/
17+
VIEWED,
18+
/**
19+
* modified
20+
*/
21+
MODIFIED,
22+
/**
23+
* created
24+
*/
25+
CREATED,
26+
/**
27+
* commented
28+
*/
29+
COMMENTED,
30+
/**
31+
* unknown Future Value
32+
*/
33+
UNKNOWN_FUTURE_VALUE,
34+
/**
35+
* For ExternalActivityType values that were not expected from the service
36+
*/
37+
UNEXPECTED_VALUE
38+
}

src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItem.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.microsoft.graph.externalconnectors.models.ExternalItemContent;
1414
import com.microsoft.graph.externalconnectors.models.Properties;
1515
import com.microsoft.graph.models.Entity;
16+
import com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionPage;
1617

1718

1819
import com.google.gson.JsonObject;
@@ -56,6 +57,15 @@ public class ExternalItem extends Entity implements IJsonBackedObject {
5657
@Nullable
5758
public Properties properties;
5859

60+
/**
61+
* The Activities.
62+
* Returns a list of activities performed on the item. Write-only.
63+
*/
64+
@SerializedName(value = "activities", alternate = {"Activities"})
65+
@Expose
66+
@Nullable
67+
public com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionPage activities;
68+
5969

6070
/**
6171
* Sets the raw JSON object
@@ -65,5 +75,9 @@ public class ExternalItem extends Entity implements IJsonBackedObject {
6575
*/
6676
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
6777

78+
79+
if (json.has("activities")) {
80+
activities = serializer.deserializeObject(json.get("activities"), com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionPage.class);
81+
}
6882
}
6983
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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.externalconnectors.models;
7+
8+
import com.microsoft.graph.externalconnectors.models.ExternalActivity;
9+
import com.microsoft.graph.externalconnectors.models.ExternalActivityResult;
10+
import com.google.gson.annotations.Expose;
11+
import com.google.gson.annotations.SerializedName;
12+
import javax.annotation.Nonnull;
13+
import javax.annotation.Nullable;
14+
import com.google.gson.JsonObject;
15+
import java.util.EnumSet;
16+
import java.util.ArrayList;
17+
18+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
19+
20+
/**
21+
* The class for the External Item Add Activities Parameter Set.
22+
*/
23+
public class ExternalItemAddActivitiesParameterSet {
24+
/**
25+
* The activities.
26+
*
27+
*/
28+
@SerializedName(value = "activities", alternate = {"Activities"})
29+
@Expose
30+
@Nullable
31+
public java.util.List<ExternalActivity> activities;
32+
33+
34+
/**
35+
* Instiaciates a new ExternalItemAddActivitiesParameterSet
36+
*/
37+
public ExternalItemAddActivitiesParameterSet() {}
38+
/**
39+
* Instiaciates a new ExternalItemAddActivitiesParameterSet
40+
* @param builder builder bearing the parameters to initialize from
41+
*/
42+
protected ExternalItemAddActivitiesParameterSet(@Nonnull final ExternalItemAddActivitiesParameterSetBuilder builder) {
43+
this.activities = builder.activities;
44+
}
45+
/**
46+
* Gets a new builder for the body
47+
* @return a new builder
48+
*/
49+
@Nonnull
50+
public static ExternalItemAddActivitiesParameterSetBuilder newBuilder() {
51+
return new ExternalItemAddActivitiesParameterSetBuilder();
52+
}
53+
/**
54+
* Fluent builder for the ExternalItemAddActivitiesParameterSet
55+
*/
56+
public static final class ExternalItemAddActivitiesParameterSetBuilder {
57+
/**
58+
* The activities parameter value
59+
*/
60+
@Nullable
61+
protected java.util.List<ExternalActivity> activities;
62+
/**
63+
* Sets the Activities
64+
* @param val the value to set it to
65+
* @return the current builder object
66+
*/
67+
@Nonnull
68+
public ExternalItemAddActivitiesParameterSetBuilder withActivities(@Nullable final java.util.List<ExternalActivity> val) {
69+
this.activities = val;
70+
return this;
71+
}
72+
/**
73+
* Instanciates a new ExternalItemAddActivitiesParameterSetBuilder
74+
*/
75+
@Nullable
76+
protected ExternalItemAddActivitiesParameterSetBuilder(){}
77+
/**
78+
* Buils the resulting body object to be passed to the request
79+
* @return the body object to pass to the request
80+
*/
81+
@Nonnull
82+
public ExternalItemAddActivitiesParameterSet build() {
83+
return new ExternalItemAddActivitiesParameterSet(this);
84+
}
85+
}
86+
/**
87+
* Gets the functions options from the properties that have been set
88+
* @return a list of function options for the request
89+
*/
90+
@Nonnull
91+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
92+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
93+
if(this.activities != null) {
94+
result.add(new com.microsoft.graph.options.FunctionOption("activities", activities));
95+
}
96+
return result;
97+
}
98+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Template Source: BaseEntityCollectionPage.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.externalconnectors.requests;
7+
import com.microsoft.graph.externalconnectors.models.ExternalActivity;
8+
import com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionRequestBuilder;
9+
import javax.annotation.Nullable;
10+
import javax.annotation.Nonnull;
11+
import com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionResponse;
12+
import com.microsoft.graph.http.BaseCollectionPage;
13+
14+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
15+
16+
/**
17+
* The class for the External Activity Collection Page.
18+
*/
19+
public class ExternalActivityCollectionPage extends BaseCollectionPage<ExternalActivity, ExternalActivityCollectionRequestBuilder> {
20+
21+
/**
22+
* A collection page for ExternalActivity
23+
*
24+
* @param response the serialized ExternalActivityCollectionResponse from the service
25+
* @param builder the request builder for the next collection page
26+
*/
27+
public ExternalActivityCollectionPage(@Nonnull final ExternalActivityCollectionResponse response, @Nonnull final ExternalActivityCollectionRequestBuilder builder) {
28+
super(response, builder);
29+
}
30+
31+
/**
32+
* Creates the collection page for ExternalActivity
33+
*
34+
* @param pageContents the contents of this page
35+
* @param nextRequestBuilder the request builder for the next page
36+
*/
37+
public ExternalActivityCollectionPage(@Nonnull final java.util.List<ExternalActivity> pageContents, @Nullable final ExternalActivityCollectionRequestBuilder nextRequestBuilder) {
38+
super(pageContents, nextRequestBuilder);
39+
}
40+
}

0 commit comments

Comments
 (0)