Skip to content

Commit 8d97d1f

Browse files
Merge pull request #1548 from microsoftgraph/v1.0/pipelinebuild/124351
Generated models and request builders
2 parents 68f882e + bdb26bb commit 8d97d1f

30 files changed

+798
-17
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [5.70.0] - 2023-09-08
15+
16+
### Added
17+
18+
- PresenceStatusMessage derived types and requests.
19+
- SubjectRightsRequest derived types.
20+
1421
## [5.69.0] - 2023-09-01
1522

1623
### Added

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

201201

202202

203+
203204

204205

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

@@ -123,5 +123,6 @@ mavenCentralPublishingEnabled=false
123123

124124

125125

126+
126127

127128

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private Constants() {
1818
/** The client secret to use for unit testing */
1919
public static final String CLIENTSECRET = "clientsecret";
2020
/** The SDK version */
21-
public static final String VERSION_NAME = "5.69.0";
21+
public static final String VERSION_NAME = "5.70.0";
2222
}
2323

2424

@@ -100,5 +100,6 @@ private Constants() {
100100

101101

102102

103+
103104

104105

src/main/java/com/microsoft/graph/models/LearningSelfInitiatedCourse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class LearningSelfInitiatedCourse extends LearningCourseActivity implemen
2727

2828
/**
2929
* The Started Date Time.
30-
* The date time value on which the self-initiated course was started by the learner. Optional.
30+
* The date and time on which the self-initiated course was started by the learner. Optional.
3131
*/
3232
@SerializedName(value = "startedDateTime", alternate = {"StartedDateTime"})
3333
@Expose

src/main/java/com/microsoft/graph/models/Presence.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.microsoft.graph.serializer.IJsonBackedObject;
99
import com.microsoft.graph.serializer.AdditionalDataManager;
1010
import java.util.EnumSet;
11+
import com.microsoft.graph.models.PresenceStatusMessage;
1112
import com.microsoft.graph.models.Entity;
1213

1314

@@ -43,6 +44,15 @@ public class Presence extends Entity implements IJsonBackedObject {
4344
@Nullable
4445
public String availability;
4546

47+
/**
48+
* The Status Message.
49+
*
50+
*/
51+
@SerializedName(value = "statusMessage", alternate = {"StatusMessage"})
52+
@Expose
53+
@Nullable
54+
public PresenceStatusMessage statusMessage;
55+
4656

4757
/**
4858
* Sets the raw JSON object
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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.models;
7+
8+
import com.microsoft.graph.models.PresenceStatusMessage;
9+
import com.google.gson.annotations.Expose;
10+
import com.google.gson.annotations.SerializedName;
11+
import javax.annotation.Nonnull;
12+
import javax.annotation.Nullable;
13+
import com.google.gson.JsonObject;
14+
import java.util.EnumSet;
15+
import java.util.ArrayList;
16+
17+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
18+
19+
/**
20+
* The class for the Presence Set Status Message Parameter Set.
21+
*/
22+
public class PresenceSetStatusMessageParameterSet {
23+
/**
24+
* The status Message.
25+
*
26+
*/
27+
@SerializedName(value = "statusMessage", alternate = {"StatusMessage"})
28+
@Expose
29+
@Nullable
30+
public PresenceStatusMessage statusMessage;
31+
32+
33+
/**
34+
* Instiaciates a new PresenceSetStatusMessageParameterSet
35+
*/
36+
public PresenceSetStatusMessageParameterSet() {}
37+
/**
38+
* Instiaciates a new PresenceSetStatusMessageParameterSet
39+
* @param builder builder bearing the parameters to initialize from
40+
*/
41+
protected PresenceSetStatusMessageParameterSet(@Nonnull final PresenceSetStatusMessageParameterSetBuilder builder) {
42+
this.statusMessage = builder.statusMessage;
43+
}
44+
/**
45+
* Gets a new builder for the body
46+
* @return a new builder
47+
*/
48+
@Nonnull
49+
public static PresenceSetStatusMessageParameterSetBuilder newBuilder() {
50+
return new PresenceSetStatusMessageParameterSetBuilder();
51+
}
52+
/**
53+
* Fluent builder for the PresenceSetStatusMessageParameterSet
54+
*/
55+
public static final class PresenceSetStatusMessageParameterSetBuilder {
56+
/**
57+
* The statusMessage parameter value
58+
*/
59+
@Nullable
60+
protected PresenceStatusMessage statusMessage;
61+
/**
62+
* Sets the StatusMessage
63+
* @param val the value to set it to
64+
* @return the current builder object
65+
*/
66+
@Nonnull
67+
public PresenceSetStatusMessageParameterSetBuilder withStatusMessage(@Nullable final PresenceStatusMessage val) {
68+
this.statusMessage = val;
69+
return this;
70+
}
71+
/**
72+
* Instanciates a new PresenceSetStatusMessageParameterSetBuilder
73+
*/
74+
@Nullable
75+
protected PresenceSetStatusMessageParameterSetBuilder(){}
76+
/**
77+
* Buils the resulting body object to be passed to the request
78+
* @return the body object to pass to the request
79+
*/
80+
@Nonnull
81+
public PresenceSetStatusMessageParameterSet build() {
82+
return new PresenceSetStatusMessageParameterSet(this);
83+
}
84+
}
85+
/**
86+
* Gets the functions options from the properties that have been set
87+
* @return a list of function options for the request
88+
*/
89+
@Nonnull
90+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
91+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
92+
if(this.statusMessage != null) {
93+
result.add(new com.microsoft.graph.options.FunctionOption("statusMessage", statusMessage));
94+
}
95+
return result;
96+
}
97+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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.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.DateTimeTimeZone;
12+
import com.microsoft.graph.models.ItemBody;
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 Presence Status Message.
25+
*/
26+
public class PresenceStatusMessage implements IJsonBackedObject {
27+
28+
/** the OData type of the object as returned by the service */
29+
@SerializedName("@odata.type")
30+
@Expose
31+
@Nullable
32+
public String oDataType;
33+
34+
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
35+
36+
@Override
37+
@Nonnull
38+
public final AdditionalDataManager additionalDataManager() {
39+
return additionalDataManager;
40+
}
41+
42+
/**
43+
* The Expiry Date Time.
44+
*
45+
*/
46+
@SerializedName(value = "expiryDateTime", alternate = {"ExpiryDateTime"})
47+
@Expose
48+
@Nullable
49+
public DateTimeTimeZone expiryDateTime;
50+
51+
/**
52+
* The Message.
53+
*
54+
*/
55+
@SerializedName(value = "message", alternate = {"Message"})
56+
@Expose
57+
@Nullable
58+
public ItemBody message;
59+
60+
/**
61+
* The Published Date Time.
62+
*
63+
*/
64+
@SerializedName(value = "publishedDateTime", alternate = {"PublishedDateTime"})
65+
@Expose
66+
@Nullable
67+
public java.time.OffsetDateTime publishedDateTime;
68+
69+
70+
/**
71+
* Sets the raw JSON object
72+
*
73+
* @param serializer the serializer
74+
* @param json the JSON object to set this object to
75+
*/
76+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
77+
78+
}
79+
}

src/main/java/com/microsoft/graph/models/Privacy.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ public final AdditionalDataManager additionalDataManager() {
4141

4242
/**
4343
* The Subject Rights Requests.
44-
*
45-
*/
44+
*
45+
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security.
46+
*/
47+
@Deprecated
4648
@SerializedName(value = "subjectRightsRequests", alternate = {"SubjectRightsRequests"})
4749
@Expose
4850
@Nullable

src/main/java/com/microsoft/graph/models/PublicationFacet.java

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

4141
/**
4242
* The Checked Out By.
43-
*
43+
* User who has checked out the file.
4444
*/
4545
@SerializedName(value = "checkedOutBy", alternate = {"CheckedOutBy"})
4646
@Expose

0 commit comments

Comments
 (0)