forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppRoleAssignmentWithReferenceRequest.java
More file actions
97 lines (80 loc) · 3.69 KB
/
Copy pathAppRoleAssignmentWithReferenceRequest.java
File metadata and controls
97 lines (80 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Template Source: BaseEntityWithReferenceRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.extensions;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.models.extensions.AppRoleAssignment;
import java.util.Arrays;
import java.util.EnumSet;
import com.microsoft.graph.options.QueryOption;
import com.microsoft.graph.http.BaseRequest;
import com.microsoft.graph.http.HttpMethod;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.serializer.IJsonBackedObject;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the App Role Assignment With Reference Request.
*/
public class AppRoleAssignmentWithReferenceRequest extends BaseRequest implements IAppRoleAssignmentWithReferenceRequest {
/**
* The request for the AppRoleAssignment
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
*/
public AppRoleAssignmentWithReferenceRequest(String requestUrl, IBaseClient client, java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
super(requestUrl, client, requestOptions, AppRoleAssignment.class);
}
public void post(final AppRoleAssignment newAppRoleAssignment, final IJsonBackedObject payload, final ICallback<? super AppRoleAssignment> callback) {
send(HttpMethod.POST, callback, payload);
}
public AppRoleAssignment post(final AppRoleAssignment newAppRoleAssignment, final IJsonBackedObject payload) throws ClientException {
IJsonBackedObject response = send(HttpMethod.POST, payload);
if (response != null){
return newAppRoleAssignment;
}
return null;
}
public void get(final ICallback<? super AppRoleAssignment> callback) {
send(HttpMethod.GET, callback, null);
}
public AppRoleAssignment get() throws ClientException {
return send(HttpMethod.GET, null);
}
public void delete(final ICallback<? super AppRoleAssignment> callback) {
send(HttpMethod.DELETE, callback, null);
}
public void delete() throws ClientException {
send(HttpMethod.DELETE, null);
}
public void patch(final AppRoleAssignment sourceAppRoleAssignment, final ICallback<? super AppRoleAssignment> callback) {
send(HttpMethod.PATCH, callback, sourceAppRoleAssignment);
}
public AppRoleAssignment patch(final AppRoleAssignment sourceAppRoleAssignment) throws ClientException {
return send(HttpMethod.PATCH, sourceAppRoleAssignment);
}
/**
* Sets the select clause for the request
*
* @param value the select clause
* @return the updated request
*/
public IAppRoleAssignmentWithReferenceRequest select(final String value) {
getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value));
return (IAppRoleAssignmentWithReferenceRequest)this;
}
/**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/
public IAppRoleAssignmentWithReferenceRequest expand(final String value) {
getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value));
return (AppRoleAssignmentWithReferenceRequest)this;
}
}