Skip to content

Commit e7af63b

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 202235
1 parent b313619 commit e7af63b

File tree

81 files changed

+8160
-207
lines changed

Some content is hidden

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

81 files changed

+8160
-207
lines changed

src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ public PermissionGrantsRequestBuilder permissionGrants() {
457457
return new PermissionGrantsRequestBuilder(pathParameters, requestAdapter);
458458
}
459459
/**
460-
* The places property
460+
* Provides operations to manage the collection of place entities.
461461
* @return a {@link PlacesRequestBuilder}
462462
*/
463463
@jakarta.annotation.Nonnull

src/main/java/com/microsoft/graph/generated/education/classes/item/assignments/item/EducationAssignmentItemRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.microsoft.graph.education.classes.item.assignments.item.categories.CategoriesRequestBuilder;
55
import com.microsoft.graph.education.classes.item.assignments.item.deactivate.DeactivateRequestBuilder;
66
import com.microsoft.graph.education.classes.item.assignments.item.gradingcategory.GradingCategoryRequestBuilder;
7+
import com.microsoft.graph.education.classes.item.assignments.item.gradingscheme.GradingSchemeRequestBuilder;
78
import com.microsoft.graph.education.classes.item.assignments.item.publish.PublishRequestBuilder;
89
import com.microsoft.graph.education.classes.item.assignments.item.resources.ResourcesRequestBuilder;
910
import com.microsoft.graph.education.classes.item.assignments.item.rubric.RubricRequestBuilder;
@@ -62,6 +63,14 @@ public DeactivateRequestBuilder deactivate() {
6263
public GradingCategoryRequestBuilder gradingCategory() {
6364
return new GradingCategoryRequestBuilder(pathParameters, requestAdapter);
6465
}
66+
/**
67+
* Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity.
68+
* @return a {@link GradingSchemeRequestBuilder}
69+
*/
70+
@jakarta.annotation.Nonnull
71+
public GradingSchemeRequestBuilder gradingScheme() {
72+
return new GradingSchemeRequestBuilder(pathParameters, requestAdapter);
73+
}
6574
/**
6675
* Provides operations to call the publish method.
6776
* @return a {@link PublishRequestBuilder}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
package com.microsoft.graph.education.classes.item.assignments.item.gradingscheme;
2+
3+
import com.microsoft.graph.models.EducationGradingScheme;
4+
import com.microsoft.graph.models.odataerrors.ODataError;
5+
import com.microsoft.kiota.BaseRequestBuilder;
6+
import com.microsoft.kiota.BaseRequestConfiguration;
7+
import com.microsoft.kiota.HttpMethod;
8+
import com.microsoft.kiota.QueryParameters;
9+
import com.microsoft.kiota.RequestAdapter;
10+
import com.microsoft.kiota.RequestInformation;
11+
import com.microsoft.kiota.RequestOption;
12+
import com.microsoft.kiota.serialization.Parsable;
13+
import com.microsoft.kiota.serialization.ParsableFactory;
14+
import java.util.Collection;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
/**
19+
* Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity.
20+
*/
21+
@jakarta.annotation.Generated("com.microsoft.kiota")
22+
public class GradingSchemeRequestBuilder extends BaseRequestBuilder {
23+
/**
24+
* Instantiates a new {@link GradingSchemeRequestBuilder} and sets the default values.
25+
* @param pathParameters Path parameters for the request
26+
* @param requestAdapter The request adapter to use to execute the requests.
27+
*/
28+
public GradingSchemeRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
29+
super(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", pathParameters);
30+
}
31+
/**
32+
* Instantiates a new {@link GradingSchemeRequestBuilder} and sets the default values.
33+
* @param rawUrl The raw URL to use for the request builder.
34+
* @param requestAdapter The request adapter to use to execute the requests.
35+
*/
36+
public GradingSchemeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
37+
super(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", rawUrl);
38+
}
39+
/**
40+
* When set, enables users to configure custom string grades based on the percentage of total points earned on this assignment.
41+
* @return a {@link EducationGradingScheme}
42+
* @throws ODataError When receiving a 4XX or 5XX status code
43+
*/
44+
@jakarta.annotation.Nullable
45+
public EducationGradingScheme get() {
46+
return get(null);
47+
}
48+
/**
49+
* When set, enables users to configure custom string grades based on the percentage of total points earned on this assignment.
50+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @return a {@link EducationGradingScheme}
52+
* @throws ODataError When receiving a 4XX or 5XX status code
53+
*/
54+
@jakarta.annotation.Nullable
55+
public EducationGradingScheme get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
56+
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
57+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
58+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
59+
return this.requestAdapter.send(requestInfo, errorMapping, EducationGradingScheme::createFromDiscriminatorValue);
60+
}
61+
/**
62+
* When set, enables users to configure custom string grades based on the percentage of total points earned on this assignment.
63+
* @return a {@link RequestInformation}
64+
*/
65+
@jakarta.annotation.Nonnull
66+
public RequestInformation toGetRequestInformation() {
67+
return toGetRequestInformation(null);
68+
}
69+
/**
70+
* When set, enables users to configure custom string grades based on the percentage of total points earned on this assignment.
71+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
72+
* @return a {@link RequestInformation}
73+
*/
74+
@jakarta.annotation.Nonnull
75+
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
76+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
77+
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
78+
requestInfo.headers.tryAdd("Accept", "application/json");
79+
return requestInfo;
80+
}
81+
/**
82+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
83+
* @param rawUrl The raw URL to use for the request builder.
84+
* @return a {@link GradingSchemeRequestBuilder}
85+
*/
86+
@jakarta.annotation.Nonnull
87+
public GradingSchemeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
88+
Objects.requireNonNull(rawUrl);
89+
return new GradingSchemeRequestBuilder(rawUrl, requestAdapter);
90+
}
91+
/**
92+
* When set, enables users to configure custom string grades based on the percentage of total points earned on this assignment.
93+
*/
94+
@jakarta.annotation.Generated("com.microsoft.kiota")
95+
public class GetQueryParameters implements QueryParameters {
96+
/**
97+
* Expand related entities
98+
*/
99+
@jakarta.annotation.Nullable
100+
public String[] expand;
101+
/**
102+
* Select properties to be returned
103+
*/
104+
@jakarta.annotation.Nullable
105+
public String[] select;
106+
/**
107+
* Extracts the query parameters into a map for the URI template parsing.
108+
* @return a {@link Map<String, Object>}
109+
*/
110+
@jakarta.annotation.Nonnull
111+
public Map<String, Object> toQueryParameters() {
112+
final Map<String, Object> allQueryParams = new HashMap();
113+
allQueryParams.put("%24expand", expand);
114+
allQueryParams.put("%24select", select);
115+
return allQueryParams;
116+
}
117+
}
118+
/**
119+
* Configuration for the request such as headers, query parameters, and middleware options.
120+
*/
121+
@jakarta.annotation.Generated("com.microsoft.kiota")
122+
public class GetRequestConfiguration extends BaseRequestConfiguration {
123+
/**
124+
* Request query parameters
125+
*/
126+
@jakarta.annotation.Nullable
127+
public GetQueryParameters queryParameters = new GetQueryParameters();
128+
}
129+
}

src/main/java/com/microsoft/graph/generated/education/classes/item/assignmentsettings/AssignmentSettingsRequestBuilder.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.microsoft.graph.education.classes.item.assignmentsettings;
22

3+
import com.microsoft.graph.education.classes.item.assignmentsettings.defaultgradingscheme.DefaultGradingSchemeRequestBuilder;
34
import com.microsoft.graph.education.classes.item.assignmentsettings.gradingcategories.GradingCategoriesRequestBuilder;
5+
import com.microsoft.graph.education.classes.item.assignmentsettings.gradingschemes.GradingSchemesRequestBuilder;
46
import com.microsoft.graph.models.EducationAssignmentSettings;
57
import com.microsoft.graph.models.odataerrors.ODataError;
68
import com.microsoft.kiota.BaseRequestBuilder;
@@ -21,6 +23,14 @@
2123
*/
2224
@jakarta.annotation.Generated("com.microsoft.kiota")
2325
public class AssignmentSettingsRequestBuilder extends BaseRequestBuilder {
26+
/**
27+
* Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity.
28+
* @return a {@link DefaultGradingSchemeRequestBuilder}
29+
*/
30+
@jakarta.annotation.Nonnull
31+
public DefaultGradingSchemeRequestBuilder defaultGradingScheme() {
32+
return new DefaultGradingSchemeRequestBuilder(pathParameters, requestAdapter);
33+
}
2434
/**
2535
* Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity.
2636
* @return a {@link GradingCategoriesRequestBuilder}
@@ -29,6 +39,14 @@ public class AssignmentSettingsRequestBuilder extends BaseRequestBuilder {
2939
public GradingCategoriesRequestBuilder gradingCategories() {
3040
return new GradingCategoriesRequestBuilder(pathParameters, requestAdapter);
3141
}
42+
/**
43+
* Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity.
44+
* @return a {@link GradingSchemesRequestBuilder}
45+
*/
46+
@jakarta.annotation.Nonnull
47+
public GradingSchemesRequestBuilder gradingSchemes() {
48+
return new GradingSchemesRequestBuilder(pathParameters, requestAdapter);
49+
}
3250
/**
3351
* Instantiates a new {@link AssignmentSettingsRequestBuilder} and sets the default values.
3452
* @param pathParameters Path parameters for the request
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
package com.microsoft.graph.education.classes.item.assignmentsettings.defaultgradingscheme;
2+
3+
import com.microsoft.graph.models.EducationGradingScheme;
4+
import com.microsoft.graph.models.odataerrors.ODataError;
5+
import com.microsoft.kiota.BaseRequestBuilder;
6+
import com.microsoft.kiota.BaseRequestConfiguration;
7+
import com.microsoft.kiota.HttpMethod;
8+
import com.microsoft.kiota.QueryParameters;
9+
import com.microsoft.kiota.RequestAdapter;
10+
import com.microsoft.kiota.RequestInformation;
11+
import com.microsoft.kiota.RequestOption;
12+
import com.microsoft.kiota.serialization.Parsable;
13+
import com.microsoft.kiota.serialization.ParsableFactory;
14+
import java.util.Collection;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
/**
19+
* Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity.
20+
*/
21+
@jakarta.annotation.Generated("com.microsoft.kiota")
22+
public class DefaultGradingSchemeRequestBuilder extends BaseRequestBuilder {
23+
/**
24+
* Instantiates a new {@link DefaultGradingSchemeRequestBuilder} and sets the default values.
25+
* @param pathParameters Path parameters for the request
26+
* @param requestAdapter The request adapter to use to execute the requests.
27+
*/
28+
public DefaultGradingSchemeRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
29+
super(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/defaultGradingScheme{?%24expand,%24select}", pathParameters);
30+
}
31+
/**
32+
* Instantiates a new {@link DefaultGradingSchemeRequestBuilder} and sets the default values.
33+
* @param rawUrl The raw URL to use for the request builder.
34+
* @param requestAdapter The request adapter to use to execute the requests.
35+
*/
36+
public DefaultGradingSchemeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
37+
super(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/defaultGradingScheme{?%24expand,%24select}", rawUrl);
38+
}
39+
/**
40+
* The default grading scheme for assignments created in this class.
41+
* @return a {@link EducationGradingScheme}
42+
* @throws ODataError When receiving a 4XX or 5XX status code
43+
*/
44+
@jakarta.annotation.Nullable
45+
public EducationGradingScheme get() {
46+
return get(null);
47+
}
48+
/**
49+
* The default grading scheme for assignments created in this class.
50+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @return a {@link EducationGradingScheme}
52+
* @throws ODataError When receiving a 4XX or 5XX status code
53+
*/
54+
@jakarta.annotation.Nullable
55+
public EducationGradingScheme get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
56+
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
57+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
58+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
59+
return this.requestAdapter.send(requestInfo, errorMapping, EducationGradingScheme::createFromDiscriminatorValue);
60+
}
61+
/**
62+
* The default grading scheme for assignments created in this class.
63+
* @return a {@link RequestInformation}
64+
*/
65+
@jakarta.annotation.Nonnull
66+
public RequestInformation toGetRequestInformation() {
67+
return toGetRequestInformation(null);
68+
}
69+
/**
70+
* The default grading scheme for assignments created in this class.
71+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
72+
* @return a {@link RequestInformation}
73+
*/
74+
@jakarta.annotation.Nonnull
75+
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
76+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
77+
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
78+
requestInfo.headers.tryAdd("Accept", "application/json");
79+
return requestInfo;
80+
}
81+
/**
82+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
83+
* @param rawUrl The raw URL to use for the request builder.
84+
* @return a {@link DefaultGradingSchemeRequestBuilder}
85+
*/
86+
@jakarta.annotation.Nonnull
87+
public DefaultGradingSchemeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
88+
Objects.requireNonNull(rawUrl);
89+
return new DefaultGradingSchemeRequestBuilder(rawUrl, requestAdapter);
90+
}
91+
/**
92+
* The default grading scheme for assignments created in this class.
93+
*/
94+
@jakarta.annotation.Generated("com.microsoft.kiota")
95+
public class GetQueryParameters implements QueryParameters {
96+
/**
97+
* Expand related entities
98+
*/
99+
@jakarta.annotation.Nullable
100+
public String[] expand;
101+
/**
102+
* Select properties to be returned
103+
*/
104+
@jakarta.annotation.Nullable
105+
public String[] select;
106+
/**
107+
* Extracts the query parameters into a map for the URI template parsing.
108+
* @return a {@link Map<String, Object>}
109+
*/
110+
@jakarta.annotation.Nonnull
111+
public Map<String, Object> toQueryParameters() {
112+
final Map<String, Object> allQueryParams = new HashMap();
113+
allQueryParams.put("%24expand", expand);
114+
allQueryParams.put("%24select", select);
115+
return allQueryParams;
116+
}
117+
}
118+
/**
119+
* Configuration for the request such as headers, query parameters, and middleware options.
120+
*/
121+
@jakarta.annotation.Generated("com.microsoft.kiota")
122+
public class GetRequestConfiguration extends BaseRequestConfiguration {
123+
/**
124+
* Request query parameters
125+
*/
126+
@jakarta.annotation.Nullable
127+
public GetQueryParameters queryParameters = new GetQueryParameters();
128+
}
129+
}

0 commit comments

Comments
 (0)