Class PermissionsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.sites.item.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 TypeClassDescriptionclassGet the permission resources from the permissions navigation property on a 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 TypeMethodDescriptionbyPermissionId(String permissionId) Provides operations to manage the permissions property of the microsoft.graph.site entity.count()Provides operations to count the resources in the collection.get()Get the permission resources from the permissions navigation property on a site.get(Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the permission resources from the permissions navigation property on a site.post(Permission body) Create a new permission object on a site.post(Permission body, Consumer<PermissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new permission object on a site.com.microsoft.kiota.RequestInformationGet the permission resources from the permissions navigation property on a site.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the permission resources from the permissions navigation property on a site.com.microsoft.kiota.RequestInformationCreate a new permission object on a site.com.microsoft.kiota.RequestInformationtoPostRequestInformation(Permission body, Consumer<PermissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new permission object on a site.Returns 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byPermissionId
Provides operations to manage the permissions property of the microsoft.graph.site entity.- Parameters:
permissionId- The unique identifier of permission- Returns:
- a
PermissionItemRequestBuilder
-
get
Get the permission resources from the permissions navigation property on a site.- Returns:
- a
PermissionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public PermissionCollectionResponse get(@Nullable Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the permission resources from the permissions navigation property on a site.- 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- See Also:
-
post
Create a new permission object on a site.- Parameters:
body- The request body- Returns:
- a
Permission - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public Permission post(@Nonnull Permission body, @Nullable Consumer<PermissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new permission object on a site.- 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- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get the permission resources from the permissions navigation property on a site.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PermissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the permission resources from the permissions navigation property on a site.- 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 a new permission object on a site.- 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 a new permission object on a site.- 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
-