Skip to content

Commit 346a5b9

Browse files
authored
Merge pull request #377 from microsoftgraph/beta/pipelinebuild/85887
Generated beta models and request builders using Typewriter
2 parents 1cc0acd + 36ee60a commit 346a5b9

File tree

210 files changed

+7836
-2057
lines changed

Some content is hidden

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

210 files changed

+7836
-2057
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14+
## [0.56.0] - 2022-09-15
15+
16+
### Added
17+
18+
- AuthenticationCombinationConfiguration model and related requests.
19+
- AuthenticationMethodModeDetail model and related requests.
20+
- AuthenticationStrengthPolicy models and related requests.
21+
- AuthenticationStrengthRoot model and related requests.
22+
- DriveItemAssignSensitivityLabel models and related requests.
23+
- Fido2CombinationConfiguration model and related requests.
24+
- AuthenticationMethodFeatureConfiguration model.
25+
- AuthenticationMethodModes model.
26+
- AuthenticationStrengthRequirements model.
27+
- AuthenticationStrengthUsage model.
28+
- BaseAuthenticationMethod model.
29+
- CloudPcDiskEncryptionState model.
30+
- ConditionalAccess models.
31+
- CrossTenantAccessPolicyTenantRestrictions model.
32+
- DevicesFilter model.
33+
- FeatureTarget models.
34+
- MicrosoftAuthenticatorFeatureSettings model.
35+
- UpdateAllowedCombinationsResult model.
36+
- CaseExportOperationC requests added to the ediscovery namespace.
37+
- Models and Requests added to the newly added DeviceManagement namespace.
38+
39+
### Changed
40+
41+
- Updated beta models and request builders generated using Typewriter, based on latest Beta-Metadata.
42+
- Models and requests referencing the newly added models and requests have been updated to reflect the removed models/requests.
43+
- Removed ConnectionQuota requests from the ExternalConnectors namespace.
44+
- Removed AzureADFeatureUsage models and related requests.
45+
- Removed AzureADLicenseUsage models and realted requests.
46+
- Removed AzureADUserFeatureUsage models and related requests.
47+
- Removed RestrictedSignIn model and related requests.
48+
- Removed the AzureADLicenseType model.
49+
- Removed FeatureUsageDetail model.
50+
- Removed LicenseInfoDetail model.
51+
1452
## [0.55.0] - 2022-09-01
1553

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

193193

194194

195+
195196

196197

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

@@ -91,5 +91,6 @@ mavenCentralPublishingEnabled=false
9191

9292

9393

94+
9495

9596

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.devicemanagement.requests;
7+
import com.microsoft.graph.devicemanagement.models.AlertRecord;
8+
import com.microsoft.graph.devicemanagement.requests.AlertRecordCollectionRequestBuilder;
9+
import javax.annotation.Nullable;
10+
import javax.annotation.Nonnull;
11+
import com.microsoft.graph.devicemanagement.requests.AlertRecordCollectionResponse;
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 Alert Record Collection Page.
18+
*/
19+
public class AlertRecordCollectionPage extends BaseCollectionPage<AlertRecord, AlertRecordCollectionRequestBuilder> {
20+
21+
/**
22+
* A collection page for AlertRecord
23+
*
24+
* @param response the serialized AlertRecordCollectionResponse from the service
25+
* @param builder the request builder for the next collection page
26+
*/
27+
public AlertRecordCollectionPage(@Nonnull final AlertRecordCollectionResponse response, @Nonnull final AlertRecordCollectionRequestBuilder builder) {
28+
super(response, builder);
29+
}
30+
31+
/**
32+
* Creates the collection page for AlertRecord
33+
*
34+
* @param pageContents the contents of this page
35+
* @param nextRequestBuilder the request builder for the next page
36+
*/
37+
public AlertRecordCollectionPage(@Nonnull final java.util.List<AlertRecord> pageContents, @Nullable final AlertRecordCollectionRequestBuilder nextRequestBuilder) {
38+
super(pageContents, nextRequestBuilder);
39+
}
40+
}

src/main/java/com/microsoft/graph/requests/RestrictedSignInCollectionRequest.java renamed to src/main/java/com/microsoft/graph/devicemanagement/requests/AlertRecordCollectionRequest.java

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
44
// ------------------------------------------------------------------------------
55

6-
package com.microsoft.graph.requests;
6+
package com.microsoft.graph.devicemanagement.requests;
77

88
import com.microsoft.graph.http.IRequestBuilder;
99
import com.microsoft.graph.core.ClientException;
10-
import com.microsoft.graph.models.AuditLogRoot;
11-
import com.microsoft.graph.models.RestrictedSignIn;
10+
import com.microsoft.graph.devicemanagement.models.Monitoring;
11+
import com.microsoft.graph.devicemanagement.models.AlertRecord;
12+
import com.microsoft.graph.devicemanagement.models.PortalNotification;
1213
import java.util.Arrays;
1314
import java.util.EnumSet;
1415
import javax.annotation.Nullable;
@@ -17,52 +18,52 @@
1718
import com.microsoft.graph.options.QueryOption;
1819
import com.microsoft.graph.core.IBaseClient;
1920
import com.microsoft.graph.http.BaseEntityCollectionRequest;
20-
import com.microsoft.graph.requests.RestrictedSignInCollectionResponse;
21-
import com.microsoft.graph.requests.RestrictedSignInCollectionRequestBuilder;
22-
import com.microsoft.graph.requests.RestrictedSignInCollectionRequest;
21+
import com.microsoft.graph.devicemanagement.requests.AlertRecordCollectionResponse;
22+
import com.microsoft.graph.devicemanagement.requests.AlertRecordCollectionRequestBuilder;
23+
import com.microsoft.graph.devicemanagement.requests.AlertRecordCollectionRequest;
2324

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

2627
/**
27-
* The class for the Restricted Sign In Collection Request.
28+
* The class for the Alert Record Collection Request.
2829
*/
29-
public class RestrictedSignInCollectionRequest extends BaseEntityCollectionRequest<RestrictedSignIn, RestrictedSignInCollectionResponse, RestrictedSignInCollectionPage> {
30+
public class AlertRecordCollectionRequest extends BaseEntityCollectionRequest<AlertRecord, AlertRecordCollectionResponse, AlertRecordCollectionPage> {
3031

3132
/**
32-
* The request builder for this collection of RestrictedSignIn
33+
* The request builder for this collection of AlertRecord
3334
*
3435
* @param requestUrl the request URL
3536
* @param client the service client
3637
* @param requestOptions the options for this request
3738
*/
38-
public RestrictedSignInCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
39-
super(requestUrl, client, requestOptions, RestrictedSignInCollectionResponse.class, RestrictedSignInCollectionPage.class, RestrictedSignInCollectionRequestBuilder.class);
39+
public AlertRecordCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
40+
super(requestUrl, client, requestOptions, AlertRecordCollectionResponse.class, AlertRecordCollectionPage.class, AlertRecordCollectionRequestBuilder.class);
4041
}
4142

4243
/**
43-
* Creates a new RestrictedSignIn
44-
* @param newRestrictedSignIn the RestrictedSignIn to create
44+
* Creates a new AlertRecord
45+
* @param newAlertRecord the AlertRecord to create
4546
* @return a future with the created object
4647
*/
4748
@Nonnull
48-
public java.util.concurrent.CompletableFuture<RestrictedSignIn> postAsync(@Nonnull final RestrictedSignIn newRestrictedSignIn) {
49+
public java.util.concurrent.CompletableFuture<AlertRecord> postAsync(@Nonnull final AlertRecord newAlertRecord) {
4950
final String requestUrl = getBaseRequest().getRequestUrl().toString();
50-
return new RestrictedSignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
51+
return new AlertRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
5152
.buildRequest(getBaseRequest().getHeaders())
52-
.postAsync(newRestrictedSignIn);
53+
.postAsync(newAlertRecord);
5354
}
5455

5556
/**
56-
* Creates a new RestrictedSignIn
57-
* @param newRestrictedSignIn the RestrictedSignIn to create
57+
* Creates a new AlertRecord
58+
* @param newAlertRecord the AlertRecord to create
5859
* @return the newly created object
5960
*/
6061
@Nonnull
61-
public RestrictedSignIn post(@Nonnull final RestrictedSignIn newRestrictedSignIn) throws ClientException {
62+
public AlertRecord post(@Nonnull final AlertRecord newAlertRecord) throws ClientException {
6263
final String requestUrl = getBaseRequest().getRequestUrl().toString();
63-
return new RestrictedSignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
64+
return new AlertRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
6465
.buildRequest(getBaseRequest().getHeaders())
65-
.post(newRestrictedSignIn);
66+
.post(newAlertRecord);
6667
}
6768

6869
/**
@@ -72,7 +73,7 @@ public RestrictedSignIn post(@Nonnull final RestrictedSignIn newRestrictedSignIn
7273
* @return the updated request
7374
*/
7475
@Nonnull
75-
public RestrictedSignInCollectionRequest expand(@Nonnull final String value) {
76+
public AlertRecordCollectionRequest expand(@Nonnull final String value) {
7677
addExpandOption(value);
7778
return this;
7879
}
@@ -84,7 +85,7 @@ public RestrictedSignInCollectionRequest expand(@Nonnull final String value) {
8485
* @return the updated request
8586
*/
8687
@Nonnull
87-
public RestrictedSignInCollectionRequest filter(@Nonnull final String value) {
88+
public AlertRecordCollectionRequest filter(@Nonnull final String value) {
8889
addFilterOption(value);
8990
return this;
9091
}
@@ -96,7 +97,7 @@ public RestrictedSignInCollectionRequest filter(@Nonnull final String value) {
9697
* @return the updated request
9798
*/
9899
@Nonnull
99-
public RestrictedSignInCollectionRequest orderBy(@Nonnull final String value) {
100+
public AlertRecordCollectionRequest orderBy(@Nonnull final String value) {
100101
addOrderByOption(value);
101102
return this;
102103
}
@@ -108,7 +109,7 @@ public RestrictedSignInCollectionRequest orderBy(@Nonnull final String value) {
108109
* @return the updated request
109110
*/
110111
@Nonnull
111-
public RestrictedSignInCollectionRequest select(@Nonnull final String value) {
112+
public AlertRecordCollectionRequest select(@Nonnull final String value) {
112113
addSelectOption(value);
113114
return this;
114115
}
@@ -120,7 +121,7 @@ public RestrictedSignInCollectionRequest select(@Nonnull final String value) {
120121
* @return the updated request
121122
*/
122123
@Nonnull
123-
public RestrictedSignInCollectionRequest top(final int value) {
124+
public AlertRecordCollectionRequest top(final int value) {
124125
addTopOption(value);
125126
return this;
126127
}
@@ -132,7 +133,7 @@ public RestrictedSignInCollectionRequest top(final int value) {
132133
* @return the updated request
133134
*/
134135
@Nonnull
135-
public RestrictedSignInCollectionRequest count(final boolean value) {
136+
public AlertRecordCollectionRequest count(final boolean value) {
136137
addCountOption(value);
137138
return this;
138139
}
@@ -142,7 +143,7 @@ public RestrictedSignInCollectionRequest count(final boolean value) {
142143
* @return the updated request
143144
*/
144145
@Nonnull
145-
public RestrictedSignInCollectionRequest count() {
146+
public AlertRecordCollectionRequest count() {
146147
addCountOption(true);
147148
return this;
148149
}
@@ -153,7 +154,7 @@ public RestrictedSignInCollectionRequest count() {
153154
* @return the updated request
154155
*/
155156
@Nonnull
156-
public RestrictedSignInCollectionRequest skip(final int value) {
157+
public AlertRecordCollectionRequest skip(final int value) {
157158
addSkipOption(value);
158159
return this;
159160
}
@@ -165,7 +166,7 @@ public RestrictedSignInCollectionRequest skip(final int value) {
165166
* @return the updated request
166167
*/
167168
@Nonnull
168-
public RestrictedSignInCollectionRequest skipToken(@Nonnull final String skipToken) {
169+
public AlertRecordCollectionRequest skipToken(@Nonnull final String skipToken) {
169170
addSkipTokenOption(skipToken);
170171
return this;
171172
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Template Source: BaseEntityCollectionRequestBuilder.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.devicemanagement.requests;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.core.ClientException;
10+
import com.microsoft.graph.devicemanagement.models.Monitoring;
11+
import com.microsoft.graph.devicemanagement.models.AlertRecord;
12+
import com.microsoft.graph.devicemanagement.models.PortalNotification;
13+
import java.util.Arrays;
14+
import java.util.EnumSet;
15+
import javax.annotation.Nullable;
16+
import javax.annotation.Nonnull;
17+
18+
import com.microsoft.graph.devicemanagement.requests.AlertRecordCollectionRequestBuilder;
19+
import com.microsoft.graph.devicemanagement.requests.AlertRecordRequestBuilder;
20+
import com.microsoft.graph.devicemanagement.requests.AlertRecordCollectionRequest;
21+
import com.microsoft.graph.devicemanagement.requests.AlertRecordGetPortalNotificationsCollectionRequestBuilder;
22+
import com.microsoft.graph.http.BaseCollectionRequestBuilder;
23+
import com.microsoft.graph.core.IBaseClient;
24+
import com.microsoft.graph.http.PrimitiveRequestBuilder;
25+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
26+
27+
/**
28+
* The class for the Alert Record Collection Request Builder.
29+
*/
30+
public class AlertRecordCollectionRequestBuilder extends BaseCollectionRequestBuilder<AlertRecord, AlertRecordRequestBuilder, AlertRecordCollectionResponse, AlertRecordCollectionPage, AlertRecordCollectionRequest> {
31+
32+
/**
33+
* The request builder for this collection of Monitoring
34+
*
35+
* @param requestUrl the request URL
36+
* @param client the service client
37+
* @param requestOptions the options for this request
38+
*/
39+
public AlertRecordCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
40+
super(requestUrl, client, requestOptions, AlertRecordRequestBuilder.class, AlertRecordCollectionRequest.class);
41+
}
42+
43+
44+
45+
/**
46+
* Gets a builder to execute the method
47+
* @return the request builder collection
48+
*/
49+
@Nonnull
50+
public AlertRecordGetPortalNotificationsCollectionRequestBuilder getPortalNotifications() {
51+
return new AlertRecordGetPortalNotificationsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.deviceManagement.getPortalNotifications"), getClient(), null);
52+
}
53+
54+
/**
55+
* Gets the raw count request for the collection
56+
* @return The raw count request for the collection
57+
*/
58+
@Nonnull
59+
public PrimitiveRequestBuilder<Long> count() {
60+
return new PrimitiveRequestBuilder<Long>(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class);
61+
}
62+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Template Source: BaseEntityCollectionResponse.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.devicemanagement.requests;
7+
import com.microsoft.graph.devicemanagement.models.AlertRecord;
8+
9+
import com.microsoft.graph.http.BaseCollectionResponse;
10+
11+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
12+
13+
/**
14+
* The class for the Alert Record Collection Response.
15+
*/
16+
public class AlertRecordCollectionResponse extends BaseCollectionResponse<AlertRecord> {
17+
18+
}

0 commit comments

Comments
 (0)