Skip to content

Commit 1b0d6c6

Browse files
Merge pull request #1038 from microsoftgraph/v1.0/pipelinebuild/71731
Generated v1.0 models and request builders using Typewriter
2 parents 29e11e3 + 5c281ce commit 1b0d6c6

27 files changed

+475
-72
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14+
## [5.19.0] - 2022-04-05
15+
16+
### Added
17+
18+
- AccessPackageAssignmentRequestReprocessParameterSet model and related requests.
19+
- AccessPackageAssignmentReprocessParameterSet model and related requests.
20+
21+
### Changed
22+
23+
- Generated v1.0 models and request builders using Typewriter.
24+
- AccessPackageAssignmentRequestBuilder & AccessPackageAssignmentRequestRequestBuilder requests.
25+
- User model.
26+
1427
## [5.18.0] - 2022-03-30
1528

1629
### 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.18.0'
22+
implementation 'com.microsoft.graph:microsoft-graph:5.19.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.18.0</version>
39+
<version>5.19.0</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -152,3 +152,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
152152

153153

154154

155+

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

@@ -73,5 +73,6 @@ mavenCentralPublishingEnabled=false
7373

7474

7575

76+
7677

7778

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.18.0";
21+
public static final String VERSION_NAME = "5.19.0";
2222
}
2323

2424

@@ -50,5 +50,6 @@ private Constants() {
5050

5151

5252

53+
5354

5455

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

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

7777
/**
7878
* The Assignment Policies.
79-
*
79+
* Read-only. Nullable.
8080
*/
8181
@SerializedName(value = "assignmentPolicies", alternate = {"AssignmentPolicies"})
8282
@Expose

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

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

4242
/**
4343
* The Duration Before Automatic Denial.
44-
*
44+
* The number of days that a request can be pending a response before it is automatically denied.
4545
*/
4646
@SerializedName(value = "durationBeforeAutomaticDenial", alternate = {"DurationBeforeAutomaticDenial"})
4747
@Expose
@@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() {
5050

5151
/**
5252
* The Duration Before Escalation.
53-
*
53+
* If escalation is required, the time a request can be pending a response from a primary approver.
5454
*/
5555
@SerializedName(value = "durationBeforeEscalation", alternate = {"DurationBeforeEscalation"})
5656
@Expose
@@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() {
5959

6060
/**
6161
* The Escalation Approvers.
62-
*
62+
* If escalation is enabled and the primary approvers do not respond before the escalation time, the escalationApprovers are the users who will be asked to approve requests.
6363
*/
6464
@SerializedName(value = "escalationApprovers", alternate = {"EscalationApprovers"})
6565
@Expose
@@ -68,7 +68,7 @@ public final AdditionalDataManager additionalDataManager() {
6868

6969
/**
7070
* The Fallback Escalation Approvers.
71-
*
71+
* The subjects, typically users, who are the fallback escalation approvers.
7272
*/
7373
@SerializedName(value = "fallbackEscalationApprovers", alternate = {"FallbackEscalationApprovers"})
7474
@Expose
@@ -77,7 +77,7 @@ public final AdditionalDataManager additionalDataManager() {
7777

7878
/**
7979
* The Fallback Primary Approvers.
80-
*
80+
* The subjects, typically users, who are the fallback primary approvers.
8181
*/
8282
@SerializedName(value = "fallbackPrimaryApprovers", alternate = {"FallbackPrimaryApprovers"})
8383
@Expose
@@ -86,7 +86,7 @@ public final AdditionalDataManager additionalDataManager() {
8686

8787
/**
8888
* The Is Approver Justification Required.
89-
*
89+
* Indicates whether the approver is required to provide a justification for approving a request.
9090
*/
9191
@SerializedName(value = "isApproverJustificationRequired", alternate = {"IsApproverJustificationRequired"})
9292
@Expose
@@ -95,7 +95,7 @@ public final AdditionalDataManager additionalDataManager() {
9595

9696
/**
9797
* The Is Escalation Enabled.
98-
*
98+
* If true, then one or more escalationApprovers are configured in this approval stage.
9999
*/
100100
@SerializedName(value = "isEscalationEnabled", alternate = {"IsEscalationEnabled"})
101101
@Expose
@@ -104,7 +104,7 @@ public final AdditionalDataManager additionalDataManager() {
104104

105105
/**
106106
* The Primary Approvers.
107-
*
107+
* The subjects, typically users, who will be asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors or externalSponsors.
108108
*/
109109
@SerializedName(value = "primaryApprovers", alternate = {"PrimaryApprovers"})
110110
@Expose

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class AccessPackageAssignment extends Entity implements IJsonBackedObject
7777

7878
/**
7979
* The Assignment Policy.
80-
*
80+
* Read-only. Supports $filter (eq) on the id property and $expand query parameters.
8181
*/
8282
@SerializedName(value = "assignmentPolicy", alternate = {"AssignmentPolicy"})
8383
@Expose

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

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

4242
/**
4343
* The Is Approval Required For Add.
44-
*
44+
* If false, then approval is not required for new requests in this policy.
4545
*/
4646
@SerializedName(value = "isApprovalRequiredForAdd", alternate = {"IsApprovalRequiredForAdd"})
4747
@Expose
@@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() {
5050

5151
/**
5252
* The Is Approval Required For Update.
53-
*
53+
* If false, then approval is not required for updates to requests in this policy.
5454
*/
5555
@SerializedName(value = "isApprovalRequiredForUpdate", alternate = {"IsApprovalRequiredForUpdate"})
5656
@Expose
@@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() {
5959

6060
/**
6161
* The Stages.
62-
*
62+
* If approval is required, the one, two or three elements of this collection define each of the stages of approval. An empty array is present if no approval is required.
6363
*/
6464
@SerializedName(value = "stages", alternate = {"Stages"})
6565
@Expose

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
3636

3737
/**
3838
* The Allowed Target Scope.
39-
*
39+
* Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, unknownFutureValue.
4040
*/
4141
@SerializedName(value = "allowedTargetScope", alternate = {"AllowedTargetScope"})
4242
@Expose
@@ -45,7 +45,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
4545

4646
/**
4747
* The Created Date Time.
48-
* The Timestamp 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
48+
* The Timestamp 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.
4949
*/
5050
@SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
5151
@Expose
@@ -63,7 +63,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
6363

6464
/**
6565
* The Display Name.
66-
* The display name of the policy. Supports $filter (eq).
66+
* The display name of the policy.
6767
*/
6868
@SerializedName(value = "displayName", alternate = {"DisplayName"})
6969
@Expose
@@ -72,7 +72,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
7272

7373
/**
7474
* The Expiration.
75-
*
75+
* The expiration date for assignments created in this policy.
7676
*/
7777
@SerializedName(value = "expiration", alternate = {"Expiration"})
7878
@Expose
@@ -81,7 +81,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
8181

8282
/**
8383
* The Modified Date Time.
84-
* The Timestamp 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
84+
* The Timestamp 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.
8585
*/
8686
@SerializedName(value = "modifiedDateTime", alternate = {"ModifiedDateTime"})
8787
@Expose
@@ -90,7 +90,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
9090

9191
/**
9292
* The Request Approval Settings.
93-
* Who must approve requests for access package in this policy.
93+
* Specifies the settings for approval of requests for an access package assignment through this policy. For example, if approval is required for new requests.
9494
*/
9595
@SerializedName(value = "requestApprovalSettings", alternate = {"RequestApprovalSettings"})
9696
@Expose
@@ -99,7 +99,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
9999

100100
/**
101101
* The Requestor Settings.
102-
* Who can request this access package from this policy.
102+
* Provides additional settings to select who can create a request for an access package assignment through this policy, and what they can include in their request.
103103
*/
104104
@SerializedName(value = "requestorSettings", alternate = {"RequestorSettings"})
105105
@Expose
@@ -108,7 +108,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
108108

109109
/**
110110
* The Review Settings.
111-
*
111+
* Settings for access reviews of assignments through this policy.
112112
*/
113113
@SerializedName(value = "reviewSettings", alternate = {"ReviewSettings"})
114114
@Expose
@@ -117,7 +117,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
117117

118118
/**
119119
* The Specific Allowed Targets.
120-
*
120+
* The principals that can be assigned access from an access package through this policy.
121121
*/
122122
@SerializedName(value = "specificAllowedTargets", alternate = {"SpecificAllowedTargets"})
123123
@Expose
@@ -126,7 +126,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
126126

127127
/**
128128
* The Access Package.
129-
* The access package with this policy. Read-only. Nullable. Supports $expand.
129+
* Access package containing this policy. Read-only.
130130
*/
131131
@SerializedName(value = "accessPackage", alternate = {"AccessPackage"})
132132
@Expose
@@ -135,7 +135,7 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked
135135

136136
/**
137137
* The Catalog.
138-
*
138+
* Catalog of the access package containing this policy. Read-only.
139139
*/
140140
@SerializedName(value = "catalog", alternate = {"Catalog"})
141141
@Expose
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.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 Access Package Assignment Reprocess Parameter Set.
21+
*/
22+
public class AccessPackageAssignmentReprocessParameterSet {
23+
24+
/**
25+
* Instiaciates a new AccessPackageAssignmentReprocessParameterSet
26+
*/
27+
public AccessPackageAssignmentReprocessParameterSet() {}
28+
/**
29+
* Instiaciates a new AccessPackageAssignmentReprocessParameterSet
30+
* @param builder builder bearing the parameters to initialize from
31+
*/
32+
protected AccessPackageAssignmentReprocessParameterSet(@Nonnull final AccessPackageAssignmentReprocessParameterSetBuilder builder) {
33+
}
34+
/**
35+
* Gets a new builder for the body
36+
* @return a new builder
37+
*/
38+
@Nonnull
39+
public static AccessPackageAssignmentReprocessParameterSetBuilder newBuilder() {
40+
return new AccessPackageAssignmentReprocessParameterSetBuilder();
41+
}
42+
/**
43+
* Fluent builder for the AccessPackageAssignmentReprocessParameterSet
44+
*/
45+
public static final class AccessPackageAssignmentReprocessParameterSetBuilder {
46+
/**
47+
* Instanciates a new AccessPackageAssignmentReprocessParameterSetBuilder
48+
*/
49+
@Nullable
50+
protected AccessPackageAssignmentReprocessParameterSetBuilder(){}
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 AccessPackageAssignmentReprocessParameterSet build() {
57+
return new AccessPackageAssignmentReprocessParameterSet(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)