Skip to content

Commit 375754a

Browse files
Merge pull request #244 from microsoftgraph/beta/pipelinebuild/65252
Generated beta models and request builders using Typewriter
2 parents fd91028 + 776a1e4 commit 375754a

File tree

136 files changed

+4477
-390
lines changed

Some content is hidden

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

136 files changed

+4477
-390
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +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
15+
16+
### Added
17+
18+
- Models and Requests related, but not limited, to AuditEvent, SimulationAutomation.
19+
- EDiscovery requests related to: Custodian(Apply/Remove)HoldParameterSet, NonCustodialDataSource(Apply/Remove)HoldRequest.
20+
21+
### Changed
22+
23+
- Updated beta models and request builders generated using Typewriter, based on latest Beta-Metadata.
24+
- AccessReviewHistoryDefinitionGenerateDownloadUriRequest(Builder) -> AccessReviewHistoryInstanceGenerateDownloadUriRequest(Builder)
25+
1426
## [0.39.0] - 2022-01-27
1527

1628
### Added

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.39.0-SNAPSHOT'
23+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.40.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.39.0-SNAPSHOT</version>
40+
<version>0.40.0-SNAPSHOT</version>
4141
</dependency>
4242
<dependency>
4343
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -177,5 +177,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
177177

178178

179179

180+
180181

181182

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

@@ -76,5 +76,6 @@ mavenCentralPublishingEnabled=false
7676

7777

7878

79+
7980

8081

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public enum CaseAction
3636
*/
3737
ADD_TO_REVIEW_SET,
3838
/**
39+
* hold Update
40+
*/
41+
HOLD_UPDATE,
42+
/**
3943
* unknown Future Value
4044
*/
4145
UNKNOWN_FUTURE_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 Case Hold Operation.
24+
*/
25+
public class CaseHoldOperation 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+
}
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.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 Custodian Apply Hold Parameter Set.
21+
*/
22+
public class CustodianApplyHoldParameterSet {
23+
/**
24+
* The ids.
25+
*
26+
*/
27+
@SerializedName(value = "ids", alternate = {"Ids"})
28+
@Expose
29+
@Nullable
30+
public java.util.List<String> ids;
31+
32+
33+
/**
34+
* Instiaciates a new CustodianApplyHoldParameterSet
35+
*/
36+
public CustodianApplyHoldParameterSet() {}
37+
/**
38+
* Instiaciates a new CustodianApplyHoldParameterSet
39+
* @param builder builder bearing the parameters to initialize from
40+
*/
41+
protected CustodianApplyHoldParameterSet(@Nonnull final CustodianApplyHoldParameterSetBuilder builder) {
42+
this.ids = builder.ids;
43+
}
44+
/**
45+
* Gets a new builder for the body
46+
* @return a new builder
47+
*/
48+
@Nonnull
49+
public static CustodianApplyHoldParameterSetBuilder newBuilder() {
50+
return new CustodianApplyHoldParameterSetBuilder();
51+
}
52+
/**
53+
* Fluent builder for the CustodianApplyHoldParameterSet
54+
*/
55+
public static final class CustodianApplyHoldParameterSetBuilder {
56+
/**
57+
* The ids parameter value
58+
*/
59+
@Nullable
60+
protected java.util.List<String> ids;
61+
/**
62+
* Sets the Ids
63+
* @param val the value to set it to
64+
* @return the current builder object
65+
*/
66+
@Nonnull
67+
public CustodianApplyHoldParameterSetBuilder withIds(@Nullable final java.util.List<String> val) {
68+
this.ids = val;
69+
return this;
70+
}
71+
/**
72+
* Instanciates a new CustodianApplyHoldParameterSetBuilder
73+
*/
74+
@Nullable
75+
protected CustodianApplyHoldParameterSetBuilder(){}
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 CustodianApplyHoldParameterSet build() {
82+
return new CustodianApplyHoldParameterSet(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.ids != null) {
93+
result.add(new com.microsoft.graph.options.FunctionOption("ids", ids));
94+
}
95+
return result;
96+
}
97+
}
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.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 Custodian Remove Hold Parameter Set.
21+
*/
22+
public class CustodianRemoveHoldParameterSet {
23+
/**
24+
* The ids.
25+
*
26+
*/
27+
@SerializedName(value = "ids", alternate = {"Ids"})
28+
@Expose
29+
@Nullable
30+
public java.util.List<String> ids;
31+
32+
33+
/**
34+
* Instiaciates a new CustodianRemoveHoldParameterSet
35+
*/
36+
public CustodianRemoveHoldParameterSet() {}
37+
/**
38+
* Instiaciates a new CustodianRemoveHoldParameterSet
39+
* @param builder builder bearing the parameters to initialize from
40+
*/
41+
protected CustodianRemoveHoldParameterSet(@Nonnull final CustodianRemoveHoldParameterSetBuilder builder) {
42+
this.ids = builder.ids;
43+
}
44+
/**
45+
* Gets a new builder for the body
46+
* @return a new builder
47+
*/
48+
@Nonnull
49+
public static CustodianRemoveHoldParameterSetBuilder newBuilder() {
50+
return new CustodianRemoveHoldParameterSetBuilder();
51+
}
52+
/**
53+
* Fluent builder for the CustodianRemoveHoldParameterSet
54+
*/
55+
public static final class CustodianRemoveHoldParameterSetBuilder {
56+
/**
57+
* The ids parameter value
58+
*/
59+
@Nullable
60+
protected java.util.List<String> ids;
61+
/**
62+
* Sets the Ids
63+
* @param val the value to set it to
64+
* @return the current builder object
65+
*/
66+
@Nonnull
67+
public CustodianRemoveHoldParameterSetBuilder withIds(@Nullable final java.util.List<String> val) {
68+
this.ids = val;
69+
return this;
70+
}
71+
/**
72+
* Instanciates a new CustodianRemoveHoldParameterSetBuilder
73+
*/
74+
@Nullable
75+
protected CustodianRemoveHoldParameterSetBuilder(){}
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 CustodianRemoveHoldParameterSet build() {
82+
return new CustodianRemoveHoldParameterSet(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.ids != null) {
93+
result.add(new com.microsoft.graph.options.FunctionOption("ids", ids));
94+
}
95+
return result;
96+
}
97+
}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.microsoft.graph.serializer.AdditionalDataManager;
1010
import java.util.EnumSet;
1111
import com.microsoft.graph.models.IdentitySet;
12+
import com.microsoft.graph.ediscovery.models.DataSourceHoldStatus;
1213
import com.microsoft.graph.models.Entity;
1314

1415

@@ -53,6 +54,15 @@ public class DataSource extends Entity implements IJsonBackedObject {
5354
@Nullable
5455
public String displayName;
5556

57+
/**
58+
* The Hold Status.
59+
*
60+
*/
61+
@SerializedName(value = "holdStatus", alternate = {"HoldStatus"})
62+
@Expose
63+
@Nullable
64+
public DataSourceHoldStatus holdStatus;
65+
5666

5767
/**
5868
* Sets the raw JSON object

src/main/java/com/microsoft/graph/ediscovery/models/DataSourceContainer.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.ediscovery.models.DataSourceHoldStatus;
1112
import com.microsoft.graph.ediscovery.models.DataSourceContainerStatus;
1213
import com.microsoft.graph.ediscovery.models.CaseIndexOperation;
1314
import com.microsoft.graph.models.Entity;
@@ -45,6 +46,15 @@ public class DataSourceContainer extends Entity implements IJsonBackedObject {
4546
@Nullable
4647
public String displayName;
4748

49+
/**
50+
* The Hold Status.
51+
*
52+
*/
53+
@SerializedName(value = "holdStatus", alternate = {"HoldStatus"})
54+
@Expose
55+
@Nullable
56+
public DataSourceHoldStatus holdStatus;
57+
4858
/**
4959
* The Last Modified Date Time.
5060
* Last modified date and time of the dataSourceContainer.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.ediscovery.models;
7+
8+
9+
/**
10+
* The Enum Data Source Hold Status.
11+
*/
12+
public enum DataSourceHoldStatus
13+
{
14+
/**
15+
* not Applied
16+
*/
17+
NOT_APPLIED,
18+
/**
19+
* applied
20+
*/
21+
APPLIED,
22+
/**
23+
* applying
24+
*/
25+
APPLYING,
26+
/**
27+
* removing
28+
*/
29+
REMOVING,
30+
/**
31+
* partial
32+
*/
33+
PARTIAL,
34+
/**
35+
* unknown Future Value
36+
*/
37+
UNKNOWN_FUTURE_VALUE,
38+
/**
39+
* For DataSourceHoldStatus values that were not expected from the service
40+
*/
41+
UNEXPECTED_VALUE
42+
}

0 commit comments

Comments
 (0)