Class PermissionsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.sites.item.getbypathwithpath.permissions.PermissionsRequestBuilder
@Generated("com.microsoft.kiota")
public class PermissionsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the permissions property of the microsoft.graph.site entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe permissions associated with the site.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionPermissionsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPermissionsRequestBuilderand sets the default values.PermissionsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPermissionsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget()The permissions associated with the site.get(Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The permissions associated with the site.post(Permission body) Create new navigation property to permissions for sitespost(Permission body, Consumer<PermissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to permissions for sitescom.microsoft.kiota.RequestInformationThe permissions associated with the site.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The permissions associated with the site.com.microsoft.kiota.RequestInformationCreate new navigation property to permissions for sitescom.microsoft.kiota.RequestInformationtoPostRequestInformation(Permission body, Consumer<PermissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to permissions for sitesReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
PermissionsRequestBuilder
public PermissionsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPermissionsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
PermissionsRequestBuilder
public PermissionsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPermissionsRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
get
The permissions associated with the site. Nullable.- Returns:
- a
PermissionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public PermissionCollectionResponse get(@Nullable Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The permissions associated with the site. Nullable.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PermissionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
Create new navigation property to permissions for sites- Parameters:
body- The request body- Returns:
- a
Permission - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public Permission post(@Nonnull Permission body, @Nullable Consumer<PermissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to permissions for sites- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Permission - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()The permissions associated with the site. Nullable.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The permissions associated with the site. Nullable.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Permission body) Create new navigation property to permissions for sites- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Permission body, @Nullable Consumer<PermissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to permissions for sites- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
PermissionsRequestBuilder
-