Class CrossTenantAccessPolicyRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.policies.crosstenantaccesspolicy.CrossTenantAccessPolicyRequestBuilder
@Generated("com.microsoft.kiota")
public class CrossTenantAccessPolicyRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the crossTenantAccessPolicy property of the microsoft.graph.policyRoot entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Configuration for the request such as headers, query parameters, and middleware options.class
Read the properties and relationships of a crossTenantAccessPolicy object.class
Configuration for the request such as headers, query parameters, and middleware options.class
Configuration 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
ConstructorsConstructorDescriptionCrossTenantAccessPolicyRequestBuilder
(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCrossTenantAccessPolicyRequestBuilder
and sets the default values.CrossTenantAccessPolicyRequestBuilder
(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCrossTenantAccessPolicyRequestBuilder
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the default property of the microsoft.graph.crossTenantAccessPolicy entity.void
delete()
Delete navigation property crossTenantAccessPolicy for policiesvoid
delete
(Consumer<CrossTenantAccessPolicyRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property crossTenantAccessPolicy for policiesget()
Read the properties and relationships of a crossTenantAccessPolicy object.get
(Consumer<CrossTenantAccessPolicyRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of a crossTenantAccessPolicy object.partners()
Provides operations to manage the partners property of the microsoft.graph.crossTenantAccessPolicy entity.patch
(CrossTenantAccessPolicy body) Update the properties of a cross-tenant access policy.patch
(CrossTenantAccessPolicy body, Consumer<CrossTenantAccessPolicyRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a cross-tenant access policy.Provides operations to manage the templates property of the microsoft.graph.crossTenantAccessPolicy entity.com.microsoft.kiota.RequestInformation
Delete navigation property crossTenantAccessPolicy for policiescom.microsoft.kiota.RequestInformation
toDeleteRequestInformation
(Consumer<CrossTenantAccessPolicyRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property crossTenantAccessPolicy for policiescom.microsoft.kiota.RequestInformation
Read the properties and relationships of a crossTenantAccessPolicy object.com.microsoft.kiota.RequestInformation
toGetRequestInformation
(Consumer<CrossTenantAccessPolicyRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of a crossTenantAccessPolicy object.com.microsoft.kiota.RequestInformation
Update the properties of a cross-tenant access policy.com.microsoft.kiota.RequestInformation
toPatchRequestInformation
(CrossTenantAccessPolicy body, Consumer<CrossTenantAccessPolicyRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a cross-tenant access policy.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
CrossTenantAccessPolicyRequestBuilder
public CrossTenantAccessPolicyRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCrossTenantAccessPolicyRequestBuilder
and sets the default values.- Parameters:
pathParameters
- Path parameters for the requestrequestAdapter
- The request adapter to use to execute the requests.
-
CrossTenantAccessPolicyRequestBuilder
public CrossTenantAccessPolicyRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCrossTenantAccessPolicyRequestBuilder
and 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
-
defaultEscaped
Provides operations to manage the default property of the microsoft.graph.crossTenantAccessPolicy entity.- Returns:
- a
DefaultRequestBuilder
-
partners
Provides operations to manage the partners property of the microsoft.graph.crossTenantAccessPolicy entity.- Returns:
- a
PartnersRequestBuilder
-
templates
Provides operations to manage the templates property of the microsoft.graph.crossTenantAccessPolicy entity.- Returns:
- a
TemplatesRequestBuilder
-
delete
public void delete()Delete navigation property crossTenantAccessPolicy for policies- Throws:
ODataError
- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<CrossTenantAccessPolicyRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property crossTenantAccessPolicy for policies- Parameters:
requestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError
- When receiving a 4XX or 5XX status code
-
get
Read the properties and relationships of a crossTenantAccessPolicy object.- Returns:
- a
CrossTenantAccessPolicy
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public CrossTenantAccessPolicy get(@Nullable Consumer<CrossTenantAccessPolicyRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of a crossTenantAccessPolicy object.- Parameters:
requestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
CrossTenantAccessPolicy
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the properties of a cross-tenant access policy.- Parameters:
body
- The request body- Returns:
- a
CrossTenantAccessPolicy
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public CrossTenantAccessPolicy patch(@Nonnull CrossTenantAccessPolicy body, @Nullable Consumer<CrossTenantAccessPolicyRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a cross-tenant access policy.- Parameters:
body
- The request bodyrequestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
CrossTenantAccessPolicy
- Throws:
ODataError
- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property crossTenantAccessPolicy for policies- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<CrossTenantAccessPolicyRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property crossTenantAccessPolicy for policies- Parameters:
requestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Read the properties and relationships of a crossTenantAccessPolicy object.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<CrossTenantAccessPolicyRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of a crossTenantAccessPolicy object.- Parameters:
requestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull CrossTenantAccessPolicy body) Update the properties of a cross-tenant access policy.- Parameters:
body
- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull CrossTenantAccessPolicy body, @Nullable Consumer<CrossTenantAccessPolicyRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a cross-tenant access policy.- 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
CrossTenantAccessPolicyRequestBuilder
-