Skip to content

Commit c61c2fb

Browse files
Merge pull request #262 from microsoftgraph/beta/pipelinebuild/68875
Generated beta models and request builders using Typewriter
2 parents df83b95 + 6bae228 commit c61c2fb

File tree

741 files changed

+24283
-3323
lines changed

Some content is hidden

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

741 files changed

+24283
-3323
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14-
## [0.39.0] - 2022-02-03
14+
## [0.41.0] - 2022-03-03
15+
16+
### Added
17+
18+
- Models and Requests for the recently added Microsoft.graph.security namespace.
19+
20+
### Changed
21+
22+
- Updated beta models and request builders generated using Typewriter, based on latest Beta-Metadata.
23+
- Alerts V_2 removed for testing.
24+
25+
## [0.40.0] - 2022-02-03
1526

1627
### Added
1728

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repositories {
2020
2121
dependencies {
2222
// Include the sdk as a dependency
23-
implementation 'com.microsoft.graph:microsoft-graph-beta:0.40.0-SNAPSHOT'
23+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.41.0-SNAPSHOT'
2424
// Uncomment the line below if you are building an android application
2525
//implementation 'com.google.guava:guava:30.1.1-android'
2626
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
@@ -37,7 +37,7 @@ Add the dependency in `dependencies` in pom.xml
3737
<!-- Include the sdk as a dependency -->
3838
<groupId>com.microsoft.graph</groupId>
3939
<artifactId>microsoft-graph-beta</artifactId>
40-
<version>0.40.0-SNAPSHOT</version>
40+
<version>0.41.0-SNAPSHOT</version>
4141
</dependency>
4242
<dependency>
4343
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -178,5 +178,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
178178

179179

180180

181+
181182

182183

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-beta
2828
mavenMajorVersion = 0
29-
mavenMinorVersion = 40
29+
mavenMinorVersion = 41
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -77,5 +77,6 @@ mavenCentralPublishingEnabled=false
7777

7878

7979

80+
8081

8182

src/main/java/com/microsoft/graph/callrecords/models/CallRecord.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class CallRecord extends Entity implements IJsonBackedObject {
8787

8888
/**
8989
* The Start Date Time.
90-
* UTC time when the first user joined the call. 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
90+
* UTC time when the first user joined the call. 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.
9191
*/
9292
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
9393
@Expose
@@ -105,7 +105,7 @@ public class CallRecord extends Entity implements IJsonBackedObject {
105105

106106
/**
107107
* The Version.
108-
* Monotonically increasing version of the call record. Higher version call records with the same ID includes additional data compared to the lower version.
108+
* Monotonically increasing version of the call record. Higher version call records with the same id includes additional data compared to the lower version.
109109
*/
110110
@SerializedName(value = "version", alternate = {"Version"})
111111
@Expose

src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ClientUserAgent extends UserAgent implements IJsonBackedObject {
3838

3939
/**
4040
* The Product Family.
41-
* Identifies the family of application software used by this endpoint. Possible values are: unknown, teams, skypeForBusiness, lync, unknownFutureValue, azureCommunicationServices. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: azureCommunicationServices.
41+
* Identifies the family of application software used by this endpoint. Possible values are: unknown, teams, skypeForBusiness, lync, unknownFutureValue, azureCommunicationServices. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: azureCommunicationServices.
4242
*/
4343
@SerializedName(value = "productFamily", alternate = {"ProductFamily"})
4444
@Expose

src/main/java/com/microsoft/graph/callrecords/models/Session.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class Session extends Entity implements IJsonBackedObject {
7878

7979
/**
8080
* The Start Date Time.
81-
* UTC fime when the first user joined the session. 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
81+
* UTC time when the first user joined the session. 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
8282
*/
8383
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
8484
@Expose

src/main/java/com/microsoft/graph/ediscovery/models/CaseAction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public enum CaseAction
4444
*/
4545
UNKNOWN_FUTURE_VALUE,
4646
/**
47+
* purge Data
48+
*/
49+
PURGE_DATA,
50+
/**
4751
* For CaseAction values that were not expected from the service
4852
*/
4953
UNEXPECTED_VALUE
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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.ediscovery.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.ediscovery.models.CaseOperation;
12+
13+
14+
import com.google.gson.JsonObject;
15+
import com.google.gson.annotations.SerializedName;
16+
import com.google.gson.annotations.Expose;
17+
import javax.annotation.Nullable;
18+
import javax.annotation.Nonnull;
19+
20+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
21+
22+
/**
23+
* The class for the Purge Data Operation.
24+
*/
25+
public class PurgeDataOperation extends CaseOperation implements IJsonBackedObject {
26+
27+
28+
29+
/**
30+
* Sets the raw JSON object
31+
*
32+
* @param serializer the serializer
33+
* @param json the JSON object to set this object to
34+
*/
35+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
36+
37+
}
38+
}

src/main/java/com/microsoft/graph/ediscovery/models/ReviewSetAddToReviewSetParameterSet.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public class ReviewSetAddToReviewSetParameterSet {
3232
public SourceCollection sourceCollection;
3333

3434
/**
35-
* The additional Data.
35+
* The additional Data Options.
3636
*
3737
*/
38-
@SerializedName(value = "additionalData", alternate = {"AdditionalData"})
38+
@SerializedName(value = "additionalDataOptions", alternate = {"AdditionalDataOptions"})
3939
@Expose
4040
@Nullable
41-
public EnumSet<AdditionalDataOptions> additionalData;
41+
public EnumSet<AdditionalDataOptions> additionalDataOptions;
4242

4343

4444
/**
@@ -51,7 +51,7 @@ public ReviewSetAddToReviewSetParameterSet() {}
5151
*/
5252
protected ReviewSetAddToReviewSetParameterSet(@Nonnull final ReviewSetAddToReviewSetParameterSetBuilder builder) {
5353
this.sourceCollection = builder.sourceCollection;
54-
this.additionalData = builder.additionalData;
54+
this.additionalDataOptions = builder.additionalDataOptions;
5555
}
5656
/**
5757
* Gets a new builder for the body
@@ -81,18 +81,18 @@ public ReviewSetAddToReviewSetParameterSetBuilder withSourceCollection(@Nullable
8181
return this;
8282
}
8383
/**
84-
* The additionalData parameter value
84+
* The additionalDataOptions parameter value
8585
*/
8686
@Nullable
87-
protected EnumSet<AdditionalDataOptions> additionalData;
87+
protected EnumSet<AdditionalDataOptions> additionalDataOptions;
8888
/**
89-
* Sets the AdditionalData
89+
* Sets the AdditionalDataOptions
9090
* @param val the value to set it to
9191
* @return the current builder object
9292
*/
9393
@Nonnull
94-
public ReviewSetAddToReviewSetParameterSetBuilder withAdditionalData(@Nullable final EnumSet<AdditionalDataOptions> val) {
95-
this.additionalData = val;
94+
public ReviewSetAddToReviewSetParameterSetBuilder withAdditionalDataOptions(@Nullable final EnumSet<AdditionalDataOptions> val) {
95+
this.additionalDataOptions = val;
9696
return this;
9797
}
9898
/**
@@ -119,8 +119,8 @@ public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOpt
119119
if(this.sourceCollection != null) {
120120
result.add(new com.microsoft.graph.options.FunctionOption("sourceCollection", sourceCollection));
121121
}
122-
if(this.additionalData != null) {
123-
result.add(new com.microsoft.graph.options.FunctionOption("additionalData", additionalData));
122+
if(this.additionalDataOptions != null) {
123+
result.add(new com.microsoft.graph.options.FunctionOption("additionalDataOptions", additionalDataOptions));
124124
}
125125
return result;
126126
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.ediscovery.models;
7+
8+
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 Source Collection Purge Data Parameter Set.
21+
*/
22+
public class SourceCollectionPurgeDataParameterSet {
23+
24+
/**
25+
* Instiaciates a new SourceCollectionPurgeDataParameterSet
26+
*/
27+
public SourceCollectionPurgeDataParameterSet() {}
28+
/**
29+
* Instiaciates a new SourceCollectionPurgeDataParameterSet
30+
* @param builder builder bearing the parameters to initialize from
31+
*/
32+
protected SourceCollectionPurgeDataParameterSet(@Nonnull final SourceCollectionPurgeDataParameterSetBuilder builder) {
33+
}
34+
/**
35+
* Gets a new builder for the body
36+
* @return a new builder
37+
*/
38+
@Nonnull
39+
public static SourceCollectionPurgeDataParameterSetBuilder newBuilder() {
40+
return new SourceCollectionPurgeDataParameterSetBuilder();
41+
}
42+
/**
43+
* Fluent builder for the SourceCollectionPurgeDataParameterSet
44+
*/
45+
public static final class SourceCollectionPurgeDataParameterSetBuilder {
46+
/**
47+
* Instanciates a new SourceCollectionPurgeDataParameterSetBuilder
48+
*/
49+
@Nullable
50+
protected SourceCollectionPurgeDataParameterSetBuilder(){}
51+
/**
52+
* Buils the resulting body object to be passed to the request
53+
* @return the body object to pass to the request
54+
*/
55+
@Nonnull
56+
public SourceCollectionPurgeDataParameterSet build() {
57+
return new SourceCollectionPurgeDataParameterSet(this);
58+
}
59+
}
60+
/**
61+
* Gets the functions options from the properties that have been set
62+
* @return a list of function options for the request
63+
*/
64+
@Nonnull
65+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
66+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
67+
return result;
68+
}
69+
}

0 commit comments

Comments
 (0)